diff --git a/.features/pending/protoc-gen-go-migration.md b/.features/pending/protoc-gen-go-migration.md new file mode 100644 index 000000000000..f89732f19b77 --- /dev/null +++ b/.features/pending/protoc-gen-go-migration.md @@ -0,0 +1,15 @@ +Description: Migrate protobuf codegen from gogo/protobuf to protoc-gen-go and grpc-gateway v2 +Authors: [Alan Clucas](https://github.com/Joibel) +Component: Build and Development +Issues: 7400 16595 + +The API client and server stubs under `pkg/apiclient` are now generated with the officially maintained `protoc-gen-go` and `protoc-gen-go-grpc` instead of the unmaintained gogo/protobuf fork. +The HTTP gateway moved from grpc-gateway v1 to v2, and `protoc-gen-openapiv2` replaces `protoc-gen-swagger`. + +This is largely internal, but has some API-visible effects: + + - The `/api/v1/stream/events/{namespace}` stream now wraps each event as `{"result": {"type": ..., "object": ...}}` instead of `{"result": }`, matching the other watch streams. + - Some OpenAPI definition names changed (for example `WorkflowCreateRequest` is now `CreateWorkflowBody`), which renames the corresponding generated SDK classes. + - HTTP error bodies now use the standard `google.rpc.Status` shape instead of grpc-gateway v1's error types. + +See the upgrading guide for details. diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index 25874c8897c8..7a45dc97388e 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -171,6 +171,10 @@ jobs: - run: if (!(Test-Path "ui/dist/app/index.html")) { New-Item -ItemType Directory -Force -Path "ui/dist/app" | Out-Null; New-Item -ItemType File -Path "ui/dist/app/placeholder" | Out-Null }; go test -p 20 -covermode=atomic -coverprofile='coverage.out' $(go list ./... | select-string -Pattern 'github.com/argoproj/argo-workflows/v4/workflow/controller' , 'github.com/argoproj/argo-workflows/v4/server' -NotMatch) env: KUBECONFIG: /dev/null + # This job runs go test directly (not through make), so it must set the + # tag the Makefile normally exports: without it, Kubernetes v0.35 types + # lack ProtoMessage() and pkg/apiclient's startup probe fails. + GOFLAGS: -tags=kubernetes_protomessage_one_more_release - name: Upload coverage report # runs on PRs as well as main so codecov can comment a coverage report on the PR if: github.repository == 'argoproj/argo-workflows' diff --git a/AGENTS.md b/AGENTS.md index 0b6465c50450..8e3e84f9b070 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,6 +14,8 @@ Per-directory guidance lives in nested AGENTS.md files: `workflow/controller/AGE - Local dev stack (k3d + Tilt, everything in-cluster with hot reload), ports, profiles, debugging: see docs/running-locally.md. - Lint: `make lint` (golangci-lint `--fix` + UI lint — commit what `--fix` changes; CI runs `git diff --exit-code`). - Codegen: `make codegen -B`. Pre-PR: `make pre-commit -B` (= codegen, lint, docs). +- Vendoring: use `make vendor`, never plain `go mod vendor` — the make target also runs `hack/vendor-patches.sh`, which patches vendored `google.golang.org/protobuf` so messages embedding Kubernetes types keep marshalling once Kubernetes v1.36 removes `ProtoMessage()`. + Builds driven through make are also covered by the `kubernetes_protomessage_one_more_release` build tag the Makefile exports, but plain `go build`/`go test`/gopls get no tag and rely on the patched vendor tree — plain `go mod vendor` silently reverts the patch, and the only runtime safety net is the startup probe in `pkg/apiclient/protocompat.go`. ## Conventions diff --git a/Makefile b/Makefile index 2bf0c4db2d77..90c146f47f46 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,15 @@ export SHELL:=bash export SHELLOPTS:=$(if $(SHELLOPTS),$(SHELLOPTS):)pipefail:errexit -# k8s v0.35 moved ProtoMessage() behind a build tag. We need it unconditionally -# for gogo protobuf + grpc-gateway v1 compatibility (gRPC codec requires proto.Message). +# Kubernetes v1.35 (k8s.io/* v0.35) moved ProtoMessage() behind this build tag; +# k8s v1.36 removes it entirely. With the tag, k8s types keep satisfying +# protoiface.MessageV1, so the protoadapt legacy bridge works. This export only +# reaches builds driven through make — plain `go build`/`go test`/gopls get no +# tag and instead rely on the patched vendor tree from hack/vendor-patches.sh +# (which `make vendor` maintains; plain `go mod vendor` silently reverts it). +# Module consumers of pkg/apiclient get neither: see the compatibility probe in +# pkg/apiclient/protocompat.go and docs/upgrading.md. +# Note: because Go takes the last -tags flag, a caller-supplied GOFLAGS=-tags=x +# is overridden by this append for make-driven builds. export GOFLAGS += -tags=kubernetes_protomessage_one_more_release .PHONY: help @@ -152,9 +160,10 @@ TOOL_MOCKERY := mockery TOOL_CONTROLLER_GEN := controller-gen TOOL_GO_TO_PROTOBUF := go-to-protobuf TOOL_PROTOC_GEN_GOGO := protoc-gen-gogo -TOOL_PROTOC_GEN_GOGOFAST := protoc-gen-gogofast +TOOL_PROTOC_GEN_GO := protoc-gen-go +TOOL_PROTOC_GEN_GO_GRPC := protoc-gen-go-grpc TOOL_PROTOC_GEN_GRPC_GATEWAY:= protoc-gen-grpc-gateway -TOOL_PROTOC_GEN_SWAGGER := protoc-gen-swagger +TOOL_PROTOC_GEN_OPENAPIV2 := protoc-gen-openapiv2 TOOL_OPENAPI_GEN := openapi-gen TOOL_SWAGGER := swagger TOOL_GOIMPORTS := goimports @@ -166,9 +175,10 @@ TOOL_MOCKERY := $(GOPATH)/bin/mockery TOOL_CONTROLLER_GEN := $(GOPATH)/bin/controller-gen TOOL_GO_TO_PROTOBUF := $(GOPATH)/bin/go-to-protobuf TOOL_PROTOC_GEN_GOGO := $(GOPATH)/bin/protoc-gen-gogo -TOOL_PROTOC_GEN_GOGOFAST := $(GOPATH)/bin/protoc-gen-gogofast +TOOL_PROTOC_GEN_GO := $(GOPATH)/bin/protoc-gen-go +TOOL_PROTOC_GEN_GO_GRPC := $(GOPATH)/bin/protoc-gen-go-grpc TOOL_PROTOC_GEN_GRPC_GATEWAY:= $(GOPATH)/bin/protoc-gen-grpc-gateway -TOOL_PROTOC_GEN_SWAGGER := $(GOPATH)/bin/protoc-gen-swagger +TOOL_PROTOC_GEN_OPENAPIV2 := $(GOPATH)/bin/protoc-gen-openapiv2 TOOL_OPENAPI_GEN := $(GOPATH)/bin/openapi-gen TOOL_SWAGGER := $(GOPATH)/bin/swagger TOOL_GOIMPORTS := $(GOPATH)/bin/goimports @@ -231,6 +241,11 @@ proto_vendor: argo-proto.yaml .PHONY: proto-vendor proto-vendor: proto_vendor + +.PHONY: vendor +vendor: + go mod vendor + hack/vendor-patches.sh override LDFLAGS += \ -X github.com/argoproj/argo-workflows/v4.version=$(VERSION) \ -X github.com/argoproj/argo-workflows/v4.buildDate=$(BUILD_DATE) \ @@ -277,7 +292,7 @@ SWAGGER_FILES := pkg/apiclient/_.primary.swagger.json \ pkg/apiclient/workflowarchive/workflow-archive.swagger.json \ pkg/apiclient/workflowtemplate/workflow-template.swagger.json \ pkg/apiclient/sync/sync.swagger.json -PROTO_BINARIES := $(TOOL_PROTOC_GEN_GOGO) $(TOOL_PROTOC_GEN_GOGOFAST) $(TOOL_GOIMPORTS) $(TOOL_PROTOC_GEN_GRPC_GATEWAY) $(TOOL_PROTOC_GEN_SWAGGER) $(TOOL_BUF) +PROTO_BINARIES := $(TOOL_PROTOC_GEN_GO) $(TOOL_PROTOC_GEN_GO_GRPC) $(TOOL_GOIMPORTS) $(TOOL_PROTOC_GEN_GRPC_GATEWAY) $(TOOL_PROTOC_GEN_OPENAPIV2) $(TOOL_BUF) ifneq ($(USE_NIX), true) pkg/apiclient/%.swagger.json: $(PROTO_BINARIES) endif @@ -287,7 +302,7 @@ GENERATED_DOCS := $(QUICK_GENERATED_DOCS) docs/fields.md docs/cli/argo.md docs/w # `go mod vendor` rewrites vendor/modules.txt on every run # so depend on vendor/modules.txt in places where we want it up to date vendor/modules.txt: go.mod go.sum - go mod vendor + $(MAKE) vendor @touch $@ # Targets generated via $(call protoc) need a fresh vendor tree. @@ -298,18 +313,37 @@ $(filter-out pkg/apiclient/_.%,$(SWAGGER_FILES)) pkg/apiclient/artifact/artifact define protoc # protoc $(1) [ -e ./proto_vendor ] || $(MAKE) proto-vendor - mkdir -p $(GOPATH)/src github.com/argoproj + mkdir -p github.com/argoproj [ -e github.com/argoproj/argo-workflows ] || ln -s ../.. github.com/argoproj/argo-workflows [ -e v4 ] || ln -s . v4 + # require_unimplemented_servers=false: production server structs implement + # the full service interface explicitly instead of embedding + # UnimplementedXServer, so adding an RPC is a deliberate compile break + # rather than a silent 501. (Test fakes may still embed the stub.) protoc \ -I /usr/local/include \ -I $(CURDIR) \ -I $(CURDIR)/proto_vendor \ - --gogofast_out=plugins=grpc:$(GOPATH)/src \ - --grpc-gateway_out=logtostderr=true:$(GOPATH)/src \ - --swagger_out=logtostderr=true,fqn_for_swagger_name=true:. \ + --go_out=paths=source_relative:. \ + --go-grpc_out=require_unimplemented_servers=false,paths=source_relative:. \ + --grpc-gateway_out=paths=source_relative:. \ + --openapiv2_out=openapi_naming_strategy=fqn:. \ $(1) - perl -i -pe 's|argoproj/argo-workflows/(?!v4/)|argoproj/argo-workflows/v4/|g' `echo "$(1)" | sed 's/proto/pb.go/g'` + # Bridge gogo-generated v1alpha1 types (which lack ProtoReflect) to the + # proto.Message return type grpc-gateway v2 requires. gateway.MessageV2Of also + # preserves the encoding/json wire format of the original message — a bare + # protoadapt wrapper has no exported fields and would serialize as {}. + # The guards fail this rule loudly if a grpc-gateway upgrade changes the + # generated code: every unary return must be wrapped (none left unwrapped), + # and goimports keeps the injected import gofmt-clean. + gw=`echo "$(1)" | sed 's/\.proto$$/.pb.gw.go/'` && \ + [ -f $$gw ] || { echo "$$gw was not generated — did the proto lose its google.api.http annotations?" >&2; exit 1; } && \ + perl -i -pe 's/return msg, metadata, err/return gateway.MessageV2Of(msg), metadata, err/g' $$gw && \ + grep -q 'gateway\.MessageV2Of(msg)' $$gw && \ + ! grep -q 'return msg, metadata, err' $$gw && \ + perl -i -pe 's|"google.golang.org/protobuf/proto"|"google.golang.org/protobuf/proto"\n\t"github.com/argoproj/argo-workflows/v4/util/grpc/gateway"|' $$gw && \ + grep -q 'util/grpc/gateway' $$gw && \ + $(TOOL_GOIMPORTS) -w $$gw rm -rf github.com v4 endef @@ -472,27 +506,36 @@ endif $(TOOL_GO_TO_PROTOBUF): Makefile # update this in Nix when upgrading it here ifneq ($(USE_NIX), true) - go install k8s.io/code-generator/cmd/go-to-protobuf@v0.35.1 + go install k8s.io/code-generator/cmd/go-to-protobuf@v0.35.4 endif +# go-to-protobuf shells out to `protoc --gogo_out`, so protoc-gen-gogo is still +# required to generate the (gogo-based) pkg/apis/workflow/v1alpha1 types, even +# though pkg/apiclient codegen no longer uses gogo. gogo/protobuf is archived; +# this pin is final. $(TOOL_PROTOC_GEN_GOGO): Makefile # update this in Nix when upgrading it here ifneq ($(USE_NIX), true) go install github.com/gogo/protobuf/protoc-gen-gogo@v1.3.2 endif -$(TOOL_PROTOC_GEN_GOGOFAST): Makefile +$(TOOL_PROTOC_GEN_GO): Makefile +# update this in Nix when upgrading it here +ifneq ($(USE_NIX), true) + go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.6 +endif +$(TOOL_PROTOC_GEN_GO_GRPC): Makefile # update this in Nix when upgrading it here ifneq ($(USE_NIX), true) - go install github.com/gogo/protobuf/protoc-gen-gogofast@v1.3.2 + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.1 endif $(TOOL_PROTOC_GEN_GRPC_GATEWAY): Makefile # update this in Nix when upgrading it here ifneq ($(USE_NIX), true) - go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v1.16.0 + go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.29.0 endif -$(TOOL_PROTOC_GEN_SWAGGER): Makefile +$(TOOL_PROTOC_GEN_OPENAPIV2): Makefile # update this in Nix when upgrading it here ifneq ($(USE_NIX), true) - go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v1.16.0 + go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.29.0 endif $(TOOL_OPENAPI_GEN): Makefile # update this in Nix when upgrading it here @@ -525,7 +568,7 @@ $(TOOL_EMBEDDOC): hack/embeddoc/main.go hack/embeddoc/go.mod # go-to-protobuf fails with mysterious errors on code that doesn't compile ifneq ($(USE_NIX), true) -pkg/apis/workflow/v1alpha1/generated.proto: $(TOOL_GO_TO_PROTOBUF) $(PROTO_BINARIES) +pkg/apis/workflow/v1alpha1/generated.proto: $(TOOL_GO_TO_PROTOBUF) $(TOOL_PROTOC_GEN_GOGO) $(PROTO_BINARIES) endif pkg/apis/workflow/v1alpha1/generated.proto: $(TYPES) proto-vendor vendor/modules.txt # These files are generated on a v4/ folder by the tool. Link them to the root folder @@ -546,10 +589,11 @@ pkg/apis/workflow/v1alpha1/generated.proto: $(TYPES) proto-vendor vendor/modules # behind a build tag. Strip it so codegen tools (mockery, etc.) can compile without # requiring the tag. Runtime builds use GOFLAGS for k8s vendor types instead. perl -i -ne 'print unless /kubernetes_protomessage_one_more_release/' pkg/apis/workflow/v1alpha1/generated.protomessage.pb.go + ! grep -q kubernetes_protomessage_one_more_release pkg/apis/workflow/v1alpha1/generated.protomessage.pb.go # Delete the link and created k8s.io directory rm -rf github.com v4 k8s.io # Restore vendor if go-to-protobuf deleted files - go mod vendor + $(MAKE) vendor touch $@ # this target will also create a .pb.go and a .pb.gw.go file, but in Make 3 we cannot use _grouped target_, instead we must choose @@ -574,7 +618,6 @@ pkg/apiclient/sensor/sensor.swagger.json: $(TYPES) pkg/apiclient/sensor/sensor.p pkg/apiclient/workflow/workflow.swagger.json: $(TYPES) pkg/apiclient/workflow/workflow.proto $(call protoc,pkg/apiclient/workflow/workflow.proto) - perl -i -pe 's/return resp\.Recv\(\) \}, mux\.GetForwardResponseOptions\(\)\.\.\.\)/return wrapEventAsProtoMessage(resp.Recv()) }, mux.GetForwardResponseOptions()...)/ if /forward_WorkflowService_WatchEvents_0/' pkg/apiclient/workflow/workflow.pb.gw.go pkg/apiclient/workflowarchive/workflow-archive.swagger.json: $(TYPES) pkg/apiclient/workflowarchive/workflow-archive.proto $(call protoc,pkg/apiclient/workflowarchive/workflow-archive.proto) @@ -663,7 +706,7 @@ endif go mod tidy ifneq ($(USE_NIX), true) # Re-vendor if tidy changed go.mod or go.sum, so the lint below sees a consistent tree - [ vendor/modules.txt -nt go.mod ] && [ vendor/modules.txt -nt go.sum ] || go mod vendor + [ vendor/modules.txt -nt go.mod ] && [ vendor/modules.txt -nt go.sum ] || $(MAKE) vendor endif # Lint Go files (with auto-discovered build tags) $(TOOL_GOLANGCI_LINT) run --fix --verbose --build-tags="$(GO_BUILD_TAGS)" @@ -681,7 +724,7 @@ test: $(TOOL_GOTESTSUM) $(TOOL_BUF) endif test: ui/dist/app/index.html $(JSON_TEST_OUTPUT) ## Run tests ifneq ($(USE_NIX), true) - go mod vendor + $(MAKE) vendor go build -mod=vendor ./... else go build ./... @@ -887,7 +930,7 @@ ifneq ($(USE_NIX), true) pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go: $(TOOL_GO_TO_PROTOBUF) endif pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go: $(TYPES) vendor/modules.txt - CODEGEN_DIR=$$(go list -mod=mod -m -f '{{.Dir}}' k8s.io/code-generator@v0.35.1); \ + CODEGEN_DIR=$$(go list -mod=mod -m -f '{{.Dir}}' k8s.io/code-generator@v0.35.4); \ bash -c "source $$CODEGEN_DIR/kube_codegen.sh && \ kube::codegen::gen_helpers \ --boilerplate ./hack/custom-boilerplate.go.txt \ @@ -905,7 +948,7 @@ dist/kubernetes.swagger.json: Makefile @mkdir -p dist # recurl will only fetch if the file doesn't exist, so delete it rm -f $@ - ./hack/recurl.sh $@ https://raw.githubusercontent.com/kubernetes/kubernetes/v1.35.1/api/openapi-spec/swagger.json + ./hack/recurl.sh $@ https://raw.githubusercontent.com/kubernetes/kubernetes/v1.35.4/api/openapi-spec/swagger.json pkg/apiclient/_.secondary.swagger.json: hack/api/swagger/secondaryswaggergen.go pkg/apis/workflow/v1alpha1/openapi_generated.go dist/kubernetes.swagger.json # We have `hack/api/swagger` so that most hack script do not depend on the whole code base and are therefore slow. diff --git a/api/jsonschema/schema.json b/api/jsonschema/schema.json index 62b82e11d9a9..da4842151253 100644 --- a/api/jsonschema/schema.json +++ b/api/jsonschema/schema.json @@ -2,13 +2,10 @@ "$id": "https://raw.githubusercontent.com/argoproj/argo-workflows/HEAD/api/jsonschema/schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "definitions": { - "eventsource.CreateEventSourceRequest": { + "eventsource.CreateEventSourceBody": { "properties": { "eventSource": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" - }, - "namespace": { - "type": "string" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" } }, "type": "object" @@ -19,7 +16,7 @@ "eventsource.EventSourceWatchEvent": { "properties": { "object": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" }, "type": { "type": "string" @@ -56,21 +53,45 @@ "title": "structured log entry", "type": "object" }, - "eventsource.UpdateEventSourceRequest": { + "eventsource.UpdateEventSourceBody": { "properties": { "eventSource": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" + } + }, + "type": "object" + }, + "google.protobuf.Any": { + "properties": { + "type_url": { + "type": "string" }, - "name": { + "value": { + "format": "byte", "type": "string" + } + }, + "type": "object" + }, + "google.rpc.Status": { + "properties": { + "code": { + "type": "integer" }, - "namespace": { + "details": { + "items": { + "$ref": "#/definitions/google.protobuf.Any", + "type": "object" + }, + "type": "array" + }, + "message": { "type": "string" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPConsumeConfig": { + "io.argoproj.events.v1alpha1.AMQPConsumeConfig": { "properties": { "autoAck": { "title": "AutoAck when true, the server will acknowledge deliveries to this consumer prior to writing\nthe delivery to the network\n+optional", @@ -96,22 +117,22 @@ "title": "AMQPConsumeConfig holds the configuration to immediately starts delivering queued messages\n+k8s:openapi-gen=true", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPEventSource": { + "io.argoproj.events.v1alpha1.AMQPEventSource": { "properties": { "auth": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth", "title": "Auth hosts secret selectors for username and password\n+optional" }, "connectionBackoff": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "title": "Backoff holds parameters applied to connection.\n+optional" }, "consume": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPConsumeConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPConsumeConfig", "title": "Consume holds the configuration to immediately starts delivering queued messages\nFor more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.Consume\n+optional" }, "exchangeDeclare": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPExchangeDeclareConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPExchangeDeclareConfig", "title": "ExchangeDeclare holds the configuration for the exchange on the server\nFor more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.ExchangeDeclare\n+optional" }, "exchangeName": { @@ -123,7 +144,7 @@ "type": "string" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -138,11 +159,11 @@ "type": "object" }, "queueBind": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPQueueBindConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPQueueBindConfig", "title": "QueueBind holds the configuration that binds an exchange to a queue so that publishings to the\nexchange will be routed to the queue when the publishing routing key matches the binding routing key\nFor more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.QueueBind\n+optional" }, "queueDeclare": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPQueueDeclareConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPQueueDeclareConfig", "title": "QueueDeclare holds the configuration of a queue to hold messages and deliver to consumers.\nDeclaring creates a queue if it doesn't already exist, or ensures that an existing queue matches\nthe same parameters\nFor more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.QueueDeclare\n+optional" }, "routingKey": { @@ -150,7 +171,7 @@ "type": "string" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the amqp client.\n+optional" }, "url": { @@ -165,7 +186,7 @@ "title": "AMQPEventSource refers to an event-source for AMQP stream events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPExchangeDeclareConfig": { + "io.argoproj.events.v1alpha1.AMQPExchangeDeclareConfig": { "properties": { "autoDelete": { "title": "AutoDelete removes the exchange when no bindings are active\n+optional", @@ -187,7 +208,7 @@ "title": "AMQPExchangeDeclareConfig holds the configuration for the exchange on the server\n+k8s:openapi-gen=true", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPQueueBindConfig": { + "io.argoproj.events.v1alpha1.AMQPQueueBindConfig": { "properties": { "noWait": { "title": "NowWait false and the queue could not be bound, the channel will be closed with an error\n+optional", @@ -197,7 +218,7 @@ "title": "AMQPQueueBindConfig holds the configuration that binds an exchange to a queue so that publishings to the\nexchange will be routed to the queue when the publishing routing key matches the binding routing key\n+k8s:openapi-gen=true", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPQueueDeclareConfig": { + "io.argoproj.events.v1alpha1.AMQPQueueDeclareConfig": { "properties": { "arguments": { "title": "Arguments of a queue (also known as \"x-arguments\") used for optional features and plugins\n+optional", @@ -227,7 +248,7 @@ "title": "AMQPQueueDeclareConfig holds the configuration of a queue to hold messages and deliver to consumers.\nDeclaring creates a queue if it doesn't already exist, or ensures that an existing queue matches\nthe same parameters\n+k8s:openapi-gen=true", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AWSLambdaTrigger": { + "io.argoproj.events.v1alpha1.AWSLambdaTrigger": { "properties": { "accessKey": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -243,7 +264,8 @@ }, "parameters": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "type": "array" @@ -251,7 +273,8 @@ "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, @@ -271,7 +294,7 @@ "title": "AWSLambdaTrigger refers to specification of the trigger to invoke an AWS Lambda function", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Amount": { + "io.argoproj.events.v1alpha1.Amount": { "description": "Amount represent a numeric amount.", "properties": { "value": { @@ -281,7 +304,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArgoWorkflowTrigger": { + "io.argoproj.events.v1alpha1.ArgoWorkflowTrigger": { "properties": { "args": { "items": { @@ -296,31 +319,32 @@ }, "parameters": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "title": "Parameters is the list of parameters to pass to resolved Argo Workflow object", "type": "array" }, "source": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArtifactLocation", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ArtifactLocation", "title": "Source of the K8s resource file(s)" } }, "title": "ArgoWorkflowTrigger is the trigger for the Argo Workflow", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArtifactLocation": { + "io.argoproj.events.v1alpha1.ArtifactLocation": { "properties": { "configmap": { "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector", "title": "Configmap that stores the artifact" }, "file": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.FileArtifact", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.FileArtifact", "title": "File artifact is artifact stored in a file" }, "git": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitArtifact", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GitArtifact", "title": "Git repository hosting the artifact" }, "inline": { @@ -328,22 +352,22 @@ "type": "string" }, "resource": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.K8SResource", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.K8SResource", "title": "Resource is generic template for K8s resource" }, "s3": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Artifact", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.S3Artifact", "title": "S3 compliant artifact" }, "url": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.URLArtifact", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.URLArtifact", "title": "URL to fetch the artifact from" } }, "title": "ArtifactLocation describes the source location for an external artifact", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureEventHubsTrigger": { + "io.argoproj.events.v1alpha1.AzureEventHubsTrigger": { "properties": { "fqdn": { "title": "FQDN refers to the namespace dns of Azure Event Hubs to be used i.e. \u003cnamespace\u003e.servicebus.windows.net", @@ -355,7 +379,8 @@ }, "parameters": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "type": "array" @@ -363,7 +388,8 @@ "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, @@ -379,10 +405,10 @@ "title": "AzureEventHubsTrigger refers to specification of the Azure Event Hubs Trigger", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureEventsHubEventSource": { + "io.argoproj.events.v1alpha1.AzureEventsHubEventSource": { "properties": { "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "fqdn": { @@ -412,7 +438,7 @@ "title": "AzureEventsHubEventSource describes the event source for azure events hub\nMore info at https://docs.microsoft.com/en-us/azure/event-hubs/", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureQueueStorageEventSource": { + "io.argoproj.events.v1alpha1.AzureQueueStorageEventSource": { "properties": { "connectionString": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -427,7 +453,7 @@ "type": "boolean" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -457,7 +483,7 @@ "title": "AzureQueueStorageEventSource describes the event source for azure queue storage\nmore info at https://learn.microsoft.com/en-us/azure/storage/queues/", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureServiceBusEventSource": { + "io.argoproj.events.v1alpha1.AzureServiceBusEventSource": { "properties": { "connectionString": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -468,7 +494,7 @@ "type": "boolean" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "fullyQualifiedNamespace": { @@ -495,7 +521,7 @@ "type": "string" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the service bus client\n+optional" }, "topicName": { @@ -506,7 +532,7 @@ "title": "AzureServiceBusEventSource describes the event source for azure service bus\nMore info at https://docs.microsoft.com/en-us/azure/service-bus-messaging/", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureServiceBusTrigger": { + "io.argoproj.events.v1alpha1.AzureServiceBusTrigger": { "properties": { "connectionString": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -514,7 +540,8 @@ }, "parameters": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "type": "array" @@ -522,7 +549,8 @@ "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, @@ -535,7 +563,7 @@ "type": "string" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the service bus client\n+optional" }, "topicName": { @@ -545,18 +573,18 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff": { + "io.argoproj.events.v1alpha1.Backoff": { "properties": { "duration": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Int64OrString", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Int64OrString", "title": "The initial duration in nanoseconds or strings like \"1s\", \"3m\"\n+optional" }, "factor": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Amount", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Amount", "title": "Duration is multiplied by factor each iteration\n+optional" }, "jitter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Amount", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Amount", "title": "The amount of jitter applied each iteration\n+optional" }, "steps": { @@ -567,7 +595,7 @@ "title": "Backoff for an operation", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth": { + "io.argoproj.events.v1alpha1.BasicAuth": { "properties": { "password": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -581,10 +609,10 @@ "title": "BasicAuth contains the reference to K8s secrets that holds the username and password", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketAuth": { + "io.argoproj.events.v1alpha1.BitbucketAuth": { "properties": { "basic": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketBasicAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketBasicAuth", "title": "Basic is BasicAuth auth strategy.\n+optional" }, "oauthToken": { @@ -595,7 +623,7 @@ "title": "BitbucketAuth holds the different auth strategies for connecting to Bitbucket", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketBasicAuth": { + "io.argoproj.events.v1alpha1.BitbucketBasicAuth": { "properties": { "password": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -609,10 +637,10 @@ "title": "BitbucketBasicAuth holds the information required to authenticate user via basic auth mechanism", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketEventSource": { + "io.argoproj.events.v1alpha1.BitbucketEventSource": { "properties": { "auth": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketAuth", "description": "Auth information required to connect to Bitbucket." }, "deleteHookOnFinish": { @@ -627,7 +655,7 @@ "type": "array" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "metadata": { @@ -647,7 +675,8 @@ }, "repositories": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketRepository" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketRepository", + "type": "object" }, "title": "Repositories holds a list of repositories for which integration needs to set up\n+optional", "type": "array" @@ -657,14 +686,14 @@ "type": "string" }, "webhook": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext", "title": "Webhook refers to the configuration required to run an http server" } }, "title": "BitbucketEventSource describes the event source for Bitbucket", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketRepository": { + "io.argoproj.events.v1alpha1.BitbucketRepository": { "properties": { "owner": { "title": "Owner is the owner of the repository", @@ -677,7 +706,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketServerEventSource": { + "io.argoproj.events.v1alpha1.BitbucketServerEventSource": { "properties": { "accessToken": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -703,7 +732,7 @@ "type": "array" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "metadata": { @@ -730,7 +759,8 @@ }, "repositories": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketServerRepository" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketServerRepository", + "type": "object" }, "title": "Repositories holds a list of repositories for which integration needs to set up.\n+optional", "type": "array" @@ -744,11 +774,11 @@ "type": "boolean" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the bitbucketserver client.\n+optional" }, "webhook": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext", "description": "Webhook holds configuration to run a http server." }, "webhookSecret": { @@ -759,7 +789,7 @@ "title": "BitbucketServerEventSource refers to event-source related to Bitbucket Server events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketServerRepository": { + "io.argoproj.events.v1alpha1.BitbucketServerRepository": { "properties": { "projectKey": { "description": "ProjectKey is the key of project for which integration needs to set up.", @@ -772,7 +802,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CalendarEventSource": { + "io.argoproj.events.v1alpha1.CalendarEventSource": { "properties": { "exclusionDates": { "description": "ExclusionDates defines the list of DATE-TIME exceptions for recurring events.", @@ -782,7 +812,7 @@ "type": "array" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "interval": { @@ -797,7 +827,7 @@ "type": "object" }, "persistence": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventPersistence", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventPersistence", "title": "Persistence hold the configuration for event persistence" }, "schedule": { @@ -812,7 +842,7 @@ "title": "CalendarEventSource describes a time based dependency. One of the fields (schedule, interval, or recurrence) must be passed.\nSchedule takes precedence over interval; interval takes precedence over recurrence", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CatchupConfiguration": { + "io.argoproj.events.v1alpha1.CatchupConfiguration": { "properties": { "enabled": { "title": "Enabled enables to triggered the missed schedule when eventsource restarts", @@ -825,7 +855,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Condition": { + "io.argoproj.events.v1alpha1.Condition": { "properties": { "lastTransitionTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", @@ -851,7 +881,7 @@ "title": "Condition contains details about resource state", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConditionsResetByTime": { + "io.argoproj.events.v1alpha1.ConditionsResetByTime": { "properties": { "cron": { "title": "Cron is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", @@ -864,16 +894,16 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConditionsResetCriteria": { + "io.argoproj.events.v1alpha1.ConditionsResetCriteria": { "properties": { "byTime": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConditionsResetByTime", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ConditionsResetByTime", "title": "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConfigMapPersistence": { + "io.argoproj.events.v1alpha1.ConfigMapPersistence": { "properties": { "createIfNotExist": { "title": "CreateIfNotExist will create configmap if it doesn't exists", @@ -886,18 +916,20 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Container": { + "io.argoproj.events.v1alpha1.Container": { "properties": { "env": { "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" + "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar", + "type": "object" }, "title": "+optional", "type": "array" }, "envFrom": { "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" + "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource", + "type": "object" }, "title": "+optional", "type": "array" @@ -916,7 +948,8 @@ }, "volumeMounts": { "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount", + "type": "object" }, "title": "+optional", "type": "array" @@ -925,7 +958,7 @@ "title": "Container defines customized spec for a container", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CustomTrigger": { + "io.argoproj.events.v1alpha1.CustomTrigger": { "description": "CustomTrigger refers to the specification of the custom trigger.", "properties": { "certSecret": { @@ -935,14 +968,16 @@ "parameters": { "description": "Parameters is the list of parameters that is applied to resolved custom trigger trigger object.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, @@ -968,7 +1003,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.DataFilter": { + "io.argoproj.events.v1alpha1.DataFilter": { "description": "DataFilter describes constraints and filters for event data.", "properties": { "comparator": { @@ -997,7 +1032,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EmailTrigger": { + "io.argoproj.events.v1alpha1.EmailTrigger": { "description": "EmailTrigger refers to the specification of the email notification trigger.", "properties": { "body": { @@ -1014,7 +1049,8 @@ }, "parameters": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "type": "array" @@ -1045,7 +1081,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EmitterEventSource": { + "io.argoproj.events.v1alpha1.EmitterEventSource": { "properties": { "broker": { "description": "Broker URI to connect to.", @@ -1060,11 +1096,11 @@ "type": "string" }, "connectionBackoff": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "title": "Backoff holds parameters applied to connection.\n+optional" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -1083,7 +1119,7 @@ "title": "Password to use to connect to broker\n+optional" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the emitter client.\n+optional" }, "username": { @@ -1094,7 +1130,7 @@ "title": "EmitterEventSource describes the event source for emitter\nMore info at https://emitter.io/develop/getting-started/", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventContext": { + "io.argoproj.events.v1alpha1.EventContext": { "properties": { "datacontenttype": { "description": "DataContentType - A MIME (RFC2046) string describing the media type of `data`.", @@ -1128,7 +1164,7 @@ "title": "EventContext holds the context of the cloudevent received from an event source.\n+protobuf.options.(gogoproto.goproto_stringer)=false", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependency": { + "io.argoproj.events.v1alpha1.EventDependency": { "properties": { "eventName": { "title": "EventName is the name of the event", @@ -1139,7 +1175,7 @@ "type": "string" }, "filters": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependencyFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventDependencyFilter", "title": "Filters and rules governing toleration of success and constraints on the context and data of an event" }, "filtersLogicalOperator": { @@ -1151,23 +1187,24 @@ "type": "string" }, "transform": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependencyTransformer", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventDependencyTransformer", "title": "Transform transforms the event data" } }, "title": "EventDependency describes a dependency", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependencyFilter": { + "io.argoproj.events.v1alpha1.EventDependencyFilter": { "description": "EventDependencyFilter defines filters and constraints for a io.argoproj.workflow.v1alpha1.", "properties": { "context": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventContext", "title": "Context filter constraints" }, "data": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.DataFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.DataFilter", + "type": "object" }, "title": "Data filter constraints with escalation", "type": "array" @@ -1183,7 +1220,8 @@ "exprs": { "description": "Exprs contains the list of expressions evaluated against the event payload.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ExprFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ExprFilter", + "type": "object" }, "type": "array" }, @@ -1192,13 +1230,13 @@ "type": "string" }, "time": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TimeFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TimeFilter", "title": "Time filter on the event with escalation" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependencyTransformer": { + "io.argoproj.events.v1alpha1.EventDependencyTransformer": { "properties": { "jq": { "title": "JQ holds the jq command applied for transformation\n+optional", @@ -1212,36 +1250,36 @@ "title": "EventDependencyTransformer transforms the event", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventPersistence": { + "io.argoproj.events.v1alpha1.EventPersistence": { "properties": { "catchup": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CatchupConfiguration", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.CatchupConfiguration", "title": "Catchup enables to triggered the missed schedule when eventsource restarts" }, "configMap": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConfigMapPersistence", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ConfigMapPersistence", "title": "ConfigMap holds configmap details for persistence" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource": { + "io.argoproj.events.v1alpha1.EventSource": { "properties": { "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" }, "spec": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceSpec" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceSpec" }, "status": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceStatus", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceStatus", "title": "+optional" } }, "title": "EventSource is the definition of a eventsource resource\n+genclient\n+kubebuilder:resource:shortName=es\n+kubebuilder:subresource:status\n+k8s:deepcopy-gen:interfaces=io.k8s.apimachinery/pkg/runtime.Object\n+k8s:openapi-gen=true", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter": { + "io.argoproj.events.v1alpha1.EventSourceFilter": { "properties": { "expression": { "type": "string" @@ -1249,11 +1287,12 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceList": { + "io.argoproj.events.v1alpha1.EventSourceList": { "properties": { "items": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource", + "type": "object" }, "type": "array" }, @@ -1264,60 +1303,60 @@ "title": "EventSourceList is the list of eventsource resources\n+k8s:deepcopy-gen:interfaces=io.k8s.apimachinery/pkg/runtime.Object", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceSpec": { + "io.argoproj.events.v1alpha1.EventSourceSpec": { "properties": { "amqp": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPEventSource" }, "title": "AMQP event sources", "type": "object" }, "azureEventsHub": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureEventsHubEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureEventsHubEventSource" }, "title": "AzureEventsHub event sources", "type": "object" }, "azureQueueStorage": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureQueueStorageEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureQueueStorageEventSource" }, "title": "AzureQueueStorage event source", "type": "object" }, "azureServiceBus": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureServiceBusEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureServiceBusEventSource" }, "title": "Azure Service Bus event source", "type": "object" }, "bitbucket": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketEventSource" }, "title": "Bitbucket event sources", "type": "object" }, "bitbucketserver": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketServerEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketServerEventSource" }, "title": "Bitbucket Server event sources", "type": "object" }, "calendar": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CalendarEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.CalendarEventSource" }, "title": "Calendar event sources", "type": "object" }, "emitter": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EmitterEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EmitterEventSource" }, "title": "Emitter event source", "type": "object" @@ -1328,112 +1367,112 @@ }, "file": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.FileEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.FileEventSource" }, "title": "File event sources", "type": "object" }, "generic": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GenericEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GenericEventSource" }, "title": "Generic event source", "type": "object" }, "gerrit": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GerritEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GerritEventSource" }, "title": "Gerrit event source", "type": "object" }, "github": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GithubEventSource" }, "title": "Github event sources", "type": "object" }, "gitlab": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitlabEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GitlabEventSource" }, "title": "Gitlab event sources", "type": "object" }, "hdfs": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.HDFSEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.HDFSEventSource" }, "title": "HDFS event sources", "type": "object" }, "kafka": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.KafkaEventSource" }, "title": "Kafka event sources", "type": "object" }, "minio": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Artifact" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.S3Artifact" }, "title": "Minio event sources", "type": "object" }, "mns": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.MNSEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.MNSEventSource" }, "title": "MNS event sources", "type": "object" }, "mqtt": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.MQTTEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.MQTTEventSource" }, "title": "MQTT event sources", "type": "object" }, "nats": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSEventsSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NATSEventsSource" }, "title": "NATS event sources", "type": "object" }, "nsq": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NSQEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NSQEventSource" }, "title": "NSQ event source", "type": "object" }, "pubSub": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PubSubEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.PubSubEventSource" }, "title": "PubSub event sources", "type": "object" }, "pulsar": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PulsarEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.PulsarEventSource" }, "title": "Pulsar event source", "type": "object" }, "redis": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RedisEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.RedisEventSource" }, "title": "Redis event source", "type": "object" }, "redisStream": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RedisStreamEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.RedisStreamEventSource" }, "title": "Redis stream source", "type": "object" @@ -1444,64 +1483,64 @@ }, "resource": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ResourceEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ResourceEventSource" }, "title": "Resource event sources", "type": "object" }, "service": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Service", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Service", "title": "Service is the specifications of the service to expose the event source\n+optional" }, "sftp": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SFTPEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SFTPEventSource" }, "title": "SFTP event sources", "type": "object" }, "slack": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SlackEventSource" }, "title": "Slack event sources", "type": "object" }, "sns": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SNSEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SNSEventSource" }, "title": "SNS event sources", "type": "object" }, "sqs": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SQSEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SQSEventSource" }, "title": "SQS event sources", "type": "object" }, "storageGrid": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StorageGridEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StorageGridEventSource" }, "title": "StorageGrid event sources", "type": "object" }, "stripe": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StripeEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StripeEventSource" }, "title": "Stripe event sources", "type": "object" }, "template": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Template", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Template", "title": "Template is the pod specification for the event source\n+optional" }, "webhook": { "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookEventSource" }, "title": "Webhook event sources", "type": "object" @@ -1510,16 +1549,16 @@ "title": "EventSourceSpec refers to specification of event-source resource", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceStatus": { + "io.argoproj.events.v1alpha1.EventSourceStatus": { "properties": { "status": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Status" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Status" } }, "title": "EventSourceStatus holds the status of the event-source resource", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ExprFilter": { + "io.argoproj.events.v1alpha1.ExprFilter": { "properties": { "expr": { "description": "Expr refers to the expression that determines the outcome of the filter.", @@ -1528,14 +1567,15 @@ "fields": { "description": "Fields refers to set of keys that refer to the paths within event payload.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PayloadField" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.PayloadField", + "type": "object" }, "type": "array" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.FileArtifact": { + "io.argoproj.events.v1alpha1.FileArtifact": { "properties": { "path": { "type": "string" @@ -1544,7 +1584,7 @@ "title": "FileArtifact contains information about an artifact in a filesystem", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.FileEventSource": { + "io.argoproj.events.v1alpha1.FileEventSource": { "description": "FileEventSource describes an event-source for file related events.", "properties": { "eventType": { @@ -1552,7 +1592,7 @@ "type": "string" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "metadata": { @@ -1567,13 +1607,13 @@ "type": "boolean" }, "watchPathConfig": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WatchPathConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WatchPathConfig", "title": "WatchPathConfig contains configuration about the file path to watch" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GenericEventSource": { + "io.argoproj.events.v1alpha1.GenericEventSource": { "description": "GenericEventSource refers to a generic event source. It can be used to implement a custom event source.", "properties": { "authSecret": { @@ -1585,7 +1625,7 @@ "type": "string" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "insecure": { @@ -1610,10 +1650,10 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GerritEventSource": { + "io.argoproj.events.v1alpha1.GerritEventSource": { "properties": { "auth": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth", "title": "Auth hosts secret selectors for username and password\n+optional" }, "deleteHookOnFinish": { @@ -1628,7 +1668,7 @@ "type": "array" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "gerritBaseURL": { @@ -1662,14 +1702,14 @@ "type": "boolean" }, "webhook": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext", "title": "Webhook holds configuration to run a http server" } }, "title": "GerritEventSource refers to event-source related to gerrit events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitArtifact": { + "io.argoproj.events.v1alpha1.GitArtifact": { "properties": { "branch": { "title": "Branch to use to pull trigger resource\n+optional", @@ -1680,7 +1720,7 @@ "type": "string" }, "creds": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitCreds", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GitCreds", "title": "Creds contain reference to git username and password\n+optional" }, "filePath": { @@ -1696,7 +1736,7 @@ "type": "string" }, "remote": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitRemoteConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GitRemoteConfig", "title": "Remote to manage set of tracked repositories. Defaults to \"origin\".\nRefer https://git-scm.com/docs/git-remote\n+optional" }, "sshKeySecret": { @@ -1715,7 +1755,7 @@ "title": "GitArtifact contains information about an artifact stored in git", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitCreds": { + "io.argoproj.events.v1alpha1.GitCreds": { "properties": { "password": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" @@ -1727,7 +1767,7 @@ "title": "GitCreds contain reference to git username and password", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitRemoteConfig": { + "io.argoproj.events.v1alpha1.GitRemoteConfig": { "properties": { "name": { "description": "Name of the remote to fetch from.", @@ -1744,7 +1784,7 @@ "title": "GitRemoteConfig contains the configuration of a Git remote", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubAppCreds": { + "io.argoproj.events.v1alpha1.GithubAppCreds": { "properties": { "appID": { "title": "AppID refers to the GitHub App ID for the application you created", @@ -1761,7 +1801,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubEventSource": { + "io.argoproj.events.v1alpha1.GithubEventSource": { "properties": { "active": { "title": "Active refers to status of the webhook for event deliveries.\nhttps://developer.github.com/webhooks/creating/#active\n+optional", @@ -1787,11 +1827,11 @@ "type": "array" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "githubApp": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubAppCreds", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GithubAppCreds", "title": "GitHubApp holds the GitHub app credentials\n+optional" }, "githubBaseURL": { @@ -1831,7 +1871,8 @@ "repositories": { "description": "Repositories holds the information of repositories, which uses repo owner as the key,\nand list of repo names as the value. Not required if Organizations is set.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.OwnedRepositories" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.OwnedRepositories", + "type": "object" }, "type": "array" }, @@ -1840,7 +1881,7 @@ "type": "string" }, "webhook": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext", "title": "Webhook refers to the configuration required to run a http server" }, "webhookSecret": { @@ -1851,7 +1892,7 @@ "title": "GithubEventSource refers to event-source for github related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitlabEventSource": { + "io.argoproj.events.v1alpha1.GitlabEventSource": { "properties": { "accessToken": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -1873,7 +1914,7 @@ "type": "array" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "gitlabBaseURL": { @@ -1910,14 +1951,14 @@ "title": "SecretToken references to k8 secret which holds the Secret Token used by webhook config" }, "webhook": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext", "title": "Webhook holds configuration to run a http server" } }, "title": "GitlabEventSource refers to event-source related to Gitlab events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.HDFSEventSource": { + "io.argoproj.events.v1alpha1.HDFSEventSource": { "properties": { "addresses": { "items": { @@ -1930,7 +1971,7 @@ "type": "string" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "hdfsUser": { @@ -1973,21 +2014,22 @@ "type": "string" }, "watchPathConfig": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WatchPathConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WatchPathConfig" } }, "title": "HDFSEventSource refers to event-source for HDFS related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.HTTPTrigger": { + "io.argoproj.events.v1alpha1.HTTPTrigger": { "properties": { "basicAuth": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth", "title": "BasicAuth configuration for the http request.\n+optional" }, "dynamicHeaders": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "title": "Dynamic Headers for the request, sourced from the io.argoproj.workflow.v1alpha1. Same spec as Parameters.\n+optional", "type": "array" @@ -2010,19 +2052,22 @@ "parameters": { "description": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe HTTP trigger resource.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, "payload": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, "secureHeaders": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SecureHeader" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SecureHeader", + "type": "object" }, "title": "Secure Headers stored in Kubernetes Secrets for the HTTP requests.\n+optional", "type": "array" @@ -2032,7 +2077,7 @@ "type": "string" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the HTTP client.\n+optional" }, "url": { @@ -2043,7 +2088,7 @@ "title": "HTTPTrigger is the trigger for the HTTP request", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Int64OrString": { + "io.argoproj.events.v1alpha1.Int64OrString": { "properties": { "int64Val": { "type": "string" @@ -2057,7 +2102,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.K8SResource": { + "io.argoproj.events.v1alpha1.K8SResource": { "description": "K8SResource represent arbitrary structured data.", "properties": { "value": { @@ -2067,10 +2112,10 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.K8SResourcePolicy": { + "io.argoproj.events.v1alpha1.K8SResourcePolicy": { "properties": { "backoff": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "title": "Backoff before checking resource state" }, "errorOnBackoffTimeout": { @@ -2088,7 +2133,7 @@ "title": "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using labels", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaConsumerGroup": { + "io.argoproj.events.v1alpha1.KafkaConsumerGroup": { "properties": { "groupName": { "title": "The name for the consumer group to use", @@ -2105,22 +2150,22 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaEventSource": { + "io.argoproj.events.v1alpha1.KafkaEventSource": { "properties": { "config": { "description": "Yaml format Sarama config for Kafka connection.\nIt follows the struct of sarama.Config. See https://github.com/IBM/sarama/blob/main/config.go\ne.g.\n\nconsumer:\n fetch:\n min: 1\nnet:\n MaxOpenRequests: 5\n\n+optional", "type": "string" }, "connectionBackoff": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "description": "Backoff holds parameters applied to connection." }, "consumerGroup": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaConsumerGroup", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.KafkaConsumerGroup", "title": "Consumer group for kafka client\n+optional" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -2143,15 +2188,15 @@ "type": "string" }, "sasl": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SASLConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SASLConfig", "title": "SASL configuration for the kafka client\n+optional" }, "schemaRegistry": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SchemaRegistryConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SchemaRegistryConfig", "title": "Schema Registry configuration for consumer message with Avro format\n+optional" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the kafka client.\n+optional" }, "topic": { @@ -2170,7 +2215,7 @@ "title": "KafkaEventSource refers to event-source for Kafka related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaTrigger": { + "io.argoproj.events.v1alpha1.KafkaTrigger": { "description": "KafkaTrigger refers to the specification of the Kafka trigger.", "properties": { "compress": { @@ -2191,7 +2236,8 @@ "parameters": { "description": "Parameters is the list of parameters that is applied to resolved Kafka trigger object.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, @@ -2206,7 +2252,8 @@ "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, @@ -2215,22 +2262,23 @@ "type": "integer" }, "sasl": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SASLConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SASLConfig", "title": "SASL configuration for the kafka client\n+optional" }, "schemaRegistry": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SchemaRegistryConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SchemaRegistryConfig", "title": "Schema Registry configuration to producer message with avro format\n+optional" }, "secureHeaders": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SecureHeader" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SecureHeader", + "type": "object" }, "title": "Secure Headers stored in Kubernetes Secrets for the Kafka messages.\n+optional", "type": "array" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the Kafka producer.\n+optional" }, "topic": { @@ -2248,7 +2296,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.LogTrigger": { + "io.argoproj.events.v1alpha1.LogTrigger": { "properties": { "intervalSeconds": { "format": "uint64", @@ -2258,7 +2306,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.MNSEventSource": { + "io.argoproj.events.v1alpha1.MNSEventSource": { "properties": { "accessKey": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -2269,7 +2317,7 @@ "type": "string" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -2288,10 +2336,10 @@ "title": "MNSEventSource refers to event-source for AlibabaCloud MNS related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.MQTTEventSource": { + "io.argoproj.events.v1alpha1.MQTTEventSource": { "properties": { "auth": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth", "title": "Auth hosts secret selectors for username and password\n+optional" }, "clientId": { @@ -2299,11 +2347,11 @@ "type": "string" }, "connectionBackoff": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "description": "ConnectionBackoff holds backoff applied to connection." }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -2318,7 +2366,7 @@ "type": "object" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the mqtt client.\n+optional" }, "topic": { @@ -2333,7 +2381,7 @@ "title": "MQTTEventSource refers to event-source for MQTT related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Metadata": { + "io.argoproj.events.v1alpha1.Metadata": { "properties": { "annotations": { "additionalProperties": { @@ -2351,10 +2399,10 @@ "title": "Metadata holds the annotations and labels of an event source pod", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSAuth": { + "io.argoproj.events.v1alpha1.NATSAuth": { "properties": { "basic": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth", "title": "Baisc auth with username and password\n+optional" }, "credential": { @@ -2373,18 +2421,18 @@ "title": "NATSAuth refers to the auth info for NATS EventSource", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSEventsSource": { + "io.argoproj.events.v1alpha1.NATSEventsSource": { "properties": { "auth": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NATSAuth", "title": "Auth information\n+optional" }, "connectionBackoff": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "description": "ConnectionBackoff holds backoff applied to connection." }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -2407,7 +2455,7 @@ "type": "string" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the nats client.\n+optional" }, "url": { @@ -2418,22 +2466,24 @@ "title": "NATSEventsSource refers to event-source for NATS related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSTrigger": { + "io.argoproj.events.v1alpha1.NATSTrigger": { "description": "NATSTrigger refers to the specification of the NATS trigger.", "properties": { "auth": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NATSAuth", "title": "AuthInformation\n+optional" }, "parameters": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, "payload": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, @@ -2442,7 +2492,7 @@ "type": "string" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the NATS producer.\n+optional" }, "url": { @@ -2452,18 +2502,18 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NSQEventSource": { + "io.argoproj.events.v1alpha1.NSQEventSource": { "properties": { "channel": { "title": "Channel used for subscription", "type": "string" }, "connectionBackoff": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "title": "Backoff holds parameters applied to connection.\n+optional" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "hostAddress": { @@ -2482,7 +2532,7 @@ "type": "object" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the nsq client.\n+optional" }, "topic": { @@ -2493,7 +2543,7 @@ "title": "NSQEventSource describes the event source for NSQ PubSub\nMore info at https://godoc.org/github.com/nsqio/go-nsq", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.OpenWhiskTrigger": { + "io.argoproj.events.v1alpha1.OpenWhiskTrigger": { "description": "OpenWhiskTrigger refers to the specification of the OpenWhisk trigger.", "properties": { "actionName": { @@ -2514,7 +2564,8 @@ }, "parameters": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "type": "array" @@ -2522,7 +2573,8 @@ "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, @@ -2533,7 +2585,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.OwnedRepositories": { + "io.argoproj.events.v1alpha1.OwnedRepositories": { "properties": { "names": { "items": { @@ -2549,7 +2601,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PayloadField": { + "io.argoproj.events.v1alpha1.PayloadField": { "description": "PayloadField binds a value at path within the event payload against a name.", "properties": { "name": { @@ -2563,7 +2615,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PubSubEventSource": { + "io.argoproj.events.v1alpha1.PubSubEventSource": { "description": "PubSubEventSource refers to event-source for GCP PubSub related events.", "properties": { "credentialSecret": { @@ -2575,7 +2627,7 @@ "type": "boolean" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -2608,7 +2660,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PulsarEventSource": { + "io.argoproj.events.v1alpha1.PulsarEventSource": { "properties": { "authAthenzParams": { "additionalProperties": { @@ -2626,11 +2678,11 @@ "title": "Authentication token for the pulsar client.\nEither token or athenz can be set to use auth.\n+optional" }, "connectionBackoff": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "title": "Backoff holds parameters applied to connection.\n+optional" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -2645,7 +2697,7 @@ "type": "object" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the pulsar client.\n+optional" }, "tlsAllowInsecureConnection": { @@ -2679,7 +2731,7 @@ "title": "PulsarEventSource describes the event source for Apache Pulsar", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PulsarTrigger": { + "io.argoproj.events.v1alpha1.PulsarTrigger": { "description": "PulsarTrigger refers to the specification of the Pulsar trigger.", "properties": { "authAthenzParams": { @@ -2698,25 +2750,27 @@ "title": "Authentication token for the pulsar client.\nEither token or athenz can be set to use auth.\n+optional" }, "connectionBackoff": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "title": "Backoff holds parameters applied to connection.\n+optional" }, "parameters": { "description": "Parameters is the list of parameters that is applied to resolved Kafka trigger object.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the pulsar client.\n+optional" }, "tlsAllowInsecureConnection": { @@ -2742,7 +2796,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RateLimit": { + "io.argoproj.events.v1alpha1.RateLimit": { "properties": { "requestsPerUnit": { "type": "integer" @@ -2754,7 +2808,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RedisEventSource": { + "io.argoproj.events.v1alpha1.RedisEventSource": { "properties": { "channels": { "items": { @@ -2767,7 +2821,7 @@ "type": "integer" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "hostAddress": { @@ -2794,7 +2848,7 @@ "title": "Password required for authentication if any.\n+optional" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the redis client.\n+optional" }, "username": { @@ -2805,7 +2859,7 @@ "title": "RedisEventSource describes an event source for the Redis PubSub.\nMore info at https://godoc.org/github.com/go-redis/redis#example-PubSub", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RedisStreamEventSource": { + "io.argoproj.events.v1alpha1.RedisStreamEventSource": { "properties": { "consumerGroup": { "title": "ConsumerGroup refers to the Redis stream consumer group that will be\ncreated on all redis streams. Messages are read through this group. Defaults to 'argo-events-cg'\n+optional", @@ -2816,7 +2870,7 @@ "type": "integer" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "hostAddress": { @@ -2846,7 +2900,7 @@ "type": "array" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the redis client.\n+optional" }, "username": { @@ -2857,7 +2911,7 @@ "title": "RedisStreamEventSource describes an event source for\nRedis streams (https://redis.io/topics/streams-intro)", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ResourceEventSource": { + "io.argoproj.events.v1alpha1.ResourceEventSource": { "description": "ResourceEventSource refers to a event-source for K8s resource related events.", "properties": { "eventTypes": { @@ -2868,7 +2922,7 @@ "type": "array" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ResourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ResourceFilter", "title": "Filter is applied on the metadata of the resource\nIf you apply filter, then the internal event informer will only monitor objects that pass the filter.\n+optional" }, "groupVersionResource": { @@ -2889,7 +2943,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ResourceFilter": { + "io.argoproj.events.v1alpha1.ResourceFilter": { "properties": { "afterStart": { "title": "If the resource is created after the start time then the event is treated as valid.\n+optional", @@ -2901,14 +2955,16 @@ }, "fields": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Selector" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Selector", + "type": "object" }, "title": "Fields provide field filters similar to K8s field selector\n(see https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/).\nUnlike K8s field selector, it supports arbitrary fileds like \"spec.serviceAccountName\",\nand the value could be a string or a regex.\nSame as K8s field selector, operator \"=\", \"==\" and \"!=\" are supported.\n+optional", "type": "array" }, "labels": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Selector" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Selector", + "type": "object" }, "title": "Labels provide listing options to K8s API to watch resource/s.\nRefer https://kubernetes.io/docs/concepts/overview/working-with-objects/label-selectors/ for more io.argoproj.workflow.v1alpha1.\nUnlike K8s field selector, multiple values are passed as comma separated values instead of list of values.\nEg: value: value1,value2.\nSame as K8s label selector, operator \"=\", \"==\", \"!=\", \"exists\", \"!\", \"notin\", \"in\", \"gt\" and \"lt\"\nare supported\n+optional", "type": "array" @@ -2921,13 +2977,13 @@ "title": "ResourceFilter contains K8s ObjectMeta information to further filter resource event objects", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Artifact": { + "io.argoproj.events.v1alpha1.S3Artifact": { "properties": { "accessKey": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" }, "bucket": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Bucket" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.S3Bucket" }, "caCertificate": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" @@ -2942,7 +2998,7 @@ "type": "array" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Filter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.S3Filter" }, "insecure": { "type": "boolean" @@ -2963,7 +3019,7 @@ "title": "S3Artifact contains information about an S3 connection and bucket", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Bucket": { + "io.argoproj.events.v1alpha1.S3Bucket": { "properties": { "key": { "type": "string" @@ -2975,7 +3031,7 @@ "title": "S3Bucket contains information to describe an S3 Bucket", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Filter": { + "io.argoproj.events.v1alpha1.S3Filter": { "properties": { "prefix": { "type": "string" @@ -2987,7 +3043,7 @@ "title": "S3Filter represents filters to apply to bucket notifications for specifying constraints on objects", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SASLConfig": { + "io.argoproj.events.v1alpha1.SASLConfig": { "properties": { "mechanism": { "title": "SASLMechanism is the name of the enabled SASL mechanism.\nPossible values: OAUTHBEARER, PLAIN (defaults to PLAIN).\n+optional", @@ -3005,7 +3061,7 @@ "title": "SASLConfig refers to SASL configuration for a client", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SFTPEventSource": { + "io.argoproj.events.v1alpha1.SFTPEventSource": { "description": "SFTPEventSource describes an event-source for sftp related events.", "properties": { "address": { @@ -3017,7 +3073,7 @@ "type": "string" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "metadata": { @@ -3044,13 +3100,13 @@ "description": "Username required for authentication if any." }, "watchPathConfig": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WatchPathConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WatchPathConfig", "title": "WatchPathConfig contains configuration about the file path to watch" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SNSEventSource": { + "io.argoproj.events.v1alpha1.SNSEventSource": { "properties": { "accessKey": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -3061,7 +3117,7 @@ "type": "string" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "metadata": { @@ -3092,14 +3148,14 @@ "type": "boolean" }, "webhook": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext", "title": "Webhook configuration for http server" } }, "title": "SNSEventSource refers to event-source for AWS SNS related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SQSEventSource": { + "io.argoproj.events.v1alpha1.SQSEventSource": { "properties": { "accessKey": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -3114,7 +3170,7 @@ "type": "string" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "jsonBody": { @@ -3160,10 +3216,10 @@ "title": "SQSEventSource refers to event-source for AWS SQS related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SchemaRegistryConfig": { + "io.argoproj.events.v1alpha1.SchemaRegistryConfig": { "properties": { "auth": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth", "title": "SchemaRegistry - basic authentication\n+optional" }, "schemaId": { @@ -3178,20 +3234,20 @@ "title": "SchemaRegistryConfig refers to configuration for a client", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SecureHeader": { + "io.argoproj.events.v1alpha1.SecureHeader": { "properties": { "name": { "type": "string" }, "valueFrom": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ValueFromSource", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ValueFromSource", "title": "Values can be read from either secrets or configmaps" } }, "title": "SecureHeader refers to HTTP Headers with auth tokens as values", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Selector": { + "io.argoproj.events.v1alpha1.Selector": { "description": "Selector represents conditional operation to select K8s objects.", "properties": { "key": { @@ -3209,27 +3265,28 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor": { + "io.argoproj.events.v1alpha1.Sensor": { "properties": { "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" }, "spec": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorSpec" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SensorSpec" }, "status": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorStatus", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SensorStatus", "title": "+optional" } }, "title": "Sensor is the definition of a sensor resource\n+genclient\n+genclient:noStatus\n+kubebuilder:resource:shortName=sn\n+kubebuilder:subresource:status\n+k8s:deepcopy-gen:interfaces=io.k8s.apimachinery/pkg/runtime.Object\n+k8s:openapi-gen=true", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorList": { + "io.argoproj.events.v1alpha1.SensorList": { "properties": { "items": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor", + "type": "object" }, "type": "array" }, @@ -3240,12 +3297,13 @@ "title": "SensorList is the list of Sensor resources\n+k8s:deepcopy-gen:interfaces=io.k8s.apimachinery/pkg/runtime.Object", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorSpec": { + "io.argoproj.events.v1alpha1.SensorSpec": { "properties": { "dependencies": { "description": "Dependencies is a list of the events that this sensor is dependent on.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependency" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventDependency", + "type": "object" }, "type": "array" }, @@ -3273,13 +3331,14 @@ "type": "integer" }, "template": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Template", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Template", "title": "Template is the pod specification for the sensor\n+optional" }, "triggers": { "description": "Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Trigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Trigger", + "type": "object" }, "type": "array" } @@ -3287,28 +3346,29 @@ "title": "SensorSpec represents desired sensor state", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorStatus": { + "io.argoproj.events.v1alpha1.SensorStatus": { "description": "SensorStatus contains information about the status of a sensor.", "properties": { "status": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Status" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Status" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Service": { + "io.argoproj.events.v1alpha1.Service": { "properties": { "clusterIP": { "title": "clusterIP is the IP address of the service and is usually assigned\nrandomly by the master. If an address is specified manually and is not in\nuse by others, it will be allocated to the service; otherwise, creation\nof the service will fail. This field can not be changed through updates.\nValid values are \"None\", empty string (\"\"), or a valid IP address. \"None\"\ncan be specified for headless services when proxying is not required.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\n+optional", "type": "string" }, "metadata": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Metadata", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Metadata", "title": "Metadata sets the pods's metadata, i.e. annotations and labels\ndefault={annotations: {}, labels: {}}" }, "ports": { "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServicePort" + "$ref": "#/definitions/io.k8s.api.core.v1.ServicePort", + "type": "object" }, "title": "The list of ports that are exposed by this ClusterIP service.\n+patchMergeKey=port\n+patchStrategy=merge\n+listType=map\n+listMapKey=port\n+listMapKey=protocol", "type": "array" @@ -3317,10 +3377,10 @@ "title": "Service holds the service information eventsource exposes", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackEventSource": { + "io.argoproj.events.v1alpha1.SlackEventSource": { "properties": { "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "metadata": { @@ -3339,14 +3399,14 @@ "title": "Token for URL verification handshake" }, "webhook": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext", "title": "Webhook holds configuration for a REST endpoint" } }, "title": "SlackEventSource refers to event-source for Slack related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackSender": { + "io.argoproj.events.v1alpha1.SlackSender": { "properties": { "icon": { "title": "Icon is the Slack application's icon, e.g. :robot_face: or https://example.com/image.png\n+optional", @@ -3359,7 +3419,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackThread": { + "io.argoproj.events.v1alpha1.SlackThread": { "properties": { "broadcastMessageToChannel": { "title": "BroadcastMessageToChannel allows to also broadcast the message from the thread to the channel\n+optional", @@ -3372,7 +3432,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackTrigger": { + "io.argoproj.events.v1alpha1.SlackTrigger": { "description": "SlackTrigger refers to the specification of the slack notification trigger.", "properties": { "attachments": { @@ -3393,13 +3453,14 @@ }, "parameters": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "type": "array" }, "sender": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackSender", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SlackSender", "title": "Sender refers to additional configuration of the Slack application that sends the message.\n+optional" }, "slackToken": { @@ -3407,13 +3468,13 @@ "description": "SlackToken refers to the Kubernetes secret that holds the slack token required to send messages." }, "thread": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackThread", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SlackThread", "title": "Thread refers to additional options for sending messages to a Slack thread.\n+optional" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StandardK8STrigger": { + "io.argoproj.events.v1alpha1.StandardK8STrigger": { "properties": { "liveObject": { "title": "LiveObject specifies whether the resource should be directly fetched from K8s instead\nof being marshaled from the resource artifact. If set to true, the resource artifact\nmust contain the information required to uniquely identify the resource in the cluster,\nthat is, you must specify \"apiVersion\", \"kind\" as well as \"name\" and \"namespace\" meta\ndata.\nOnly valid for operation type `update`\n+optional", @@ -3426,7 +3487,8 @@ "parameters": { "description": "Parameters is the list of parameters that is applied to resolved K8s trigger object.", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "type": "array" }, @@ -3435,19 +3497,20 @@ "type": "string" }, "source": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArtifactLocation", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ArtifactLocation", "title": "Source of the K8s resource file(s)" } }, "title": "StandardK8STrigger is the standard Kubernetes resource trigger", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Status": { + "io.argoproj.events.v1alpha1.Status": { "description": "Status is a common structure which can be used for Status field.", "properties": { "conditions": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Condition" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Condition", + "type": "object" }, "title": "Conditions are the latest available observations of a resource's current state.\n+optional\n+patchMergeKey=type\n+patchStrategy=merge", "type": "array" @@ -3455,7 +3518,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StatusPolicy": { + "io.argoproj.events.v1alpha1.StatusPolicy": { "properties": { "allow": { "items": { @@ -3468,7 +3531,7 @@ "title": "StatusPolicy refers to the policy used to check the state of the trigger using response status", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StorageGridEventSource": { + "io.argoproj.events.v1alpha1.StorageGridEventSource": { "properties": { "apiURL": { "description": "APIURL is the url of the storagegrid api.", @@ -3489,7 +3552,7 @@ "type": "array" }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StorageGridFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StorageGridFilter", "description": "Filter on object key which caused the notification." }, "metadata": { @@ -3504,7 +3567,7 @@ "type": "string" }, "tls": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig", "title": "TLS configuration for the service bus client\n+optional" }, "topicArn": { @@ -3512,14 +3575,14 @@ "type": "string" }, "webhook": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext", "title": "Webhook holds configuration for a REST endpoint" } }, "title": "StorageGridEventSource refers to event-source for StorageGrid related events", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StorageGridFilter": { + "io.argoproj.events.v1alpha1.StorageGridFilter": { "properties": { "prefix": { "type": "string" @@ -3531,7 +3594,7 @@ "title": "StorageGridFilter represents filters to apply to bucket notifications for specifying constraints on objects\n+k8s:openapi-gen=true", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StripeEventSource": { + "io.argoproj.events.v1alpha1.StripeEventSource": { "properties": { "apiKey": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -3556,14 +3619,14 @@ "type": "object" }, "webhook": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext", "title": "Webhook holds configuration for a REST endpoint" } }, "title": "StripeEventSource describes the event source for stripe webhook notifications\nMore info at https://stripe.com/docs/webhooks", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig": { + "io.argoproj.events.v1alpha1.TLSConfig": { "description": "TLSConfig refers to TLS configuration for a client.", "properties": { "caCertSecret": { @@ -3589,25 +3652,26 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Template": { + "io.argoproj.events.v1alpha1.Template": { "properties": { "affinity": { "$ref": "#/definitions/io.k8s.api.core.v1.Affinity", "title": "If specified, the pod's scheduling constraints\n+optional" }, "container": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Container", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Container", "title": "Container is the main container image to run in the sensor pod\n+optional" }, "imagePullSecrets": { "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", + "type": "object" }, "title": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.\nIf specified, these secrets will be passed to individual puller implementations for them to use. For example,\nin the case of docker, only DockerConfig type secrets are honored.\nMore info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod\n+optional\n+patchMergeKey=name\n+patchStrategy=merge", "type": "array" }, "metadata": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Metadata", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Metadata", "title": "Metadata sets the pods's metadata, i.e. annotations and labels" }, "nodeSelector": { @@ -3635,14 +3699,16 @@ }, "tolerations": { "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" + "$ref": "#/definitions/io.k8s.api.core.v1.Toleration", + "type": "object" }, "title": "If specified, the pod's tolerations.\n+optional", "type": "array" }, "volumes": { "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Volume" + "$ref": "#/definitions/io.k8s.api.core.v1.Volume", + "type": "object" }, "title": "Volumes is a list of volumes that can be mounted by containers in a io.argoproj.workflow.v1alpha1.\n+patchStrategy=merge\n+patchMergeKey=name\n+optional", "type": "array" @@ -3651,7 +3717,7 @@ "title": "Template holds the information of a deployment template", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TimeFilter": { + "io.argoproj.events.v1alpha1.TimeFilter": { "description": "TimeFilter describes a window in time.\nIt filters out events that occur outside the time limits.\nIn other words, only events that occur after Start and before Stop\nwill pass this filter.", "properties": { "start": { @@ -3669,44 +3735,45 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Trigger": { + "io.argoproj.events.v1alpha1.Trigger": { "properties": { "atLeastOnce": { "title": "AtLeastOnce determines the trigger execution semantics.\nDefaults to false. Trigger execution will use at-most-once semantics.\nIf set to true, Trigger execution will switch to at-least-once semantics.\n+kubebuilder:default=false\n+optional", "type": "boolean" }, "dlqTrigger": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Trigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Trigger", "title": "If the trigger fails, it will retry up to the configured number of\nretries. If the maximum retries are reached and the trigger is set to\nexecute atLeastOnce, the dead letter queue (DLQ) trigger will be invoked if\nspecified. Invoking the dead letter queue trigger helps prevent data\nloss.\n+optional" }, "parameters": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter", + "type": "object" }, "title": "Parameters is the list of parameters applied to the trigger template definition", "type": "array" }, "policy": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerPolicy", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerPolicy", "title": "Policy to configure backoff and execution criteria for the trigger\n+optional" }, "rateLimit": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RateLimit", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.RateLimit", "title": "Rate limit, default unit is Second\n+optional" }, "retryStrategy": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff", "title": "Retry strategy, defaults to no retry\n+optional" }, "template": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerTemplate", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerTemplate", "description": "Template describes the trigger specification." } }, "title": "Trigger is an action taken, output produced, an event created, a message sent", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter": { + "io.argoproj.events.v1alpha1.TriggerParameter": { "properties": { "dest": { "description": "Dest is the JSONPath of a resource key.\nA path is a series of keys separated by a dot. The colon character can be escaped with '.'\nThe -1 key can be used to append a value to an existing array.\nSee https://github.com/tidwall/sjson#path-syntax for more information about how this is used.", @@ -3717,14 +3784,14 @@ "type": "string" }, "src": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameterSource", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameterSource", "title": "Src contains a source reference to the value of the parameter from a dependency" } }, "title": "TriggerParameter indicates a passed parameter to a service template", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameterSource": { + "io.argoproj.events.v1alpha1.TriggerParameterSource": { "properties": { "contextKey": { "description": "ContextKey is the JSONPath of the event's (JSON decoded) context key\nContextKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'.\nTo access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\\\'.\nSee https://github.com/tidwall/gjson#path-syntax for more information on how to use this.", @@ -3758,37 +3825,37 @@ "title": "TriggerParameterSource defines the source for a parameter from a event event", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerPolicy": { + "io.argoproj.events.v1alpha1.TriggerPolicy": { "properties": { "k8s": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.K8SResourcePolicy", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.K8SResourcePolicy", "title": "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels" }, "status": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StatusPolicy", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StatusPolicy", "title": "Status refers to the policy used to check the state of the trigger using response status" } }, "title": "TriggerPolicy dictates the policy for the trigger retries", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerTemplate": { + "io.argoproj.events.v1alpha1.TriggerTemplate": { "description": "TriggerTemplate is the template that describes trigger specification.", "properties": { "argoWorkflow": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArgoWorkflowTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ArgoWorkflowTrigger", "title": "ArgoWorkflow refers to the trigger that can perform various operations on an Argo io.argoproj.workflow.v1alpha1.\n+optional" }, "awsLambda": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AWSLambdaTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AWSLambdaTrigger", "title": "AWSLambda refers to the trigger designed to invoke AWS Lambda function with with on-the-fly constructable payload.\n+optional" }, "azureEventHubs": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureEventHubsTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureEventHubsTrigger", "title": "AzureEventHubs refers to the trigger send an event to an Azure Event Hub.\n+optional" }, "azureServiceBus": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureServiceBusTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureServiceBusTrigger", "title": "AzureServiceBus refers to the trigger designed to place messages on Azure Service Bus\n+optional" }, "conditions": { @@ -3797,33 +3864,34 @@ }, "conditionsReset": { "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConditionsResetCriteria" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ConditionsResetCriteria", + "type": "object" }, "title": "Criteria to reset the conditons\n+optional", "type": "array" }, "custom": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CustomTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.CustomTrigger", "title": "CustomTrigger refers to the trigger designed to connect to a gRPC trigger server and execute a custom trigger.\n+optional" }, "email": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EmailTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EmailTrigger", "title": "Email refers to the trigger designed to send an email notification\n+optional" }, "http": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.HTTPTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.HTTPTrigger", "title": "HTTP refers to the trigger designed to dispatch a HTTP request with on-the-fly constructable payload.\n+optional" }, "k8s": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StandardK8STrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StandardK8STrigger", "title": "StandardK8STrigger refers to the trigger designed to create or update a generic Kubernetes resource.\n+optional" }, "kafka": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.KafkaTrigger", "description": "Kafka refers to the trigger designed to place messages on Kafka topic.\n+optional." }, "log": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.LogTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.LogTrigger", "title": "Log refers to the trigger designed to invoke log the io.argoproj.workflow.v1alpha1.\n+optional" }, "name": { @@ -3831,25 +3899,25 @@ "type": "string" }, "nats": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NATSTrigger", "description": "NATS refers to the trigger designed to place message on NATS subject.\n+optional." }, "openWhisk": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.OpenWhiskTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.OpenWhiskTrigger", "title": "OpenWhisk refers to the trigger designed to invoke OpenWhisk action.\n+optional" }, "pulsar": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PulsarTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.PulsarTrigger", "title": "Pulsar refers to the trigger designed to place messages on Pulsar topic.\n+optional" }, "slack": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackTrigger", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SlackTrigger", "title": "Slack refers to the trigger designed to send slack notification message.\n+optional" } }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.URLArtifact": { + "io.argoproj.events.v1alpha1.URLArtifact": { "description": "URLArtifact contains information about an artifact at an HTTP endpoint.", "properties": { "path": { @@ -3863,7 +3931,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ValueFromSource": { + "io.argoproj.events.v1alpha1.ValueFromSource": { "properties": { "configMapKeyRef": { "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector" @@ -3875,7 +3943,7 @@ "title": "ValueFromSource allows you to reference keys from either a Configmap or Secret", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WatchPathConfig": { + "io.argoproj.events.v1alpha1.WatchPathConfig": { "properties": { "directory": { "title": "Directory to watch for events", @@ -3892,7 +3960,7 @@ }, "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext": { + "io.argoproj.events.v1alpha1.WebhookContext": { "properties": { "authSecret": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", @@ -3937,74 +4005,19 @@ "title": "WebhookContext holds a general purpose REST API context", "type": "object" }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookEventSource": { + "io.argoproj.events.v1alpha1.WebhookEventSource": { "properties": { "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter", "title": "Filter\n+optional" }, "webhookContext": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" } }, "title": "CalendarEventSource describes an HTTP based EventSource", "type": "object" }, - "google.protobuf.Any": { - "properties": { - "type_url": { - "type": "string" - }, - "value": { - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, - "grpc.gateway.runtime.Error": { - "properties": { - "code": { - "type": "integer" - }, - "details": { - "items": { - "$ref": "#/definitions/google.protobuf.Any" - }, - "type": "array" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "type": "object" - }, - "grpc.gateway.runtime.StreamError": { - "properties": { - "details": { - "items": { - "$ref": "#/definitions/google.protobuf.Any" - }, - "type": "array" - }, - "grpc_code": { - "type": "integer" - }, - "http_code": { - "type": "integer" - }, - "http_status": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.Amount": { "description": "Amount represent a numeric amount.", "type": "number" @@ -4673,18 +4686,6 @@ ], "type": "object" }, - "io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplateUpdateRequest": { - "properties": { - "name": { - "description": "DEPRECATED: This field is ignored.", - "type": "string" - }, - "template": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplate" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.CollectEventRequest": { "properties": { "name": { @@ -4975,16 +4976,13 @@ ], "type": "object" }, - "io.argoproj.workflow.v1alpha1.CreateCronWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.CreateCronWorkflowBody": { "properties": { "createOptions": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" }, "cronWorkflow": { "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CronWorkflow" - }, - "namespace": { - "type": "string" } }, "type": "object" @@ -4999,6 +4997,35 @@ }, "type": "object" }, + "io.argoproj.workflow.v1alpha1.CreateWorkflowBody": { + "properties": { + "createOptions": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" + }, + "instanceID": { + "description": "This field is no longer used.", + "type": "string" + }, + "serverDryRun": { + "type": "boolean" + }, + "workflow": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow" + } + }, + "type": "object" + }, + "io.argoproj.workflow.v1alpha1.CreateWorkflowTemplateBody": { + "properties": { + "createOptions": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" + }, + "template": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" + } + }, + "type": "object" + }, "io.argoproj.workflow.v1alpha1.CronWorkflow": { "description": "CronWorkflow is the definition of a scheduled workflow resource", "properties": { @@ -5065,17 +5092,6 @@ ], "type": "object" }, - "io.argoproj.workflow.v1alpha1.CronWorkflowResumeRequest": { - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.CronWorkflowSpec": { "description": "CronWorkflowSpec is the specification of a CronWorkflow", "properties": { @@ -5169,17 +5185,6 @@ }, "type": "object" }, - "io.argoproj.workflow.v1alpha1.CronWorkflowSuspendRequest": { - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.DAGTask": { "description": "DAGTask represents a node in the graph during DAG execution Note: CEL validation cannot check withItems (Schemaless) or inline (PreserveUnknownFields) fields.", "properties": { @@ -5326,6 +5331,19 @@ "io.argoproj.workflow.v1alpha1.EventResponse": { "type": "object" }, + "io.argoproj.workflow.v1alpha1.EventWatchEvent": { + "properties": { + "object": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event", + "title": "the event" + }, + "type": { + "title": "the type of change", + "type": "string" + } + }, + "type": "object" + }, "io.argoproj.workflow.v1alpha1.ExecutorConfig": { "description": "ExecutorConfig holds configurations of an executor container.", "properties": { @@ -5804,13 +5822,15 @@ "properties": { "columns": { "items": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Column" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Column", + "type": "object" }, "type": "array" }, "links": { "items": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Link" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Link", + "type": "object" }, "type": "array" }, @@ -5943,13 +5963,29 @@ "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" }, - "io.argoproj.workflow.v1alpha1.LintCronWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.LintCronWorkflowBody": { "properties": { "cronWorkflow": { "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CronWorkflow" + } + }, + "type": "object" + }, + "io.argoproj.workflow.v1alpha1.LintWorkflowBody": { + "properties": { + "workflow": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow" + } + }, + "type": "object" + }, + "io.argoproj.workflow.v1alpha1.LintWorkflowTemplateBody": { + "properties": { + "createOptions": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" }, - "namespace": { - "type": "string" + "template": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" } }, "type": "object" @@ -6674,7 +6710,7 @@ ], "type": "object" }, - "io.argoproj.workflow.v1alpha1.ResubmitArchivedWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.ResubmitArchivedWorkflowBody": { "properties": { "memoized": { "type": "boolean" @@ -6690,8 +6726,30 @@ "type": "string" }, "type": "array" + } + }, + "type": "object" + }, + "io.argoproj.workflow.v1alpha1.ResubmitWorkflowBody": { + "properties": { + "memoized": { + "type": "boolean" }, - "uid": { + "parameters": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "io.argoproj.workflow.v1alpha1.ResumeCronWorkflowBody": { + "type": "object" + }, + "io.argoproj.workflow.v1alpha1.ResumeWorkflowBody": { + "properties": { + "nodeFieldSelector": { "type": "string" } }, @@ -6706,7 +6764,7 @@ }, "type": "object" }, - "io.argoproj.workflow.v1alpha1.RetryArchivedWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.RetryArchivedWorkflowBody": { "properties": { "name": { "type": "string" @@ -6725,9 +6783,6 @@ }, "restartSuccessful": { "type": "boolean" - }, - "uid": { - "type": "string" } }, "type": "object" @@ -6762,6 +6817,23 @@ }, "type": "object" }, + "io.argoproj.workflow.v1alpha1.RetryWorkflowBody": { + "properties": { + "nodeFieldSelector": { + "type": "string" + }, + "parameters": { + "items": { + "type": "string" + }, + "type": "array" + }, + "restartSuccessful": { + "type": "boolean" + } + }, + "type": "object" + }, "io.argoproj.workflow.v1alpha1.S3Artifact": { "description": "S3Artifact is the location of an S3 artifact", "properties": { @@ -7157,6 +7229,23 @@ }, "type": "object" }, + "io.argoproj.workflow.v1alpha1.SetWorkflowBody": { + "properties": { + "message": { + "type": "string" + }, + "nodeFieldSelector": { + "type": "string" + }, + "outputParameters": { + "type": "string" + }, + "phase": { + "type": "string" + } + }, + "type": "object" + }, "io.argoproj.workflow.v1alpha1.StopStrategy": { "description": "StopStrategy defines if the CronWorkflow should stop scheduling based on an expression. v3.6 and after", "properties": { @@ -7170,6 +7259,17 @@ ], "type": "object" }, + "io.argoproj.workflow.v1alpha1.StopWorkflowBody": { + "properties": { + "message": { + "type": "string" + }, + "nodeFieldSelector": { + "type": "string" + } + }, + "type": "object" + }, "io.argoproj.workflow.v1alpha1.Submit": { "properties": { "arguments": { @@ -7254,10 +7354,27 @@ }, "type": "object" }, + "io.argoproj.workflow.v1alpha1.SubmitWorkflowBody": { + "properties": { + "resourceKind": { + "type": "string" + }, + "resourceName": { + "type": "string" + }, + "submitOptions": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SubmitOpts" + } + }, + "type": "object" + }, "io.argoproj.workflow.v1alpha1.SuppliedValueFrom": { "description": "SuppliedValueFrom is a placeholder for a value to be filled in directly, either through the CLI, API, etc.", "type": "object" }, + "io.argoproj.workflow.v1alpha1.SuspendCronWorkflowBody": { + "type": "object" + }, "io.argoproj.workflow.v1alpha1.SuspendTemplate": { "description": "SuspendTemplate is a template subtype to suspend a workflow at a predetermined point in time", "properties": { @@ -7268,6 +7385,9 @@ }, "type": "object" }, + "io.argoproj.workflow.v1alpha1.SuspendWorkflowBody": { + "type": "object" + }, "io.argoproj.workflow.v1alpha1.SyncDatabaseRef": { "properties": { "key": { @@ -7571,6 +7691,9 @@ }, "type": "object" }, + "io.argoproj.workflow.v1alpha1.TerminateWorkflowBody": { + "type": "object" + }, "io.argoproj.workflow.v1alpha1.TransformationStep": { "properties": { "expression": { @@ -7583,17 +7706,26 @@ ], "type": "object" }, - "io.argoproj.workflow.v1alpha1.UpdateCronWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.UpdateClusterWorkflowTemplateBody": { + "properties": { + "template": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplate" + } + }, + "type": "object" + }, + "io.argoproj.workflow.v1alpha1.UpdateCronWorkflowBody": { "properties": { "cronWorkflow": { "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CronWorkflow" - }, - "name": { - "description": "DEPRECATED: This field is ignored.", - "type": "string" - }, - "namespace": { - "type": "string" + } + }, + "type": "object" + }, + "io.argoproj.workflow.v1alpha1.UpdateWorkflowTemplateBody": { + "properties": { + "template": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" } }, "type": "object" @@ -7895,27 +8027,6 @@ } ] }, - "io.argoproj.workflow.v1alpha1.WorkflowCreateRequest": { - "properties": { - "createOptions": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" - }, - "instanceID": { - "description": "This field is no longer used.", - "type": "string" - }, - "namespace": { - "type": "string" - }, - "serverDryRun": { - "type": "boolean" - }, - "workflow": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.WorkflowDeleteResponse": { "type": "object" }, @@ -8021,17 +8132,6 @@ }, "type": "object" }, - "io.argoproj.workflow.v1alpha1.WorkflowLintRequest": { - "properties": { - "namespace": { - "type": "string" - }, - "workflow": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.WorkflowList": { "description": "WorkflowList is list of Workflow resources", "properties": { @@ -8082,86 +8182,6 @@ }, "type": "object" }, - "io.argoproj.workflow.v1alpha1.WorkflowResubmitRequest": { - "properties": { - "memoized": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "parameters": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.argoproj.workflow.v1alpha1.WorkflowResumeRequest": { - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "nodeFieldSelector": { - "type": "string" - } - }, - "type": "object" - }, - "io.argoproj.workflow.v1alpha1.WorkflowRetryRequest": { - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "nodeFieldSelector": { - "type": "string" - }, - "parameters": { - "items": { - "type": "string" - }, - "type": "array" - }, - "restartSuccessful": { - "type": "boolean" - } - }, - "type": "object" - }, - "io.argoproj.workflow.v1alpha1.WorkflowSetRequest": { - "properties": { - "message": { - "type": "string" - }, - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "nodeFieldSelector": { - "type": "string" - }, - "outputParameters": { - "type": "string" - }, - "phase": { - "type": "string" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.WorkflowSpec": { "description": "WorkflowSpec is the specification of a Workflow.", "properties": { @@ -8545,51 +8565,6 @@ }, "type": "object" }, - "io.argoproj.workflow.v1alpha1.WorkflowStopRequest": { - "properties": { - "message": { - "type": "string" - }, - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "nodeFieldSelector": { - "type": "string" - } - }, - "type": "object" - }, - "io.argoproj.workflow.v1alpha1.WorkflowSubmitRequest": { - "properties": { - "namespace": { - "type": "string" - }, - "resourceKind": { - "type": "string" - }, - "resourceName": { - "type": "string" - }, - "submitOptions": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SubmitOpts" - } - }, - "type": "object" - }, - "io.argoproj.workflow.v1alpha1.WorkflowSuspendRequest": { - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.WorkflowTemplate": { "description": "WorkflowTemplate is the definition of a workflow template resource", "properties": { @@ -8623,37 +8598,9 @@ } ] }, - "io.argoproj.workflow.v1alpha1.WorkflowTemplateCreateRequest": { - "properties": { - "createOptions": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" - }, - "namespace": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.WorkflowTemplateDeleteResponse": { "type": "object" }, - "io.argoproj.workflow.v1alpha1.WorkflowTemplateLintRequest": { - "properties": { - "createOptions": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" - }, - "namespace": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.WorkflowTemplateList": { "description": "WorkflowTemplateList is list of WorkflowTemplate resources", "properties": { @@ -8695,32 +8642,6 @@ }, "type": "object" }, - "io.argoproj.workflow.v1alpha1.WorkflowTemplateUpdateRequest": { - "properties": { - "name": { - "description": "DEPRECATED: This field is ignored.", - "type": "string" - }, - "namespace": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" - } - }, - "type": "object" - }, - "io.argoproj.workflow.v1alpha1.WorkflowTerminateRequest": { - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - } - }, - "type": "object" - }, "io.argoproj.workflow.v1alpha1.WorkflowWatchEvent": { "properties": { "object": { @@ -12016,16 +11937,13 @@ "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { "type": "string" }, - "sensor.CreateSensorRequest": { + "sensor.CreateSensorBody": { "properties": { "createOptions": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" }, - "namespace": { - "type": "string" - }, "sensor": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" } }, "type": "object" @@ -12069,7 +11987,7 @@ "sensor.SensorWatchEvent": { "properties": { "object": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" }, "type": { "type": "string" @@ -12077,21 +11995,15 @@ }, "type": "object" }, - "sensor.UpdateSensorRequest": { + "sensor.UpdateSensorBody": { "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, "sensor": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" } }, "type": "object" }, - "sync.CreateSyncLimitRequest": { + "sync.CreateSyncLimitBody": { "properties": { "cmName": { "type": "string" @@ -12102,9 +12014,6 @@ "limit": { "type": "integer" }, - "namespace": { - "type": "string" - }, "type": { "$ref": "#/definitions/sync.SyncConfigType" } @@ -12142,20 +12051,14 @@ }, "type": "object" }, - "sync.UpdateSyncLimitRequest": { + "sync.UpdateSyncLimitBody": { "properties": { "cmName": { "type": "string" }, - "key": { - "type": "string" - }, "limit": { "type": "integer" }, - "namespace": { - "type": "string" - }, "type": { "$ref": "#/definitions/sync.SyncConfigType" } diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 366261fb1743..1ce0ec5a8d84 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -26,25 +26,25 @@ "parameters": [ { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -63,7 +63,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -98,7 +98,7 @@ }, { "type": "string", - "description": "Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact.", + "description": "Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact", "name": "nameFilter", "in": "query" } @@ -113,7 +113,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -142,7 +142,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -157,25 +157,25 @@ "parameters": [ { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -194,7 +194,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -233,7 +233,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -273,7 +273,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -311,7 +311,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -335,7 +335,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ResubmitArchivedWorkflowRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ResubmitArchivedWorkflowBody" } } ], @@ -349,7 +349,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -373,7 +373,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.RetryArchivedWorkflowRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.RetryArchivedWorkflowBody" } } ], @@ -387,7 +387,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -402,25 +402,25 @@ "parameters": [ { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -439,7 +439,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -473,7 +473,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -503,7 +503,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -535,7 +535,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -571,7 +571,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -594,7 +594,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplateUpdateRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.UpdateClusterWorkflowTemplateBody" } } ], @@ -608,7 +608,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -628,31 +628,31 @@ { "type": "string", "format": "int64", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional", "name": "deleteOptions.gracePeriodSeconds", "in": "query" }, { "type": "string", - "description": "Specifies the target UID.\n+optional.", + "description": "Specifies the target UID.\n+optional", "name": "deleteOptions.preconditions.uid", "in": "query" }, { "type": "string", - "description": "Specifies the target ResourceVersion\n+optional.", + "description": "Specifies the target ResourceVersion\n+optional", "name": "deleteOptions.preconditions.resourceVersion", "in": "query" }, { "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional", "name": "deleteOptions.orphanDependents", "in": "query" }, { "type": "string", - "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional.", + "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional", "name": "deleteOptions.propagationPolicy", "in": "query" }, @@ -662,13 +662,13 @@ "type": "string" }, "collectionFormat": "multi", - "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic.", + "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic", "name": "deleteOptions.dryRun", "in": "query" }, { "type": "boolean", - "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional.", + "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional", "name": "deleteOptions.ignoreStoreReadErrorWithClusterBreakingPotential", "in": "query" } @@ -683,7 +683,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -704,25 +704,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -741,7 +741,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -775,7 +775,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -797,7 +797,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CreateCronWorkflowRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CreateCronWorkflowBody" } } ], @@ -811,7 +811,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -835,7 +835,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.LintCronWorkflowRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.LintCronWorkflowBody" } } ], @@ -849,7 +849,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -891,7 +891,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -920,7 +920,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.UpdateCronWorkflowRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.UpdateCronWorkflowBody" } } ], @@ -934,7 +934,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -960,31 +960,31 @@ { "type": "string", "format": "int64", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional", "name": "deleteOptions.gracePeriodSeconds", "in": "query" }, { "type": "string", - "description": "Specifies the target UID.\n+optional.", + "description": "Specifies the target UID.\n+optional", "name": "deleteOptions.preconditions.uid", "in": "query" }, { "type": "string", - "description": "Specifies the target ResourceVersion\n+optional.", + "description": "Specifies the target ResourceVersion\n+optional", "name": "deleteOptions.preconditions.resourceVersion", "in": "query" }, { "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional", "name": "deleteOptions.orphanDependents", "in": "query" }, { "type": "string", - "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional.", + "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional", "name": "deleteOptions.propagationPolicy", "in": "query" }, @@ -994,13 +994,13 @@ "type": "string" }, "collectionFormat": "multi", - "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic.", + "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic", "name": "deleteOptions.dryRun", "in": "query" }, { "type": "boolean", - "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional.", + "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional", "name": "deleteOptions.ignoreStoreReadErrorWithClusterBreakingPotential", "in": "query" } @@ -1015,7 +1015,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1045,7 +1045,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CronWorkflowResumeRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ResumeCronWorkflowBody" } } ], @@ -1059,7 +1059,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1089,7 +1089,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CronWorkflowSuspendRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SuspendCronWorkflowBody" } } ], @@ -1103,7 +1103,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1124,25 +1124,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -1161,7 +1161,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -1189,13 +1189,13 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceList" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceList" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1217,7 +1217,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/eventsource.CreateEventSourceRequest" + "$ref": "#/definitions/eventsource.CreateEventSourceBody" } } ], @@ -1225,13 +1225,13 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1261,13 +1261,13 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1295,7 +1295,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/eventsource.UpdateEventSourceRequest" + "$ref": "#/definitions/eventsource.UpdateEventSourceBody" } } ], @@ -1303,13 +1303,13 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1335,31 +1335,31 @@ { "type": "string", "format": "int64", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional", "name": "deleteOptions.gracePeriodSeconds", "in": "query" }, { "type": "string", - "description": "Specifies the target UID.\n+optional.", + "description": "Specifies the target UID.\n+optional", "name": "deleteOptions.preconditions.uid", "in": "query" }, { "type": "string", - "description": "Specifies the target ResourceVersion\n+optional.", + "description": "Specifies the target ResourceVersion\n+optional", "name": "deleteOptions.preconditions.resourceVersion", "in": "query" }, { "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional", "name": "deleteOptions.orphanDependents", "in": "query" }, { "type": "string", - "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional.", + "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional", "name": "deleteOptions.propagationPolicy", "in": "query" }, @@ -1369,13 +1369,13 @@ "type": "string" }, "collectionFormat": "multi", - "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic.", + "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic", "name": "deleteOptions.dryRun", "in": "query" }, { "type": "boolean", - "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional.", + "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional", "name": "deleteOptions.ignoreStoreReadErrorWithClusterBreakingPotential", "in": "query" } @@ -1390,7 +1390,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1419,7 +1419,7 @@ }, { "description": "The event itself can be any data.", - "name": "body", + "name": "payload", "in": "body", "required": true, "schema": { @@ -1437,7 +1437,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1459,7 +1459,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1480,25 +1480,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -1517,7 +1517,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -1545,13 +1545,13 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorList" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SensorList" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1573,7 +1573,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sensor.CreateSensorRequest" + "$ref": "#/definitions/sensor.CreateSensorBody" } } ], @@ -1581,13 +1581,13 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1623,13 +1623,13 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1657,7 +1657,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sensor.UpdateSensorRequest" + "$ref": "#/definitions/sensor.UpdateSensorBody" } } ], @@ -1665,13 +1665,13 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1697,31 +1697,31 @@ { "type": "string", "format": "int64", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional", "name": "deleteOptions.gracePeriodSeconds", "in": "query" }, { "type": "string", - "description": "Specifies the target UID.\n+optional.", + "description": "Specifies the target UID.\n+optional", "name": "deleteOptions.preconditions.uid", "in": "query" }, { "type": "string", - "description": "Specifies the target ResourceVersion\n+optional.", + "description": "Specifies the target ResourceVersion\n+optional", "name": "deleteOptions.preconditions.resourceVersion", "in": "query" }, { "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional", "name": "deleteOptions.orphanDependents", "in": "query" }, { "type": "string", - "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional.", + "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional", "name": "deleteOptions.propagationPolicy", "in": "query" }, @@ -1731,13 +1731,13 @@ "type": "string" }, "collectionFormat": "multi", - "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic.", + "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic", "name": "deleteOptions.dryRun", "in": "query" }, { "type": "boolean", - "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional.", + "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional", "name": "deleteOptions.ignoreStoreReadErrorWithClusterBreakingPotential", "in": "query" } @@ -1752,7 +1752,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1773,25 +1773,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -1810,7 +1810,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -1842,7 +1842,7 @@ "title": "Stream result of eventsource.EventSourceWatchEvent", "properties": { "error": { - "$ref": "#/definitions/grpc.gateway.runtime.StreamError" + "$ref": "#/definitions/google.rpc.Status" }, "result": { "$ref": "#/definitions/eventsource.EventSourceWatchEvent" @@ -1853,7 +1853,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -1874,50 +1874,50 @@ }, { "type": "string", - "description": "optional - only return entries for this event source.", + "description": "optional - only return entries for this event source", "name": "name", "in": "query" }, { "type": "string", - "description": "optional - only return entries for this event source type (e.g. `webhook`).", + "description": "optional - only return entries for this event source type (e.g. `webhook`)", "name": "eventSourceType", "in": "query" }, { "type": "string", - "description": "optional - only return entries for this event name (e.g. `example`).", + "description": "optional - only return entries for this event name (e.g. `example`)", "name": "eventName", "in": "query" }, { "type": "string", - "description": "optional - only return entries where `msg` matches this regular expression.", + "description": "optional - only return entries where `msg` matches this regular expression", "name": "grep", "in": "query" }, { "type": "string", - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.\n+optional.", + "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.\n+optional", "name": "podLogOptions.container", "in": "query" }, { "type": "boolean", - "description": "Follow the log stream of the pod. Defaults to false.\n+optional.", + "description": "Follow the log stream of the pod. Defaults to false.\n+optional", "name": "podLogOptions.follow", "in": "query" }, { "type": "boolean", - "description": "Return previous terminated container logs. Defaults to false.\n+optional.", + "description": "Return previous terminated container logs. Defaults to false.\n+optional", "name": "podLogOptions.previous", "in": "query" }, { "type": "string", "format": "int64", - "description": "A relative time in seconds before the current time from which to show logs. If this value\nprecedes the time a pod was started, only logs since the pod start will be returned.\nIf this value is in the future, no logs will be returned.\nOnly one of sinceSeconds or sinceTime may be specified.\n+optional.", + "description": "A relative time in seconds before the current time from which to show logs. If this value\nprecedes the time a pod was started, only logs since the pod start will be returned.\nIf this value is in the future, no logs will be returned.\nOnly one of sinceSeconds or sinceTime may be specified.\n+optional", "name": "podLogOptions.sinceSeconds", "in": "query" }, @@ -1937,33 +1937,33 @@ }, { "type": "boolean", - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\nof log output. Defaults to false.\n+optional.", + "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\nof log output. Defaults to false.\n+optional", "name": "podLogOptions.timestamps", "in": "query" }, { "type": "string", "format": "int64", - "description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container or sinceSeconds or sinceTime.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+optional.", + "description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container or sinceSeconds or sinceTime.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+optional", "name": "podLogOptions.tailLines", "in": "query" }, { "type": "string", "format": "int64", - "description": "If set, the number of bytes to read from the server before terminating the\nlog output. This may not display a complete final line of logging, and may return\nslightly more or slightly less than the specified limit.\n+optional.", + "description": "If set, the number of bytes to read from the server before terminating the\nlog output. This may not display a complete final line of logging, and may return\nslightly more or slightly less than the specified limit.\n+optional", "name": "podLogOptions.limitBytes", "in": "query" }, { "type": "boolean", - "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\nthe actual log data coming from the real kubelet).\n+optional.", + "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\nthe actual log data coming from the real kubelet).\n+optional", "name": "podLogOptions.insecureSkipTLSVerifyBackend", "in": "query" }, { "type": "string", - "description": "Specify which container log stream to return to the client.\nAcceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr\nare returned interleaved.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+featureGate=PodLogsQuerySplitStreams\n+optional.", + "description": "Specify which container log stream to return to the client.\nAcceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr\nare returned interleaved.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+featureGate=PodLogsQuerySplitStreams\n+optional", "name": "podLogOptions.stream", "in": "query" } @@ -1976,7 +1976,7 @@ "title": "Stream result of eventsource.LogEntry", "properties": { "error": { - "$ref": "#/definitions/grpc.gateway.runtime.StreamError" + "$ref": "#/definitions/google.rpc.Status" }, "result": { "$ref": "#/definitions/eventsource.LogEntry" @@ -1987,7 +1987,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2008,25 +2008,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -2045,7 +2045,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -2074,13 +2074,13 @@ "description": "A successful response.(streaming responses)", "schema": { "type": "object", - "title": "Stream result of io.k8s.api.core.v1.Event", + "title": "Stream result of io.argoproj.workflow.v1alpha1.EventWatchEvent", "properties": { "error": { - "$ref": "#/definitions/grpc.gateway.runtime.StreamError" + "$ref": "#/definitions/google.rpc.Status" }, "result": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.EventWatchEvent" } } } @@ -2088,7 +2088,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2109,25 +2109,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -2146,7 +2146,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -2178,7 +2178,7 @@ "title": "Stream result of sensor.SensorWatchEvent", "properties": { "error": { - "$ref": "#/definitions/grpc.gateway.runtime.StreamError" + "$ref": "#/definitions/google.rpc.Status" }, "result": { "$ref": "#/definitions/sensor.SensorWatchEvent" @@ -2189,7 +2189,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2210,44 +2210,44 @@ }, { "type": "string", - "description": "optional - only return entries for this sensor name.", + "description": "optional - only return entries for this sensor name", "name": "name", "in": "query" }, { "type": "string", - "description": "optional - only return entries for this trigger.", + "description": "optional - only return entries for this trigger", "name": "triggerName", "in": "query" }, { "type": "string", - "description": "option - only return entries where `msg` contains this regular expressions.", + "description": "option - only return entries where `msg` contains this regular expressions", "name": "grep", "in": "query" }, { "type": "string", - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.\n+optional.", + "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.\n+optional", "name": "podLogOptions.container", "in": "query" }, { "type": "boolean", - "description": "Follow the log stream of the pod. Defaults to false.\n+optional.", + "description": "Follow the log stream of the pod. Defaults to false.\n+optional", "name": "podLogOptions.follow", "in": "query" }, { "type": "boolean", - "description": "Return previous terminated container logs. Defaults to false.\n+optional.", + "description": "Return previous terminated container logs. Defaults to false.\n+optional", "name": "podLogOptions.previous", "in": "query" }, { "type": "string", "format": "int64", - "description": "A relative time in seconds before the current time from which to show logs. If this value\nprecedes the time a pod was started, only logs since the pod start will be returned.\nIf this value is in the future, no logs will be returned.\nOnly one of sinceSeconds or sinceTime may be specified.\n+optional.", + "description": "A relative time in seconds before the current time from which to show logs. If this value\nprecedes the time a pod was started, only logs since the pod start will be returned.\nIf this value is in the future, no logs will be returned.\nOnly one of sinceSeconds or sinceTime may be specified.\n+optional", "name": "podLogOptions.sinceSeconds", "in": "query" }, @@ -2267,33 +2267,33 @@ }, { "type": "boolean", - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\nof log output. Defaults to false.\n+optional.", + "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\nof log output. Defaults to false.\n+optional", "name": "podLogOptions.timestamps", "in": "query" }, { "type": "string", "format": "int64", - "description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container or sinceSeconds or sinceTime.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+optional.", + "description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container or sinceSeconds or sinceTime.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+optional", "name": "podLogOptions.tailLines", "in": "query" }, { "type": "string", "format": "int64", - "description": "If set, the number of bytes to read from the server before terminating the\nlog output. This may not display a complete final line of logging, and may return\nslightly more or slightly less than the specified limit.\n+optional.", + "description": "If set, the number of bytes to read from the server before terminating the\nlog output. This may not display a complete final line of logging, and may return\nslightly more or slightly less than the specified limit.\n+optional", "name": "podLogOptions.limitBytes", "in": "query" }, { "type": "boolean", - "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\nthe actual log data coming from the real kubelet).\n+optional.", + "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\nthe actual log data coming from the real kubelet).\n+optional", "name": "podLogOptions.insecureSkipTLSVerifyBackend", "in": "query" }, { "type": "string", - "description": "Specify which container log stream to return to the client.\nAcceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr\nare returned interleaved.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+featureGate=PodLogsQuerySplitStreams\n+optional.", + "description": "Specify which container log stream to return to the client.\nAcceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr\nare returned interleaved.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+featureGate=PodLogsQuerySplitStreams\n+optional", "name": "podLogOptions.stream", "in": "query" } @@ -2306,7 +2306,7 @@ "title": "Stream result of sensor.LogEntry", "properties": { "error": { - "$ref": "#/definitions/grpc.gateway.runtime.StreamError" + "$ref": "#/definitions/google.rpc.Status" }, "result": { "$ref": "#/definitions/sensor.LogEntry" @@ -2317,7 +2317,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2341,7 +2341,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sync.CreateSyncLimitRequest" + "$ref": "#/definitions/sync.CreateSyncLimitBody" } } ], @@ -2355,7 +2355,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2406,7 +2406,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2434,7 +2434,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sync.UpdateSyncLimitRequest" + "$ref": "#/definitions/sync.UpdateSyncLimitBody" } } ], @@ -2448,7 +2448,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2497,7 +2497,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2529,7 +2529,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2551,7 +2551,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2573,7 +2573,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2594,25 +2594,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -2631,7 +2631,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -2665,7 +2665,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2686,25 +2686,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -2723,7 +2723,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -2760,7 +2760,7 @@ "title": "Stream result of io.argoproj.workflow.v1alpha1.WorkflowWatchEvent", "properties": { "error": { - "$ref": "#/definitions/grpc.gateway.runtime.StreamError" + "$ref": "#/definitions/google.rpc.Status" }, "result": { "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowWatchEvent" @@ -2771,7 +2771,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2797,25 +2797,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -2834,7 +2834,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -2868,7 +2868,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2890,7 +2890,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplateCreateRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CreateWorkflowTemplateBody" } } ], @@ -2904,7 +2904,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2928,7 +2928,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplateLintRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.LintWorkflowTemplateBody" } } ], @@ -2942,7 +2942,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -2984,7 +2984,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3013,7 +3013,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplateUpdateRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.UpdateWorkflowTemplateBody" } } ], @@ -3027,7 +3027,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3053,31 +3053,31 @@ { "type": "string", "format": "int64", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional", "name": "deleteOptions.gracePeriodSeconds", "in": "query" }, { "type": "string", - "description": "Specifies the target UID.\n+optional.", + "description": "Specifies the target UID.\n+optional", "name": "deleteOptions.preconditions.uid", "in": "query" }, { "type": "string", - "description": "Specifies the target ResourceVersion\n+optional.", + "description": "Specifies the target ResourceVersion\n+optional", "name": "deleteOptions.preconditions.resourceVersion", "in": "query" }, { "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional", "name": "deleteOptions.orphanDependents", "in": "query" }, { "type": "string", - "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional.", + "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional", "name": "deleteOptions.propagationPolicy", "in": "query" }, @@ -3087,13 +3087,13 @@ "type": "string" }, "collectionFormat": "multi", - "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic.", + "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic", "name": "deleteOptions.dryRun", "in": "query" }, { "type": "boolean", - "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional.", + "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional", "name": "deleteOptions.ignoreStoreReadErrorWithClusterBreakingPotential", "in": "query" } @@ -3108,7 +3108,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3129,25 +3129,25 @@ }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their labels.\nDefaults to everything.\n+optional", "name": "listOptions.labelSelector", "in": "query" }, { "type": "string", - "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional.", + "description": "A selector to restrict the list of returned objects by their fields.\nDefaults to everything.\n+optional", "name": "listOptions.fieldSelector", "in": "query" }, { "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional.", + "description": "Watch for changes to the described resources and return them as a stream of\nadd, update, and remove notifications. Specify resourceVersion.\n+optional", "name": "listOptions.watch", "in": "query" }, { "type": "boolean", - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\".\nServers that do not implement bookmarks may ignore this flag and\nbookmarks are sent at the server's discretion. Clients should not\nassume bookmarks are returned at any specific interval, nor may they\nassume the server will send any BOOKMARK event during a session.\nIf this is not a watch, this field is ignored.\n+optional", "name": "listOptions.allowWatchBookmarks", "in": "query" }, @@ -3166,7 +3166,7 @@ { "type": "string", "format": "int64", - "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional.", + "description": "Timeout for the list/watch call.\nThis limits the duration of the call, regardless of any activity or inactivity.\n+optional", "name": "listOptions.timeoutSeconds", "in": "query" }, @@ -3191,13 +3191,13 @@ }, { "type": "string", - "description": "Fields to be included or excluded in the response. e.g. \"items.spec,items.status.phase\", \"-items.status.nodes\".", + "description": "Fields to be included or excluded in the response. e.g. \"items.spec,items.status.phase\", \"-items.status.nodes\"", "name": "fields", "in": "query" }, { "type": "string", - "description": "Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact.", + "description": "Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact", "name": "nameFilter", "in": "query" }, @@ -3222,7 +3222,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3244,7 +3244,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowCreateRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CreateWorkflowBody" } } ], @@ -3258,7 +3258,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3282,7 +3282,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowLintRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.LintWorkflowBody" } } ], @@ -3296,7 +3296,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3320,7 +3320,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowSubmitRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SubmitWorkflowBody" } } ], @@ -3334,7 +3334,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3367,13 +3367,13 @@ }, { "type": "string", - "description": "Fields to be included or excluded in the response. e.g. \"spec,status.phase\", \"-status.nodes\".", + "description": "Fields to be included or excluded in the response. e.g. \"spec,status.phase\", \"-status.nodes\"", "name": "fields", "in": "query" }, { "type": "string", - "description": "Optional UID to retrieve a specific workflow (useful for archived workflows with the same name).", + "description": "Optional UID to retrieve a specific workflow (useful for archived workflows with the same name)", "name": "uid", "in": "query" } @@ -3388,7 +3388,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3414,31 +3414,31 @@ { "type": "string", "format": "int64", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer.\nThe value zero indicates delete immediately. If this value is nil, the default grace period for the\nspecified type will be used.\nDefaults to a per object value if not specified. zero means delete immediately.\n+optional", "name": "deleteOptions.gracePeriodSeconds", "in": "query" }, { "type": "string", - "description": "Specifies the target UID.\n+optional.", + "description": "Specifies the target UID.\n+optional", "name": "deleteOptions.preconditions.uid", "in": "query" }, { "type": "string", - "description": "Specifies the target ResourceVersion\n+optional.", + "description": "Specifies the target ResourceVersion\n+optional", "name": "deleteOptions.preconditions.resourceVersion", "in": "query" }, { "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.\nShould the dependent objects be orphaned. If true/false, the \"orphan\"\nfinalizer will be added to/removed from the object's finalizers list.\nEither this field or PropagationPolicy may be set, but not both.\n+optional", "name": "deleteOptions.orphanDependents", "in": "query" }, { "type": "string", - "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional.", + "description": "Whether and how garbage collection will be performed.\nEither this field or OrphanDependents may be set, but not both.\nThe default policy is decided by the existing finalizer set in the\nmetadata.finalizers and the resource-specific default policy.\nAcceptable values are: 'Orphan' - orphan the dependents; 'Background' -\nallow the garbage collector to delete the dependents in the background;\n'Foreground' - a cascading policy that deletes all dependents in the\nforeground.\n+optional", "name": "deleteOptions.propagationPolicy", "in": "query" }, @@ -3448,13 +3448,13 @@ "type": "string" }, "collectionFormat": "multi", - "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic.", + "description": "When present, indicates that modifications should not be\npersisted. An invalid or unrecognized dryRun directive will\nresult in an error response and no further processing of the\nrequest. Valid values are:\n- All: all dry run stages will be processed\n+optional\n+listType=atomic", "name": "deleteOptions.dryRun", "in": "query" }, { "type": "boolean", - "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional.", + "description": "if set to true, it will trigger an unsafe deletion of the resource in\ncase the normal deletion flow fails with a corrupt object error.\nA resource is considered corrupt if it can not be retrieved from\nthe underlying storage successfully because of a) its data can\nnot be transformed e.g. decryption failure, or b) it fails\nto decode into an object.\nNOTE: unsafe deletion ignores finalizer constraints, skips\nprecondition checks, and removes the object from the storage.\nWARNING: This may potentially break the cluster if the workload\nassociated with the resource being unsafe-deleted relies on normal\ndeletion flow. Use only if you REALLY know what you are doing.\nThe default value is false, and the user must opt in to enable it\n+optional", "name": "deleteOptions.ignoreStoreReadErrorWithClusterBreakingPotential", "in": "query" }, @@ -3474,7 +3474,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3506,26 +3506,26 @@ }, { "type": "string", - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.\n+optional.", + "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.\n+optional", "name": "logOptions.container", "in": "query" }, { "type": "boolean", - "description": "Follow the log stream of the pod. Defaults to false.\n+optional.", + "description": "Follow the log stream of the pod. Defaults to false.\n+optional", "name": "logOptions.follow", "in": "query" }, { "type": "boolean", - "description": "Return previous terminated container logs. Defaults to false.\n+optional.", + "description": "Return previous terminated container logs. Defaults to false.\n+optional", "name": "logOptions.previous", "in": "query" }, { "type": "string", "format": "int64", - "description": "A relative time in seconds before the current time from which to show logs. If this value\nprecedes the time a pod was started, only logs since the pod start will be returned.\nIf this value is in the future, no logs will be returned.\nOnly one of sinceSeconds or sinceTime may be specified.\n+optional.", + "description": "A relative time in seconds before the current time from which to show logs. If this value\nprecedes the time a pod was started, only logs since the pod start will be returned.\nIf this value is in the future, no logs will be returned.\nOnly one of sinceSeconds or sinceTime may be specified.\n+optional", "name": "logOptions.sinceSeconds", "in": "query" }, @@ -3545,33 +3545,33 @@ }, { "type": "boolean", - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\nof log output. Defaults to false.\n+optional.", + "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\nof log output. Defaults to false.\n+optional", "name": "logOptions.timestamps", "in": "query" }, { "type": "string", "format": "int64", - "description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container or sinceSeconds or sinceTime.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+optional.", + "description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container or sinceSeconds or sinceTime.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+optional", "name": "logOptions.tailLines", "in": "query" }, { "type": "string", "format": "int64", - "description": "If set, the number of bytes to read from the server before terminating the\nlog output. This may not display a complete final line of logging, and may return\nslightly more or slightly less than the specified limit.\n+optional.", + "description": "If set, the number of bytes to read from the server before terminating the\nlog output. This may not display a complete final line of logging, and may return\nslightly more or slightly less than the specified limit.\n+optional", "name": "logOptions.limitBytes", "in": "query" }, { "type": "boolean", - "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\nthe actual log data coming from the real kubelet).\n+optional.", + "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\nthe actual log data coming from the real kubelet).\n+optional", "name": "logOptions.insecureSkipTLSVerifyBackend", "in": "query" }, { "type": "string", - "description": "Specify which container log stream to return to the client.\nAcceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr\nare returned interleaved.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+featureGate=PodLogsQuerySplitStreams\n+optional.", + "description": "Specify which container log stream to return to the client.\nAcceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr\nare returned interleaved.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+featureGate=PodLogsQuerySplitStreams\n+optional", "name": "logOptions.stream", "in": "query" }, @@ -3594,7 +3594,7 @@ "title": "Stream result of io.argoproj.workflow.v1alpha1.LogEntry", "properties": { "error": { - "$ref": "#/definitions/grpc.gateway.runtime.StreamError" + "$ref": "#/definitions/google.rpc.Status" }, "result": { "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.LogEntry" @@ -3605,7 +3605,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3635,7 +3635,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowResubmitRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ResubmitWorkflowBody" } } ], @@ -3649,7 +3649,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3679,7 +3679,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowResumeRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ResumeWorkflowBody" } } ], @@ -3693,7 +3693,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3723,7 +3723,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowRetryRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.RetryWorkflowBody" } } ], @@ -3737,7 +3737,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3767,7 +3767,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowSetRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SetWorkflowBody" } } ], @@ -3781,7 +3781,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3811,7 +3811,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowStopRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.StopWorkflowBody" } } ], @@ -3825,7 +3825,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3855,7 +3855,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowSuspendRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SuspendWorkflowBody" } } ], @@ -3869,7 +3869,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3899,7 +3899,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTerminateRequest" + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.TerminateWorkflowBody" } } ], @@ -3913,7 +3913,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -3947,26 +3947,26 @@ }, { "type": "string", - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.\n+optional.", + "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.\n+optional", "name": "logOptions.container", "in": "query" }, { "type": "boolean", - "description": "Follow the log stream of the pod. Defaults to false.\n+optional.", + "description": "Follow the log stream of the pod. Defaults to false.\n+optional", "name": "logOptions.follow", "in": "query" }, { "type": "boolean", - "description": "Return previous terminated container logs. Defaults to false.\n+optional.", + "description": "Return previous terminated container logs. Defaults to false.\n+optional", "name": "logOptions.previous", "in": "query" }, { "type": "string", "format": "int64", - "description": "A relative time in seconds before the current time from which to show logs. If this value\nprecedes the time a pod was started, only logs since the pod start will be returned.\nIf this value is in the future, no logs will be returned.\nOnly one of sinceSeconds or sinceTime may be specified.\n+optional.", + "description": "A relative time in seconds before the current time from which to show logs. If this value\nprecedes the time a pod was started, only logs since the pod start will be returned.\nIf this value is in the future, no logs will be returned.\nOnly one of sinceSeconds or sinceTime may be specified.\n+optional", "name": "logOptions.sinceSeconds", "in": "query" }, @@ -3986,33 +3986,33 @@ }, { "type": "boolean", - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\nof log output. Defaults to false.\n+optional.", + "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\nof log output. Defaults to false.\n+optional", "name": "logOptions.timestamps", "in": "query" }, { "type": "string", "format": "int64", - "description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container or sinceSeconds or sinceTime.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+optional.", + "description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container or sinceSeconds or sinceTime.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+optional", "name": "logOptions.tailLines", "in": "query" }, { "type": "string", "format": "int64", - "description": "If set, the number of bytes to read from the server before terminating the\nlog output. This may not display a complete final line of logging, and may return\nslightly more or slightly less than the specified limit.\n+optional.", + "description": "If set, the number of bytes to read from the server before terminating the\nlog output. This may not display a complete final line of logging, and may return\nslightly more or slightly less than the specified limit.\n+optional", "name": "logOptions.limitBytes", "in": "query" }, { "type": "boolean", - "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\nthe actual log data coming from the real kubelet).\n+optional.", + "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\nthe actual log data coming from the real kubelet).\n+optional", "name": "logOptions.insecureSkipTLSVerifyBackend", "in": "query" }, { "type": "string", - "description": "Specify which container log stream to return to the client.\nAcceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr\nare returned interleaved.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+featureGate=PodLogsQuerySplitStreams\n+optional.", + "description": "Specify which container log stream to return to the client.\nAcceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr\nare returned interleaved.\nNote that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".\n+featureGate=PodLogsQuerySplitStreams\n+optional", "name": "logOptions.stream", "in": "query" }, @@ -4035,7 +4035,7 @@ "title": "Stream result of io.argoproj.workflow.v1alpha1.LogEntry", "properties": { "error": { - "$ref": "#/definitions/grpc.gateway.runtime.StreamError" + "$ref": "#/definitions/google.rpc.Status" }, "result": { "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.LogEntry" @@ -4046,7 +4046,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -4115,7 +4115,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -4159,7 +4159,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -4209,7 +4209,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -4253,7 +4253,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -4303,7 +4303,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -4311,14 +4311,11 @@ } }, "definitions": { - "eventsource.CreateEventSourceRequest": { + "eventsource.CreateEventSourceBody": { "type": "object", "properties": { "eventSource": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" - }, - "namespace": { - "type": "string" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" } } }, @@ -4329,7 +4326,7 @@ "type": "object", "properties": { "object": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" }, "type": { "type": "string" @@ -4365,21 +4362,45 @@ } } }, - "eventsource.UpdateEventSourceRequest": { + "eventsource.UpdateEventSourceBody": { "type": "object", "properties": { "eventSource": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" - }, - "name": { + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" + } + } + }, + "google.protobuf.Any": { + "type": "object", + "properties": { + "type_url": { "type": "string" }, - "namespace": { + "value": { + "type": "string", + "format": "byte" + } + } + }, + "google.rpc.Status": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/google.protobuf.Any" + } + }, + "message": { "type": "string" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPConsumeConfig": { + "io.argoproj.events.v1alpha1.AMQPConsumeConfig": { "type": "object", "title": "AMQPConsumeConfig holds the configuration to immediately starts delivering queued messages\n+k8s:openapi-gen=true", "properties": { @@ -4405,25 +4426,25 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPEventSource": { + "io.argoproj.events.v1alpha1.AMQPEventSource": { "type": "object", "title": "AMQPEventSource refers to an event-source for AMQP stream events", "properties": { "auth": { "title": "Auth hosts secret selectors for username and password\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth" }, "connectionBackoff": { "title": "Backoff holds parameters applied to connection.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "consume": { "title": "Consume holds the configuration to immediately starts delivering queued messages\nFor more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.Consume\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPConsumeConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPConsumeConfig" }, "exchangeDeclare": { "title": "ExchangeDeclare holds the configuration for the exchange on the server\nFor more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.ExchangeDeclare\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPExchangeDeclareConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPExchangeDeclareConfig" }, "exchangeName": { "type": "string", @@ -4435,7 +4456,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -4450,11 +4471,11 @@ }, "queueBind": { "title": "QueueBind holds the configuration that binds an exchange to a queue so that publishings to the\nexchange will be routed to the queue when the publishing routing key matches the binding routing key\nFor more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.QueueBind\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPQueueBindConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPQueueBindConfig" }, "queueDeclare": { "title": "QueueDeclare holds the configuration of a queue to hold messages and deliver to consumers.\nDeclaring creates a queue if it doesn't already exist, or ensures that an existing queue matches\nthe same parameters\nFor more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.QueueDeclare\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPQueueDeclareConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPQueueDeclareConfig" }, "routingKey": { "type": "string", @@ -4462,7 +4483,7 @@ }, "tls": { "title": "TLS configuration for the amqp client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "url": { "type": "string", @@ -4474,7 +4495,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPExchangeDeclareConfig": { + "io.argoproj.events.v1alpha1.AMQPExchangeDeclareConfig": { "type": "object", "title": "AMQPExchangeDeclareConfig holds the configuration for the exchange on the server\n+k8s:openapi-gen=true", "properties": { @@ -4496,7 +4517,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPQueueBindConfig": { + "io.argoproj.events.v1alpha1.AMQPQueueBindConfig": { "type": "object", "title": "AMQPQueueBindConfig holds the configuration that binds an exchange to a queue so that publishings to the\nexchange will be routed to the queue when the publishing routing key matches the binding routing key\n+k8s:openapi-gen=true", "properties": { @@ -4506,7 +4527,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPQueueDeclareConfig": { + "io.argoproj.events.v1alpha1.AMQPQueueDeclareConfig": { "type": "object", "title": "AMQPQueueDeclareConfig holds the configuration of a queue to hold messages and deliver to consumers.\nDeclaring creates a queue if it doesn't already exist, or ensures that an existing queue matches\nthe same parameters\n+k8s:openapi-gen=true", "properties": { @@ -4536,7 +4557,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AWSLambdaTrigger": { + "io.argoproj.events.v1alpha1.AWSLambdaTrigger": { "type": "object", "title": "AWSLambdaTrigger refers to specification of the trigger to invoke an AWS Lambda function", "properties": { @@ -4556,14 +4577,16 @@ "type": "array", "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "region": { @@ -4580,7 +4603,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Amount": { + "io.argoproj.events.v1alpha1.Amount": { "description": "Amount represent a numeric amount.", "type": "object", "properties": { @@ -4590,7 +4613,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArgoWorkflowTrigger": { + "io.argoproj.events.v1alpha1.ArgoWorkflowTrigger": { "type": "object", "title": "ArgoWorkflowTrigger is the trigger for the Argo Workflow", "properties": { @@ -4609,16 +4632,17 @@ "type": "array", "title": "Parameters is the list of parameters to pass to resolved Argo Workflow object", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "source": { "title": "Source of the K8s resource file(s)", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArtifactLocation" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ArtifactLocation" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArtifactLocation": { + "io.argoproj.events.v1alpha1.ArtifactLocation": { "type": "object", "title": "ArtifactLocation describes the source location for an external artifact", "properties": { @@ -4628,11 +4652,11 @@ }, "file": { "title": "File artifact is artifact stored in a file", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.FileArtifact" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.FileArtifact" }, "git": { "title": "Git repository hosting the artifact", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitArtifact" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GitArtifact" }, "inline": { "type": "string", @@ -4640,19 +4664,19 @@ }, "resource": { "title": "Resource is generic template for K8s resource", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.K8SResource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.K8SResource" }, "s3": { "title": "S3 compliant artifact", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Artifact" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.S3Artifact" }, "url": { "title": "URL to fetch the artifact from", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.URLArtifact" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.URLArtifact" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureEventHubsTrigger": { + "io.argoproj.events.v1alpha1.AzureEventHubsTrigger": { "type": "object", "title": "AzureEventHubsTrigger refers to specification of the Azure Event Hubs Trigger", "properties": { @@ -4668,14 +4692,16 @@ "type": "array", "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "sharedAccessKey": { @@ -4688,13 +4714,13 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureEventsHubEventSource": { + "io.argoproj.events.v1alpha1.AzureEventsHubEventSource": { "type": "object", "title": "AzureEventsHubEventSource describes the event source for azure events hub\nMore info at https://docs.microsoft.com/en-us/azure/event-hubs/", "properties": { "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "fqdn": { "type": "string", @@ -4721,7 +4747,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureQueueStorageEventSource": { + "io.argoproj.events.v1alpha1.AzureQueueStorageEventSource": { "type": "object", "title": "AzureQueueStorageEventSource describes the event source for azure queue storage\nmore info at https://learn.microsoft.com/en-us/azure/storage/queues/", "properties": { @@ -4739,7 +4765,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -4766,7 +4792,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureServiceBusEventSource": { + "io.argoproj.events.v1alpha1.AzureServiceBusEventSource": { "type": "object", "title": "AzureServiceBusEventSource describes the event source for azure service bus\nMore info at https://docs.microsoft.com/en-us/azure/service-bus-messaging/", "properties": { @@ -4780,7 +4806,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "fullyQualifiedNamespace": { "type": "string", @@ -4807,7 +4833,7 @@ }, "tls": { "title": "TLS configuration for the service bus client\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "topicName": { "type": "string", @@ -4815,7 +4841,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureServiceBusTrigger": { + "io.argoproj.events.v1alpha1.AzureServiceBusTrigger": { "type": "object", "properties": { "connectionString": { @@ -4826,14 +4852,16 @@ "type": "array", "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "queueName": { @@ -4846,7 +4874,7 @@ }, "tls": { "title": "TLS configuration for the service bus client\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "topicName": { "type": "string", @@ -4854,21 +4882,21 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff": { + "io.argoproj.events.v1alpha1.Backoff": { "type": "object", "title": "Backoff for an operation", "properties": { "duration": { "title": "The initial duration in nanoseconds or strings like \"1s\", \"3m\"\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Int64OrString" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Int64OrString" }, "factor": { "title": "Duration is multiplied by factor each iteration\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Amount" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Amount" }, "jitter": { "title": "The amount of jitter applied each iteration\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Amount" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Amount" }, "steps": { "type": "integer", @@ -4876,7 +4904,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth": { + "io.argoproj.events.v1alpha1.BasicAuth": { "type": "object", "title": "BasicAuth contains the reference to K8s secrets that holds the username and password", "properties": { @@ -4890,13 +4918,13 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketAuth": { + "io.argoproj.events.v1alpha1.BitbucketAuth": { "type": "object", "title": "BitbucketAuth holds the different auth strategies for connecting to Bitbucket", "properties": { "basic": { "title": "Basic is BasicAuth auth strategy.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketBasicAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketBasicAuth" }, "oauthToken": { "title": "OAuthToken refers to the K8s secret that holds the OAuth Bearer token.\n+optional", @@ -4904,7 +4932,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketBasicAuth": { + "io.argoproj.events.v1alpha1.BitbucketBasicAuth": { "type": "object", "title": "BitbucketBasicAuth holds the information required to authenticate user via basic auth mechanism", "properties": { @@ -4918,13 +4946,13 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketEventSource": { + "io.argoproj.events.v1alpha1.BitbucketEventSource": { "type": "object", "title": "BitbucketEventSource describes the event source for Bitbucket", "properties": { "auth": { "description": "Auth information required to connect to Bitbucket.", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketAuth" }, "deleteHookOnFinish": { "type": "boolean", @@ -4939,7 +4967,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "metadata": { "type": "object", @@ -4960,7 +4988,8 @@ "type": "array", "title": "Repositories holds a list of repositories for which integration needs to set up\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketRepository" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketRepository" } }, "repositorySlug": { @@ -4969,11 +4998,11 @@ }, "webhook": { "title": "Webhook refers to the configuration required to run an http server", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketRepository": { + "io.argoproj.events.v1alpha1.BitbucketRepository": { "type": "object", "properties": { "owner": { @@ -4986,7 +5015,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketServerEventSource": { + "io.argoproj.events.v1alpha1.BitbucketServerEventSource": { "type": "object", "title": "BitbucketServerEventSource refers to event-source related to Bitbucket Server events", "properties": { @@ -5015,7 +5044,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "metadata": { "type": "object", @@ -5043,7 +5072,8 @@ "type": "array", "title": "Repositories holds a list of repositories for which integration needs to set up.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketServerRepository" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketServerRepository" } }, "repositorySlug": { @@ -5056,11 +5086,11 @@ }, "tls": { "title": "TLS configuration for the bitbucketserver client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "webhook": { "description": "Webhook holds configuration to run a http server.", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" }, "webhookSecret": { "title": "WebhookSecret is reference to K8s secret which holds the bitbucket webhook secret (for HMAC validation).\n+optional", @@ -5068,7 +5098,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketServerRepository": { + "io.argoproj.events.v1alpha1.BitbucketServerRepository": { "type": "object", "properties": { "projectKey": { @@ -5081,7 +5111,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CalendarEventSource": { + "io.argoproj.events.v1alpha1.CalendarEventSource": { "type": "object", "title": "CalendarEventSource describes a time based dependency. One of the fields (schedule, interval, or recurrence) must be passed.\nSchedule takes precedence over interval; interval takes precedence over recurrence", "properties": { @@ -5094,7 +5124,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "interval": { "type": "string", @@ -5109,7 +5139,7 @@ }, "persistence": { "title": "Persistence hold the configuration for event persistence", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventPersistence" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventPersistence" }, "schedule": { "type": "string", @@ -5121,7 +5151,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CatchupConfiguration": { + "io.argoproj.events.v1alpha1.CatchupConfiguration": { "type": "object", "properties": { "enabled": { @@ -5134,7 +5164,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Condition": { + "io.argoproj.events.v1alpha1.Condition": { "type": "object", "title": "Condition contains details about resource state", "properties": { @@ -5160,7 +5190,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConditionsResetByTime": { + "io.argoproj.events.v1alpha1.ConditionsResetByTime": { "type": "object", "properties": { "cron": { @@ -5173,16 +5203,16 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConditionsResetCriteria": { + "io.argoproj.events.v1alpha1.ConditionsResetCriteria": { "type": "object", "properties": { "byTime": { "title": "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConditionsResetByTime" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ConditionsResetByTime" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConfigMapPersistence": { + "io.argoproj.events.v1alpha1.ConfigMapPersistence": { "type": "object", "properties": { "createIfNotExist": { @@ -5195,7 +5225,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Container": { + "io.argoproj.events.v1alpha1.Container": { "type": "object", "title": "Container defines customized spec for a container", "properties": { @@ -5203,6 +5233,7 @@ "type": "array", "title": "+optional", "items": { + "type": "object", "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" } }, @@ -5210,6 +5241,7 @@ "type": "array", "title": "+optional", "items": { + "type": "object", "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" } }, @@ -5229,12 +5261,13 @@ "type": "array", "title": "+optional", "items": { + "type": "object", "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" } } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CustomTrigger": { + "io.argoproj.events.v1alpha1.CustomTrigger": { "description": "CustomTrigger refers to the specification of the custom trigger.", "type": "object", "properties": { @@ -5246,14 +5279,16 @@ "description": "Parameters is the list of parameters that is applied to resolved custom trigger trigger object.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "secure": { @@ -5277,7 +5312,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.DataFilter": { + "io.argoproj.events.v1alpha1.DataFilter": { "description": "DataFilter describes constraints and filters for event data.", "type": "object", "properties": { @@ -5306,7 +5341,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EmailTrigger": { + "io.argoproj.events.v1alpha1.EmailTrigger": { "description": "EmailTrigger refers to the specification of the email notification trigger.", "type": "object", "properties": { @@ -5326,7 +5361,8 @@ "type": "array", "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "port": { @@ -5354,7 +5390,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EmitterEventSource": { + "io.argoproj.events.v1alpha1.EmitterEventSource": { "type": "object", "title": "EmitterEventSource describes the event source for emitter\nMore info at https://emitter.io/develop/getting-started/", "properties": { @@ -5372,11 +5408,11 @@ }, "connectionBackoff": { "title": "Backoff holds parameters applied to connection.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -5395,7 +5431,7 @@ }, "tls": { "title": "TLS configuration for the emitter client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "username": { "title": "Username to use to connect to broker\n+optional", @@ -5403,7 +5439,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventContext": { + "io.argoproj.events.v1alpha1.EventContext": { "type": "object", "title": "EventContext holds the context of the cloudevent received from an event source.\n+protobuf.options.(gogoproto.goproto_stringer)=false", "properties": { @@ -5437,7 +5473,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependency": { + "io.argoproj.events.v1alpha1.EventDependency": { "type": "object", "title": "EventDependency describes a dependency", "properties": { @@ -5451,7 +5487,7 @@ }, "filters": { "title": "Filters and rules governing toleration of success and constraints on the context and data of an event", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependencyFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventDependencyFilter" }, "filtersLogicalOperator": { "description": "FiltersLogicalOperator defines how different filters are evaluated together.\nAvailable values: and (\u0026\u0026), or (||)\nIs optional and if left blank treated as and (\u0026\u0026).", @@ -5463,23 +5499,24 @@ }, "transform": { "title": "Transform transforms the event data", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependencyTransformer" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventDependencyTransformer" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependencyFilter": { + "io.argoproj.events.v1alpha1.EventDependencyFilter": { "description": "EventDependencyFilter defines filters and constraints for a io.argoproj.workflow.v1alpha1.", "type": "object", "properties": { "context": { "title": "Context filter constraints", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventContext" }, "data": { "type": "array", "title": "Data filter constraints with escalation", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.DataFilter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.DataFilter" } }, "dataLogicalOperator": { @@ -5494,7 +5531,8 @@ "description": "Exprs contains the list of expressions evaluated against the event payload.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ExprFilter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ExprFilter" } }, "script": { @@ -5503,11 +5541,11 @@ }, "time": { "title": "Time filter on the event with escalation", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TimeFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TimeFilter" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependencyTransformer": { + "io.argoproj.events.v1alpha1.EventDependencyTransformer": { "type": "object", "title": "EventDependencyTransformer transforms the event", "properties": { @@ -5521,20 +5559,20 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventPersistence": { + "io.argoproj.events.v1alpha1.EventPersistence": { "type": "object", "properties": { "catchup": { "title": "Catchup enables to triggered the missed schedule when eventsource restarts", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CatchupConfiguration" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.CatchupConfiguration" }, "configMap": { "title": "ConfigMap holds configmap details for persistence", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConfigMapPersistence" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ConfigMapPersistence" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource": { + "io.argoproj.events.v1alpha1.EventSource": { "type": "object", "title": "EventSource is the definition of a eventsource resource\n+genclient\n+kubebuilder:resource:shortName=es\n+kubebuilder:subresource:status\n+k8s:deepcopy-gen:interfaces=io.k8s.apimachinery/pkg/runtime.Object\n+k8s:openapi-gen=true", "properties": { @@ -5542,15 +5580,15 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" }, "spec": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceSpec" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceSpec" }, "status": { "title": "+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceStatus" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceStatus" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter": { + "io.argoproj.events.v1alpha1.EventSourceFilter": { "type": "object", "properties": { "expression": { @@ -5558,14 +5596,15 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceList": { + "io.argoproj.events.v1alpha1.EventSourceList": { "type": "object", "title": "EventSourceList is the list of eventsource resources\n+k8s:deepcopy-gen:interfaces=io.k8s.apimachinery/pkg/runtime.Object", "properties": { "items": { "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSource" } }, "metadata": { @@ -5573,7 +5612,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceSpec": { + "io.argoproj.events.v1alpha1.EventSourceSpec": { "type": "object", "title": "EventSourceSpec refers to specification of event-source resource", "properties": { @@ -5581,56 +5620,56 @@ "type": "object", "title": "AMQP event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AMQPEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AMQPEventSource" } }, "azureEventsHub": { "type": "object", "title": "AzureEventsHub event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureEventsHubEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureEventsHubEventSource" } }, "azureQueueStorage": { "type": "object", "title": "AzureQueueStorage event source", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureQueueStorageEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureQueueStorageEventSource" } }, "azureServiceBus": { "type": "object", "title": "Azure Service Bus event source", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureServiceBusEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureServiceBusEventSource" } }, "bitbucket": { "type": "object", "title": "Bitbucket event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketEventSource" } }, "bitbucketserver": { "type": "object", "title": "Bitbucket Server event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BitbucketServerEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BitbucketServerEventSource" } }, "calendar": { "type": "object", "title": "Calendar event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CalendarEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.CalendarEventSource" } }, "emitter": { "type": "object", "title": "Emitter event source", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EmitterEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EmitterEventSource" } }, "eventBusName": { @@ -5641,112 +5680,112 @@ "type": "object", "title": "File event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.FileEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.FileEventSource" } }, "generic": { "type": "object", "title": "Generic event source", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GenericEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GenericEventSource" } }, "gerrit": { "type": "object", "title": "Gerrit event source", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GerritEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GerritEventSource" } }, "github": { "type": "object", "title": "Github event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GithubEventSource" } }, "gitlab": { "type": "object", "title": "Gitlab event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitlabEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GitlabEventSource" } }, "hdfs": { "type": "object", "title": "HDFS event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.HDFSEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.HDFSEventSource" } }, "kafka": { "type": "object", "title": "Kafka event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.KafkaEventSource" } }, "minio": { "type": "object", "title": "Minio event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Artifact" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.S3Artifact" } }, "mns": { "type": "object", "title": "MNS event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.MNSEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.MNSEventSource" } }, "mqtt": { "type": "object", "title": "MQTT event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.MQTTEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.MQTTEventSource" } }, "nats": { "type": "object", "title": "NATS event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSEventsSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NATSEventsSource" } }, "nsq": { "type": "object", "title": "NSQ event source", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NSQEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NSQEventSource" } }, "pubSub": { "type": "object", "title": "PubSub event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PubSubEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.PubSubEventSource" } }, "pulsar": { "type": "object", "title": "Pulsar event source", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PulsarEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.PulsarEventSource" } }, "redis": { "type": "object", "title": "Redis event source", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RedisEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.RedisEventSource" } }, "redisStream": { "type": "object", "title": "Redis stream source", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RedisStreamEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.RedisStreamEventSource" } }, "replicas": { @@ -5757,78 +5796,78 @@ "type": "object", "title": "Resource event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ResourceEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ResourceEventSource" } }, "service": { "title": "Service is the specifications of the service to expose the event source\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Service" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Service" }, "sftp": { "type": "object", "title": "SFTP event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SFTPEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SFTPEventSource" } }, "slack": { "type": "object", "title": "Slack event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SlackEventSource" } }, "sns": { "type": "object", "title": "SNS event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SNSEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SNSEventSource" } }, "sqs": { "type": "object", "title": "SQS event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SQSEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SQSEventSource" } }, "storageGrid": { "type": "object", "title": "StorageGrid event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StorageGridEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StorageGridEventSource" } }, "stripe": { "type": "object", "title": "Stripe event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StripeEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StripeEventSource" } }, "template": { "title": "Template is the pod specification for the event source\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Template" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Template" }, "webhook": { "type": "object", "title": "Webhook event sources", "additionalProperties": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookEventSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookEventSource" } } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceStatus": { + "io.argoproj.events.v1alpha1.EventSourceStatus": { "type": "object", "title": "EventSourceStatus holds the status of the event-source resource", "properties": { "status": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Status" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Status" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ExprFilter": { + "io.argoproj.events.v1alpha1.ExprFilter": { "type": "object", "properties": { "expr": { @@ -5839,12 +5878,13 @@ "description": "Fields refers to set of keys that refer to the paths within event payload.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PayloadField" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.PayloadField" } } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.FileArtifact": { + "io.argoproj.events.v1alpha1.FileArtifact": { "type": "object", "title": "FileArtifact contains information about an artifact in a filesystem", "properties": { @@ -5853,7 +5893,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.FileEventSource": { + "io.argoproj.events.v1alpha1.FileEventSource": { "description": "FileEventSource describes an event-source for file related events.", "type": "object", "properties": { @@ -5863,7 +5903,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "metadata": { "type": "object", @@ -5878,11 +5918,11 @@ }, "watchPathConfig": { "title": "WatchPathConfig contains configuration about the file path to watch", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WatchPathConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WatchPathConfig" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GenericEventSource": { + "io.argoproj.events.v1alpha1.GenericEventSource": { "description": "GenericEventSource refers to a generic event source. It can be used to implement a custom event source.", "type": "object", "properties": { @@ -5896,7 +5936,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "insecure": { "description": "Insecure determines the type of connection.", @@ -5919,13 +5959,13 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GerritEventSource": { + "io.argoproj.events.v1alpha1.GerritEventSource": { "type": "object", "title": "GerritEventSource refers to event-source related to gerrit events", "properties": { "auth": { "title": "Auth hosts secret selectors for username and password\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth" }, "deleteHookOnFinish": { "type": "boolean", @@ -5940,7 +5980,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "gerritBaseURL": { "type": "string", @@ -5974,11 +6014,11 @@ }, "webhook": { "title": "Webhook holds configuration to run a http server", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitArtifact": { + "io.argoproj.events.v1alpha1.GitArtifact": { "type": "object", "title": "GitArtifact contains information about an artifact stored in git", "properties": { @@ -5992,7 +6032,7 @@ }, "creds": { "title": "Creds contain reference to git username and password\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitCreds" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GitCreds" }, "filePath": { "type": "string", @@ -6008,7 +6048,7 @@ }, "remote": { "title": "Remote to manage set of tracked repositories. Defaults to \"origin\".\nRefer https://git-scm.com/docs/git-remote\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitRemoteConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GitRemoteConfig" }, "sshKeySecret": { "title": "SSHKeySecret refers to the secret that contains SSH key", @@ -6024,7 +6064,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitCreds": { + "io.argoproj.events.v1alpha1.GitCreds": { "type": "object", "title": "GitCreds contain reference to git username and password", "properties": { @@ -6036,7 +6076,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitRemoteConfig": { + "io.argoproj.events.v1alpha1.GitRemoteConfig": { "type": "object", "title": "GitRemoteConfig contains the configuration of a Git remote", "properties": { @@ -6053,7 +6093,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubAppCreds": { + "io.argoproj.events.v1alpha1.GithubAppCreds": { "type": "object", "properties": { "appID": { @@ -6070,7 +6110,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubEventSource": { + "io.argoproj.events.v1alpha1.GithubEventSource": { "type": "object", "title": "GithubEventSource refers to event-source for github related events", "properties": { @@ -6099,11 +6139,11 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "githubApp": { "title": "GitHubApp holds the GitHub app credentials\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubAppCreds" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.GithubAppCreds" }, "githubBaseURL": { "type": "string", @@ -6143,7 +6183,8 @@ "description": "Repositories holds the information of repositories, which uses repo owner as the key,\nand list of repo names as the value. Not required if Organizations is set.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.OwnedRepositories" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.OwnedRepositories" } }, "repository": { @@ -6152,7 +6193,7 @@ }, "webhook": { "title": "Webhook refers to the configuration required to run a http server", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" }, "webhookSecret": { "title": "WebhookSecret refers to K8s secret containing GitHub webhook secret\nhttps://developer.github.com/webhooks/securing/\n+optional", @@ -6160,7 +6201,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GitlabEventSource": { + "io.argoproj.events.v1alpha1.GitlabEventSource": { "type": "object", "title": "GitlabEventSource refers to event-source related to Gitlab events", "properties": { @@ -6185,7 +6226,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "gitlabBaseURL": { "type": "string", @@ -6222,11 +6263,11 @@ }, "webhook": { "title": "Webhook holds configuration to run a http server", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.HDFSEventSource": { + "io.argoproj.events.v1alpha1.HDFSEventSource": { "type": "object", "title": "HDFSEventSource refers to event-source for HDFS related events", "properties": { @@ -6242,7 +6283,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "hdfsUser": { "description": "HDFSUser is the user to access HDFS file system.\nIt is ignored if either ccache or keytab is used.", @@ -6284,23 +6325,24 @@ "title": "Type of file operations to watch" }, "watchPathConfig": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WatchPathConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WatchPathConfig" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.HTTPTrigger": { + "io.argoproj.events.v1alpha1.HTTPTrigger": { "type": "object", "title": "HTTPTrigger is the trigger for the HTTP request", "properties": { "basicAuth": { "title": "BasicAuth configuration for the http request.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth" }, "dynamicHeaders": { "type": "array", "title": "Dynamic Headers for the request, sourced from the io.argoproj.workflow.v1alpha1. Same spec as Parameters.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "headers": { @@ -6322,20 +6364,23 @@ "description": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe HTTP trigger resource.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "payload": { "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "secureHeaders": { "type": "array", "title": "Secure Headers stored in Kubernetes Secrets for the HTTP requests.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SecureHeader" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SecureHeader" } }, "timeout": { @@ -6344,7 +6389,7 @@ }, "tls": { "title": "TLS configuration for the HTTP client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "url": { "description": "URL refers to the URL to send HTTP request to.", @@ -6352,7 +6397,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Int64OrString": { + "io.argoproj.events.v1alpha1.Int64OrString": { "type": "object", "properties": { "int64Val": { @@ -6366,7 +6411,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.K8SResource": { + "io.argoproj.events.v1alpha1.K8SResource": { "description": "K8SResource represent arbitrary structured data.", "type": "object", "properties": { @@ -6376,13 +6421,13 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.K8SResourcePolicy": { + "io.argoproj.events.v1alpha1.K8SResourcePolicy": { "type": "object", "title": "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using labels", "properties": { "backoff": { "title": "Backoff before checking resource state", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "errorOnBackoffTimeout": { "type": "boolean", @@ -6397,7 +6442,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaConsumerGroup": { + "io.argoproj.events.v1alpha1.KafkaConsumerGroup": { "type": "object", "properties": { "groupName": { @@ -6414,7 +6459,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaEventSource": { + "io.argoproj.events.v1alpha1.KafkaEventSource": { "type": "object", "title": "KafkaEventSource refers to event-source for Kafka related events", "properties": { @@ -6424,15 +6469,15 @@ }, "connectionBackoff": { "description": "Backoff holds parameters applied to connection.", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "consumerGroup": { "title": "Consumer group for kafka client\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaConsumerGroup" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.KafkaConsumerGroup" }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -6455,15 +6500,15 @@ }, "sasl": { "title": "SASL configuration for the kafka client\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SASLConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SASLConfig" }, "schemaRegistry": { "title": "Schema Registry configuration for consumer message with Avro format\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SchemaRegistryConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SchemaRegistryConfig" }, "tls": { "title": "TLS configuration for the kafka client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "topic": { "type": "string", @@ -6479,7 +6524,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaTrigger": { + "io.argoproj.events.v1alpha1.KafkaTrigger": { "description": "KafkaTrigger refers to the specification of the Kafka trigger.", "type": "object", "properties": { @@ -6502,7 +6547,8 @@ "description": "Parameters is the list of parameters that is applied to resolved Kafka trigger object.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "partition": { @@ -6517,7 +6563,8 @@ "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "requiredAcks": { @@ -6526,22 +6573,23 @@ }, "sasl": { "title": "SASL configuration for the kafka client\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SASLConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SASLConfig" }, "schemaRegistry": { "title": "Schema Registry configuration to producer message with avro format\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SchemaRegistryConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SchemaRegistryConfig" }, "secureHeaders": { "type": "array", "title": "Secure Headers stored in Kubernetes Secrets for the Kafka messages.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SecureHeader" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SecureHeader" } }, "tls": { "title": "TLS configuration for the Kafka producer.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "topic": { "type": "string", @@ -6557,7 +6605,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.LogTrigger": { + "io.argoproj.events.v1alpha1.LogTrigger": { "type": "object", "properties": { "intervalSeconds": { @@ -6567,7 +6615,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.MNSEventSource": { + "io.argoproj.events.v1alpha1.MNSEventSource": { "type": "object", "title": "MNSEventSource refers to event-source for AlibabaCloud MNS related events", "properties": { @@ -6581,7 +6629,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -6597,13 +6645,13 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.MQTTEventSource": { + "io.argoproj.events.v1alpha1.MQTTEventSource": { "type": "object", "title": "MQTTEventSource refers to event-source for MQTT related events", "properties": { "auth": { "title": "Auth hosts secret selectors for username and password\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth" }, "clientId": { "type": "string", @@ -6611,11 +6659,11 @@ }, "connectionBackoff": { "description": "ConnectionBackoff holds backoff applied to connection.", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -6630,7 +6678,7 @@ }, "tls": { "title": "TLS configuration for the mqtt client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "topic": { "type": "string", @@ -6642,7 +6690,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Metadata": { + "io.argoproj.events.v1alpha1.Metadata": { "type": "object", "title": "Metadata holds the annotations and labels of an event source pod", "properties": { @@ -6660,13 +6708,13 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSAuth": { + "io.argoproj.events.v1alpha1.NATSAuth": { "type": "object", "title": "NATSAuth refers to the auth info for NATS EventSource", "properties": { "basic": { "title": "Baisc auth with username and password\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth" }, "credential": { "title": "credential used to connect\n+optional", @@ -6682,21 +6730,21 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSEventsSource": { + "io.argoproj.events.v1alpha1.NATSEventsSource": { "type": "object", "title": "NATSEventsSource refers to event-source for NATS related events", "properties": { "auth": { "title": "Auth information\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NATSAuth" }, "connectionBackoff": { "description": "ConnectionBackoff holds backoff applied to connection.", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -6719,7 +6767,7 @@ }, "tls": { "title": "TLS configuration for the nats client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "url": { "type": "string", @@ -6727,24 +6775,26 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSTrigger": { + "io.argoproj.events.v1alpha1.NATSTrigger": { "description": "NATSTrigger refers to the specification of the NATS trigger.", "type": "object", "properties": { "auth": { "title": "AuthInformation\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NATSAuth" }, "parameters": { "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "payload": { "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "subject": { @@ -6753,7 +6803,7 @@ }, "tls": { "title": "TLS configuration for the NATS producer.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "url": { "description": "URL of the NATS cluster.", @@ -6761,7 +6811,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NSQEventSource": { + "io.argoproj.events.v1alpha1.NSQEventSource": { "type": "object", "title": "NSQEventSource describes the event source for NSQ PubSub\nMore info at https://godoc.org/github.com/nsqio/go-nsq", "properties": { @@ -6771,11 +6821,11 @@ }, "connectionBackoff": { "title": "Backoff holds parameters applied to connection.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "hostAddress": { "type": "string", @@ -6794,7 +6844,7 @@ }, "tls": { "title": "TLS configuration for the nsq client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "topic": { "description": "Topic to subscribe to.", @@ -6802,7 +6852,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.OpenWhiskTrigger": { + "io.argoproj.events.v1alpha1.OpenWhiskTrigger": { "description": "OpenWhiskTrigger refers to the specification of the OpenWhisk trigger.", "type": "object", "properties": { @@ -6826,14 +6876,16 @@ "type": "array", "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "version": { @@ -6842,7 +6894,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.OwnedRepositories": { + "io.argoproj.events.v1alpha1.OwnedRepositories": { "type": "object", "properties": { "names": { @@ -6858,7 +6910,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PayloadField": { + "io.argoproj.events.v1alpha1.PayloadField": { "description": "PayloadField binds a value at path within the event payload against a name.", "type": "object", "properties": { @@ -6872,7 +6924,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PubSubEventSource": { + "io.argoproj.events.v1alpha1.PubSubEventSource": { "description": "PubSubEventSource refers to event-source for GCP PubSub related events.", "type": "object", "properties": { @@ -6886,7 +6938,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -6917,7 +6969,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PulsarEventSource": { + "io.argoproj.events.v1alpha1.PulsarEventSource": { "type": "object", "title": "PulsarEventSource describes the event source for Apache Pulsar", "properties": { @@ -6938,11 +6990,11 @@ }, "connectionBackoff": { "title": "Backoff holds parameters applied to connection.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -6957,7 +7009,7 @@ }, "tls": { "title": "TLS configuration for the pulsar client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "tlsAllowInsecureConnection": { "type": "boolean", @@ -6988,7 +7040,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PulsarTrigger": { + "io.argoproj.events.v1alpha1.PulsarTrigger": { "description": "PulsarTrigger refers to the specification of the Pulsar trigger.", "type": "object", "properties": { @@ -7009,25 +7061,27 @@ }, "connectionBackoff": { "title": "Backoff holds parameters applied to connection.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "parameters": { "description": "Parameters is the list of parameters that is applied to resolved Kafka trigger object.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "payload": { "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "tls": { "title": "TLS configuration for the pulsar client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "tlsAllowInsecureConnection": { "type": "boolean", @@ -7051,7 +7105,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RateLimit": { + "io.argoproj.events.v1alpha1.RateLimit": { "type": "object", "properties": { "requestsPerUnit": { @@ -7063,7 +7117,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RedisEventSource": { + "io.argoproj.events.v1alpha1.RedisEventSource": { "type": "object", "title": "RedisEventSource describes an event source for the Redis PubSub.\nMore info at https://godoc.org/github.com/go-redis/redis#example-PubSub", "properties": { @@ -7079,7 +7133,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "hostAddress": { "type": "string", @@ -7106,7 +7160,7 @@ }, "tls": { "title": "TLS configuration for the redis client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "username": { "type": "string", @@ -7114,7 +7168,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RedisStreamEventSource": { + "io.argoproj.events.v1alpha1.RedisStreamEventSource": { "type": "object", "title": "RedisStreamEventSource describes an event source for\nRedis streams (https://redis.io/topics/streams-intro)", "properties": { @@ -7128,7 +7182,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "hostAddress": { "type": "string", @@ -7158,7 +7212,7 @@ }, "tls": { "title": "TLS configuration for the redis client.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "username": { "type": "string", @@ -7166,7 +7220,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ResourceEventSource": { + "io.argoproj.events.v1alpha1.ResourceEventSource": { "description": "ResourceEventSource refers to a event-source for K8s resource related events.", "type": "object", "properties": { @@ -7179,7 +7233,7 @@ }, "filter": { "title": "Filter is applied on the metadata of the resource\nIf you apply filter, then the internal event informer will only monitor objects that pass the filter.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ResourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ResourceFilter" }, "groupVersionResource": { "title": "Group of the resource", @@ -7198,7 +7252,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ResourceFilter": { + "io.argoproj.events.v1alpha1.ResourceFilter": { "type": "object", "title": "ResourceFilter contains K8s ObjectMeta information to further filter resource event objects", "properties": { @@ -7214,14 +7268,16 @@ "type": "array", "title": "Fields provide field filters similar to K8s field selector\n(see https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/).\nUnlike K8s field selector, it supports arbitrary fileds like \"spec.serviceAccountName\",\nand the value could be a string or a regex.\nSame as K8s field selector, operator \"=\", \"==\" and \"!=\" are supported.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Selector" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Selector" } }, "labels": { "type": "array", "title": "Labels provide listing options to K8s API to watch resource/s.\nRefer https://kubernetes.io/docs/concepts/overview/working-with-objects/label-selectors/ for more io.argoproj.workflow.v1alpha1.\nUnlike K8s field selector, multiple values are passed as comma separated values instead of list of values.\nEg: value: value1,value2.\nSame as K8s label selector, operator \"=\", \"==\", \"!=\", \"exists\", \"!\", \"notin\", \"in\", \"gt\" and \"lt\"\nare supported\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Selector" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Selector" } }, "prefix": { @@ -7230,7 +7286,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Artifact": { + "io.argoproj.events.v1alpha1.S3Artifact": { "type": "object", "title": "S3Artifact contains information about an S3 connection and bucket", "properties": { @@ -7238,7 +7294,7 @@ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" }, "bucket": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Bucket" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.S3Bucket" }, "caCertificate": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" @@ -7253,7 +7309,7 @@ } }, "filter": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Filter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.S3Filter" }, "insecure": { "type": "boolean" @@ -7272,7 +7328,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Bucket": { + "io.argoproj.events.v1alpha1.S3Bucket": { "type": "object", "title": "S3Bucket contains information to describe an S3 Bucket", "properties": { @@ -7284,7 +7340,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.S3Filter": { + "io.argoproj.events.v1alpha1.S3Filter": { "type": "object", "title": "S3Filter represents filters to apply to bucket notifications for specifying constraints on objects", "properties": { @@ -7296,7 +7352,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SASLConfig": { + "io.argoproj.events.v1alpha1.SASLConfig": { "type": "object", "title": "SASLConfig refers to SASL configuration for a client", "properties": { @@ -7314,7 +7370,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SFTPEventSource": { + "io.argoproj.events.v1alpha1.SFTPEventSource": { "description": "SFTPEventSource describes an event-source for sftp related events.", "type": "object", "properties": { @@ -7328,7 +7384,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "metadata": { "type": "object", @@ -7355,11 +7411,11 @@ }, "watchPathConfig": { "title": "WatchPathConfig contains configuration about the file path to watch", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WatchPathConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WatchPathConfig" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SNSEventSource": { + "io.argoproj.events.v1alpha1.SNSEventSource": { "type": "object", "title": "SNSEventSource refers to event-source for AWS SNS related events", "properties": { @@ -7373,7 +7429,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "metadata": { "type": "object", @@ -7404,11 +7460,11 @@ }, "webhook": { "title": "Webhook configuration for http server", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SQSEventSource": { + "io.argoproj.events.v1alpha1.SQSEventSource": { "type": "object", "title": "SQSEventSource refers to event-source for AWS SQS related events", "properties": { @@ -7426,7 +7482,7 @@ }, "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "jsonBody": { "type": "boolean", @@ -7469,13 +7525,13 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SchemaRegistryConfig": { + "io.argoproj.events.v1alpha1.SchemaRegistryConfig": { "type": "object", "title": "SchemaRegistryConfig refers to configuration for a client", "properties": { "auth": { "title": "SchemaRegistry - basic authentication\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.BasicAuth" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.BasicAuth" }, "schemaId": { "type": "integer", @@ -7487,7 +7543,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SecureHeader": { + "io.argoproj.events.v1alpha1.SecureHeader": { "type": "object", "title": "SecureHeader refers to HTTP Headers with auth tokens as values", "properties": { @@ -7496,11 +7552,11 @@ }, "valueFrom": { "title": "Values can be read from either secrets or configmaps", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ValueFromSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ValueFromSource" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Selector": { + "io.argoproj.events.v1alpha1.Selector": { "description": "Selector represents conditional operation to select K8s objects.", "type": "object", "properties": { @@ -7518,7 +7574,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor": { + "io.argoproj.events.v1alpha1.Sensor": { "type": "object", "title": "Sensor is the definition of a sensor resource\n+genclient\n+genclient:noStatus\n+kubebuilder:resource:shortName=sn\n+kubebuilder:subresource:status\n+k8s:deepcopy-gen:interfaces=io.k8s.apimachinery/pkg/runtime.Object\n+k8s:openapi-gen=true", "properties": { @@ -7526,22 +7582,23 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" }, "spec": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorSpec" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SensorSpec" }, "status": { "title": "+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorStatus" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SensorStatus" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorList": { + "io.argoproj.events.v1alpha1.SensorList": { "type": "object", "title": "SensorList is the list of Sensor resources\n+k8s:deepcopy-gen:interfaces=io.k8s.apimachinery/pkg/runtime.Object", "properties": { "items": { "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" } }, "metadata": { @@ -7549,7 +7606,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorSpec": { + "io.argoproj.events.v1alpha1.SensorSpec": { "type": "object", "title": "SensorSpec represents desired sensor state", "properties": { @@ -7557,7 +7614,8 @@ "description": "Dependencies is a list of the events that this sensor is dependent on.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventDependency" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventDependency" } }, "errorOnFailedRound": { @@ -7585,27 +7643,28 @@ }, "template": { "title": "Template is the pod specification for the sensor\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Template" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Template" }, "triggers": { "description": "Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Trigger" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Trigger" } } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorStatus": { + "io.argoproj.events.v1alpha1.SensorStatus": { "description": "SensorStatus contains information about the status of a sensor.", "type": "object", "properties": { "status": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Status" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Status" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Service": { + "io.argoproj.events.v1alpha1.Service": { "type": "object", "title": "Service holds the service information eventsource exposes", "properties": { @@ -7615,24 +7674,25 @@ }, "metadata": { "title": "Metadata sets the pods's metadata, i.e. annotations and labels\ndefault={annotations: {}, labels: {}}", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Metadata" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Metadata" }, "ports": { "type": "array", "title": "The list of ports that are exposed by this ClusterIP service.\n+patchMergeKey=port\n+patchStrategy=merge\n+listType=map\n+listMapKey=port\n+listMapKey=protocol", "items": { + "type": "object", "$ref": "#/definitions/io.k8s.api.core.v1.ServicePort" } } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackEventSource": { + "io.argoproj.events.v1alpha1.SlackEventSource": { "type": "object", "title": "SlackEventSource refers to event-source for Slack related events", "properties": { "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "metadata": { "type": "object", @@ -7651,11 +7711,11 @@ }, "webhook": { "title": "Webhook holds configuration for a REST endpoint", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackSender": { + "io.argoproj.events.v1alpha1.SlackSender": { "type": "object", "properties": { "icon": { @@ -7668,7 +7728,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackThread": { + "io.argoproj.events.v1alpha1.SlackThread": { "type": "object", "properties": { "broadcastMessageToChannel": { @@ -7681,7 +7741,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackTrigger": { + "io.argoproj.events.v1alpha1.SlackTrigger": { "description": "SlackTrigger refers to the specification of the slack notification trigger.", "type": "object", "properties": { @@ -7705,12 +7765,13 @@ "type": "array", "title": "Parameters is the list of key-value extracted from event's payload that are applied to\nthe trigger resource.\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "sender": { "title": "Sender refers to additional configuration of the Slack application that sends the message.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackSender" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SlackSender" }, "slackToken": { "description": "SlackToken refers to the Kubernetes secret that holds the slack token required to send messages.", @@ -7718,11 +7779,11 @@ }, "thread": { "title": "Thread refers to additional options for sending messages to a Slack thread.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackThread" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SlackThread" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StandardK8STrigger": { + "io.argoproj.events.v1alpha1.StandardK8STrigger": { "type": "object", "title": "StandardK8STrigger is the standard Kubernetes resource trigger", "properties": { @@ -7738,7 +7799,8 @@ "description": "Parameters is the list of parameters that is applied to resolved K8s trigger object.", "type": "array", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "patchStrategy": { @@ -7747,11 +7809,11 @@ }, "source": { "title": "Source of the K8s resource file(s)", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArtifactLocation" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ArtifactLocation" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Status": { + "io.argoproj.events.v1alpha1.Status": { "description": "Status is a common structure which can be used for Status field.", "type": "object", "properties": { @@ -7759,12 +7821,13 @@ "type": "array", "title": "Conditions are the latest available observations of a resource's current state.\n+optional\n+patchMergeKey=type\n+patchStrategy=merge", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Condition" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Condition" } } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StatusPolicy": { + "io.argoproj.events.v1alpha1.StatusPolicy": { "type": "object", "title": "StatusPolicy refers to the policy used to check the state of the trigger using response status", "properties": { @@ -7777,7 +7840,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StorageGridEventSource": { + "io.argoproj.events.v1alpha1.StorageGridEventSource": { "type": "object", "title": "StorageGridEventSource refers to event-source for StorageGrid related events", "properties": { @@ -7801,7 +7864,7 @@ }, "filter": { "description": "Filter on object key which caused the notification.", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StorageGridFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StorageGridFilter" }, "metadata": { "type": "object", @@ -7816,7 +7879,7 @@ }, "tls": { "title": "TLS configuration for the service bus client\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TLSConfig" }, "topicArn": { "type": "string", @@ -7824,11 +7887,11 @@ }, "webhook": { "title": "Webhook holds configuration for a REST endpoint", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StorageGridFilter": { + "io.argoproj.events.v1alpha1.StorageGridFilter": { "type": "object", "title": "StorageGridFilter represents filters to apply to bucket notifications for specifying constraints on objects\n+k8s:openapi-gen=true", "properties": { @@ -7840,7 +7903,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StripeEventSource": { + "io.argoproj.events.v1alpha1.StripeEventSource": { "type": "object", "title": "StripeEventSource describes the event source for stripe webhook notifications\nMore info at https://stripe.com/docs/webhooks", "properties": { @@ -7868,11 +7931,11 @@ }, "webhook": { "title": "Webhook holds configuration for a REST endpoint", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TLSConfig": { + "io.argoproj.events.v1alpha1.TLSConfig": { "description": "TLSConfig refers to TLS configuration for a client.", "type": "object", "properties": { @@ -7898,7 +7961,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Template": { + "io.argoproj.events.v1alpha1.Template": { "type": "object", "title": "Template holds the information of a deployment template", "properties": { @@ -7908,18 +7971,19 @@ }, "container": { "title": "Container is the main container image to run in the sensor pod\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Container" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Container" }, "imagePullSecrets": { "type": "array", "title": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.\nIf specified, these secrets will be passed to individual puller implementations for them to use. For example,\nin the case of docker, only DockerConfig type secrets are honored.\nMore info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod\n+optional\n+patchMergeKey=name\n+patchStrategy=merge", "items": { + "type": "object", "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" } }, "metadata": { "title": "Metadata sets the pods's metadata, i.e. annotations and labels", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Metadata" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Metadata" }, "nodeSelector": { "type": "object", @@ -7948,6 +8012,7 @@ "type": "array", "title": "If specified, the pod's tolerations.\n+optional", "items": { + "type": "object", "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" } }, @@ -7955,12 +8020,13 @@ "type": "array", "title": "Volumes is a list of volumes that can be mounted by containers in a io.argoproj.workflow.v1alpha1.\n+patchStrategy=merge\n+patchMergeKey=name\n+optional", "items": { + "type": "object", "$ref": "#/definitions/io.k8s.api.core.v1.Volume" } } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TimeFilter": { + "io.argoproj.events.v1alpha1.TimeFilter": { "description": "TimeFilter describes a window in time.\nIt filters out events that occur outside the time limits.\nIn other words, only events that occur after Start and before Stop\nwill pass this filter.", "type": "object", "properties": { @@ -7978,7 +8044,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Trigger": { + "io.argoproj.events.v1alpha1.Trigger": { "type": "object", "title": "Trigger is an action taken, output produced, an event created, a message sent", "properties": { @@ -7988,34 +8054,35 @@ }, "dlqTrigger": { "title": "If the trigger fails, it will retry up to the configured number of\nretries. If the maximum retries are reached and the trigger is set to\nexecute atLeastOnce, the dead letter queue (DLQ) trigger will be invoked if\nspecified. Invoking the dead letter queue trigger helps prevent data\nloss.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Trigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Trigger" }, "parameters": { "type": "array", "title": "Parameters is the list of parameters applied to the trigger template definition", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameter" } }, "policy": { "title": "Policy to configure backoff and execution criteria for the trigger\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerPolicy" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerPolicy" }, "rateLimit": { "title": "Rate limit, default unit is Second\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.RateLimit" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.RateLimit" }, "retryStrategy": { "title": "Retry strategy, defaults to no retry\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Backoff" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Backoff" }, "template": { "description": "Template describes the trigger specification.", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerTemplate" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerTemplate" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameter": { + "io.argoproj.events.v1alpha1.TriggerParameter": { "type": "object", "title": "TriggerParameter indicates a passed parameter to a service template", "properties": { @@ -8029,11 +8096,11 @@ }, "src": { "title": "Src contains a source reference to the value of the parameter from a dependency", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameterSource" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.TriggerParameterSource" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerParameterSource": { + "io.argoproj.events.v1alpha1.TriggerParameterSource": { "type": "object", "title": "TriggerParameterSource defines the source for a parameter from a event event", "properties": { @@ -8067,39 +8134,39 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerPolicy": { + "io.argoproj.events.v1alpha1.TriggerPolicy": { "type": "object", "title": "TriggerPolicy dictates the policy for the trigger retries", "properties": { "k8s": { "title": "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.K8SResourcePolicy" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.K8SResourcePolicy" }, "status": { "title": "Status refers to the policy used to check the state of the trigger using response status", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StatusPolicy" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StatusPolicy" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.TriggerTemplate": { + "io.argoproj.events.v1alpha1.TriggerTemplate": { "description": "TriggerTemplate is the template that describes trigger specification.", "type": "object", "properties": { "argoWorkflow": { "title": "ArgoWorkflow refers to the trigger that can perform various operations on an Argo io.argoproj.workflow.v1alpha1.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ArgoWorkflowTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ArgoWorkflowTrigger" }, "awsLambda": { "title": "AWSLambda refers to the trigger designed to invoke AWS Lambda function with with on-the-fly constructable payload.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AWSLambdaTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AWSLambdaTrigger" }, "azureEventHubs": { "title": "AzureEventHubs refers to the trigger send an event to an Azure Event Hub.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureEventHubsTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureEventHubsTrigger" }, "azureServiceBus": { "title": "AzureServiceBus refers to the trigger designed to place messages on Azure Service Bus\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.AzureServiceBusTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.AzureServiceBusTrigger" }, "conditions": { "type": "string", @@ -8109,32 +8176,33 @@ "type": "array", "title": "Criteria to reset the conditons\n+optional", "items": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ConditionsResetCriteria" + "type": "object", + "$ref": "#/definitions/io.argoproj.events.v1alpha1.ConditionsResetCriteria" } }, "custom": { "title": "CustomTrigger refers to the trigger designed to connect to a gRPC trigger server and execute a custom trigger.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.CustomTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.CustomTrigger" }, "email": { "title": "Email refers to the trigger designed to send an email notification\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EmailTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EmailTrigger" }, "http": { "title": "HTTP refers to the trigger designed to dispatch a HTTP request with on-the-fly constructable payload.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.HTTPTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.HTTPTrigger" }, "k8s": { "title": "StandardK8STrigger refers to the trigger designed to create or update a generic Kubernetes resource.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.StandardK8STrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.StandardK8STrigger" }, "kafka": { "description": "Kafka refers to the trigger designed to place messages on Kafka topic.\n+optional.", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.KafkaTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.KafkaTrigger" }, "log": { "title": "Log refers to the trigger designed to invoke log the io.argoproj.workflow.v1alpha1.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.LogTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.LogTrigger" }, "name": { "description": "Name is a unique name of the action to take.", @@ -8142,23 +8210,23 @@ }, "nats": { "description": "NATS refers to the trigger designed to place message on NATS subject.\n+optional.", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.NATSTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.NATSTrigger" }, "openWhisk": { "title": "OpenWhisk refers to the trigger designed to invoke OpenWhisk action.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.OpenWhiskTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.OpenWhiskTrigger" }, "pulsar": { "title": "Pulsar refers to the trigger designed to place messages on Pulsar topic.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.PulsarTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.PulsarTrigger" }, "slack": { "title": "Slack refers to the trigger designed to send slack notification message.\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SlackTrigger" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.SlackTrigger" } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.URLArtifact": { + "io.argoproj.events.v1alpha1.URLArtifact": { "description": "URLArtifact contains information about an artifact at an HTTP endpoint.", "type": "object", "properties": { @@ -8172,7 +8240,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.ValueFromSource": { + "io.argoproj.events.v1alpha1.ValueFromSource": { "type": "object", "title": "ValueFromSource allows you to reference keys from either a Configmap or Secret", "properties": { @@ -8184,7 +8252,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WatchPathConfig": { + "io.argoproj.events.v1alpha1.WatchPathConfig": { "type": "object", "properties": { "directory": { @@ -8201,7 +8269,7 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext": { + "io.argoproj.events.v1alpha1.WebhookContext": { "type": "object", "title": "WebhookContext holds a general purpose REST API context", "properties": { @@ -8246,71 +8314,16 @@ } } }, - "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookEventSource": { + "io.argoproj.events.v1alpha1.WebhookEventSource": { "type": "object", "title": "CalendarEventSource describes an HTTP based EventSource", "properties": { "filter": { "title": "Filter\n+optional", - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.EventSourceFilter" }, "webhookContext": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" - } - } - }, - "google.protobuf.Any": { - "type": "object", - "properties": { - "type_url": { - "type": "string" - }, - "value": { - "type": "string", - "format": "byte" - } - } - }, - "grpc.gateway.runtime.Error": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/google.protobuf.Any" - } - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "grpc.gateway.runtime.StreamError": { - "type": "object", - "properties": { - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/google.protobuf.Any" - } - }, - "grpc_code": { - "type": "integer" - }, - "http_code": { - "type": "integer" - }, - "http_status": { - "type": "string" - }, - "message": { - "type": "string" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.WebhookContext" } } }, @@ -8973,18 +8986,6 @@ } } }, - "io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplateUpdateRequest": { - "type": "object", - "properties": { - "name": { - "description": "DEPRECATED: This field is ignored.", - "type": "string" - }, - "template": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplate" - } - } - }, "io.argoproj.workflow.v1alpha1.CollectEventRequest": { "type": "object", "properties": { @@ -9275,7 +9276,7 @@ } } }, - "io.argoproj.workflow.v1alpha1.CreateCronWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.CreateCronWorkflowBody": { "type": "object", "properties": { "createOptions": { @@ -9283,9 +9284,6 @@ }, "cronWorkflow": { "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CronWorkflow" - }, - "namespace": { - "type": "string" } } }, @@ -9299,6 +9297,35 @@ } } }, + "io.argoproj.workflow.v1alpha1.CreateWorkflowBody": { + "type": "object", + "properties": { + "createOptions": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" + }, + "instanceID": { + "description": "This field is no longer used.", + "type": "string" + }, + "serverDryRun": { + "type": "boolean" + }, + "workflow": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow" + } + } + }, + "io.argoproj.workflow.v1alpha1.CreateWorkflowTemplateBody": { + "type": "object", + "properties": { + "createOptions": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" + }, + "template": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" + } + } + }, "io.argoproj.workflow.v1alpha1.CronWorkflow": { "description": "CronWorkflow is the definition of a scheduled workflow resource", "type": "object", @@ -9356,17 +9383,6 @@ } } }, - "io.argoproj.workflow.v1alpha1.CronWorkflowResumeRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - } - } - }, "io.argoproj.workflow.v1alpha1.CronWorkflowSpec": { "description": "CronWorkflowSpec is the specification of a CronWorkflow", "type": "object", @@ -9460,17 +9476,6 @@ } } }, - "io.argoproj.workflow.v1alpha1.CronWorkflowSuspendRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - } - } - }, "io.argoproj.workflow.v1alpha1.DAGTask": { "description": "DAGTask represents a node in the graph during DAG execution Note: CEL validation cannot check withItems (Schemaless) or inline (PreserveUnknownFields) fields.", "type": "object", @@ -9617,6 +9622,19 @@ "io.argoproj.workflow.v1alpha1.EventResponse": { "type": "object" }, + "io.argoproj.workflow.v1alpha1.EventWatchEvent": { + "type": "object", + "properties": { + "object": { + "title": "the event", + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + }, + "type": { + "type": "string", + "title": "the type of change" + } + } + }, "io.argoproj.workflow.v1alpha1.ExecutorConfig": { "description": "ExecutorConfig holds configurations of an executor container.", "type": "object", @@ -10097,12 +10115,14 @@ "columns": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Column" } }, "links": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Link" } }, @@ -10234,14 +10254,30 @@ "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" }, - "io.argoproj.workflow.v1alpha1.LintCronWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.LintCronWorkflowBody": { "type": "object", "properties": { "cronWorkflow": { "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CronWorkflow" + } + } + }, + "io.argoproj.workflow.v1alpha1.LintWorkflowBody": { + "type": "object", + "properties": { + "workflow": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow" + } + } + }, + "io.argoproj.workflow.v1alpha1.LintWorkflowTemplateBody": { + "type": "object", + "properties": { + "createOptions": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" }, - "namespace": { - "type": "string" + "template": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" } } }, @@ -10965,7 +11001,7 @@ } } }, - "io.argoproj.workflow.v1alpha1.ResubmitArchivedWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.ResubmitArchivedWorkflowBody": { "type": "object", "properties": { "memoized": { @@ -10982,8 +11018,30 @@ "items": { "type": "string" } + } + } + }, + "io.argoproj.workflow.v1alpha1.ResubmitWorkflowBody": { + "type": "object", + "properties": { + "memoized": { + "type": "boolean" }, - "uid": { + "parameters": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "io.argoproj.workflow.v1alpha1.ResumeCronWorkflowBody": { + "type": "object" + }, + "io.argoproj.workflow.v1alpha1.ResumeWorkflowBody": { + "type": "object", + "properties": { + "nodeFieldSelector": { "type": "string" } } @@ -10997,7 +11055,7 @@ } } }, - "io.argoproj.workflow.v1alpha1.RetryArchivedWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.RetryArchivedWorkflowBody": { "type": "object", "properties": { "name": { @@ -11017,9 +11075,6 @@ }, "restartSuccessful": { "type": "boolean" - }, - "uid": { - "type": "string" } } }, @@ -11053,6 +11108,23 @@ } } }, + "io.argoproj.workflow.v1alpha1.RetryWorkflowBody": { + "type": "object", + "properties": { + "nodeFieldSelector": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "string" + } + }, + "restartSuccessful": { + "type": "boolean" + } + } + }, "io.argoproj.workflow.v1alpha1.S3Artifact": { "description": "S3Artifact is the location of an S3 artifact", "type": "object", @@ -11448,6 +11520,23 @@ } } }, + "io.argoproj.workflow.v1alpha1.SetWorkflowBody": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "nodeFieldSelector": { + "type": "string" + }, + "outputParameters": { + "type": "string" + }, + "phase": { + "type": "string" + } + } + }, "io.argoproj.workflow.v1alpha1.StopStrategy": { "description": "StopStrategy defines if the CronWorkflow should stop scheduling based on an expression. v3.6 and after", "type": "object", @@ -11461,6 +11550,17 @@ } } }, + "io.argoproj.workflow.v1alpha1.StopWorkflowBody": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "nodeFieldSelector": { + "type": "string" + } + } + }, "io.argoproj.workflow.v1alpha1.Submit": { "type": "object", "required": [ @@ -11545,10 +11645,27 @@ } } }, + "io.argoproj.workflow.v1alpha1.SubmitWorkflowBody": { + "type": "object", + "properties": { + "resourceKind": { + "type": "string" + }, + "resourceName": { + "type": "string" + }, + "submitOptions": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SubmitOpts" + } + } + }, "io.argoproj.workflow.v1alpha1.SuppliedValueFrom": { "description": "SuppliedValueFrom is a placeholder for a value to be filled in directly, either through the CLI, API, etc.", "type": "object" }, + "io.argoproj.workflow.v1alpha1.SuspendCronWorkflowBody": { + "type": "object" + }, "io.argoproj.workflow.v1alpha1.SuspendTemplate": { "description": "SuspendTemplate is a template subtype to suspend a workflow at a predetermined point in time", "type": "object", @@ -11559,6 +11676,9 @@ } } }, + "io.argoproj.workflow.v1alpha1.SuspendWorkflowBody": { + "type": "object" + }, "io.argoproj.workflow.v1alpha1.SyncDatabaseRef": { "type": "object", "required": [ @@ -11862,6 +11982,9 @@ } } }, + "io.argoproj.workflow.v1alpha1.TerminateWorkflowBody": { + "type": "object" + }, "io.argoproj.workflow.v1alpha1.TransformationStep": { "type": "object", "required": [ @@ -11874,18 +11997,27 @@ } } }, - "io.argoproj.workflow.v1alpha1.UpdateCronWorkflowRequest": { + "io.argoproj.workflow.v1alpha1.UpdateClusterWorkflowTemplateBody": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplate" + } + } + }, + "io.argoproj.workflow.v1alpha1.UpdateCronWorkflowBody": { "type": "object", "properties": { "cronWorkflow": { "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.CronWorkflow" - }, - "name": { - "description": "DEPRECATED: This field is ignored.", - "type": "string" - }, - "namespace": { - "type": "string" + } + } + }, + "io.argoproj.workflow.v1alpha1.UpdateWorkflowTemplateBody": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" } } }, @@ -12177,27 +12309,6 @@ } } }, - "io.argoproj.workflow.v1alpha1.WorkflowCreateRequest": { - "type": "object", - "properties": { - "createOptions": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" - }, - "instanceID": { - "description": "This field is no longer used.", - "type": "string" - }, - "namespace": { - "type": "string" - }, - "serverDryRun": { - "type": "boolean" - }, - "workflow": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow" - } - } - }, "io.argoproj.workflow.v1alpha1.WorkflowDeleteResponse": { "type": "object" }, @@ -12294,17 +12405,6 @@ } } }, - "io.argoproj.workflow.v1alpha1.WorkflowLintRequest": { - "type": "object", - "properties": { - "namespace": { - "type": "string" - }, - "workflow": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow" - } - } - }, "io.argoproj.workflow.v1alpha1.WorkflowList": { "description": "WorkflowList is list of Workflow resources", "type": "object", @@ -12355,86 +12455,6 @@ } } }, - "io.argoproj.workflow.v1alpha1.WorkflowResubmitRequest": { - "type": "object", - "properties": { - "memoized": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "parameters": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.argoproj.workflow.v1alpha1.WorkflowResumeRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "nodeFieldSelector": { - "type": "string" - } - } - }, - "io.argoproj.workflow.v1alpha1.WorkflowRetryRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "nodeFieldSelector": { - "type": "string" - }, - "parameters": { - "type": "array", - "items": { - "type": "string" - } - }, - "restartSuccessful": { - "type": "boolean" - } - } - }, - "io.argoproj.workflow.v1alpha1.WorkflowSetRequest": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "nodeFieldSelector": { - "type": "string" - }, - "outputParameters": { - "type": "string" - }, - "phase": { - "type": "string" - } - } - }, "io.argoproj.workflow.v1alpha1.WorkflowSpec": { "description": "WorkflowSpec is the specification of a Workflow.", "type": "object", @@ -12818,51 +12838,6 @@ } } }, - "io.argoproj.workflow.v1alpha1.WorkflowStopRequest": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "nodeFieldSelector": { - "type": "string" - } - } - }, - "io.argoproj.workflow.v1alpha1.WorkflowSubmitRequest": { - "type": "object", - "properties": { - "namespace": { - "type": "string" - }, - "resourceKind": { - "type": "string" - }, - "resourceName": { - "type": "string" - }, - "submitOptions": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SubmitOpts" - } - } - }, - "io.argoproj.workflow.v1alpha1.WorkflowSuspendRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - } - } - }, "io.argoproj.workflow.v1alpha1.WorkflowTemplate": { "description": "WorkflowTemplate is the definition of a workflow template resource", "type": "object", @@ -12887,37 +12862,9 @@ } } }, - "io.argoproj.workflow.v1alpha1.WorkflowTemplateCreateRequest": { - "type": "object", - "properties": { - "createOptions": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" - }, - "namespace": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" - } - } - }, "io.argoproj.workflow.v1alpha1.WorkflowTemplateDeleteResponse": { "type": "object" }, - "io.argoproj.workflow.v1alpha1.WorkflowTemplateLintRequest": { - "type": "object", - "properties": { - "createOptions": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" - }, - "namespace": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" - } - } - }, "io.argoproj.workflow.v1alpha1.WorkflowTemplateList": { "description": "WorkflowTemplateList is list of WorkflowTemplate resources", "type": "object", @@ -12959,32 +12906,6 @@ } } }, - "io.argoproj.workflow.v1alpha1.WorkflowTemplateUpdateRequest": { - "type": "object", - "properties": { - "name": { - "description": "DEPRECATED: This field is ignored.", - "type": "string" - }, - "namespace": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowTemplate" - } - } - }, - "io.argoproj.workflow.v1alpha1.WorkflowTerminateRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - } - } - }, "io.argoproj.workflow.v1alpha1.WorkflowWatchEvent": { "type": "object", "properties": { @@ -16280,17 +16201,14 @@ "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { "type": "string" }, - "sensor.CreateSensorRequest": { + "sensor.CreateSensorBody": { "type": "object", "properties": { "createOptions": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions" }, - "namespace": { - "type": "string" - }, "sensor": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" } } }, @@ -16334,28 +16252,22 @@ "type": "object", "properties": { "object": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" }, "type": { "type": "string" } } }, - "sensor.UpdateSensorRequest": { + "sensor.UpdateSensorBody": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, "sensor": { - "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor" + "$ref": "#/definitions/io.argoproj.events.v1alpha1.Sensor" } } }, - "sync.CreateSyncLimitRequest": { + "sync.CreateSyncLimitBody": { "type": "object", "properties": { "cmName": { @@ -16367,9 +16279,6 @@ "limit": { "type": "integer" }, - "namespace": { - "type": "string" - }, "type": { "$ref": "#/definitions/sync.SyncConfigType" } @@ -16406,21 +16315,15 @@ } } }, - "sync.UpdateSyncLimitRequest": { + "sync.UpdateSyncLimitBody": { "type": "object", "properties": { "cmName": { "type": "string" }, - "key": { - "type": "string" - }, "limit": { "type": "integer" }, - "namespace": { - "type": "string" - }, "type": { "$ref": "#/definitions/sync.SyncConfigType" } @@ -16439,5 +16342,37 @@ { "BearerToken": [] } + ], + "tags": [ + { + "name": "ClusterWorkflowTemplateService" + }, + { + "name": "CronWorkflowService" + }, + { + "name": "EventService" + }, + { + "name": "EventSourceService" + }, + { + "name": "InfoService" + }, + { + "name": "SensorService" + }, + { + "name": "WorkflowService" + }, + { + "name": "ArchivedWorkflowService" + }, + { + "name": "WorkflowTemplateService" + }, + { + "name": "SyncService" + } ] } \ No newline at end of file diff --git a/api/openapi-spec/swagger_test.go b/api/openapi-spec/swagger_test.go index 09c8f9831788..af421c4731e0 100644 --- a/api/openapi-spec/swagger_test.go +++ b/api/openapi-spec/swagger_test.go @@ -22,17 +22,17 @@ func TestSwagger(t *testing.T) { } definitions := swagger["definitions"].(obj) // one definition from each API - t.Run("io.argoproj.workflow.v1alpha1.CreateCronWorkflowRequest", func(t *testing.T) { - assert.Contains(t, definitions, "io.argoproj.workflow.v1alpha1.CreateCronWorkflowRequest") + t.Run("io.argoproj.workflow.v1alpha1.CreateCronWorkflowBody", func(t *testing.T) { + assert.Contains(t, definitions, "io.argoproj.workflow.v1alpha1.CreateCronWorkflowBody") }) - t.Run("io.argoproj.workflow.v1alpha1.WorkflowCreateRequest", func(t *testing.T) { - assert.Contains(t, definitions, "io.argoproj.workflow.v1alpha1.WorkflowCreateRequest") + t.Run("io.argoproj.workflow.v1alpha1.CreateWorkflowBody", func(t *testing.T) { + assert.Contains(t, definitions, "io.argoproj.workflow.v1alpha1.CreateWorkflowBody") }) t.Run("io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplateCreateRequest", func(t *testing.T) { assert.Contains(t, definitions, "io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplateCreateRequest") }) - t.Run("io.argoproj.workflow.v1alpha1.WorkflowTemplateCreateRequest", func(t *testing.T) { - assert.Contains(t, definitions, "io.argoproj.workflow.v1alpha1.WorkflowTemplateCreateRequest") + t.Run("io.argoproj.workflow.v1alpha1.CreateWorkflowTemplateBody", func(t *testing.T) { + assert.Contains(t, definitions, "io.argoproj.workflow.v1alpha1.CreateWorkflowTemplateBody") }) t.Run("io.argoproj.workflow.v1alpha1.InfoResponse", func(t *testing.T) { assert.Contains(t, definitions, "io.argoproj.workflow.v1alpha1.InfoResponse") diff --git a/argo-proto.yaml b/argo-proto.yaml index 626eb3d54f11..b6853f8b0f45 100644 --- a/argo-proto.yaml +++ b/argo-proto.yaml @@ -10,11 +10,11 @@ dependencies: api: owner: kubernetes name: api - ref: v0.35.1 + ref: v0.35.4 apimachinery: owner: kubernetes name: apimachinery - ref: v0.35.1 + ref: v0.35.4 googleapis: owner: googleapis name: googleapis diff --git a/dev/nix/flake.nix b/dev/nix/flake.nix index 58786e970719..55d853fcc10b 100644 --- a/dev/nix/flake.nix +++ b/dev/nix/flake.nix @@ -28,13 +28,21 @@ myyarn = pkgs.yarn.override { inherit nodejs; }; filter = inputs.nix-filter.lib; # Keep these aligned with the matching go install targets in the Makefile. + # The `# renovate:` annotations let Renovate propose bumps in lockstep + # with the Makefile pins; the fetch/vendor hashes below still need a + # manual update in the same PR (Renovate cannot compute them). toolVersions = { kubeauto = "0.0.7"; mockery = "3.5.1"; controllerTools = "0.18.0"; - codeGenerator = "0.35.1"; - gogoProtobuf = "1.3.2"; - grpcGateway = "1.16.0"; + # renovate: datasource=go depName=k8s.io/code-generator + codeGenerator = "0.35.4"; + # renovate: datasource=go depName=google.golang.org/protobuf + protocGenGo = "1.36.6"; + # renovate: datasource=go depName=google.golang.org/grpc/cmd/protoc-gen-go-grpc + protocGenGoGrpc = "1.5.1"; + # renovate: datasource=go depName=github.com/grpc-ecosystem/grpc-gateway/v2 + grpcGateway = "2.29.0"; kubeOpenapi = "0.0.0-20220124234850-424119656bbf"; goSwagger = "0.33.1"; goimports = "0.35.0"; @@ -216,18 +224,33 @@ doCheck = false; }); - protoc-gen-gogo-all = pkgs.buildGoModule rec { - pname = "protoc-gen-gogo"; - version = toolVersions.gogoProtobuf; + protoc-gen-go = pkgs.buildGoModule rec { + pname = "protoc-gen-go"; + version = toolVersions.protocGenGo; src = pkgs.fetchFromGitHub { - owner = "gogo"; - repo = "protobuf"; + owner = "protocolbuffers"; + repo = "protobuf-go"; rev = "v${version}"; - sha256 = "sha256-CoUqgLFnLNCS9OxKFS7XwjE17SlH6iL1Kgv+0uEK2zU="; + sha256 = "sha256-6Wx1XoHZS1RM0hpgVE85U7huVS4IK+AroTE2zpZR4VI="; }; + subPackages = [ "cmd/protoc-gen-go" ]; doCheck = false; - vendorHash = "sha256-nOL2Ulo9VlOHAqJgZuHl7fGjz/WFAaWPdemplbQWcak="; + vendorHash = "sha256-nGI/Bd6eMEoY0sBwWEtyhFowHVvwLKjbT4yfzFz6Z3E="; + }; + protoc-gen-go-grpc = pkgs.buildGoModule rec { + pname = "protoc-gen-go-grpc"; + version = toolVersions.protocGenGoGrpc; + + src = pkgs.fetchFromGitHub { + owner = "grpc"; + repo = "grpc-go"; + rev = "cmd/protoc-gen-go-grpc/v${version}"; + sha256 = "sha256-PAUM0chkZCb4hGDQtCgHF3omPm0jP1sSDolx4EuOwXo="; + }; + modRoot = "cmd/protoc-gen-go-grpc"; + doCheck = false; + vendorHash = "sha256-yn6jo6Ku/bnbSX8FL0B/Uu3Knn59r1arjhsVUkZ0m9g="; }; grpc-ecosystem = pkgs.buildGoModule rec { pname = "grpc-ecosystem"; @@ -237,10 +260,11 @@ owner = "grpc-ecosystem"; repo = "grpc-gateway"; rev = "v${version}"; - sha256 = "sha256-jJWqkMEBAJq50KaXccVpmgx/hwTdKgTtNkz8/xYO+Dc="; + sha256 = "sha256-d9OIIGttyMBSNgpS6mbR5JEIm13qGu2gFHJazJAexdw="; }; + subPackages = [ "protoc-gen-grpc-gateway" "protoc-gen-openapiv2" ]; doCheck = false; - vendorHash = "sha256-jVOb2uHjPley+K41pV+iMPNx67jtb75Rb/ENhw+ZMoM="; + vendorHash = "sha256-p51yD+v8+rPs+ztlX7r0VQ4XlwUkxu+PxgknKEvH00k="; }; go-swagger = pkgs.go-swagger.overrideAttrs (old: rec { @@ -273,9 +297,9 @@ owner = "kubernetes"; repo = "code-generator"; rev = "v${version}"; - sha256 = "sha256-NhWD09Uy8QZLov74qhBmhqXGkxWalSjOMe/1He/fHns="; + sha256 = "sha256-rbwVqLeXE42gQPm53YAmz1BbSVQsMVe6BzGiIquGjYk="; }; - vendorHash = "sha256-eQuiQ8sCOE9wyVIBRmSQ1PkdvRIIw9I3GwSpHDPEE/I="; + vendorHash = "sha256-H+ujA7hpzGqbRP+BuqNALg+RzwnB2vaS9Vf7kHOeHKg="; doCheck = false; }; @@ -399,7 +423,8 @@ packages = with pkgs; [ (rust-bin.selectLatestNightlyWith (toolchain: toolchain.default)) config.packages.mockery - config.packages.protoc-gen-gogo-all + config.packages.protoc-gen-go + config.packages.protoc-gen-go-grpc config.packages.grpc-ecosystem config.packages.go-swagger config.packages.controller-tools @@ -445,7 +470,8 @@ # This is your devenv configuration packages = with pkgs; [ config.packages.mockery - config.packages.protoc-gen-gogo-all + config.packages.protoc-gen-go + config.packages.protoc-gen-go-grpc config.packages.grpc-ecosystem config.packages.go-swagger config.packages.controller-tools diff --git a/devenv.nix b/devenv.nix index f90104557995..6481413e7dd0 100644 --- a/devenv.nix +++ b/devenv.nix @@ -17,7 +17,8 @@ in diffutils kubeauto mockery - protoc-gen-gogo-all + protoc-gen-go + protoc-gen-go-grpc grpc-ecosystem go-swagger controller-tools @@ -87,9 +88,8 @@ in MODULES=( "sigs.k8s.io/controller-tools@v0.18.0" - "k8s.io/code-generator@v0.33.1" - "github.com/gogo/protobuf@v1.3.2" - "github.com/grpc-ecosystem/grpc-gateway@v1.16.0" + # renovate: datasource=go depName=k8s.io/code-generator + "k8s.io/code-generator@v0.35.4" "k8s.io/kube-openapi@424119656bbf" ) diff --git a/docs/upgrading.md b/docs/upgrading.md index 510e8b9499b6..ddbf55d41b69 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -5,6 +5,27 @@ For the upgrading guide to a specific version of workflows change the documentat Breaking changes typically (sometimes we don't realise they are breaking) have "!" in the commit message, as per the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary). +## Upgrading to v4.2 + +### Protobuf code generation migrated to protoc-gen-go and grpc-gateway v2 + +The API stubs are now generated with the officially maintained `protoc-gen-go`/`protoc-gen-go-grpc` instead of the unmaintained gogo/protobuf fork, and the HTTP gateway moved from grpc-gateway v1 to v2. +The protobuf wire encoding of existing messages is unchanged, but there are API-visible changes for HTTP, gRPC, and Go consumers: + +* The `WorkflowService.WatchEvents` gRPC method now returns `stream EventWatchEvent` (a `{type, object}` envelope) instead of `stream k8s.io.api.core.v1.Event`, matching the shape of the other watch streams. + Over HTTP, `/api/v1/stream/events/{namespace}` correspondingly emits `{"result": {"type": ..., "object": ...}}` instead of `{"result": }`; consumers must unwrap the new envelope, and any `?fields=` selectors against this endpoint need an extra `object.` segment (for example `result.object.message` instead of `result.message`). + The UI events panel now honours the event type, so events deleted by Kubernetes (which garbage-collects Events after roughly an hour) disappear from the panel instead of persisting for the lifetime of the page. +* Many OpenAPI definitions were renamed, which renames the corresponding classes in the generated Java SDK and in any client you generate from `api/openapi-spec/swagger.json`: + * Request-body definitions changed from `Request` to `Body`, for example `WorkflowCreateRequest` is now `CreateWorkflowBody`. + The new `*Body` definitions no longer repeat fields that are taken from the URL path (such as `namespace` or `name`); those values are read from the path only. + * Argo Events definitions changed from `github.com.argoproj.argo_events.pkg.apis.*` prefixes to `io.argoproj.events.v1alpha1.*`. + * The request-body parameter of `POST /api/v1/events/{namespace}/{discriminator}` was renamed from `body` to `payload`, renaming the generated SDK method parameter. +* HTTP error responses now use the standard [`google.rpc.Status`](https://cloud.google.com/apis/design/errors#error_model) shape (`code`, `message`, `details`). + The v1 gateway's `error` field and, on streaming endpoints, the `grpc_code`/`http_code`/`http_status` fields are gone. +* Go consumers of `pkg/apiclient`: the request/response structs are now generated by protoc-gen-go, so they must not be copied by value (`go vet`'s copylocks check will flag this) and should be compared with `proto.Equal` rather than `reflect.DeepEqual`; the gogo helper methods (`Marshal`, `Size`, `XXX_*`) are gone. + Additionally, until Kubernetes ships protobuf-reflection-compatible types, build with `-tags=kubernetes_protomessage_one_more_release` (as this repo's Makefile does) so the Kubernetes types embedded in API messages retain their `ProtoMessage()` methods on Kubernetes v1.35 (k8s.io/* v0.35). + Without the tag, `pkg/apiclient` fails fast at startup with a message pointing here instead of panicking on the first API call. + ## Upgrading to v4.1.2 ### SSO users are logged out once on upgrade diff --git a/go.mod b/go.mod index 46c56f0599e9..5e91147fb6b9 100644 --- a/go.mod +++ b/go.mod @@ -30,14 +30,11 @@ require ( github.com/go-openapi/jsonreference v1.0.0 github.com/go-playground/webhooks/v6 v6.4.0 github.com/go-sql-driver/mysql v1.10.0 - github.com/gogo/protobuf v1.3.2 - github.com/golang/protobuf v1.5.4 github.com/google/go-containerregistry v0.21.9 github.com/google/go-containerregistry/pkg/authn/k8schain v0.0.0-20260416183851-f80cb9a75083 github.com/gorilla/handlers v1.5.2 - github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 - github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 github.com/itchyny/gojq v0.12.19 github.com/jcmturner/gokrb5/v8 v8.4.4 github.com/klauspost/pgzip v1.2.6 @@ -125,6 +122,7 @@ require ( github.com/go-openapi/swag/stringutils v0.27.1 // indirect github.com/go-openapi/swag/typeutils v0.27.1 // indirect github.com/go-openapi/swag/yamlutils v0.27.1 // indirect + github.com/gogo/protobuf v1.3.2 // indirect github.com/google/cel-go v0.30.0 // indirect github.com/klauspost/crc32 v1.3.0 // indirect github.com/moby/moby/client v0.5.1 // indirect @@ -177,7 +175,6 @@ require ( github.com/google/gnostic-models v0.7.0 // indirect github.com/google/s2a-go v0.1.9 // indirect github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 // indirect github.com/jackc/pgio v1.0.0 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect @@ -351,7 +348,7 @@ require ( golang.org/x/sys v0.47.0 golang.org/x/term v0.45.0 golang.org/x/text v0.41.0 // indirect - google.golang.org/protobuf v1.36.12 // indirect + google.golang.org/protobuf v1.36.12 gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.2 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect diff --git a/go.sum b/go.sum index 0596689fa2ca..9db3562946a7 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ cel.dev/expr v0.25.2 h1:K6j46C81hXtZQfuX60cVWQFBJahKSE2gfRbNuvr5bFs= cel.dev/expr v0.25.2/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4= -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.123.0 h1:2NAUJwPR47q+E35uaJeYoNhuNEM9kM8SjgRgdeOJUSE= cloud.google.com/go v0.123.0/go.mod h1:xBoMV08QcqUGuPW65Qfm1o9Y4zKZBpGS+7bImXLTAZU= cloud.google.com/go/auth v0.20.0 h1:kXTssoVb4azsVDoUiF8KvxAqrsQcQtB53DcSgta74CA= @@ -100,7 +98,6 @@ github.com/andybalholm/brotli v1.2.2 h1:HzTuoo2ErYQqf5qvcJInB8uvqSVxRttzkFexPWtn github.com/andybalholm/brotli v1.2.2/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= 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/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= github.com/argoproj/argo-events v1.9.11 h1:lDRu5E8ReFN1RJxGIibNOHuNEIPwzGleEkP3DZDNN2s= @@ -158,7 +155,6 @@ github.com/aws/smithy-go v1.27.8 h1:FR0dxZfIlV7Z8eh2iHfIofdunw382XsDV3Mxt9nUvRY= github.com/aws/smithy-go v1.27.8/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.12.0 h1:JFWXO6QPihCknDdnL6VaQE57km4ZKheHIGd9YiOGcTo= github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.12.0/go.mod h1:046/oLyFlYdAghYQE2yHXi/E//VM5Cf3/dFmA+3CZ0c= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= @@ -170,20 +166,17 @@ github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK3 github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chai2010/gettext-go v1.0.3 h1:9liNh8t+u26xl5ddmWLmsOsdNLwkdRTg5AG+JnTiM80= github.com/chai2010/gettext-go v1.0.3/go.mod h1:y+wnP2cHYaVj19NZhYKAwEMH2CI1gNHeQQ+5AjwawxA= github.com/clbanning/mxj/v2 v2.7.0/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSEFgwIwO+UVM8= github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0= github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk= github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM= github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8= github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 h1:aBangftG7EVZoUb69Os8IaYg++6uMOdKK83QtkkvJik= github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2/go.mod h1:qwXFYgsP6T7XnJtbKlf1HP8AjxZZyzxMmc+Lq5GjlU4= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= @@ -245,16 +238,12 @@ github.com/emicklei/go-restful/v3 v3.13.0 h1:C4Bl2xDndpU6nJ4bc1jXd+uTmYPVUwkD6bF github.com/emicklei/go-restful/v3 v3.13.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= 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= github.com/envoyproxy/go-control-plane v0.14.0 h1:hbG2kr4RuFj222B6+7T83thSPqLjwBIfQawTkC++2HA= github.com/envoyproxy/go-control-plane v0.14.0/go.mod h1:NcS5X47pLl/hfqxU70yPwL9ZMkUlwlKxtAohpi2wBEU= github.com/envoyproxy/go-control-plane/envoy v1.37.0 h1:u3riX6BoYRfF4Dr7dwSOroNfdSbEPe9Yyl09/B6wBrQ= github.com/envoyproxy/go-control-plane/envoy v1.37.0/go.mod h1:DReE9MMrmecPy+YvQOAOHNYMALuowAnbjjEMkkWOi6A= github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI= github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v1.3.3 h1:MVQghNeW+LZcmXe7SY1V36Z+WFMDjpqGAGacLe2T0ds= github.com/envoyproxy/protoc-gen-validate v1.3.3/go.mod h1:TsndJ/ngyIdQRhMcVVGDDHINPLWB7C82oDArY51KfB0= github.com/evanphx/json-patch v5.9.11+incompatible h1:ixHHqfcGvxhWkniF1tWxBHA0yb4Z+d1UQi45df52xW8= @@ -285,7 +274,6 @@ github.com/gaganhr94/docker-credential-acr v1.0.2 h1:0eMFjVqRUmwINbhFxb5xLTWLJpd github.com/gaganhr94/docker-credential-acr v1.0.2/go.mod h1:8yd2V0GhCyd17MpMxfAJzcZqldu1ghFmrUV0GS7qcGc= github.com/gavv/httpexpect/v2 v2.17.0 h1:nIJqt5v5e4P7/0jODpX2gtSw+pHXUqdP28YcjqwDZmE= github.com/gavv/httpexpect/v2 v2.17.0/go.mod h1:E8ENFlT9MZ3Si2sfM6c6ONdwXV2noBCGkhA+lkJgkP0= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gizak/termui/v3 v3.1.0/go.mod h1:bXQEBkJpzxUAKf0+xq9MSWAvWZlE7c+aidmyFlkYTrY= github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c= github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU= @@ -365,13 +353,9 @@ github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ= github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= @@ -386,7 +370,6 @@ github.com/google/cel-go v0.30.0 h1:ll54AkzKunWkBn9wSoiUXbFZXYZTkdJGNXTBXUoolGo= github.com/google/cel-go v0.30.0/go.mod h1:X0bD6iVNR8pkROSOoHVdgTkzmRcosof7WQqCD6wcMc8= github.com/google/gnostic-models v0.7.0 h1:qwTtogB15McXDaNqTZdzPJRHvaVJlAl+HVQnLmJEJxo= github.com/google/gnostic-models v0.7.0/go.mod h1:whL5G0m6dmc5cPxKc5bdKdEN3UjI7OUGxBlw57miDrQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= @@ -428,12 +411,8 @@ github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5T github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= -github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 h1:5VipnvEpbqr2gA2VbM+nYVbkIF28c5ZQfqCBQ5g2xfk= github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0/go.mod h1:Hyl3n6Twe1hvtd9XUXDec4pTvgMSEixRuQKPTMH2bNs= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= @@ -672,7 +651,6 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8 github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040= github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M= -github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/pelletier/go-toml/v2 v2.3.1 h1:MYEvvGnQjeNkRF1qUuGolNtNExTDwct51yp7olPtrEc= github.com/pelletier/go-toml/v2 v2.3.1/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= @@ -698,7 +676,6 @@ github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v1.24.1 h1:JnJkREXzWxUdCuPFpIWZiPispT9xVV59uiuyR2bPlnU= github.com/prometheus/client_golang v1.24.1/go.mod h1:F+oSRECHg4sse5ucfYpYDeIv/hu68Zo0uoHKetWnzcE= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= github.com/prometheus/common v0.70.1 h1:1HvjP4D5oL3t8RsPlwxA9onvvStjtIHYE5XuuwOi/PY= @@ -711,7 +688,6 @@ github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94 github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.15.0 h1:D0RCU5rMAp+SpgkiNdrjfJ+LX4J1M32V2NeCY7EJ6hc= github.com/rogpeppe/go-internal v1.15.0/go.mod h1:DrUVZyrJU+txYW5/1kwtXQSMFio52ZOxX7yM1VHvnxs= @@ -896,8 +872,6 @@ go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y= @@ -905,14 +879,12 @@ go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.28.0 h1:IZzaP1Fv73/T/pBMLk4VutPl36uNC+OSUh3JLG3FIjo= go.uber.org/zap v1.28.0/go.mod h1:rDLpOi171uODNm/mxFcuYWxDsqWSAVkFdX4XojSKg/Q= go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ= @@ -941,16 +913,12 @@ golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M= golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200908183739-ae8ad444f925/go.mod h1:1phAWC201xIgDyaFpmDeZkgf70Q4Pd/CNqfRtVPtxNw= golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f h1:W3F4c+6OLc6H2lb//N1q4WpJkhzJCK5J6kUi1NTVXfM= golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f/go.mod h1:J1xhfL/vlindoeF/aINzNzt2Bket5bjo9sdOYzOsU80= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= @@ -966,12 +934,8 @@ golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.38.0 h1:MECBjubtXD7yj4HrhIUcywNaGeNVUdfVnxmPajOk4yk= golang.org/x/mod v0.38.0/go.mod h1:V6Xz0pq8TQ3dGqVQ1FVHuelZpAL0uNhSkk9ogYP3c40= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180921000356-2f5d2388922f/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -979,7 +943,6 @@ golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -994,13 +957,9 @@ golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs= golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1011,7 +970,6 @@ golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek= golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181019160139-8e24a49d80f8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1039,7 +997,6 @@ golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/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= @@ -1084,16 +1041,12 @@ golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U= golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -1118,24 +1071,12 @@ gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= google.golang.org/api v0.288.0 h1:glhO/J88obKP5I269W3hB73dvBKrjU56ZfmNlNXpgTU= google.golang.org/api v0.288.0/go.mod h1:lM2kYRzYUCBY91P9h6VF1PYmvhxii3O5hji37qRvIcY= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20260519071638-aa98bba5eb94 h1:YJjbgu+dkp5kUJLfpMyCLfBIWZb/FcJyuLeo1gVBOuo= google.golang.org/genproto v0.0.0-20260519071638-aa98bba5eb94/go.mod h1:RRHjglSYABVCWpQ7USCpdfhcd9t4PkajvVwyynZizTc= google.golang.org/genproto/googleapis/api v0.0.0-20260819154853-08b0e4226688 h1:ax2KzoSRIZU/M0cIxri3pKxy99vniH1PVxWC6si/eZI= google.golang.org/genproto/googleapis/api v0.0.0-20260819154853-08b0e4226688/go.mod h1:1RJ9BQGyNdZwkGc1eTqkErfRZ6RJyYPHZo73BZ1vQqI= google.golang.org/genproto/googleapis/rpc v0.0.0-20260818201246-1b0934165a6f h1:kMQMi+2r0XRQ/Ad2/tgd+5S7JYSBGYO4pwkLTE8F2y0= google.golang.org/genproto/googleapis/rpc v0.0.0-20260818201246-1b0934165a6f/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.83.1 h1:HIO0+BEtBP6soyqvqC8sNUjZ7bTs+0hFQuFF+RAy++Y= google.golang.org/grpc v1.83.1/go.mod h1:kDyl6SKsiHKt0uylY5gtn5cEjkrIOhQOGDgIc4JGwzQ= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= @@ -1168,18 +1109,14 @@ gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= 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= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q= gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= k8s.io/api v0.35.4 h1:P7nFYKl5vo9AGUp1Z+Pmd3p2tA7bX2wbFWCvDeRv988= k8s.io/api v0.35.4/go.mod h1:yl4lqySWOgYJJf9RERXKUwE9g2y+CkuwG+xmcOK8wXU= diff --git a/hack/api/swagger/swaggify.sh b/hack/api/swagger/swaggify.sh index c98c86cd6ed4..741161e48239 100755 --- a/hack/api/swagger/swaggify.sh +++ b/hack/api/swagger/swaggify.sh @@ -4,9 +4,8 @@ set -eu -o pipefail # order is important, "REPLACEME" -> "workflow" cat \ | sed 's/github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1./io.argoproj.REPLACEME.v1alpha1./' \ - | sed 's/github.com.argoproj.argo_events.pkg.apis.common./io.argoproj.events.v1alpha1./' \ - | sed 's/github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1./io.argoproj.events.v1alpha1./' \ - | sed 's/github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1./io.argoproj.events.v1alpha1./' \ + | sed 's/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1./io.argoproj.events.v1alpha1./' \ + | sed 's/[A-Z][a-zA-Z]*Service\.\([A-Z]\)/\1/g' `# protoc-gen-openapiv2 fqn naming prefixes nested request-body messages with "FooService."; strip it. Unanchored: also rewrites any prose containing such a token.` \ | sed 's/cronworkflow\./io.argoproj.REPLACEME.v1alpha1./' \ | sed 's/event\./io.argoproj.REPLACEME.v1alpha1./' \ | sed 's/info\./io.argoproj.REPLACEME.v1alpha1./' \ diff --git a/hack/vendor-patches.sh b/hack/vendor-patches.sh new file mode 100755 index 000000000000..1a7848ad8890 --- /dev/null +++ b/hack/vendor-patches.sh @@ -0,0 +1,98 @@ +#!/usr/bin/env bash +# Apply patches to vendored dependencies as part of `make vendor`. +# +# Kubernetes v1.35 (k8s.io/* v0.35) moved ProtoMessage() on generated types +# behind the kubernetes_protomessage_one_more_release build tag; k8s v1.36 +# removes the method entirely. Without ProtoMessage(), these types no longer +# satisfy protoiface.MessageV1, so protoMessageV2Of() panics instead of +# returning nil. Returning nil lets the caller fall through to +# LegacyLoadMessageDesc / aberrantLoadMessageDesc, which builds descriptors from +# struct tags — the designed fallback for non-standard proto types. +# +# Only protoMessageV2Of is patched. The identical panic string also appears in +# the exported ProtoMessageV1Of, which must keep panicking loudly, so the +# substitution below is anchored to the protoMessageV2Of function body. The +# script is idempotent (an already-patched tree is a no-op) and never leaves the +# file half-rewritten: the substitution happens on a copy that only replaces the +# original once it is verified. +# +# This runs inside the Docker builder image too, so it must only use tools the +# alpine build stage has: bash, busybox awk/grep/mktemp. No perl. +set -euo pipefail + +REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)" + +FILE="$REPO_ROOT/vendor/google.golang.org/protobuf/internal/impl/api_export.go" +PANIC='panic(fmt.Sprintf("message %T is neither a v1 or v2 Message", m))' +PATCHED_MARKER='patched by hack/vendor-patches.sh: return nil instead of panicking' + +if ! grep -qF "$PATCHED_MARKER" "$FILE"; then + # Drift guard: expect the panic exactly twice — once in ProtoMessageV1Of + # (which must keep it) and once in protoMessageV2Of (which we patch). + count=$(grep -cF "$PANIC" "$FILE" || true) + if [ "$count" != 2 ]; then + echo "vendor-patches: expected the panic exactly twice in $FILE, found $count — has google.golang.org/protobuf changed? Update this script." >&2 + exit 1 + fi + + TMP="$(mktemp "$FILE.XXXXXX")" + trap 'rm -f "$TMP"' EXIT + + awk -v panic="$PANIC" -v marker="$PATCHED_MARKER" ' + index($0, "func (Export) protoMessageV2Of(") { in_fn = 1 } + in_fn && !done && index($0, panic) { + print "\t\t// " marker + print "\t\treturn nil" + done = 1 + next + } + { print } + END { exit done ? 0 : 1 } + ' "$FILE" > "$TMP" || { + echo "vendor-patches: protoMessageV2Of panic not found after its function declaration in $FILE — has google.golang.org/protobuf changed? Update this script." >&2 + exit 1 + } + + # ProtoMessageV1Of must keep its panic (and its use of the fmt import). + if ! grep -qF "$PANIC" "$TMP"; then + echo "vendor-patches: expected ProtoMessageV1Of to keep its panic in $FILE — refusing to patch. Update this script." >&2 + exit 1 + fi + + mv "$TMP" "$FILE" + trap - EXIT +fi + +# Kubernetes mis-tags PodLogOptions.Stream (a *string) with the varint wire +# type in its protobuf struct tag; the generated k8s marshaller correctly emits +# it as a length-delimited string (wire type 2), so the tag is metadata-only — +# but google.golang.org/protobuf's aberrant descriptor derivation (used for the +# gateway's query-parameter population) trusts the tag and panics with +# "invalid Go type string for field k8s_io.api.core.v1.PodLogOptions.stream" +# on every ?podLogOptions.*= log request. Fix the tag to match reality. +# (k8s has a few more type-vs-tag mismatches, e.g. *int32 fields tagged +# "bytes", but none are reachable via query population and the marshal paths +# use the generated gogo fast paths, so only this one needs patching.) +FILE2="$REPO_ROOT/vendor/k8s.io/api/core/v1/types.go" +BAD_TAG='Stream *string `json:"stream,omitempty" protobuf:"varint,10,opt,name=stream"`' +GOOD_TAG='Stream *string `json:"stream,omitempty" protobuf:"bytes,10,opt,name=stream"`' + +if ! grep -qF "$GOOD_TAG" "$FILE2"; then + count=$(grep -cF "$BAD_TAG" "$FILE2" || true) + if [ "$count" != 1 ]; then + echo "vendor-patches: expected the mis-tagged PodLogOptions.Stream exactly once in $FILE2, found $count — has k8s.io/api changed (upstream fix?)? Update this script." >&2 + exit 1 + fi + TMP2="$(mktemp "$FILE2.XXXXXX")" + trap 'rm -f "$TMP2"' EXIT + awk -v bad="$BAD_TAG" -v good="$GOOD_TAG" ' + n = index($0, bad) { + print substr($0, 1, n-1) good substr($0, n+length(bad)) + next + } + { print } + ' "$FILE2" > "$TMP2" + grep -qF "$GOOD_TAG" "$TMP2" || { echo "vendor-patches: PodLogOptions.Stream tag fix did not apply in $FILE2" >&2; exit 1; } + mv "$TMP2" "$FILE2" + trap - EXIT +fi diff --git a/pkg/apiclient/_.primary.swagger.json b/pkg/apiclient/_.primary.swagger.json index b7653765125c..75a3bb4c258d 100644 --- a/pkg/apiclient/_.primary.swagger.json +++ b/pkg/apiclient/_.primary.swagger.json @@ -93,7 +93,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -143,7 +143,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -193,7 +193,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -237,7 +237,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -281,7 +281,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } } @@ -310,23 +310,22 @@ } } }, - "grpc.gateway.runtime.Error": { + "google.rpc.Status": { "type": "object", "properties": { "code": { - "type": "integer" + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" }, "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/google.protobuf.Any" } - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" } } } diff --git a/pkg/apiclient/argo-kube-workflow-service-client.go b/pkg/apiclient/argo-kube-workflow-service-client.go index aaeb7c7964e1..9f6d4d30daf6 100644 --- a/pkg/apiclient/argo-kube-workflow-service-client.go +++ b/pkg/apiclient/argo-kube-workflow-service-client.go @@ -108,7 +108,7 @@ func (c *argoKubeWorkflowServiceClient) logs(ctx context.Context, req *workflowp func (c *argoKubeWorkflowServiceClient) PodLogs(ctx context.Context, req *workflowpkg.WorkflowLogRequest, _ ...grpc.CallOption) (workflowpkg.WorkflowService_PodLogsClient, error) { return c.logs(ctx, req, func(req *workflowpkg.WorkflowLogRequest, i *logsIntermediary) error { - return c.delegate.PodLogs(req, i) + return c.delegate.PodLogs(req, i) //nolint:staticcheck // pass-through of the deprecated RPC }) } diff --git a/pkg/apiclient/artifact/artifact.pb.go b/pkg/apiclient/artifact/artifact.pb.go index 1d4748187cd2..15377129c26a 100644 --- a/pkg/apiclient/artifact/artifact.pb.go +++ b/pkg/apiclient/artifact/artifact.pb.go @@ -1,4 +1,7 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/artifact/artifact.proto // Artifact Service @@ -8,853 +11,803 @@ package artifact import ( - context "context" - fmt "fmt" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // Plugin Artifact configuration type PluginArtifact struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Configuration string `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration,omitempty"` - ConnectionTimeoutSeconds int32 `protobuf:"varint,3,opt,name=connection_timeout_seconds,json=connectionTimeoutSeconds,proto3" json:"connection_timeout_seconds,omitempty"` - Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Configuration string `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration,omitempty"` + ConnectionTimeoutSeconds int32 `protobuf:"varint,3,opt,name=connection_timeout_seconds,json=connectionTimeoutSeconds,proto3" json:"connection_timeout_seconds,omitempty"` + Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *PluginArtifact) Reset() { *m = PluginArtifact{} } -func (m *PluginArtifact) String() string { return proto.CompactTextString(m) } -func (*PluginArtifact) ProtoMessage() {} -func (*PluginArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{0} +func (x *PluginArtifact) Reset() { + *x = PluginArtifact{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *PluginArtifact) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *PluginArtifact) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PluginArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PluginArtifact.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*PluginArtifact) ProtoMessage() {} + +func (x *PluginArtifact) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *PluginArtifact) XXX_Merge(src proto.Message) { - xxx_messageInfo_PluginArtifact.Merge(m, src) -} -func (m *PluginArtifact) XXX_Size() int { - return m.Size() -} -func (m *PluginArtifact) XXX_DiscardUnknown() { - xxx_messageInfo_PluginArtifact.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_PluginArtifact proto.InternalMessageInfo +// Deprecated: Use PluginArtifact.ProtoReflect.Descriptor instead. +func (*PluginArtifact) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{0} +} -func (m *PluginArtifact) GetName() string { - if m != nil { - return m.Name +func (x *PluginArtifact) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *PluginArtifact) GetConfiguration() string { - if m != nil { - return m.Configuration +func (x *PluginArtifact) GetConfiguration() string { + if x != nil { + return x.Configuration } return "" } -func (m *PluginArtifact) GetConnectionTimeoutSeconds() int32 { - if m != nil { - return m.ConnectionTimeoutSeconds +func (x *PluginArtifact) GetConnectionTimeoutSeconds() int32 { + if x != nil { + return x.ConnectionTimeoutSeconds } return 0 } -func (m *PluginArtifact) GetKey() string { - if m != nil { - return m.Key +func (x *PluginArtifact) GetKey() string { + if x != nil { + return x.Key } return "" } // Artifact representation for gRPC type Artifact struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - Mode int32 `protobuf:"varint,3,opt,name=mode,proto3" json:"mode,omitempty"` - From string `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"` - Plugin *PluginArtifact `protobuf:"bytes,5,opt,name=plugin,proto3" json:"plugin,omitempty"` - Optional bool `protobuf:"varint,6,opt,name=optional,proto3" json:"optional,omitempty"` - SubPath string `protobuf:"bytes,7,opt,name=sub_path,json=subPath,proto3" json:"sub_path,omitempty"` - RecurseMode bool `protobuf:"varint,8,opt,name=recurse_mode,json=recurseMode,proto3" json:"recurse_mode,omitempty"` - FromExpression string `protobuf:"bytes,9,opt,name=from_expression,json=fromExpression,proto3" json:"from_expression,omitempty"` - Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + Mode int32 `protobuf:"varint,3,opt,name=mode,proto3" json:"mode,omitempty"` + From string `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"` + Plugin *PluginArtifact `protobuf:"bytes,5,opt,name=plugin,proto3" json:"plugin,omitempty"` + Optional bool `protobuf:"varint,6,opt,name=optional,proto3" json:"optional,omitempty"` + SubPath string `protobuf:"bytes,7,opt,name=sub_path,json=subPath,proto3" json:"sub_path,omitempty"` + RecurseMode bool `protobuf:"varint,8,opt,name=recurse_mode,json=recurseMode,proto3" json:"recurse_mode,omitempty"` + FromExpression string `protobuf:"bytes,9,opt,name=from_expression,json=fromExpression,proto3" json:"from_expression,omitempty"` + Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *Artifact) Reset() { *m = Artifact{} } -func (m *Artifact) String() string { return proto.CompactTextString(m) } -func (*Artifact) ProtoMessage() {} -func (*Artifact) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{1} +func (x *Artifact) Reset() { + *x = Artifact{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *Artifact) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *Artifact) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Artifact.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*Artifact) ProtoMessage() {} + +func (x *Artifact) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Artifact) XXX_Merge(src proto.Message) { - xxx_messageInfo_Artifact.Merge(m, src) -} -func (m *Artifact) XXX_Size() int { - return m.Size() -} -func (m *Artifact) XXX_DiscardUnknown() { - xxx_messageInfo_Artifact.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Artifact proto.InternalMessageInfo +// Deprecated: Use Artifact.ProtoReflect.Descriptor instead. +func (*Artifact) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{1} +} -func (m *Artifact) GetName() string { - if m != nil { - return m.Name +func (x *Artifact) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Artifact) GetPath() string { - if m != nil { - return m.Path +func (x *Artifact) GetPath() string { + if x != nil { + return x.Path } return "" } -func (m *Artifact) GetMode() int32 { - if m != nil { - return m.Mode +func (x *Artifact) GetMode() int32 { + if x != nil { + return x.Mode } return 0 } -func (m *Artifact) GetFrom() string { - if m != nil { - return m.From +func (x *Artifact) GetFrom() string { + if x != nil { + return x.From } return "" } -func (m *Artifact) GetPlugin() *PluginArtifact { - if m != nil { - return m.Plugin +func (x *Artifact) GetPlugin() *PluginArtifact { + if x != nil { + return x.Plugin } return nil } -func (m *Artifact) GetOptional() bool { - if m != nil { - return m.Optional +func (x *Artifact) GetOptional() bool { + if x != nil { + return x.Optional } return false } -func (m *Artifact) GetSubPath() string { - if m != nil { - return m.SubPath +func (x *Artifact) GetSubPath() string { + if x != nil { + return x.SubPath } return "" } -func (m *Artifact) GetRecurseMode() bool { - if m != nil { - return m.RecurseMode +func (x *Artifact) GetRecurseMode() bool { + if x != nil { + return x.RecurseMode } return false } -func (m *Artifact) GetFromExpression() string { - if m != nil { - return m.FromExpression +func (x *Artifact) GetFromExpression() string { + if x != nil { + return x.FromExpression } return "" } -func (m *Artifact) GetDeleted() bool { - if m != nil { - return m.Deleted +func (x *Artifact) GetDeleted() bool { + if x != nil { + return x.Deleted } return false } type LoadArtifactRequest struct { - InputArtifact *Artifact `protobuf:"bytes,1,opt,name=input_artifact,json=inputArtifact,proto3" json:"input_artifact,omitempty"` - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + InputArtifact *Artifact `protobuf:"bytes,1,opt,name=input_artifact,json=inputArtifact,proto3" json:"input_artifact,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LoadArtifactRequest) Reset() { *m = LoadArtifactRequest{} } -func (m *LoadArtifactRequest) String() string { return proto.CompactTextString(m) } -func (*LoadArtifactRequest) ProtoMessage() {} -func (*LoadArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{2} +func (x *LoadArtifactRequest) Reset() { + *x = LoadArtifactRequest{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LoadArtifactRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *LoadArtifactRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LoadArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LoadArtifactRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*LoadArtifactRequest) ProtoMessage() {} + +func (x *LoadArtifactRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *LoadArtifactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadArtifactRequest.Merge(m, src) -} -func (m *LoadArtifactRequest) XXX_Size() int { - return m.Size() -} -func (m *LoadArtifactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadArtifactRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_LoadArtifactRequest proto.InternalMessageInfo +// Deprecated: Use LoadArtifactRequest.ProtoReflect.Descriptor instead. +func (*LoadArtifactRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{2} +} -func (m *LoadArtifactRequest) GetInputArtifact() *Artifact { - if m != nil { - return m.InputArtifact +func (x *LoadArtifactRequest) GetInputArtifact() *Artifact { + if x != nil { + return x.InputArtifact } return nil } -func (m *LoadArtifactRequest) GetPath() string { - if m != nil { - return m.Path +func (x *LoadArtifactRequest) GetPath() string { + if x != nil { + return x.Path } return "" } type LoadArtifactResponse struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LoadArtifactResponse) Reset() { *m = LoadArtifactResponse{} } -func (m *LoadArtifactResponse) String() string { return proto.CompactTextString(m) } -func (*LoadArtifactResponse) ProtoMessage() {} -func (*LoadArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{3} +func (x *LoadArtifactResponse) Reset() { + *x = LoadArtifactResponse{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LoadArtifactResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *LoadArtifactResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LoadArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LoadArtifactResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*LoadArtifactResponse) ProtoMessage() {} + +func (x *LoadArtifactResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *LoadArtifactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadArtifactResponse.Merge(m, src) -} -func (m *LoadArtifactResponse) XXX_Size() int { - return m.Size() -} -func (m *LoadArtifactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LoadArtifactResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_LoadArtifactResponse proto.InternalMessageInfo +// Deprecated: Use LoadArtifactResponse.ProtoReflect.Descriptor instead. +func (*LoadArtifactResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{3} +} -func (m *LoadArtifactResponse) GetSuccess() bool { - if m != nil { - return m.Success +func (x *LoadArtifactResponse) GetSuccess() bool { + if x != nil { + return x.Success } return false } -func (m *LoadArtifactResponse) GetError() string { - if m != nil { - return m.Error +func (x *LoadArtifactResponse) GetError() string { + if x != nil { + return x.Error } return "" } type OpenStreamRequest struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *OpenStreamRequest) Reset() { *m = OpenStreamRequest{} } -func (m *OpenStreamRequest) String() string { return proto.CompactTextString(m) } -func (*OpenStreamRequest) ProtoMessage() {} -func (*OpenStreamRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{4} +func (x *OpenStreamRequest) Reset() { + *x = OpenStreamRequest{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *OpenStreamRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *OpenStreamRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OpenStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OpenStreamRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*OpenStreamRequest) ProtoMessage() {} + +func (x *OpenStreamRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *OpenStreamRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OpenStreamRequest.Merge(m, src) -} -func (m *OpenStreamRequest) XXX_Size() int { - return m.Size() -} -func (m *OpenStreamRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OpenStreamRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_OpenStreamRequest proto.InternalMessageInfo +// Deprecated: Use OpenStreamRequest.ProtoReflect.Descriptor instead. +func (*OpenStreamRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{4} +} -func (m *OpenStreamRequest) GetArtifact() *Artifact { - if m != nil { - return m.Artifact +func (x *OpenStreamRequest) GetArtifact() *Artifact { + if x != nil { + return x.Artifact } return nil } type OpenStreamResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - IsEnd bool `protobuf:"varint,2,opt,name=is_end,json=isEnd,proto3" json:"is_end,omitempty"` - Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + IsEnd bool `protobuf:"varint,2,opt,name=is_end,json=isEnd,proto3" json:"is_end,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *OpenStreamResponse) Reset() { *m = OpenStreamResponse{} } -func (m *OpenStreamResponse) String() string { return proto.CompactTextString(m) } -func (*OpenStreamResponse) ProtoMessage() {} -func (*OpenStreamResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{5} +func (x *OpenStreamResponse) Reset() { + *x = OpenStreamResponse{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *OpenStreamResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *OpenStreamResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OpenStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OpenStreamResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*OpenStreamResponse) ProtoMessage() {} + +func (x *OpenStreamResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *OpenStreamResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OpenStreamResponse.Merge(m, src) -} -func (m *OpenStreamResponse) XXX_Size() int { - return m.Size() -} -func (m *OpenStreamResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OpenStreamResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_OpenStreamResponse proto.InternalMessageInfo +// Deprecated: Use OpenStreamResponse.ProtoReflect.Descriptor instead. +func (*OpenStreamResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{5} +} -func (m *OpenStreamResponse) GetData() []byte { - if m != nil { - return m.Data +func (x *OpenStreamResponse) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *OpenStreamResponse) GetIsEnd() bool { - if m != nil { - return m.IsEnd +func (x *OpenStreamResponse) GetIsEnd() bool { + if x != nil { + return x.IsEnd } return false } -func (m *OpenStreamResponse) GetError() string { - if m != nil { - return m.Error +func (x *OpenStreamResponse) GetError() string { + if x != nil { + return x.Error } return "" } type SaveArtifactRequest struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - OutputArtifact *Artifact `protobuf:"bytes,2,opt,name=output_artifact,json=outputArtifact,proto3" json:"output_artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + OutputArtifact *Artifact `protobuf:"bytes,2,opt,name=output_artifact,json=outputArtifact,proto3" json:"output_artifact,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *SaveArtifactRequest) Reset() { *m = SaveArtifactRequest{} } -func (m *SaveArtifactRequest) String() string { return proto.CompactTextString(m) } -func (*SaveArtifactRequest) ProtoMessage() {} -func (*SaveArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{6} +func (x *SaveArtifactRequest) Reset() { + *x = SaveArtifactRequest{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *SaveArtifactRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *SaveArtifactRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SaveArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SaveArtifactRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*SaveArtifactRequest) ProtoMessage() {} + +func (x *SaveArtifactRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SaveArtifactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SaveArtifactRequest.Merge(m, src) -} -func (m *SaveArtifactRequest) XXX_Size() int { - return m.Size() -} -func (m *SaveArtifactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SaveArtifactRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SaveArtifactRequest proto.InternalMessageInfo +// Deprecated: Use SaveArtifactRequest.ProtoReflect.Descriptor instead. +func (*SaveArtifactRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{6} +} -func (m *SaveArtifactRequest) GetPath() string { - if m != nil { - return m.Path +func (x *SaveArtifactRequest) GetPath() string { + if x != nil { + return x.Path } return "" } -func (m *SaveArtifactRequest) GetOutputArtifact() *Artifact { - if m != nil { - return m.OutputArtifact +func (x *SaveArtifactRequest) GetOutputArtifact() *Artifact { + if x != nil { + return x.OutputArtifact } return nil } type SaveArtifactResponse struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *SaveArtifactResponse) Reset() { *m = SaveArtifactResponse{} } -func (m *SaveArtifactResponse) String() string { return proto.CompactTextString(m) } -func (*SaveArtifactResponse) ProtoMessage() {} -func (*SaveArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{7} +func (x *SaveArtifactResponse) Reset() { + *x = SaveArtifactResponse{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *SaveArtifactResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *SaveArtifactResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SaveArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SaveArtifactResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*SaveArtifactResponse) ProtoMessage() {} + +func (x *SaveArtifactResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SaveArtifactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SaveArtifactResponse.Merge(m, src) -} -func (m *SaveArtifactResponse) XXX_Size() int { - return m.Size() -} -func (m *SaveArtifactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SaveArtifactResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SaveArtifactResponse proto.InternalMessageInfo +// Deprecated: Use SaveArtifactResponse.ProtoReflect.Descriptor instead. +func (*SaveArtifactResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{7} +} -func (m *SaveArtifactResponse) GetSuccess() bool { - if m != nil { - return m.Success +func (x *SaveArtifactResponse) GetSuccess() bool { + if x != nil { + return x.Success } return false } -func (m *SaveArtifactResponse) GetError() string { - if m != nil { - return m.Error +func (x *SaveArtifactResponse) GetError() string { + if x != nil { + return x.Error } return "" } type DeleteArtifactRequest struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *DeleteArtifactRequest) Reset() { *m = DeleteArtifactRequest{} } -func (m *DeleteArtifactRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteArtifactRequest) ProtoMessage() {} -func (*DeleteArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{8} +func (x *DeleteArtifactRequest) Reset() { + *x = DeleteArtifactRequest{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteArtifactRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DeleteArtifactRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteArtifactRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DeleteArtifactRequest) ProtoMessage() {} + +func (x *DeleteArtifactRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeleteArtifactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteArtifactRequest.Merge(m, src) -} -func (m *DeleteArtifactRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteArtifactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteArtifactRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteArtifactRequest proto.InternalMessageInfo +// Deprecated: Use DeleteArtifactRequest.ProtoReflect.Descriptor instead. +func (*DeleteArtifactRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{8} +} -func (m *DeleteArtifactRequest) GetArtifact() *Artifact { - if m != nil { - return m.Artifact +func (x *DeleteArtifactRequest) GetArtifact() *Artifact { + if x != nil { + return x.Artifact } return nil } type DeleteArtifactResponse struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *DeleteArtifactResponse) Reset() { *m = DeleteArtifactResponse{} } -func (m *DeleteArtifactResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteArtifactResponse) ProtoMessage() {} -func (*DeleteArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{9} +func (x *DeleteArtifactResponse) Reset() { + *x = DeleteArtifactResponse{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteArtifactResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DeleteArtifactResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteArtifactResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DeleteArtifactResponse) ProtoMessage() {} + +func (x *DeleteArtifactResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeleteArtifactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteArtifactResponse.Merge(m, src) -} -func (m *DeleteArtifactResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteArtifactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteArtifactResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteArtifactResponse proto.InternalMessageInfo +// Deprecated: Use DeleteArtifactResponse.ProtoReflect.Descriptor instead. +func (*DeleteArtifactResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{9} +} -func (m *DeleteArtifactResponse) GetSuccess() bool { - if m != nil { - return m.Success +func (x *DeleteArtifactResponse) GetSuccess() bool { + if x != nil { + return x.Success } return false } -func (m *DeleteArtifactResponse) GetError() string { - if m != nil { - return m.Error +func (x *DeleteArtifactResponse) GetError() string { + if x != nil { + return x.Error } return "" } type ListObjectsRequest struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ListObjectsRequest) Reset() { *m = ListObjectsRequest{} } -func (m *ListObjectsRequest) String() string { return proto.CompactTextString(m) } -func (*ListObjectsRequest) ProtoMessage() {} -func (*ListObjectsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{10} +func (x *ListObjectsRequest) Reset() { + *x = ListObjectsRequest{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListObjectsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListObjectsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListObjectsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListObjectsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListObjectsRequest) ProtoMessage() {} + +func (x *ListObjectsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListObjectsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListObjectsRequest.Merge(m, src) -} -func (m *ListObjectsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListObjectsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListObjectsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListObjectsRequest proto.InternalMessageInfo +// Deprecated: Use ListObjectsRequest.ProtoReflect.Descriptor instead. +func (*ListObjectsRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{10} +} -func (m *ListObjectsRequest) GetArtifact() *Artifact { - if m != nil { - return m.Artifact +func (x *ListObjectsRequest) GetArtifact() *Artifact { + if x != nil { + return x.Artifact } return nil } type ListObjectsResponse struct { - Objects []string `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Objects []string `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ListObjectsResponse) Reset() { *m = ListObjectsResponse{} } -func (m *ListObjectsResponse) String() string { return proto.CompactTextString(m) } -func (*ListObjectsResponse) ProtoMessage() {} -func (*ListObjectsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{11} +func (x *ListObjectsResponse) Reset() { + *x = ListObjectsResponse{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListObjectsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListObjectsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListObjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListObjectsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListObjectsResponse) ProtoMessage() {} + +func (x *ListObjectsResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListObjectsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListObjectsResponse.Merge(m, src) -} -func (m *ListObjectsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListObjectsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListObjectsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListObjectsResponse proto.InternalMessageInfo +// Deprecated: Use ListObjectsResponse.ProtoReflect.Descriptor instead. +func (*ListObjectsResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{11} +} -func (m *ListObjectsResponse) GetObjects() []string { - if m != nil { - return m.Objects +func (x *ListObjectsResponse) GetObjects() []string { + if x != nil { + return x.Objects } return nil } -func (m *ListObjectsResponse) GetError() string { - if m != nil { - return m.Error +func (x *ListObjectsResponse) GetError() string { + if x != nil { + return x.Error } return "" } type IsDirectoryRequest struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *IsDirectoryRequest) Reset() { *m = IsDirectoryRequest{} } -func (m *IsDirectoryRequest) String() string { return proto.CompactTextString(m) } -func (*IsDirectoryRequest) ProtoMessage() {} -func (*IsDirectoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{12} +func (x *IsDirectoryRequest) Reset() { + *x = IsDirectoryRequest{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *IsDirectoryRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *IsDirectoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IsDirectoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IsDirectoryRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*IsDirectoryRequest) ProtoMessage() {} + +func (x *IsDirectoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *IsDirectoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsDirectoryRequest.Merge(m, src) -} -func (m *IsDirectoryRequest) XXX_Size() int { - return m.Size() -} -func (m *IsDirectoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IsDirectoryRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_IsDirectoryRequest proto.InternalMessageInfo +// Deprecated: Use IsDirectoryRequest.ProtoReflect.Descriptor instead. +func (*IsDirectoryRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{12} +} -func (m *IsDirectoryRequest) GetArtifact() *Artifact { - if m != nil { - return m.Artifact +func (x *IsDirectoryRequest) GetArtifact() *Artifact { + if x != nil { + return x.Artifact } return nil } type IsDirectoryResponse struct { - IsDirectory bool `protobuf:"varint,1,opt,name=is_directory,json=isDirectory,proto3" json:"is_directory,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + IsDirectory bool `protobuf:"varint,1,opt,name=is_directory,json=isDirectory,proto3" json:"is_directory,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *IsDirectoryResponse) Reset() { *m = IsDirectoryResponse{} } -func (m *IsDirectoryResponse) String() string { return proto.CompactTextString(m) } -func (*IsDirectoryResponse) ProtoMessage() {} -func (*IsDirectoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{13} +func (x *IsDirectoryResponse) Reset() { + *x = IsDirectoryResponse{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *IsDirectoryResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *IsDirectoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IsDirectoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IsDirectoryResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*IsDirectoryResponse) ProtoMessage() {} + +func (x *IsDirectoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *IsDirectoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsDirectoryResponse.Merge(m, src) -} -func (m *IsDirectoryResponse) XXX_Size() int { - return m.Size() -} -func (m *IsDirectoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IsDirectoryResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_IsDirectoryResponse proto.InternalMessageInfo +// Deprecated: Use IsDirectoryResponse.ProtoReflect.Descriptor instead. +func (*IsDirectoryResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{13} +} -func (m *IsDirectoryResponse) GetIsDirectory() bool { - if m != nil { - return m.IsDirectory +func (x *IsDirectoryResponse) GetIsDirectory() bool { + if x != nil { + return x.IsDirectory } return false } -func (m *IsDirectoryResponse) GetError() string { - if m != nil { - return m.Error +func (x *IsDirectoryResponse) GetError() string { + if x != nil { + return x.Error } return "" } @@ -863,3878 +816,297 @@ func (m *IsDirectoryResponse) GetError() string { // output_artifact (metadata only), and every subsequent frame carries a chunk of the // artifact's content. type SaveStreamArtifactRequest struct { - OutputArtifact *Artifact `protobuf:"bytes,1,opt,name=output_artifact,json=outputArtifact,proto3" json:"output_artifact,omitempty"` - Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + OutputArtifact *Artifact `protobuf:"bytes,1,opt,name=output_artifact,json=outputArtifact,proto3" json:"output_artifact,omitempty"` + Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *SaveStreamArtifactRequest) Reset() { *m = SaveStreamArtifactRequest{} } -func (m *SaveStreamArtifactRequest) String() string { return proto.CompactTextString(m) } -func (*SaveStreamArtifactRequest) ProtoMessage() {} -func (*SaveStreamArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{14} -} -func (m *SaveStreamArtifactRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SaveStreamArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SaveStreamArtifactRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SaveStreamArtifactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SaveStreamArtifactRequest.Merge(m, src) -} -func (m *SaveStreamArtifactRequest) XXX_Size() int { - return m.Size() -} -func (m *SaveStreamArtifactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SaveStreamArtifactRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SaveStreamArtifactRequest proto.InternalMessageInfo - -func (m *SaveStreamArtifactRequest) GetOutputArtifact() *Artifact { - if m != nil { - return m.OutputArtifact - } - return nil -} - -func (m *SaveStreamArtifactRequest) GetChunk() []byte { - if m != nil { - return m.Chunk - } - return nil -} - -type GetCapabilitiesRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SaveStreamArtifactRequest) Reset() { + *x = SaveStreamArtifactRequest{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *GetCapabilitiesRequest) Reset() { *m = GetCapabilitiesRequest{} } -func (m *GetCapabilitiesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCapabilitiesRequest) ProtoMessage() {} -func (*GetCapabilitiesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{15} -} -func (m *GetCapabilitiesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetCapabilitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetCapabilitiesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetCapabilitiesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCapabilitiesRequest.Merge(m, src) -} -func (m *GetCapabilitiesRequest) XXX_Size() int { - return m.Size() -} -func (m *GetCapabilitiesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCapabilitiesRequest.DiscardUnknown(m) +func (x *SaveStreamArtifactRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetCapabilitiesRequest proto.InternalMessageInfo - -type GetCapabilitiesResponse struct { - // supports_save_stream indicates whether this plugin implements the streaming - // SaveStream RPC. Callers should check this before invoking SaveStream, since a - // reader already partially consumed cannot be rewound to fall back to Save. - SupportsSaveStream bool `protobuf:"varint,1,opt,name=supports_save_stream,json=supportsSaveStream,proto3" json:"supports_save_stream,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*SaveStreamArtifactRequest) ProtoMessage() {} -func (m *GetCapabilitiesResponse) Reset() { *m = GetCapabilitiesResponse{} } -func (m *GetCapabilitiesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCapabilitiesResponse) ProtoMessage() {} -func (*GetCapabilitiesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a89d6010ce1ebcb2, []int{16} -} -func (m *GetCapabilitiesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetCapabilitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetCapabilitiesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *SaveStreamArtifactRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *GetCapabilitiesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCapabilitiesResponse.Merge(m, src) -} -func (m *GetCapabilitiesResponse) XXX_Size() int { - return m.Size() -} -func (m *GetCapabilitiesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCapabilitiesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCapabilitiesResponse proto.InternalMessageInfo - -func (m *GetCapabilitiesResponse) GetSupportsSaveStream() bool { - if m != nil { - return m.SupportsSaveStream + return ms } - return false -} - -func init() { - proto.RegisterType((*PluginArtifact)(nil), "artifact.PluginArtifact") - proto.RegisterType((*Artifact)(nil), "artifact.Artifact") - proto.RegisterType((*LoadArtifactRequest)(nil), "artifact.LoadArtifactRequest") - proto.RegisterType((*LoadArtifactResponse)(nil), "artifact.LoadArtifactResponse") - proto.RegisterType((*OpenStreamRequest)(nil), "artifact.OpenStreamRequest") - proto.RegisterType((*OpenStreamResponse)(nil), "artifact.OpenStreamResponse") - proto.RegisterType((*SaveArtifactRequest)(nil), "artifact.SaveArtifactRequest") - proto.RegisterType((*SaveArtifactResponse)(nil), "artifact.SaveArtifactResponse") - proto.RegisterType((*DeleteArtifactRequest)(nil), "artifact.DeleteArtifactRequest") - proto.RegisterType((*DeleteArtifactResponse)(nil), "artifact.DeleteArtifactResponse") - proto.RegisterType((*ListObjectsRequest)(nil), "artifact.ListObjectsRequest") - proto.RegisterType((*ListObjectsResponse)(nil), "artifact.ListObjectsResponse") - proto.RegisterType((*IsDirectoryRequest)(nil), "artifact.IsDirectoryRequest") - proto.RegisterType((*IsDirectoryResponse)(nil), "artifact.IsDirectoryResponse") - proto.RegisterType((*SaveStreamArtifactRequest)(nil), "artifact.SaveStreamArtifactRequest") - proto.RegisterType((*GetCapabilitiesRequest)(nil), "artifact.GetCapabilitiesRequest") - proto.RegisterType((*GetCapabilitiesResponse)(nil), "artifact.GetCapabilitiesResponse") -} - -func init() { - proto.RegisterFile("pkg/apiclient/artifact/artifact.proto", fileDescriptor_a89d6010ce1ebcb2) -} - -var fileDescriptor_a89d6010ce1ebcb2 = []byte{ - // 938 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0x9f, 0x4d, 0x1c, 0x47, 0x7d, 0x4e, 0x13, 0xd8, 0xa4, 0x41, 0x75, 0x1b, 0xe3, 0x28, 0x30, - 0x98, 0xce, 0x34, 0x0e, 0x81, 0x0b, 0xa5, 0x17, 0x68, 0x42, 0xf9, 0x53, 0x68, 0xc7, 0x06, 0x0e, - 0x5c, 0x34, 0x6b, 0x69, 0xed, 0x6c, 0x63, 0xef, 0x8a, 0xdd, 0x95, 0x4b, 0xaf, 0x7c, 0x05, 0x6e, - 0x7c, 0x03, 0xbe, 0x09, 0x47, 0x66, 0xb8, 0x71, 0x62, 0x32, 0x7c, 0x10, 0x66, 0x57, 0x92, 0x25, - 0xd9, 0x72, 0x12, 0x72, 0x7b, 0xef, 0xed, 0xdb, 0xf7, 0xfb, 0xbd, 0xdf, 0xee, 0x5b, 0x09, 0xde, - 0x8d, 0xce, 0x47, 0x5d, 0x12, 0xb1, 0x60, 0xcc, 0x28, 0xd7, 0x5d, 0x22, 0x35, 0x1b, 0x92, 0x20, - 0x37, 0x0e, 0x23, 0x29, 0xb4, 0xc0, 0x4e, 0xe6, 0x37, 0xef, 0x8f, 0x84, 0x18, 0x8d, 0xa9, 0xd9, - 0xd3, 0x25, 0x9c, 0x0b, 0x4d, 0x34, 0x13, 0x5c, 0x25, 0x79, 0xde, 0x6f, 0x08, 0x36, 0x5f, 0x8c, - 0xe3, 0x11, 0xe3, 0x9f, 0xa6, 0x1b, 0x30, 0x86, 0x1a, 0x27, 0x13, 0xea, 0xa2, 0x36, 0xea, 0xdc, - 0xea, 0x59, 0x1b, 0xbf, 0x03, 0xb7, 0x03, 0xc1, 0x87, 0x6c, 0x14, 0x4b, 0xbb, 0xdd, 0x5d, 0xb1, - 0x8b, 0xe5, 0x20, 0x7e, 0x0c, 0xcd, 0x40, 0x70, 0x4e, 0x03, 0xe3, 0xf9, 0x9a, 0x4d, 0xa8, 0x88, - 0xb5, 0xaf, 0x68, 0x20, 0x78, 0xa8, 0xdc, 0xd5, 0x36, 0xea, 0xac, 0xf5, 0xdc, 0x3c, 0xe3, 0xbb, - 0x24, 0xa1, 0x9f, 0xac, 0xe3, 0x37, 0x60, 0xf5, 0x9c, 0xbe, 0x76, 0x6b, 0xb6, 0xb2, 0x31, 0xbd, - 0xdf, 0x57, 0xc0, 0xb9, 0x94, 0x16, 0x86, 0x5a, 0x44, 0xf4, 0x59, 0xca, 0xc6, 0xda, 0x26, 0x36, - 0x11, 0x21, 0x4d, 0xe1, 0xac, 0x6d, 0x62, 0x43, 0x29, 0x26, 0x69, 0x6d, 0x6b, 0xe3, 0x23, 0xa8, - 0x47, 0xb6, 0x71, 0x77, 0xad, 0x8d, 0x3a, 0x8d, 0x63, 0xf7, 0x70, 0x26, 0x61, 0x59, 0x90, 0x5e, - 0x9a, 0x87, 0x9b, 0xe0, 0x88, 0xc8, 0x10, 0x27, 0x63, 0xb7, 0xde, 0x46, 0x1d, 0xa7, 0x37, 0xf3, - 0xf1, 0x5d, 0x70, 0x54, 0x3c, 0xf0, 0x2d, 0x9b, 0x75, 0x8b, 0xb2, 0xae, 0xe2, 0xc1, 0x0b, 0x43, - 0x68, 0x1f, 0x36, 0x24, 0x0d, 0x62, 0xa9, 0xa8, 0x6f, 0x89, 0x39, 0x76, 0x6b, 0x23, 0x8d, 0x7d, - 0x63, 0xf8, 0xbd, 0x07, 0x5b, 0x86, 0x93, 0x4f, 0x7f, 0x8e, 0x24, 0x55, 0xca, 0x08, 0x7c, 0xcb, - 0x16, 0xd9, 0x34, 0xe1, 0xd3, 0x59, 0x14, 0xbb, 0xb0, 0x1e, 0xd2, 0x31, 0xd5, 0x34, 0x74, 0xc1, - 0x96, 0xc9, 0x5c, 0x2f, 0x84, 0xed, 0x67, 0x82, 0x84, 0x33, 0xd2, 0xf4, 0xa7, 0x98, 0x2a, 0x8d, - 0x3f, 0x86, 0x4d, 0xc6, 0xa3, 0x58, 0xfb, 0x59, 0x73, 0x56, 0xbf, 0xc6, 0x31, 0xce, 0xbb, 0x9d, - 0x6d, 0xb9, 0x6d, 0x33, 0x8b, 0x82, 0xcf, 0x8b, 0xeb, 0x7d, 0x0e, 0x3b, 0x65, 0x14, 0x15, 0x09, - 0xae, 0xa8, 0xe1, 0xa5, 0xe2, 0x20, 0xa0, 0x4a, 0xd9, 0xfa, 0x4e, 0x2f, 0x73, 0xf1, 0x0e, 0xac, - 0x51, 0x29, 0x85, 0x4c, 0xcb, 0x24, 0x8e, 0xf7, 0x04, 0xde, 0x7c, 0x1e, 0x51, 0xde, 0xd7, 0x92, - 0x92, 0x49, 0xc6, 0xf5, 0x10, 0x9c, 0x6b, 0xb0, 0x9c, 0xe5, 0x78, 0xdf, 0x03, 0x2e, 0x16, 0x49, - 0xa9, 0x60, 0xa8, 0x85, 0x44, 0x13, 0x5b, 0x61, 0xa3, 0x67, 0x6d, 0x7c, 0x07, 0xea, 0x4c, 0xf9, - 0x94, 0x87, 0x96, 0x85, 0xd3, 0x5b, 0x63, 0xea, 0x94, 0x87, 0x39, 0xb7, 0xd5, 0x22, 0xb7, 0x21, - 0x6c, 0xf7, 0xc9, 0x94, 0xce, 0x2b, 0x99, 0xc9, 0x81, 0x0a, 0x77, 0xed, 0x13, 0xd8, 0x12, 0xb1, - 0x2e, 0xc9, 0xbb, 0xb2, 0x94, 0xf8, 0x66, 0x92, 0x9a, 0xf9, 0x46, 0xcb, 0x32, 0xce, 0x0d, 0xb5, - 0x7c, 0x0a, 0x77, 0x4e, 0xec, 0x25, 0x98, 0x67, 0xfc, 0x7f, 0xf5, 0xfc, 0x02, 0x76, 0xe7, 0x0b, - 0xdd, 0x90, 0xd2, 0x09, 0xe0, 0x67, 0x4c, 0xe9, 0xe7, 0x83, 0x97, 0x34, 0xd0, 0xea, 0xa6, 0x7c, - 0x4e, 0x61, 0xbb, 0x54, 0x25, 0x27, 0x23, 0x92, 0x90, 0x8b, 0xda, 0xab, 0x66, 0xd2, 0x52, 0x77, - 0x39, 0x99, 0x2f, 0xd5, 0x09, 0x93, 0x34, 0xd0, 0x42, 0xbe, 0xbe, 0x29, 0x99, 0x6f, 0x61, 0xbb, - 0x54, 0x25, 0x25, 0xb3, 0x0f, 0x1b, 0x4c, 0xf9, 0x61, 0x16, 0x4f, 0xe5, 0x69, 0xb0, 0x3c, 0x75, - 0x09, 0x2b, 0x0e, 0x77, 0xcd, 0xe9, 0x27, 0x97, 0x77, 0xfe, 0xe4, 0x2a, 0xee, 0x15, 0xba, 0xee, - 0xbd, 0x32, 0x78, 0xc1, 0x59, 0xcc, 0xcf, 0x2d, 0xde, 0x46, 0x2f, 0x71, 0x3c, 0x17, 0x76, 0x9f, - 0x52, 0xfd, 0x84, 0x44, 0x64, 0xc0, 0xc6, 0x4c, 0x33, 0x9a, 0x1d, 0x8b, 0xf7, 0x35, 0xbc, 0xb5, - 0xb0, 0x92, 0x76, 0x77, 0x04, 0x3b, 0x2a, 0x8e, 0x22, 0x21, 0xb5, 0xf2, 0x15, 0x99, 0x52, 0x5f, - 0x59, 0xba, 0x69, 0x97, 0x38, 0x5b, 0xcb, 0x1b, 0x39, 0xfe, 0xbb, 0x0e, 0x5b, 0x19, 0x93, 0x3e, - 0x95, 0x53, 0x16, 0x50, 0x7c, 0x06, 0x35, 0xf3, 0x68, 0xe0, 0xbd, 0x9c, 0x7c, 0xc5, 0x53, 0xd5, - 0x6c, 0x2d, 0x5b, 0x4e, 0xc8, 0x78, 0xfb, 0xbf, 0xfc, 0xf5, 0xef, 0xaf, 0x2b, 0xf7, 0xbc, 0x5d, - 0xfb, 0x29, 0x9b, 0x7e, 0x30, 0xfb, 0xe4, 0xa9, 0xee, 0x58, 0x90, 0xf0, 0x11, 0x7a, 0x80, 0x39, - 0x40, 0xfe, 0x22, 0xe0, 0x7b, 0x79, 0xc1, 0x85, 0xc7, 0xa6, 0x79, 0xbf, 0x7a, 0x31, 0xc5, 0x3a, - 0xb0, 0x58, 0x7b, 0x9e, 0xbb, 0x88, 0x95, 0x48, 0xf0, 0x08, 0x3d, 0x38, 0x42, 0xa6, 0x33, 0xd3, - 0x7b, 0xb1, 0xb3, 0x8a, 0xa7, 0xa3, 0xd8, 0x59, 0xd5, 0xc4, 0x5f, 0xd6, 0x99, 0x51, 0xdd, 0x74, - 0x16, 0x41, 0x3d, 0x99, 0x4d, 0xfc, 0x76, 0x5e, 0xac, 0x72, 0xec, 0x9b, 0xed, 0xe5, 0x09, 0x57, - 0x77, 0x97, 0x7c, 0x4e, 0x0c, 0xe2, 0x04, 0x1a, 0x85, 0xe9, 0xc3, 0x05, 0xbd, 0x16, 0x47, 0xbb, - 0xb9, 0xb7, 0x64, 0xf5, 0x1a, 0x47, 0xc7, 0x94, 0x36, 0x70, 0x31, 0x34, 0x0a, 0xf3, 0x55, 0x84, - 0x5b, 0x1c, 0xde, 0x22, 0x5c, 0xc5, 0x50, 0x7a, 0xef, 0x5b, 0xb8, 0x03, 0xaf, 0xb5, 0x08, 0xc7, - 0xd4, 0xc3, 0xd9, 0xb0, 0x1a, 0xd8, 0x3e, 0x40, 0x7e, 0x7b, 0xf1, 0x41, 0xf9, 0xa0, 0x2a, 0x87, - 0xf3, 0xaa, 0xd3, 0xec, 0x20, 0xfc, 0x03, 0x6c, 0xcd, 0x4d, 0x14, 0x2e, 0x1c, 0x4a, 0xf5, 0x18, - 0x36, 0xf7, 0x2f, 0xc9, 0x48, 0x2a, 0x7f, 0xf6, 0xd5, 0x1f, 0x17, 0x2d, 0xf4, 0xe7, 0x45, 0x0b, - 0xfd, 0x73, 0xd1, 0x42, 0x3f, 0x3e, 0x1e, 0x31, 0x7d, 0x16, 0x0f, 0x0e, 0x03, 0x31, 0xe9, 0x12, - 0x39, 0x12, 0x91, 0x14, 0x2f, 0xad, 0xf1, 0xf0, 0x95, 0x90, 0xe7, 0xc3, 0xb1, 0x78, 0xa5, 0xba, - 0xd3, 0x8f, 0xba, 0xd5, 0xff, 0x8b, 0x83, 0xba, 0xfd, 0xff, 0xfb, 0xf0, 0xbf, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x40, 0xd0, 0x9f, 0x2a, 0x50, 0x0a, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ArtifactServiceClient is the client API for ArtifactService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ArtifactServiceClient interface { - Load(ctx context.Context, in *LoadArtifactRequest, opts ...grpc.CallOption) (*LoadArtifactResponse, error) - OpenStream(ctx context.Context, in *OpenStreamRequest, opts ...grpc.CallOption) (ArtifactService_OpenStreamClient, error) - Save(ctx context.Context, in *SaveArtifactRequest, opts ...grpc.CallOption) (*SaveArtifactResponse, error) - Delete(ctx context.Context, in *DeleteArtifactRequest, opts ...grpc.CallOption) (*DeleteArtifactResponse, error) - ListObjects(ctx context.Context, in *ListObjectsRequest, opts ...grpc.CallOption) (*ListObjectsResponse, error) - IsDirectory(ctx context.Context, in *IsDirectoryRequest, opts ...grpc.CallOption) (*IsDirectoryResponse, error) - // SaveStream is a client-streaming RPC for plugins that can accept an artifact's - // content chunk by chunk instead of buffering it to a temp file first. No HTTP - // gateway is exposed for this RPC: plugins communicate over a direct gRPC - // connection on a unix socket, so no HTTP transcoding is needed, and - // grpc-gateway v1 cannot cleanly represent client-streaming RPCs anyway. - // - // EXPERIMENTAL: this RPC ships ahead of its in-tree consumer. Its framing (a - // metadata-only first frame, then chunk frames) and the GetCapabilities handshake - // may change until a consumer lands, so plugins implementing it should expect churn. - SaveStream(ctx context.Context, opts ...grpc.CallOption) (ArtifactService_SaveStreamClient, error) - // GetCapabilities lets a caller check whether a plugin supports SaveStream before - // it starts reading the artifact's content, since a partially consumed reader - // cannot be rewound to fall back to Save. - // - // EXPERIMENTAL: see SaveStream. Subject to change until an in-tree consumer lands. - GetCapabilities(ctx context.Context, in *GetCapabilitiesRequest, opts ...grpc.CallOption) (*GetCapabilitiesResponse, error) + return mi.MessageOf(x) } -type artifactServiceClient struct { - cc *grpc.ClientConn -} - -func NewArtifactServiceClient(cc *grpc.ClientConn) ArtifactServiceClient { - return &artifactServiceClient{cc} +// Deprecated: Use SaveStreamArtifactRequest.ProtoReflect.Descriptor instead. +func (*SaveStreamArtifactRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{14} } -func (c *artifactServiceClient) Load(ctx context.Context, in *LoadArtifactRequest, opts ...grpc.CallOption) (*LoadArtifactResponse, error) { - out := new(LoadArtifactResponse) - err := c.cc.Invoke(ctx, "/artifact.ArtifactService/Load", in, out, opts...) - if err != nil { - return nil, err +func (x *SaveStreamArtifactRequest) GetOutputArtifact() *Artifact { + if x != nil { + return x.OutputArtifact } - return out, nil + return nil } -func (c *artifactServiceClient) OpenStream(ctx context.Context, in *OpenStreamRequest, opts ...grpc.CallOption) (ArtifactService_OpenStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArtifactService_serviceDesc.Streams[0], "/artifact.ArtifactService/OpenStream", opts...) - if err != nil { - return nil, err +func (x *SaveStreamArtifactRequest) GetChunk() []byte { + if x != nil { + return x.Chunk } - x := &artifactServiceOpenStreamClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ArtifactService_OpenStreamClient interface { - Recv() (*OpenStreamResponse, error) - grpc.ClientStream -} - -type artifactServiceOpenStreamClient struct { - grpc.ClientStream + return nil } -func (x *artifactServiceOpenStreamClient) Recv() (*OpenStreamResponse, error) { - m := new(OpenStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +type GetCapabilitiesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (c *artifactServiceClient) Save(ctx context.Context, in *SaveArtifactRequest, opts ...grpc.CallOption) (*SaveArtifactResponse, error) { - out := new(SaveArtifactResponse) - err := c.cc.Invoke(ctx, "/artifact.ArtifactService/Save", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *GetCapabilitiesRequest) Reset() { + *x = GetCapabilitiesRequest{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (c *artifactServiceClient) Delete(ctx context.Context, in *DeleteArtifactRequest, opts ...grpc.CallOption) (*DeleteArtifactResponse, error) { - out := new(DeleteArtifactResponse) - err := c.cc.Invoke(ctx, "/artifact.ArtifactService/Delete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *GetCapabilitiesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *artifactServiceClient) ListObjects(ctx context.Context, in *ListObjectsRequest, opts ...grpc.CallOption) (*ListObjectsResponse, error) { - out := new(ListObjectsResponse) - err := c.cc.Invoke(ctx, "/artifact.ArtifactService/ListObjects", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*GetCapabilitiesRequest) ProtoMessage() {} -func (c *artifactServiceClient) IsDirectory(ctx context.Context, in *IsDirectoryRequest, opts ...grpc.CallOption) (*IsDirectoryResponse, error) { - out := new(IsDirectoryResponse) - err := c.cc.Invoke(ctx, "/artifact.ArtifactService/IsDirectory", in, out, opts...) - if err != nil { - return nil, err +func (x *GetCapabilitiesRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *artifactServiceClient) SaveStream(ctx context.Context, opts ...grpc.CallOption) (ArtifactService_SaveStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_ArtifactService_serviceDesc.Streams[1], "/artifact.ArtifactService/SaveStream", opts...) - if err != nil { - return nil, err - } - x := &artifactServiceSaveStreamClient{stream} - return x, nil +// Deprecated: Use GetCapabilitiesRequest.ProtoReflect.Descriptor instead. +func (*GetCapabilitiesRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{15} } -type ArtifactService_SaveStreamClient interface { - Send(*SaveStreamArtifactRequest) error - CloseAndRecv() (*SaveArtifactResponse, error) - grpc.ClientStream +type GetCapabilitiesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // supports_save_stream indicates whether this plugin implements the streaming + // SaveStream RPC. Callers should check this before invoking SaveStream, since a + // reader already partially consumed cannot be rewound to fall back to Save. + SupportsSaveStream bool `protobuf:"varint,1,opt,name=supports_save_stream,json=supportsSaveStream,proto3" json:"supports_save_stream,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type artifactServiceSaveStreamClient struct { - grpc.ClientStream +func (x *GetCapabilitiesResponse) Reset() { + *x = GetCapabilitiesResponse{} + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *artifactServiceSaveStreamClient) Send(m *SaveStreamArtifactRequest) error { - return x.ClientStream.SendMsg(m) +func (x *GetCapabilitiesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *artifactServiceSaveStreamClient) CloseAndRecv() (*SaveArtifactResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(SaveArtifactResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +func (*GetCapabilitiesResponse) ProtoMessage() {} -func (c *artifactServiceClient) GetCapabilities(ctx context.Context, in *GetCapabilitiesRequest, opts ...grpc.CallOption) (*GetCapabilitiesResponse, error) { - out := new(GetCapabilitiesResponse) - err := c.cc.Invoke(ctx, "/artifact.ArtifactService/GetCapabilities", in, out, opts...) - if err != nil { - return nil, err +func (x *GetCapabilitiesResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_artifact_artifact_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil -} - -// ArtifactServiceServer is the server API for ArtifactService service. -type ArtifactServiceServer interface { - Load(context.Context, *LoadArtifactRequest) (*LoadArtifactResponse, error) - OpenStream(*OpenStreamRequest, ArtifactService_OpenStreamServer) error - Save(context.Context, *SaveArtifactRequest) (*SaveArtifactResponse, error) - Delete(context.Context, *DeleteArtifactRequest) (*DeleteArtifactResponse, error) - ListObjects(context.Context, *ListObjectsRequest) (*ListObjectsResponse, error) - IsDirectory(context.Context, *IsDirectoryRequest) (*IsDirectoryResponse, error) - // SaveStream is a client-streaming RPC for plugins that can accept an artifact's - // content chunk by chunk instead of buffering it to a temp file first. No HTTP - // gateway is exposed for this RPC: plugins communicate over a direct gRPC - // connection on a unix socket, so no HTTP transcoding is needed, and - // grpc-gateway v1 cannot cleanly represent client-streaming RPCs anyway. - // - // EXPERIMENTAL: this RPC ships ahead of its in-tree consumer. Its framing (a - // metadata-only first frame, then chunk frames) and the GetCapabilities handshake - // may change until a consumer lands, so plugins implementing it should expect churn. - SaveStream(ArtifactService_SaveStreamServer) error - // GetCapabilities lets a caller check whether a plugin supports SaveStream before - // it starts reading the artifact's content, since a partially consumed reader - // cannot be rewound to fall back to Save. - // - // EXPERIMENTAL: see SaveStream. Subject to change until an in-tree consumer lands. - GetCapabilities(context.Context, *GetCapabilitiesRequest) (*GetCapabilitiesResponse, error) -} - -// UnimplementedArtifactServiceServer can be embedded to have forward compatible implementations. -type UnimplementedArtifactServiceServer struct { -} - -func (*UnimplementedArtifactServiceServer) Load(ctx context.Context, req *LoadArtifactRequest) (*LoadArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Load not implemented") -} -func (*UnimplementedArtifactServiceServer) OpenStream(req *OpenStreamRequest, srv ArtifactService_OpenStreamServer) error { - return status.Errorf(codes.Unimplemented, "method OpenStream not implemented") -} -func (*UnimplementedArtifactServiceServer) Save(ctx context.Context, req *SaveArtifactRequest) (*SaveArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Save not implemented") -} -func (*UnimplementedArtifactServiceServer) Delete(ctx context.Context, req *DeleteArtifactRequest) (*DeleteArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} -func (*UnimplementedArtifactServiceServer) ListObjects(ctx context.Context, req *ListObjectsRequest) (*ListObjectsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListObjects not implemented") -} -func (*UnimplementedArtifactServiceServer) IsDirectory(ctx context.Context, req *IsDirectoryRequest) (*IsDirectoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsDirectory not implemented") -} -func (*UnimplementedArtifactServiceServer) SaveStream(srv ArtifactService_SaveStreamServer) error { - return status.Errorf(codes.Unimplemented, "method SaveStream not implemented") -} -func (*UnimplementedArtifactServiceServer) GetCapabilities(ctx context.Context, req *GetCapabilitiesRequest) (*GetCapabilitiesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCapabilities not implemented") -} - -func RegisterArtifactServiceServer(s *grpc.Server, srv ArtifactServiceServer) { - s.RegisterService(&_ArtifactService_serviceDesc, srv) + return mi.MessageOf(x) } -func _ArtifactService_Load_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactServiceServer).Load(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/artifact.ArtifactService/Load", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactServiceServer).Load(ctx, req.(*LoadArtifactRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use GetCapabilitiesResponse.ProtoReflect.Descriptor instead. +func (*GetCapabilitiesResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_artifact_artifact_proto_rawDescGZIP(), []int{16} } -func _ArtifactService_OpenStream_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(OpenStreamRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *GetCapabilitiesResponse) GetSupportsSaveStream() bool { + if x != nil { + return x.SupportsSaveStream } - return srv.(ArtifactServiceServer).OpenStream(m, &artifactServiceOpenStreamServer{stream}) -} - -type ArtifactService_OpenStreamServer interface { - Send(*OpenStreamResponse) error - grpc.ServerStream -} - -type artifactServiceOpenStreamServer struct { - grpc.ServerStream -} - -func (x *artifactServiceOpenStreamServer) Send(m *OpenStreamResponse) error { - return x.ServerStream.SendMsg(m) + return false } -func _ArtifactService_Save_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SaveArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactServiceServer).Save(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/artifact.ArtifactService/Save", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactServiceServer).Save(ctx, req.(*SaveArtifactRequest)) - } - return interceptor(ctx, in, info, handler) -} +var File_pkg_apiclient_artifact_artifact_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_artifact_artifact_proto_rawDesc = "" + + "\n" + + "%pkg/apiclient/artifact/artifact.proto\x12\bartifact\x1a\x1cgoogle/api/annotations.proto\"\x9a\x01\n" + + "\x0ePluginArtifact\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12$\n" + + "\rconfiguration\x18\x02 \x01(\tR\rconfiguration\x12<\n" + + "\x1aconnection_timeout_seconds\x18\x03 \x01(\x05R\x18connectionTimeoutSeconds\x12\x10\n" + + "\x03key\x18\x04 \x01(\tR\x03key\"\xa9\x02\n" + + "\bArtifact\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" + + "\x04path\x18\x02 \x01(\tR\x04path\x12\x12\n" + + "\x04mode\x18\x03 \x01(\x05R\x04mode\x12\x12\n" + + "\x04from\x18\x04 \x01(\tR\x04from\x120\n" + + "\x06plugin\x18\x05 \x01(\v2\x18.artifact.PluginArtifactR\x06plugin\x12\x1a\n" + + "\boptional\x18\x06 \x01(\bR\boptional\x12\x19\n" + + "\bsub_path\x18\a \x01(\tR\asubPath\x12!\n" + + "\frecurse_mode\x18\b \x01(\bR\vrecurseMode\x12'\n" + + "\x0ffrom_expression\x18\t \x01(\tR\x0efromExpression\x12\x18\n" + + "\adeleted\x18\n" + + " \x01(\bR\adeleted\"d\n" + + "\x13LoadArtifactRequest\x129\n" + + "\x0einput_artifact\x18\x01 \x01(\v2\x12.artifact.ArtifactR\rinputArtifact\x12\x12\n" + + "\x04path\x18\x02 \x01(\tR\x04path\"F\n" + + "\x14LoadArtifactResponse\x12\x18\n" + + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" + + "\x05error\x18\x02 \x01(\tR\x05error\"C\n" + + "\x11OpenStreamRequest\x12.\n" + + "\bartifact\x18\x01 \x01(\v2\x12.artifact.ArtifactR\bartifact\"U\n" + + "\x12OpenStreamResponse\x12\x12\n" + + "\x04data\x18\x01 \x01(\fR\x04data\x12\x15\n" + + "\x06is_end\x18\x02 \x01(\bR\x05isEnd\x12\x14\n" + + "\x05error\x18\x03 \x01(\tR\x05error\"f\n" + + "\x13SaveArtifactRequest\x12\x12\n" + + "\x04path\x18\x01 \x01(\tR\x04path\x12;\n" + + "\x0foutput_artifact\x18\x02 \x01(\v2\x12.artifact.ArtifactR\x0eoutputArtifact\"F\n" + + "\x14SaveArtifactResponse\x12\x18\n" + + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" + + "\x05error\x18\x02 \x01(\tR\x05error\"G\n" + + "\x15DeleteArtifactRequest\x12.\n" + + "\bartifact\x18\x01 \x01(\v2\x12.artifact.ArtifactR\bartifact\"H\n" + + "\x16DeleteArtifactResponse\x12\x18\n" + + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" + + "\x05error\x18\x02 \x01(\tR\x05error\"D\n" + + "\x12ListObjectsRequest\x12.\n" + + "\bartifact\x18\x01 \x01(\v2\x12.artifact.ArtifactR\bartifact\"E\n" + + "\x13ListObjectsResponse\x12\x18\n" + + "\aobjects\x18\x01 \x03(\tR\aobjects\x12\x14\n" + + "\x05error\x18\x02 \x01(\tR\x05error\"D\n" + + "\x12IsDirectoryRequest\x12.\n" + + "\bartifact\x18\x01 \x01(\v2\x12.artifact.ArtifactR\bartifact\"N\n" + + "\x13IsDirectoryResponse\x12!\n" + + "\fis_directory\x18\x01 \x01(\bR\visDirectory\x12\x14\n" + + "\x05error\x18\x02 \x01(\tR\x05error\"n\n" + + "\x19SaveStreamArtifactRequest\x12;\n" + + "\x0foutput_artifact\x18\x01 \x01(\v2\x12.artifact.ArtifactR\x0eoutputArtifact\x12\x14\n" + + "\x05chunk\x18\x02 \x01(\fR\x05chunk\"\x18\n" + + "\x16GetCapabilitiesRequest\"K\n" + + "\x17GetCapabilitiesResponse\x120\n" + + "\x14supports_save_stream\x18\x01 \x01(\bR\x12supportsSaveStream2\xda\x06\n" + + "\x0fArtifactService\x12h\n" + + "\x04Load\x12\x1d.artifact.LoadArtifactRequest\x1a\x1e.artifact.LoadArtifactResponse\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/api/v1/artifacts/load\x12n\n" + + "\n" + + "OpenStream\x12\x1b.artifact.OpenStreamRequest\x1a\x1c.artifact.OpenStreamResponse\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/v1/artifacts/stream0\x01\x12h\n" + + "\x04Save\x12\x1d.artifact.SaveArtifactRequest\x1a\x1e.artifact.SaveArtifactResponse\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/api/v1/artifacts/save\x12p\n" + + "\x06Delete\x12\x1f.artifact.DeleteArtifactRequest\x1a .artifact.DeleteArtifactResponse\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/v1/artifacts/delete\x12m\n" + + "\vListObjects\x12\x1c.artifact.ListObjectsRequest\x1a\x1d.artifact.ListObjectsResponse\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/api/v1/artifacts/list\x12u\n" + + "\vIsDirectory\x12\x1c.artifact.IsDirectoryRequest\x1a\x1d.artifact.IsDirectoryResponse\")\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/api/v1/artifacts/is-directory\x12S\n" + + "\n" + + "SaveStream\x12#.artifact.SaveStreamArtifactRequest\x1a\x1e.artifact.SaveArtifactResponse(\x01\x12V\n" + + "\x0fGetCapabilities\x12 .artifact.GetCapabilitiesRequest\x1a!.artifact.GetCapabilitiesResponseB>Z artifact.PluginArtifact + 1, // 1: artifact.LoadArtifactRequest.input_artifact:type_name -> artifact.Artifact + 1, // 2: artifact.OpenStreamRequest.artifact:type_name -> artifact.Artifact + 1, // 3: artifact.SaveArtifactRequest.output_artifact:type_name -> artifact.Artifact + 1, // 4: artifact.DeleteArtifactRequest.artifact:type_name -> artifact.Artifact + 1, // 5: artifact.ListObjectsRequest.artifact:type_name -> artifact.Artifact + 1, // 6: artifact.IsDirectoryRequest.artifact:type_name -> artifact.Artifact + 1, // 7: artifact.SaveStreamArtifactRequest.output_artifact:type_name -> artifact.Artifact + 2, // 8: artifact.ArtifactService.Load:input_type -> artifact.LoadArtifactRequest + 4, // 9: artifact.ArtifactService.OpenStream:input_type -> artifact.OpenStreamRequest + 6, // 10: artifact.ArtifactService.Save:input_type -> artifact.SaveArtifactRequest + 8, // 11: artifact.ArtifactService.Delete:input_type -> artifact.DeleteArtifactRequest + 10, // 12: artifact.ArtifactService.ListObjects:input_type -> artifact.ListObjectsRequest + 12, // 13: artifact.ArtifactService.IsDirectory:input_type -> artifact.IsDirectoryRequest + 14, // 14: artifact.ArtifactService.SaveStream:input_type -> artifact.SaveStreamArtifactRequest + 15, // 15: artifact.ArtifactService.GetCapabilities:input_type -> artifact.GetCapabilitiesRequest + 3, // 16: artifact.ArtifactService.Load:output_type -> artifact.LoadArtifactResponse + 5, // 17: artifact.ArtifactService.OpenStream:output_type -> artifact.OpenStreamResponse + 7, // 18: artifact.ArtifactService.Save:output_type -> artifact.SaveArtifactResponse + 9, // 19: artifact.ArtifactService.Delete:output_type -> artifact.DeleteArtifactResponse + 11, // 20: artifact.ArtifactService.ListObjects:output_type -> artifact.ListObjectsResponse + 13, // 21: artifact.ArtifactService.IsDirectory:output_type -> artifact.IsDirectoryResponse + 7, // 22: artifact.ArtifactService.SaveStream:output_type -> artifact.SaveArtifactResponse + 16, // 23: artifact.ArtifactService.GetCapabilities:output_type -> artifact.GetCapabilitiesResponse + 16, // [16:24] is the sub-list for method output_type + 8, // [8:16] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_artifact_artifact_proto_init() } +func file_pkg_apiclient_artifact_artifact_proto_init() { + if File_pkg_apiclient_artifact_artifact_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_artifact_artifact_proto_rawDesc), len(file_pkg_apiclient_artifact_artifact_proto_rawDesc)), + NumEnums: 0, + NumMessages: 17, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_artifact_artifact_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_artifact_artifact_proto_depIdxs, + MessageInfos: file_pkg_apiclient_artifact_artifact_proto_msgTypes, + }.Build() + File_pkg_apiclient_artifact_artifact_proto = out.File + file_pkg_apiclient_artifact_artifact_proto_goTypes = nil + file_pkg_apiclient_artifact_artifact_proto_depIdxs = nil } - -func _ArtifactService_IsDirectory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsDirectoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactServiceServer).IsDirectory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/artifact.ArtifactService/IsDirectory", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactServiceServer).IsDirectory(ctx, req.(*IsDirectoryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactService_SaveStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ArtifactServiceServer).SaveStream(&artifactServiceSaveStreamServer{stream}) -} - -type ArtifactService_SaveStreamServer interface { - SendAndClose(*SaveArtifactResponse) error - Recv() (*SaveStreamArtifactRequest, error) - grpc.ServerStream -} - -type artifactServiceSaveStreamServer struct { - grpc.ServerStream -} - -func (x *artifactServiceSaveStreamServer) SendAndClose(m *SaveArtifactResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *artifactServiceSaveStreamServer) Recv() (*SaveStreamArtifactRequest, error) { - m := new(SaveStreamArtifactRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _ArtifactService_GetCapabilities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCapabilitiesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactServiceServer).GetCapabilities(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/artifact.ArtifactService/GetCapabilities", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactServiceServer).GetCapabilities(ctx, req.(*GetCapabilitiesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ArtifactService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "artifact.ArtifactService", - HandlerType: (*ArtifactServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Load", - Handler: _ArtifactService_Load_Handler, - }, - { - MethodName: "Save", - Handler: _ArtifactService_Save_Handler, - }, - { - MethodName: "Delete", - Handler: _ArtifactService_Delete_Handler, - }, - { - MethodName: "ListObjects", - Handler: _ArtifactService_ListObjects_Handler, - }, - { - MethodName: "IsDirectory", - Handler: _ArtifactService_IsDirectory_Handler, - }, - { - MethodName: "GetCapabilities", - Handler: _ArtifactService_GetCapabilities_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "OpenStream", - Handler: _ArtifactService_OpenStream_Handler, - ServerStreams: true, - }, - { - StreamName: "SaveStream", - Handler: _ArtifactService_SaveStream_Handler, - ClientStreams: true, - }, - }, - Metadata: "pkg/apiclient/artifact/artifact.proto", -} - -func (m *PluginArtifact) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PluginArtifact) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PluginArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x22 - } - if m.ConnectionTimeoutSeconds != 0 { - i = encodeVarintArtifact(dAtA, i, uint64(m.ConnectionTimeoutSeconds)) - i-- - dAtA[i] = 0x18 - } - if len(m.Configuration) > 0 { - i -= len(m.Configuration) - copy(dAtA[i:], m.Configuration) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Configuration))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Artifact) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Artifact) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Artifact) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Deleted { - i-- - if m.Deleted { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - if len(m.FromExpression) > 0 { - i -= len(m.FromExpression) - copy(dAtA[i:], m.FromExpression) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.FromExpression))) - i-- - dAtA[i] = 0x4a - } - if m.RecurseMode { - i-- - if m.RecurseMode { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if len(m.SubPath) > 0 { - i -= len(m.SubPath) - copy(dAtA[i:], m.SubPath) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.SubPath))) - i-- - dAtA[i] = 0x3a - } - if m.Optional { - i-- - if m.Optional { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.Plugin != nil { - { - size, err := m.Plugin.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintArtifact(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0x22 - } - if m.Mode != 0 { - i = encodeVarintArtifact(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x18 - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *LoadArtifactRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LoadArtifactRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LoadArtifactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 - } - if m.InputArtifact != nil { - { - size, err := m.InputArtifact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintArtifact(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *LoadArtifactResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LoadArtifactResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LoadArtifactResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if m.Success { - i-- - if m.Success { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *OpenStreamRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OpenStreamRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OpenStreamRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Artifact != nil { - { - size, err := m.Artifact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintArtifact(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *OpenStreamResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OpenStreamResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OpenStreamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x1a - } - if m.IsEnd { - i-- - if m.IsEnd { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SaveArtifactRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SaveArtifactRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SaveArtifactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.OutputArtifact != nil { - { - size, err := m.OutputArtifact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintArtifact(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SaveArtifactResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SaveArtifactResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SaveArtifactResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if m.Success { - i-- - if m.Success { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DeleteArtifactRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteArtifactRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteArtifactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Artifact != nil { - { - size, err := m.Artifact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintArtifact(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeleteArtifactResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteArtifactResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteArtifactResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if m.Success { - i-- - if m.Success { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ListObjectsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListObjectsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListObjectsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Artifact != nil { - { - size, err := m.Artifact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintArtifact(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListObjectsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListObjectsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListObjectsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if len(m.Objects) > 0 { - for iNdEx := len(m.Objects) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Objects[iNdEx]) - copy(dAtA[i:], m.Objects[iNdEx]) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Objects[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *IsDirectoryRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IsDirectoryRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsDirectoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Artifact != nil { - { - size, err := m.Artifact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintArtifact(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *IsDirectoryResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IsDirectoryResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsDirectoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if m.IsDirectory { - i-- - if m.IsDirectory { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SaveStreamArtifactRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SaveStreamArtifactRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SaveStreamArtifactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Chunk) > 0 { - i -= len(m.Chunk) - copy(dAtA[i:], m.Chunk) - i = encodeVarintArtifact(dAtA, i, uint64(len(m.Chunk))) - i-- - dAtA[i] = 0x12 - } - if m.OutputArtifact != nil { - { - size, err := m.OutputArtifact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintArtifact(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetCapabilitiesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetCapabilitiesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetCapabilitiesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *GetCapabilitiesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetCapabilitiesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetCapabilitiesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SupportsSaveStream { - i-- - if m.SupportsSaveStream { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintArtifact(dAtA []byte, offset int, v uint64) int { - offset -= sovArtifact(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PluginArtifact) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - l = len(m.Configuration) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.ConnectionTimeoutSeconds != 0 { - n += 1 + sovArtifact(uint64(m.ConnectionTimeoutSeconds)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Artifact) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - l = len(m.Path) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.Mode != 0 { - n += 1 + sovArtifact(uint64(m.Mode)) - } - l = len(m.From) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.Plugin != nil { - l = m.Plugin.Size() - n += 1 + l + sovArtifact(uint64(l)) - } - if m.Optional { - n += 2 - } - l = len(m.SubPath) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.RecurseMode { - n += 2 - } - l = len(m.FromExpression) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.Deleted { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *LoadArtifactRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InputArtifact != nil { - l = m.InputArtifact.Size() - n += 1 + l + sovArtifact(uint64(l)) - } - l = len(m.Path) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *LoadArtifactResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Success { - n += 2 - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OpenStreamRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Artifact != nil { - l = m.Artifact.Size() - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OpenStreamResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Data) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.IsEnd { - n += 2 - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SaveArtifactRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.OutputArtifact != nil { - l = m.OutputArtifact.Size() - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SaveArtifactResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Success { - n += 2 - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeleteArtifactRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Artifact != nil { - l = m.Artifact.Size() - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeleteArtifactResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Success { - n += 2 - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ListObjectsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Artifact != nil { - l = m.Artifact.Size() - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ListObjectsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Objects) > 0 { - for _, s := range m.Objects { - l = len(s) - n += 1 + l + sovArtifact(uint64(l)) - } - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *IsDirectoryRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Artifact != nil { - l = m.Artifact.Size() - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *IsDirectoryResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.IsDirectory { - n += 2 - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SaveStreamArtifactRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.OutputArtifact != nil { - l = m.OutputArtifact.Size() - n += 1 + l + sovArtifact(uint64(l)) - } - l = len(m.Chunk) - if l > 0 { - n += 1 + l + sovArtifact(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GetCapabilitiesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GetCapabilitiesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SupportsSaveStream { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovArtifact(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozArtifact(x uint64) (n int) { - return sovArtifact(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *PluginArtifact) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PluginArtifact: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PluginArtifact: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Configuration = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectionTimeoutSeconds", wireType) - } - m.ConnectionTimeoutSeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ConnectionTimeoutSeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Artifact) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Artifact: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Artifact: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) - } - m.Mode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Mode |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Plugin", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Plugin == nil { - m.Plugin = &PluginArtifact{} - } - if err := m.Plugin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Optional = bool(v != 0) - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SubPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RecurseMode", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RecurseMode = bool(v != 0) - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FromExpression", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FromExpression = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Deleted = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LoadArtifactRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LoadArtifactRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LoadArtifactRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InputArtifact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.InputArtifact == nil { - m.InputArtifact = &Artifact{} - } - if err := m.InputArtifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LoadArtifactResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LoadArtifactResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LoadArtifactResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Success = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OpenStreamRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OpenStreamRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OpenStreamRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Artifact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Artifact == nil { - m.Artifact = &Artifact{} - } - if err := m.Artifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OpenStreamResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OpenStreamResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OpenStreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEnd", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsEnd = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SaveArtifactRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SaveArtifactRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SaveArtifactRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OutputArtifact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OutputArtifact == nil { - m.OutputArtifact = &Artifact{} - } - if err := m.OutputArtifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SaveArtifactResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SaveArtifactResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SaveArtifactResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Success = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteArtifactRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteArtifactRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteArtifactRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Artifact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Artifact == nil { - m.Artifact = &Artifact{} - } - if err := m.Artifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteArtifactResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteArtifactResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteArtifactResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Success = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListObjectsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListObjectsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListObjectsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Artifact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Artifact == nil { - m.Artifact = &Artifact{} - } - if err := m.Artifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListObjectsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListObjectsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListObjectsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Objects", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Objects = append(m.Objects, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IsDirectoryRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IsDirectoryRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IsDirectoryRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Artifact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Artifact == nil { - m.Artifact = &Artifact{} - } - if err := m.Artifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IsDirectoryResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IsDirectoryResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IsDirectoryResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsDirectory", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsDirectory = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SaveStreamArtifactRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SaveStreamArtifactRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SaveStreamArtifactRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OutputArtifact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OutputArtifact == nil { - m.OutputArtifact = &Artifact{} - } - if err := m.OutputArtifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthArtifact - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthArtifact - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Chunk = append(m.Chunk[:0], dAtA[iNdEx:postIndex]...) - if m.Chunk == nil { - m.Chunk = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetCapabilitiesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetCapabilitiesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetCapabilitiesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetCapabilitiesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetCapabilitiesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetCapabilitiesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SupportsSaveStream", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowArtifact - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SupportsSaveStream = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipArtifact(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthArtifact - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipArtifact(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowArtifact - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowArtifact - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowArtifact - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthArtifact - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupArtifact - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthArtifact - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthArtifact = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowArtifact = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupArtifact = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/apiclient/artifact/artifact.pb.gw.go b/pkg/apiclient/artifact/artifact.pb.gw.go index fe85f7877bd5..5bf6a4dd116c 100644 --- a/pkg/apiclient/artifact/artifact.pb.gw.go +++ b/pkg/apiclient/artifact/artifact.pb.gw.go @@ -10,75 +10,70 @@ package artifact import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_ArtifactService_Load_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LoadArtifactRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq LoadArtifactRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Load(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArtifactService_Load_0(ctx context.Context, marshaler runtime.Marshaler, server ArtifactServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LoadArtifactRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq LoadArtifactRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Load(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_ArtifactService_OpenStream_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactServiceClient, req *http.Request, pathParams map[string]string) (ArtifactService_OpenStreamClient, runtime.ServerMetadata, error) { - var protoReq OpenStreamRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq OpenStreamRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } stream, err := client.OpenStream(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -89,271 +84,228 @@ func request_ArtifactService_OpenStream_0(ctx context.Context, marshaler runtime } metadata.HeaderMD = header return stream, metadata, nil - } func request_ArtifactService_Save_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SaveArtifactRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq SaveArtifactRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Save(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArtifactService_Save_0(ctx context.Context, marshaler runtime.Marshaler, server ArtifactServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SaveArtifactRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq SaveArtifactRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Save(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_ArtifactService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteArtifactRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq DeleteArtifactRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Delete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArtifactService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, server ArtifactServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteArtifactRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq DeleteArtifactRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Delete(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_ArtifactService_ListObjects_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListObjectsRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq ListObjectsRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListObjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArtifactService_ListObjects_0(ctx context.Context, marshaler runtime.Marshaler, server ArtifactServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListObjectsRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq ListObjectsRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListObjects(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_ArtifactService_IsDirectory_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IsDirectoryRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq IsDirectoryRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.IsDirectory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArtifactService_IsDirectory_0(ctx context.Context, marshaler runtime.Marshaler, server ArtifactServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IsDirectoryRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq IsDirectoryRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.IsDirectory(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterArtifactServiceHandlerServer registers the http handlers for service ArtifactService to "mux". // UnaryRPC :call ArtifactServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterArtifactServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterArtifactServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArtifactServiceServer) error { - - mux.Handle("POST", pattern_ArtifactService_Load_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_Load_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/artifact.ArtifactService/Load", runtime.WithHTTPPathPattern("/api/v1/artifacts/load")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArtifactService_Load_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArtifactService_Load_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_Load_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_Load_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_ArtifactService_OpenStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_OpenStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - - mux.Handle("POST", pattern_ArtifactService_Save_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_Save_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/artifact.ArtifactService/Save", runtime.WithHTTPPathPattern("/api/v1/artifacts/save")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArtifactService_Save_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArtifactService_Save_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_Save_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_Save_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ArtifactService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_Delete_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/artifact.ArtifactService/Delete", runtime.WithHTTPPathPattern("/api/v1/artifacts/delete")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArtifactService_Delete_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArtifactService_Delete_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_Delete_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ArtifactService_ListObjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_ListObjects_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/artifact.ArtifactService/ListObjects", runtime.WithHTTPPathPattern("/api/v1/artifacts/list")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArtifactService_ListObjects_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArtifactService_ListObjects_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_ListObjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_ListObjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ArtifactService_IsDirectory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_IsDirectory_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/artifact.ArtifactService/IsDirectory", runtime.WithHTTPPathPattern("/api/v1/artifacts/is-directory")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArtifactService_IsDirectory_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArtifactService_IsDirectory_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_IsDirectory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_IsDirectory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -362,25 +314,24 @@ func RegisterArtifactServiceHandlerServer(ctx context.Context, mux *runtime.Serv // RegisterArtifactServiceHandlerFromEndpoint is same as RegisterArtifactServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterArtifactServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterArtifactServiceHandler(ctx, mux, conn) } @@ -394,156 +345,127 @@ func RegisterArtifactServiceHandler(ctx context.Context, mux *runtime.ServeMux, // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArtifactServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArtifactServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "ArtifactServiceClient" to call the correct interceptors. +// "ArtifactServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterArtifactServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtifactServiceClient) error { - - mux.Handle("POST", pattern_ArtifactService_Load_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_Load_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/artifact.ArtifactService/Load", runtime.WithHTTPPathPattern("/api/v1/artifacts/load")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArtifactService_Load_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArtifactService_Load_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_Load_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_Load_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ArtifactService_OpenStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_OpenStream_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/artifact.ArtifactService/OpenStream", runtime.WithHTTPPathPattern("/api/v1/artifacts/stream")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArtifactService_OpenStream_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArtifactService_OpenStream_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_OpenStream_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_OpenStream_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ArtifactService_Save_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_Save_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/artifact.ArtifactService/Save", runtime.WithHTTPPathPattern("/api/v1/artifacts/save")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArtifactService_Save_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArtifactService_Save_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_Save_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_Save_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ArtifactService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_Delete_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/artifact.ArtifactService/Delete", runtime.WithHTTPPathPattern("/api/v1/artifacts/delete")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArtifactService_Delete_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArtifactService_Delete_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_Delete_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ArtifactService_ListObjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_ListObjects_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/artifact.ArtifactService/ListObjects", runtime.WithHTTPPathPattern("/api/v1/artifacts/list")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArtifactService_ListObjects_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArtifactService_ListObjects_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_ListObjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_ListObjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ArtifactService_IsDirectory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ArtifactService_IsDirectory_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/artifact.ArtifactService/IsDirectory", runtime.WithHTTPPathPattern("/api/v1/artifacts/is-directory")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArtifactService_IsDirectory_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArtifactService_IsDirectory_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArtifactService_IsDirectory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArtifactService_IsDirectory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_ArtifactService_Load_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "load"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArtifactService_OpenStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "stream"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArtifactService_Save_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "save"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArtifactService_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "delete"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArtifactService_ListObjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "list"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArtifactService_IsDirectory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "is-directory"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_ArtifactService_Load_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "load"}, "")) + pattern_ArtifactService_OpenStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "stream"}, "")) + pattern_ArtifactService_Save_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "save"}, "")) + pattern_ArtifactService_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "delete"}, "")) + pattern_ArtifactService_ListObjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "list"}, "")) + pattern_ArtifactService_IsDirectory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "artifacts", "is-directory"}, "")) ) var ( - forward_ArtifactService_Load_0 = runtime.ForwardResponseMessage - - forward_ArtifactService_OpenStream_0 = runtime.ForwardResponseStream - - forward_ArtifactService_Save_0 = runtime.ForwardResponseMessage - - forward_ArtifactService_Delete_0 = runtime.ForwardResponseMessage - + forward_ArtifactService_Load_0 = runtime.ForwardResponseMessage + forward_ArtifactService_OpenStream_0 = runtime.ForwardResponseStream + forward_ArtifactService_Save_0 = runtime.ForwardResponseMessage + forward_ArtifactService_Delete_0 = runtime.ForwardResponseMessage forward_ArtifactService_ListObjects_0 = runtime.ForwardResponseMessage - forward_ArtifactService_IsDirectory_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/artifact/artifact.swagger.json b/pkg/apiclient/artifact/artifact.swagger.json index eb1499179e3b..54c8b788eadd 100644 --- a/pkg/apiclient/artifact/artifact.swagger.json +++ b/pkg/apiclient/artifact/artifact.swagger.json @@ -5,6 +5,11 @@ "description": "Artifact Service API provides GRPC access to artifact operations", "version": "version not set" }, + "tags": [ + { + "name": "ArtifactService" + } + ], "consumes": [ "application/json" ], @@ -25,7 +30,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } }, @@ -57,7 +62,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } }, @@ -89,7 +94,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } }, @@ -121,7 +126,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } }, @@ -153,7 +158,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } }, @@ -185,7 +190,7 @@ "$ref": "#/definitions/artifact.OpenStreamResponse" }, "error": { - "$ref": "#/definitions/grpc.gateway.runtime.StreamError" + "$ref": "#/definitions/google.rpc.Status" } }, "title": "Stream result of artifact.OpenStreamResponse" @@ -194,7 +199,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/grpc.gateway.runtime.Error" + "$ref": "#/definitions/google.rpc.Status" } } }, @@ -237,13 +242,13 @@ "optional": { "type": "boolean" }, - "sub_path": { + "subPath": { "type": "string" }, - "recurse_mode": { + "recurseMode": { "type": "boolean" }, - "from_expression": { + "fromExpression": { "type": "string" }, "deleted": { @@ -271,15 +276,6 @@ } } }, - "artifact.GetCapabilitiesResponse": { - "type": "object", - "properties": { - "supports_save_stream": { - "type": "boolean", - "description": "supports_save_stream indicates whether this plugin implements the streaming\nSaveStream RPC. Callers should check this before invoking SaveStream, since a\nreader already partially consumed cannot be rewound to fall back to Save." - } - } - }, "artifact.IsDirectoryRequest": { "type": "object", "properties": { @@ -291,7 +287,7 @@ "artifact.IsDirectoryResponse": { "type": "object", "properties": { - "is_directory": { + "isDirectory": { "type": "boolean" }, "error": { @@ -324,7 +320,7 @@ "artifact.LoadArtifactRequest": { "type": "object", "properties": { - "input_artifact": { + "inputArtifact": { "$ref": "#/definitions/artifact.Artifact" }, "path": { @@ -358,7 +354,7 @@ "type": "string", "format": "byte" }, - "is_end": { + "isEnd": { "type": "boolean" }, "error": { @@ -375,7 +371,7 @@ "configuration": { "type": "string" }, - "connection_timeout_seconds": { + "connectionTimeoutSeconds": { "type": "integer", "format": "int32" }, @@ -391,7 +387,7 @@ "path": { "type": "string" }, - "output_artifact": { + "outputArtifact": { "$ref": "#/definitions/artifact.Artifact" } } @@ -410,21 +406,15 @@ "google.protobuf.Any": { "type": "object", "properties": { - "type_url": { + "@type": { "type": "string" - }, - "value": { - "type": "string", - "format": "byte" } - } + }, + "additionalProperties": {} }, - "grpc.gateway.runtime.Error": { + "google.rpc.Status": { "type": "object", "properties": { - "error": { - "type": "string" - }, "code": { "type": "integer", "format": "int32" @@ -435,31 +425,7 @@ "details": { "type": "array", "items": { - "$ref": "#/definitions/google.protobuf.Any" - } - } - } - }, - "grpc.gateway.runtime.StreamError": { - "type": "object", - "properties": { - "grpc_code": { - "type": "integer", - "format": "int32" - }, - "http_code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "http_status": { - "type": "string" - }, - "details": { - "type": "array", - "items": { + "type": "object", "$ref": "#/definitions/google.protobuf.Any" } } diff --git a/pkg/apiclient/artifact/artifact_grpc.pb.go b/pkg/apiclient/artifact/artifact_grpc.pb.go new file mode 100644 index 000000000000..0f9d8b3cca32 --- /dev/null +++ b/pkg/apiclient/artifact/artifact_grpc.pb.go @@ -0,0 +1,414 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/artifact/artifact.proto + +// Artifact Service +// +// Artifact Service API provides GRPC access to artifact operations + +package artifact + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + ArtifactService_Load_FullMethodName = "/artifact.ArtifactService/Load" + ArtifactService_OpenStream_FullMethodName = "/artifact.ArtifactService/OpenStream" + ArtifactService_Save_FullMethodName = "/artifact.ArtifactService/Save" + ArtifactService_Delete_FullMethodName = "/artifact.ArtifactService/Delete" + ArtifactService_ListObjects_FullMethodName = "/artifact.ArtifactService/ListObjects" + ArtifactService_IsDirectory_FullMethodName = "/artifact.ArtifactService/IsDirectory" + ArtifactService_SaveStream_FullMethodName = "/artifact.ArtifactService/SaveStream" + ArtifactService_GetCapabilities_FullMethodName = "/artifact.ArtifactService/GetCapabilities" +) + +// ArtifactServiceClient is the client API for ArtifactService 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 ArtifactServiceClient interface { + Load(ctx context.Context, in *LoadArtifactRequest, opts ...grpc.CallOption) (*LoadArtifactResponse, error) + OpenStream(ctx context.Context, in *OpenStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[OpenStreamResponse], error) + Save(ctx context.Context, in *SaveArtifactRequest, opts ...grpc.CallOption) (*SaveArtifactResponse, error) + Delete(ctx context.Context, in *DeleteArtifactRequest, opts ...grpc.CallOption) (*DeleteArtifactResponse, error) + ListObjects(ctx context.Context, in *ListObjectsRequest, opts ...grpc.CallOption) (*ListObjectsResponse, error) + IsDirectory(ctx context.Context, in *IsDirectoryRequest, opts ...grpc.CallOption) (*IsDirectoryResponse, error) + // SaveStream is a client-streaming RPC for plugins that can accept an artifact's + // content chunk by chunk instead of buffering it to a temp file first. No HTTP + // gateway is exposed for this RPC: plugins communicate over a direct gRPC + // connection on a unix socket, so no HTTP transcoding is needed, and + // grpc-gateway v1 cannot cleanly represent client-streaming RPCs anyway. + // + // EXPERIMENTAL: this RPC ships ahead of its in-tree consumer. Its framing (a + // metadata-only first frame, then chunk frames) and the GetCapabilities handshake + // may change until a consumer lands, so plugins implementing it should expect churn. + SaveStream(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[SaveStreamArtifactRequest, SaveArtifactResponse], error) + // GetCapabilities lets a caller check whether a plugin supports SaveStream before + // it starts reading the artifact's content, since a partially consumed reader + // cannot be rewound to fall back to Save. + // + // EXPERIMENTAL: see SaveStream. Subject to change until an in-tree consumer lands. + GetCapabilities(ctx context.Context, in *GetCapabilitiesRequest, opts ...grpc.CallOption) (*GetCapabilitiesResponse, error) +} + +type artifactServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewArtifactServiceClient(cc grpc.ClientConnInterface) ArtifactServiceClient { + return &artifactServiceClient{cc} +} + +func (c *artifactServiceClient) Load(ctx context.Context, in *LoadArtifactRequest, opts ...grpc.CallOption) (*LoadArtifactResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LoadArtifactResponse) + err := c.cc.Invoke(ctx, ArtifactService_Load_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *artifactServiceClient) OpenStream(ctx context.Context, in *OpenStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[OpenStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ArtifactService_ServiceDesc.Streams[0], ArtifactService_OpenStream_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[OpenStreamRequest, OpenStreamResponse]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ArtifactService_OpenStreamClient = grpc.ServerStreamingClient[OpenStreamResponse] + +func (c *artifactServiceClient) Save(ctx context.Context, in *SaveArtifactRequest, opts ...grpc.CallOption) (*SaveArtifactResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SaveArtifactResponse) + err := c.cc.Invoke(ctx, ArtifactService_Save_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *artifactServiceClient) Delete(ctx context.Context, in *DeleteArtifactRequest, opts ...grpc.CallOption) (*DeleteArtifactResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteArtifactResponse) + err := c.cc.Invoke(ctx, ArtifactService_Delete_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *artifactServiceClient) ListObjects(ctx context.Context, in *ListObjectsRequest, opts ...grpc.CallOption) (*ListObjectsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListObjectsResponse) + err := c.cc.Invoke(ctx, ArtifactService_ListObjects_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *artifactServiceClient) IsDirectory(ctx context.Context, in *IsDirectoryRequest, opts ...grpc.CallOption) (*IsDirectoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(IsDirectoryResponse) + err := c.cc.Invoke(ctx, ArtifactService_IsDirectory_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *artifactServiceClient) SaveStream(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[SaveStreamArtifactRequest, SaveArtifactResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ArtifactService_ServiceDesc.Streams[1], ArtifactService_SaveStream_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[SaveStreamArtifactRequest, SaveArtifactResponse]{ClientStream: stream} + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ArtifactService_SaveStreamClient = grpc.ClientStreamingClient[SaveStreamArtifactRequest, SaveArtifactResponse] + +func (c *artifactServiceClient) GetCapabilities(ctx context.Context, in *GetCapabilitiesRequest, opts ...grpc.CallOption) (*GetCapabilitiesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetCapabilitiesResponse) + err := c.cc.Invoke(ctx, ArtifactService_GetCapabilities_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ArtifactServiceServer is the server API for ArtifactService service. +// All implementations should embed UnimplementedArtifactServiceServer +// for forward compatibility. +type ArtifactServiceServer interface { + Load(context.Context, *LoadArtifactRequest) (*LoadArtifactResponse, error) + OpenStream(*OpenStreamRequest, grpc.ServerStreamingServer[OpenStreamResponse]) error + Save(context.Context, *SaveArtifactRequest) (*SaveArtifactResponse, error) + Delete(context.Context, *DeleteArtifactRequest) (*DeleteArtifactResponse, error) + ListObjects(context.Context, *ListObjectsRequest) (*ListObjectsResponse, error) + IsDirectory(context.Context, *IsDirectoryRequest) (*IsDirectoryResponse, error) + // SaveStream is a client-streaming RPC for plugins that can accept an artifact's + // content chunk by chunk instead of buffering it to a temp file first. No HTTP + // gateway is exposed for this RPC: plugins communicate over a direct gRPC + // connection on a unix socket, so no HTTP transcoding is needed, and + // grpc-gateway v1 cannot cleanly represent client-streaming RPCs anyway. + // + // EXPERIMENTAL: this RPC ships ahead of its in-tree consumer. Its framing (a + // metadata-only first frame, then chunk frames) and the GetCapabilities handshake + // may change until a consumer lands, so plugins implementing it should expect churn. + SaveStream(grpc.ClientStreamingServer[SaveStreamArtifactRequest, SaveArtifactResponse]) error + // GetCapabilities lets a caller check whether a plugin supports SaveStream before + // it starts reading the artifact's content, since a partially consumed reader + // cannot be rewound to fall back to Save. + // + // EXPERIMENTAL: see SaveStream. Subject to change until an in-tree consumer lands. + GetCapabilities(context.Context, *GetCapabilitiesRequest) (*GetCapabilitiesResponse, error) +} + +// UnimplementedArtifactServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedArtifactServiceServer struct{} + +func (UnimplementedArtifactServiceServer) Load(context.Context, *LoadArtifactRequest) (*LoadArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Load not implemented") +} +func (UnimplementedArtifactServiceServer) OpenStream(*OpenStreamRequest, grpc.ServerStreamingServer[OpenStreamResponse]) error { + return status.Errorf(codes.Unimplemented, "method OpenStream not implemented") +} +func (UnimplementedArtifactServiceServer) Save(context.Context, *SaveArtifactRequest) (*SaveArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Save not implemented") +} +func (UnimplementedArtifactServiceServer) Delete(context.Context, *DeleteArtifactRequest) (*DeleteArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedArtifactServiceServer) ListObjects(context.Context, *ListObjectsRequest) (*ListObjectsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListObjects not implemented") +} +func (UnimplementedArtifactServiceServer) IsDirectory(context.Context, *IsDirectoryRequest) (*IsDirectoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsDirectory not implemented") +} +func (UnimplementedArtifactServiceServer) SaveStream(grpc.ClientStreamingServer[SaveStreamArtifactRequest, SaveArtifactResponse]) error { + return status.Errorf(codes.Unimplemented, "method SaveStream not implemented") +} +func (UnimplementedArtifactServiceServer) GetCapabilities(context.Context, *GetCapabilitiesRequest) (*GetCapabilitiesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCapabilities not implemented") +} +func (UnimplementedArtifactServiceServer) testEmbeddedByValue() {} + +// UnsafeArtifactServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ArtifactServiceServer will +// result in compilation errors. +type UnsafeArtifactServiceServer interface { + mustEmbedUnimplementedArtifactServiceServer() +} + +func RegisterArtifactServiceServer(s grpc.ServiceRegistrar, srv ArtifactServiceServer) { + // If the following call pancis, it indicates UnimplementedArtifactServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ArtifactService_ServiceDesc, srv) +} + +func _ArtifactService_Load_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoadArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactServiceServer).Load(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArtifactService_Load_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactServiceServer).Load(ctx, req.(*LoadArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArtifactService_OpenStream_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(OpenStreamRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ArtifactServiceServer).OpenStream(m, &grpc.GenericServerStream[OpenStreamRequest, OpenStreamResponse]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ArtifactService_OpenStreamServer = grpc.ServerStreamingServer[OpenStreamResponse] + +func _ArtifactService_Save_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SaveArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactServiceServer).Save(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArtifactService_Save_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactServiceServer).Save(ctx, req.(*SaveArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArtifactService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArtifactService_Delete_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactServiceServer).Delete(ctx, req.(*DeleteArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArtifactService_ListObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListObjectsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactServiceServer).ListObjects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArtifactService_ListObjects_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactServiceServer).ListObjects(ctx, req.(*ListObjectsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArtifactService_IsDirectory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsDirectoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactServiceServer).IsDirectory(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArtifactService_IsDirectory_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactServiceServer).IsDirectory(ctx, req.(*IsDirectoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArtifactService_SaveStream_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ArtifactServiceServer).SaveStream(&grpc.GenericServerStream[SaveStreamArtifactRequest, SaveArtifactResponse]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ArtifactService_SaveStreamServer = grpc.ClientStreamingServer[SaveStreamArtifactRequest, SaveArtifactResponse] + +func _ArtifactService_GetCapabilities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCapabilitiesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactServiceServer).GetCapabilities(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArtifactService_GetCapabilities_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactServiceServer).GetCapabilities(ctx, req.(*GetCapabilitiesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ArtifactService_ServiceDesc is the grpc.ServiceDesc for ArtifactService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ArtifactService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "artifact.ArtifactService", + HandlerType: (*ArtifactServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Load", + Handler: _ArtifactService_Load_Handler, + }, + { + MethodName: "Save", + Handler: _ArtifactService_Save_Handler, + }, + { + MethodName: "Delete", + Handler: _ArtifactService_Delete_Handler, + }, + { + MethodName: "ListObjects", + Handler: _ArtifactService_ListObjects_Handler, + }, + { + MethodName: "IsDirectory", + Handler: _ArtifactService_IsDirectory_Handler, + }, + { + MethodName: "GetCapabilities", + Handler: _ArtifactService_GetCapabilities_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "OpenStream", + Handler: _ArtifactService_OpenStream_Handler, + ServerStreams: true, + }, + { + StreamName: "SaveStream", + Handler: _ArtifactService_SaveStream_Handler, + ClientStreams: true, + }, + }, + Metadata: "pkg/apiclient/artifact/artifact.proto", +} diff --git a/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.pb.go b/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.pb.go index 3142b6b8698d..aa73416706d8 100644 --- a/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.pb.go +++ b/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.pb.go @@ -1,4 +1,7 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.proto // Workflow Service @@ -8,1988 +11,476 @@ package clusterworkflowtemplate import ( - context "context" - fmt "fmt" v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ClusterWorkflowTemplateCreateRequest struct { - Template *v1alpha1.ClusterWorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - CreateOptions *v1.CreateOptions `protobuf:"bytes,2,opt,name=createOptions,proto3" json:"createOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClusterWorkflowTemplateCreateRequest) Reset() { *m = ClusterWorkflowTemplateCreateRequest{} } -func (m *ClusterWorkflowTemplateCreateRequest) String() string { return proto.CompactTextString(m) } -func (*ClusterWorkflowTemplateCreateRequest) ProtoMessage() {} -func (*ClusterWorkflowTemplateCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_688d96b5f613e598, []int{0} -} -func (m *ClusterWorkflowTemplateCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterWorkflowTemplateCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterWorkflowTemplateCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ClusterWorkflowTemplateCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterWorkflowTemplateCreateRequest.Merge(m, src) + state protoimpl.MessageState `protogen:"open.v1"` + Template *v1alpha1.ClusterWorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + CreateOptions *v1.CreateOptions `protobuf:"bytes,2,opt,name=createOptions,proto3" json:"createOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ClusterWorkflowTemplateCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *ClusterWorkflowTemplateCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterWorkflowTemplateCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterWorkflowTemplateCreateRequest proto.InternalMessageInfo -func (m *ClusterWorkflowTemplateCreateRequest) GetTemplate() *v1alpha1.ClusterWorkflowTemplate { - if m != nil { - return m.Template - } - return nil +func (x *ClusterWorkflowTemplateCreateRequest) Reset() { + *x = ClusterWorkflowTemplateCreateRequest{} + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ClusterWorkflowTemplateCreateRequest) GetCreateOptions() *v1.CreateOptions { - if m != nil { - return m.CreateOptions - } - return nil +func (x *ClusterWorkflowTemplateCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type ClusterWorkflowTemplateGetRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - GetOptions *v1.GetOptions `protobuf:"bytes,2,opt,name=getOptions,proto3" json:"getOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*ClusterWorkflowTemplateCreateRequest) ProtoMessage() {} -func (m *ClusterWorkflowTemplateGetRequest) Reset() { *m = ClusterWorkflowTemplateGetRequest{} } -func (m *ClusterWorkflowTemplateGetRequest) String() string { return proto.CompactTextString(m) } -func (*ClusterWorkflowTemplateGetRequest) ProtoMessage() {} -func (*ClusterWorkflowTemplateGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_688d96b5f613e598, []int{1} -} -func (m *ClusterWorkflowTemplateGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterWorkflowTemplateGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterWorkflowTemplateGetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ClusterWorkflowTemplateCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ClusterWorkflowTemplateGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterWorkflowTemplateGetRequest.Merge(m, src) -} -func (m *ClusterWorkflowTemplateGetRequest) XXX_Size() int { - return m.Size() -} -func (m *ClusterWorkflowTemplateGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterWorkflowTemplateGetRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ClusterWorkflowTemplateGetRequest proto.InternalMessageInfo - -func (m *ClusterWorkflowTemplateGetRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +// Deprecated: Use ClusterWorkflowTemplateCreateRequest.ProtoReflect.Descriptor instead. +func (*ClusterWorkflowTemplateCreateRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescGZIP(), []int{0} } -func (m *ClusterWorkflowTemplateGetRequest) GetGetOptions() *v1.GetOptions { - if m != nil { - return m.GetOptions +func (x *ClusterWorkflowTemplateCreateRequest) GetTemplate() *v1alpha1.ClusterWorkflowTemplate { + if x != nil { + return x.Template } return nil } -type ClusterWorkflowTemplateListRequest struct { - ListOptions *v1.ListOptions `protobuf:"bytes,1,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClusterWorkflowTemplateListRequest) Reset() { *m = ClusterWorkflowTemplateListRequest{} } -func (m *ClusterWorkflowTemplateListRequest) String() string { return proto.CompactTextString(m) } -func (*ClusterWorkflowTemplateListRequest) ProtoMessage() {} -func (*ClusterWorkflowTemplateListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_688d96b5f613e598, []int{2} -} -func (m *ClusterWorkflowTemplateListRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterWorkflowTemplateListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterWorkflowTemplateListRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ClusterWorkflowTemplateListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterWorkflowTemplateListRequest.Merge(m, src) -} -func (m *ClusterWorkflowTemplateListRequest) XXX_Size() int { - return m.Size() -} -func (m *ClusterWorkflowTemplateListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterWorkflowTemplateListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterWorkflowTemplateListRequest proto.InternalMessageInfo - -func (m *ClusterWorkflowTemplateListRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions +func (x *ClusterWorkflowTemplateCreateRequest) GetCreateOptions() *v1.CreateOptions { + if x != nil { + return x.CreateOptions } return nil } -type ClusterWorkflowTemplateUpdateRequest struct { - // DEPRECATED: This field is ignored. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. - Template *v1alpha1.ClusterWorkflowTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ClusterWorkflowTemplateGetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + GetOptions *v1.GetOptions `protobuf:"bytes,2,opt,name=getOptions,proto3" json:"getOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ClusterWorkflowTemplateUpdateRequest) Reset() { *m = ClusterWorkflowTemplateUpdateRequest{} } -func (m *ClusterWorkflowTemplateUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*ClusterWorkflowTemplateUpdateRequest) ProtoMessage() {} -func (*ClusterWorkflowTemplateUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_688d96b5f613e598, []int{3} -} -func (m *ClusterWorkflowTemplateUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterWorkflowTemplateUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterWorkflowTemplateUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ClusterWorkflowTemplateUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterWorkflowTemplateUpdateRequest.Merge(m, src) -} -func (m *ClusterWorkflowTemplateUpdateRequest) XXX_Size() int { - return m.Size() +func (x *ClusterWorkflowTemplateGetRequest) Reset() { + *x = ClusterWorkflowTemplateGetRequest{} + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ClusterWorkflowTemplateUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterWorkflowTemplateUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterWorkflowTemplateUpdateRequest proto.InternalMessageInfo -// Deprecated: Do not use. -func (m *ClusterWorkflowTemplateUpdateRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +func (x *ClusterWorkflowTemplateGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterWorkflowTemplateUpdateRequest) GetTemplate() *v1alpha1.ClusterWorkflowTemplate { - if m != nil { - return m.Template - } - return nil -} +func (*ClusterWorkflowTemplateGetRequest) ProtoMessage() {} -type ClusterWorkflowTemplateDeleteRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - DeleteOptions *v1.DeleteOptions `protobuf:"bytes,2,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClusterWorkflowTemplateDeleteRequest) Reset() { *m = ClusterWorkflowTemplateDeleteRequest{} } -func (m *ClusterWorkflowTemplateDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*ClusterWorkflowTemplateDeleteRequest) ProtoMessage() {} -func (*ClusterWorkflowTemplateDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_688d96b5f613e598, []int{4} -} -func (m *ClusterWorkflowTemplateDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterWorkflowTemplateDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterWorkflowTemplateDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ClusterWorkflowTemplateGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ClusterWorkflowTemplateDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterWorkflowTemplateDeleteRequest.Merge(m, src) -} -func (m *ClusterWorkflowTemplateDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *ClusterWorkflowTemplateDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterWorkflowTemplateDeleteRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ClusterWorkflowTemplateDeleteRequest proto.InternalMessageInfo +// Deprecated: Use ClusterWorkflowTemplateGetRequest.ProtoReflect.Descriptor instead. +func (*ClusterWorkflowTemplateGetRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescGZIP(), []int{1} +} -func (m *ClusterWorkflowTemplateDeleteRequest) GetName() string { - if m != nil { - return m.Name +func (x *ClusterWorkflowTemplateGetRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *ClusterWorkflowTemplateDeleteRequest) GetDeleteOptions() *v1.DeleteOptions { - if m != nil { - return m.DeleteOptions +func (x *ClusterWorkflowTemplateGetRequest) GetGetOptions() *v1.GetOptions { + if x != nil { + return x.GetOptions } return nil } -type ClusterWorkflowTemplateDeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ClusterWorkflowTemplateListRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ListOptions *v1.ListOptions `protobuf:"bytes,1,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ClusterWorkflowTemplateDeleteResponse) Reset() { *m = ClusterWorkflowTemplateDeleteResponse{} } -func (m *ClusterWorkflowTemplateDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*ClusterWorkflowTemplateDeleteResponse) ProtoMessage() {} -func (*ClusterWorkflowTemplateDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_688d96b5f613e598, []int{5} -} -func (m *ClusterWorkflowTemplateDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterWorkflowTemplateDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterWorkflowTemplateDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ClusterWorkflowTemplateDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterWorkflowTemplateDeleteResponse.Merge(m, src) +func (x *ClusterWorkflowTemplateListRequest) Reset() { + *x = ClusterWorkflowTemplateListRequest{} + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ClusterWorkflowTemplateDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *ClusterWorkflowTemplateDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterWorkflowTemplateDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterWorkflowTemplateDeleteResponse proto.InternalMessageInfo -type ClusterWorkflowTemplateLintRequest struct { - Template *v1alpha1.ClusterWorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - CreateOptions *v1.CreateOptions `protobuf:"bytes,2,opt,name=createOptions,proto3" json:"createOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ClusterWorkflowTemplateListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterWorkflowTemplateLintRequest) Reset() { *m = ClusterWorkflowTemplateLintRequest{} } -func (m *ClusterWorkflowTemplateLintRequest) String() string { return proto.CompactTextString(m) } -func (*ClusterWorkflowTemplateLintRequest) ProtoMessage() {} -func (*ClusterWorkflowTemplateLintRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_688d96b5f613e598, []int{6} -} -func (m *ClusterWorkflowTemplateLintRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterWorkflowTemplateLintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterWorkflowTemplateLintRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*ClusterWorkflowTemplateListRequest) ProtoMessage() {} + +func (x *ClusterWorkflowTemplateListRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ClusterWorkflowTemplateLintRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterWorkflowTemplateLintRequest.Merge(m, src) -} -func (m *ClusterWorkflowTemplateLintRequest) XXX_Size() int { - return m.Size() -} -func (m *ClusterWorkflowTemplateLintRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterWorkflowTemplateLintRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterWorkflowTemplateLintRequest proto.InternalMessageInfo -func (m *ClusterWorkflowTemplateLintRequest) GetTemplate() *v1alpha1.ClusterWorkflowTemplate { - if m != nil { - return m.Template - } - return nil +// Deprecated: Use ClusterWorkflowTemplateListRequest.ProtoReflect.Descriptor instead. +func (*ClusterWorkflowTemplateListRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescGZIP(), []int{2} } -func (m *ClusterWorkflowTemplateLintRequest) GetCreateOptions() *v1.CreateOptions { - if m != nil { - return m.CreateOptions +func (x *ClusterWorkflowTemplateListRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } return nil } -func init() { - proto.RegisterType((*ClusterWorkflowTemplateCreateRequest)(nil), "clusterworkflowtemplate.ClusterWorkflowTemplateCreateRequest") - proto.RegisterType((*ClusterWorkflowTemplateGetRequest)(nil), "clusterworkflowtemplate.ClusterWorkflowTemplateGetRequest") - proto.RegisterType((*ClusterWorkflowTemplateListRequest)(nil), "clusterworkflowtemplate.ClusterWorkflowTemplateListRequest") - proto.RegisterType((*ClusterWorkflowTemplateUpdateRequest)(nil), "clusterworkflowtemplate.ClusterWorkflowTemplateUpdateRequest") - proto.RegisterType((*ClusterWorkflowTemplateDeleteRequest)(nil), "clusterworkflowtemplate.ClusterWorkflowTemplateDeleteRequest") - proto.RegisterType((*ClusterWorkflowTemplateDeleteResponse)(nil), "clusterworkflowtemplate.ClusterWorkflowTemplateDeleteResponse") - proto.RegisterType((*ClusterWorkflowTemplateLintRequest)(nil), "clusterworkflowtemplate.ClusterWorkflowTemplateLintRequest") -} - -func init() { - proto.RegisterFile("pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.proto", fileDescriptor_688d96b5f613e598) -} - -var fileDescriptor_688d96b5f613e598 = []byte{ - // 673 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x96, 0x4f, 0x6b, 0xd4, 0x4e, - 0x18, 0xc7, 0x99, 0xe5, 0xc7, 0x0f, 0x9d, 0xd2, 0xcb, 0x1c, 0xb4, 0xc4, 0x76, 0xd1, 0xa1, 0x52, - 0x5d, 0xed, 0xc4, 0xb4, 0x7b, 0x90, 0x8a, 0x1e, 0xda, 0x4a, 0x0f, 0x16, 0x2c, 0xa9, 0x22, 0x2b, - 0x88, 0x4c, 0xd3, 0x31, 0x8d, 0x9b, 0xcd, 0xc4, 0xcc, 0x6c, 0x4a, 0x11, 0x2f, 0xde, 0x3c, 0x79, - 0x10, 0x5f, 0x8a, 0xef, 0xc1, 0xa3, 0xe2, 0x1b, 0x90, 0x45, 0x44, 0x4f, 0xde, 0xc4, 0xa3, 0x64, - 0xf2, 0x77, 0xd1, 0x69, 0xb3, 0x4b, 0xb7, 0x07, 0x6f, 0x21, 0x93, 0xe7, 0x79, 0xbe, 0x9f, 0x79, - 0x9e, 0xf9, 0x66, 0xe0, 0xed, 0xb0, 0xeb, 0x9a, 0x34, 0xf4, 0x1c, 0xdf, 0x63, 0x81, 0x34, 0x1d, - 0xbf, 0x2f, 0x24, 0x8b, 0xf6, 0x79, 0xd4, 0x7d, 0xe2, 0xf3, 0x7d, 0xc9, 0x7a, 0xa1, 0x4f, 0x25, - 0xcb, 0xdf, 0x2f, 0xe6, 0x0b, 0x8b, 0xf9, 0x0a, 0x09, 0x23, 0x2e, 0x39, 0x3a, 0xab, 0x09, 0x34, - 0xb6, 0x5c, 0x4f, 0xee, 0xf5, 0x77, 0x88, 0xc3, 0x7b, 0x26, 0x8d, 0x5c, 0x1e, 0x46, 0xfc, 0xa9, - 0x7a, 0x28, 0x52, 0x09, 0x33, 0x6e, 0x9b, 0x99, 0x0a, 0x61, 0xe6, 0x6f, 0xcd, 0xd8, 0xa2, 0x7e, - 0xb8, 0x47, 0x2d, 0xd3, 0x65, 0x01, 0x8b, 0xa8, 0x64, 0xbb, 0x69, 0x29, 0x63, 0xd6, 0xe5, 0xdc, - 0xf5, 0x59, 0xf2, 0xb9, 0x49, 0x83, 0x80, 0x4b, 0x2a, 0x3d, 0x1e, 0x88, 0x6c, 0xb5, 0xdd, 0xbd, - 0x2e, 0x88, 0xc7, 0x93, 0xd5, 0x1e, 0x75, 0xf6, 0xbc, 0x80, 0x45, 0x07, 0x65, 0xf6, 0x1e, 0x93, - 0xd4, 0x8c, 0xff, 0xc8, 0x89, 0x7f, 0x01, 0x38, 0xbf, 0x96, 0x12, 0x3c, 0xc8, 0x04, 0xdc, 0xcb, - 0x08, 0xd6, 0x22, 0x46, 0x25, 0xb3, 0xd9, 0xb3, 0x3e, 0x13, 0x12, 0xf5, 0xe1, 0xa9, 0x1c, 0x6d, - 0x06, 0x9c, 0x07, 0x97, 0xa6, 0x96, 0x3a, 0xa4, 0x24, 0x24, 0x39, 0xa1, 0x7a, 0x78, 0x5c, 0x10, - 0x92, 0xb8, 0x4d, 0xc2, 0xae, 0x4b, 0x12, 0x0d, 0x24, 0x7f, 0x4b, 0x72, 0x42, 0xa2, 0xa9, 0x6c, - 0x17, 0xa5, 0x50, 0x07, 0x4e, 0x3b, 0x4a, 0xc7, 0xdd, 0x50, 0xc1, 0xce, 0x34, 0x54, 0xed, 0x65, - 0x92, 0xd2, 0x92, 0x2a, 0x6d, 0x59, 0x29, 0xa1, 0x25, 0xb1, 0x45, 0xd6, 0xaa, 0xa1, 0xf6, 0x70, - 0x26, 0xfc, 0x0a, 0xc0, 0x0b, 0x1a, 0x01, 0x1b, 0x4c, 0xe6, 0xdc, 0x08, 0xfe, 0x17, 0xd0, 0x5e, - 0xca, 0x7c, 0xda, 0x56, 0xcf, 0x68, 0x0b, 0x42, 0x97, 0xc9, 0x61, 0x45, 0xd7, 0xea, 0x29, 0xda, - 0x28, 0xe2, 0xec, 0x4a, 0x0e, 0x7c, 0x00, 0xb1, 0x46, 0xca, 0xa6, 0x27, 0x0a, 0x2d, 0xdb, 0x70, - 0xca, 0xf7, 0x44, 0x51, 0x38, 0x6d, 0x83, 0x55, 0xaf, 0xf0, 0x66, 0x19, 0x68, 0x57, 0xb3, 0xe0, - 0x77, 0xfa, 0x09, 0xb8, 0x1f, 0xee, 0x56, 0x26, 0xe0, 0x4c, 0x75, 0x27, 0x56, 0x1b, 0x33, 0x20, - 0xdb, 0x8d, 0xea, 0x64, 0x34, 0x4e, 0x6c, 0x32, 0xf0, 0x5b, 0xbd, 0xee, 0x75, 0xe6, 0xb3, 0x52, - 0xf7, 0xdf, 0x3a, 0xd8, 0x81, 0xd3, 0xbb, 0xea, 0xa3, 0xb1, 0xc6, 0x6a, 0xbd, 0x1a, 0x6a, 0x0f, - 0x67, 0xc2, 0x0b, 0xf0, 0xe2, 0x11, 0xb2, 0x44, 0xc8, 0x03, 0xc1, 0xf0, 0x4f, 0x70, 0x48, 0xd3, - 0x03, 0xf9, 0xcf, 0x1e, 0xbc, 0xa5, 0xd7, 0x53, 0xb0, 0xa9, 0x11, 0xb0, 0xcd, 0xa2, 0xd8, 0x73, - 0x18, 0xfa, 0x06, 0xe0, 0x5c, 0x9a, 0x43, 0xf3, 0x21, 0xba, 0x49, 0x34, 0xc6, 0x4b, 0xea, 0xd8, - 0x99, 0x31, 0xb9, 0x3d, 0xc4, 0x8b, 0x2f, 0x3f, 0x7d, 0x79, 0xd3, 0x58, 0xc0, 0x58, 0x19, 0x75, - 0x6c, 0xe9, 0x7f, 0x21, 0x62, 0x05, 0xb4, 0xd0, 0x57, 0x00, 0x8d, 0x0d, 0x26, 0x75, 0x9c, 0x2b, - 0xa3, 0x72, 0x96, 0xde, 0x35, 0x49, 0x48, 0x4b, 0x41, 0x5e, 0x41, 0x97, 0x8f, 0x86, 0x34, 0x9f, - 0x27, 0x47, 0xee, 0x45, 0x02, 0x3a, 0x9b, 0xb8, 0x90, 0x26, 0xa5, 0x40, 0x37, 0x46, 0x45, 0xad, - 0x78, 0xa3, 0xf1, 0x68, 0x62, 0xac, 0x49, 0x15, 0xdc, 0x52, 0xbc, 0xf3, 0xa8, 0x46, 0x53, 0xd1, - 0x0f, 0x00, 0xe7, 0x52, 0xeb, 0x3c, 0xb6, 0xe1, 0x1d, 0x72, 0xe2, 0x49, 0xf6, 0xb5, 0xad, 0x38, - 0x89, 0x51, 0xbf, 0xaf, 0xc9, 0x0c, 0x7f, 0x04, 0x70, 0x2e, 0x75, 0xb7, 0x63, 0x23, 0x1e, 0xf2, - 0x70, 0xe3, 0xd6, 0xb8, 0xe1, 0x99, 0xd7, 0x66, 0xe3, 0xda, 0x1a, 0x61, 0x5c, 0xbf, 0x03, 0x78, - 0x2e, 0xf1, 0x61, 0x1d, 0xd1, 0x18, 0xd3, 0x1a, 0x9c, 0xc4, 0xc9, 0x5c, 0x52, 0xa8, 0x57, 0xf1, - 0x42, 0x0d, 0x54, 0xdf, 0x0b, 0xe4, 0x0a, 0x68, 0xad, 0x76, 0xde, 0x0f, 0x9a, 0xe0, 0xc3, 0xa0, - 0x09, 0x3e, 0x0f, 0x9a, 0xe0, 0xe1, 0x9d, 0x91, 0x6e, 0xae, 0x87, 0xdf, 0x9f, 0x77, 0xfe, 0x57, - 0xf7, 0xcc, 0xe5, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x17, 0xd4, 0x4f, 0x9a, 0x6f, 0x0b, 0x00, - 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ClusterWorkflowTemplateServiceClient is the client API for ClusterWorkflowTemplateService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ClusterWorkflowTemplateServiceClient interface { - CreateClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) - GetClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateGetRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) - ListClusterWorkflowTemplates(ctx context.Context, in *ClusterWorkflowTemplateListRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplateList, error) - UpdateClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) - DeleteClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateDeleteRequest, opts ...grpc.CallOption) (*ClusterWorkflowTemplateDeleteResponse, error) - LintClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateLintRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) -} - -type clusterWorkflowTemplateServiceClient struct { - cc *grpc.ClientConn -} - -func NewClusterWorkflowTemplateServiceClient(cc *grpc.ClientConn) ClusterWorkflowTemplateServiceClient { - return &clusterWorkflowTemplateServiceClient{cc} -} - -func (c *clusterWorkflowTemplateServiceClient) CreateClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) { - out := new(v1alpha1.ClusterWorkflowTemplate) - err := c.cc.Invoke(ctx, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/CreateClusterWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clusterWorkflowTemplateServiceClient) GetClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateGetRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) { - out := new(v1alpha1.ClusterWorkflowTemplate) - err := c.cc.Invoke(ctx, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/GetClusterWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clusterWorkflowTemplateServiceClient) ListClusterWorkflowTemplates(ctx context.Context, in *ClusterWorkflowTemplateListRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplateList, error) { - out := new(v1alpha1.ClusterWorkflowTemplateList) - err := c.cc.Invoke(ctx, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/ListClusterWorkflowTemplates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clusterWorkflowTemplateServiceClient) UpdateClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) { - out := new(v1alpha1.ClusterWorkflowTemplate) - err := c.cc.Invoke(ctx, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/UpdateClusterWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clusterWorkflowTemplateServiceClient) DeleteClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateDeleteRequest, opts ...grpc.CallOption) (*ClusterWorkflowTemplateDeleteResponse, error) { - out := new(ClusterWorkflowTemplateDeleteResponse) - err := c.cc.Invoke(ctx, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/DeleteClusterWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clusterWorkflowTemplateServiceClient) LintClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateLintRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) { - out := new(v1alpha1.ClusterWorkflowTemplate) - err := c.cc.Invoke(ctx, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/LintClusterWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ClusterWorkflowTemplateServiceServer is the server API for ClusterWorkflowTemplateService service. -type ClusterWorkflowTemplateServiceServer interface { - CreateClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateCreateRequest) (*v1alpha1.ClusterWorkflowTemplate, error) - GetClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateGetRequest) (*v1alpha1.ClusterWorkflowTemplate, error) - ListClusterWorkflowTemplates(context.Context, *ClusterWorkflowTemplateListRequest) (*v1alpha1.ClusterWorkflowTemplateList, error) - UpdateClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateUpdateRequest) (*v1alpha1.ClusterWorkflowTemplate, error) - DeleteClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateDeleteRequest) (*ClusterWorkflowTemplateDeleteResponse, error) - LintClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateLintRequest) (*v1alpha1.ClusterWorkflowTemplate, error) -} - -// UnimplementedClusterWorkflowTemplateServiceServer can be embedded to have forward compatible implementations. -type UnimplementedClusterWorkflowTemplateServiceServer struct { -} - -func (*UnimplementedClusterWorkflowTemplateServiceServer) CreateClusterWorkflowTemplate(ctx context.Context, req *ClusterWorkflowTemplateCreateRequest) (*v1alpha1.ClusterWorkflowTemplate, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateClusterWorkflowTemplate not implemented") -} -func (*UnimplementedClusterWorkflowTemplateServiceServer) GetClusterWorkflowTemplate(ctx context.Context, req *ClusterWorkflowTemplateGetRequest) (*v1alpha1.ClusterWorkflowTemplate, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetClusterWorkflowTemplate not implemented") -} -func (*UnimplementedClusterWorkflowTemplateServiceServer) ListClusterWorkflowTemplates(ctx context.Context, req *ClusterWorkflowTemplateListRequest) (*v1alpha1.ClusterWorkflowTemplateList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListClusterWorkflowTemplates not implemented") -} -func (*UnimplementedClusterWorkflowTemplateServiceServer) UpdateClusterWorkflowTemplate(ctx context.Context, req *ClusterWorkflowTemplateUpdateRequest) (*v1alpha1.ClusterWorkflowTemplate, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateClusterWorkflowTemplate not implemented") -} -func (*UnimplementedClusterWorkflowTemplateServiceServer) DeleteClusterWorkflowTemplate(ctx context.Context, req *ClusterWorkflowTemplateDeleteRequest) (*ClusterWorkflowTemplateDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteClusterWorkflowTemplate not implemented") -} -func (*UnimplementedClusterWorkflowTemplateServiceServer) LintClusterWorkflowTemplate(ctx context.Context, req *ClusterWorkflowTemplateLintRequest) (*v1alpha1.ClusterWorkflowTemplate, error) { - return nil, status.Errorf(codes.Unimplemented, "method LintClusterWorkflowTemplate not implemented") -} - -func RegisterClusterWorkflowTemplateServiceServer(s *grpc.Server, srv ClusterWorkflowTemplateServiceServer) { - s.RegisterService(&_ClusterWorkflowTemplateService_serviceDesc, srv) -} - -func _ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClusterWorkflowTemplateCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClusterWorkflowTemplateServiceServer).CreateClusterWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/clusterworkflowtemplate.ClusterWorkflowTemplateService/CreateClusterWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClusterWorkflowTemplateServiceServer).CreateClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClusterWorkflowTemplateGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClusterWorkflowTemplateServiceServer).GetClusterWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/clusterworkflowtemplate.ClusterWorkflowTemplateService/GetClusterWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClusterWorkflowTemplateServiceServer).GetClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClusterWorkflowTemplateListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClusterWorkflowTemplateServiceServer).ListClusterWorkflowTemplates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/clusterworkflowtemplate.ClusterWorkflowTemplateService/ListClusterWorkflowTemplates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClusterWorkflowTemplateServiceServer).ListClusterWorkflowTemplates(ctx, req.(*ClusterWorkflowTemplateListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClusterWorkflowTemplateUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClusterWorkflowTemplateServiceServer).UpdateClusterWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/clusterworkflowtemplate.ClusterWorkflowTemplateService/UpdateClusterWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClusterWorkflowTemplateServiceServer).UpdateClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClusterWorkflowTemplateDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClusterWorkflowTemplateServiceServer).DeleteClusterWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/clusterworkflowtemplate.ClusterWorkflowTemplateService/DeleteClusterWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClusterWorkflowTemplateServiceServer).DeleteClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClusterWorkflowTemplateLintRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClusterWorkflowTemplateServiceServer).LintClusterWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/clusterworkflowtemplate.ClusterWorkflowTemplateService/LintClusterWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClusterWorkflowTemplateServiceServer).LintClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateLintRequest)) - } - return interceptor(ctx, in, info, handler) +type ClusterWorkflowTemplateUpdateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // DEPRECATED: This field is ignored. + // + // Deprecated: Marked as deprecated in pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.proto. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Template *v1alpha1.ClusterWorkflowTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var _ClusterWorkflowTemplateService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "clusterworkflowtemplate.ClusterWorkflowTemplateService", - HandlerType: (*ClusterWorkflowTemplateServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateClusterWorkflowTemplate", - Handler: _ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_Handler, - }, - { - MethodName: "GetClusterWorkflowTemplate", - Handler: _ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_Handler, - }, - { - MethodName: "ListClusterWorkflowTemplates", - Handler: _ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_Handler, - }, - { - MethodName: "UpdateClusterWorkflowTemplate", - Handler: _ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_Handler, - }, - { - MethodName: "DeleteClusterWorkflowTemplate", - Handler: _ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_Handler, - }, - { - MethodName: "LintClusterWorkflowTemplate", - Handler: _ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.proto", +func (x *ClusterWorkflowTemplateUpdateRequest) Reset() { + *x = ClusterWorkflowTemplateUpdateRequest{} + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ClusterWorkflowTemplateCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *ClusterWorkflowTemplateUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterWorkflowTemplateCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ClusterWorkflowTemplateUpdateRequest) ProtoMessage() {} -func (m *ClusterWorkflowTemplateCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CreateOptions != nil { - { - size, err := m.CreateOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(size)) +func (x *ClusterWorkflowTemplateUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 - } - if m.Template != nil { - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ClusterWorkflowTemplateGetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ClusterWorkflowTemplateGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ClusterWorkflowTemplateUpdateRequest.ProtoReflect.Descriptor instead. +func (*ClusterWorkflowTemplateUpdateRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescGZIP(), []int{3} } -func (m *ClusterWorkflowTemplateGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.GetOptions != nil { - { - size, err := m.GetOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 +// Deprecated: Marked as deprecated in pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.proto. +func (x *ClusterWorkflowTemplateUpdateRequest) GetName() string { + if x != nil { + return x.Name } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *ClusterWorkflowTemplateListRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ClusterWorkflowTemplateUpdateRequest) GetTemplate() *v1alpha1.ClusterWorkflowTemplate { + if x != nil { + return x.Template } - return dAtA[:n], nil + return nil } -func (m *ClusterWorkflowTemplateListRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type ClusterWorkflowTemplateDeleteRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DeleteOptions *v1.DeleteOptions `protobuf:"bytes,2,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ClusterWorkflowTemplateListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *ClusterWorkflowTemplateDeleteRequest) Reset() { + *x = ClusterWorkflowTemplateDeleteRequest{} + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ClusterWorkflowTemplateUpdateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *ClusterWorkflowTemplateDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterWorkflowTemplateUpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ClusterWorkflowTemplateDeleteRequest) ProtoMessage() {} -func (m *ClusterWorkflowTemplateUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Template != nil { - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(size)) +func (x *ClusterWorkflowTemplateDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 + return ms } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *ClusterWorkflowTemplateDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterWorkflowTemplateDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ClusterWorkflowTemplateDeleteRequest.ProtoReflect.Descriptor instead. +func (*ClusterWorkflowTemplateDeleteRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescGZIP(), []int{4} } -func (m *ClusterWorkflowTemplateDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *ClusterWorkflowTemplateDeleteRequest) GetName() string { + if x != nil { + return x.Name } - if m.DeleteOptions != nil { - { - size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *ClusterWorkflowTemplateDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ClusterWorkflowTemplateDeleteRequest) GetDeleteOptions() *v1.DeleteOptions { + if x != nil { + return x.DeleteOptions } - return dAtA[:n], nil + return nil } -func (m *ClusterWorkflowTemplateDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type ClusterWorkflowTemplateDeleteResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ClusterWorkflowTemplateDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil +func (x *ClusterWorkflowTemplateDeleteResponse) Reset() { + *x = ClusterWorkflowTemplateDeleteResponse{} + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ClusterWorkflowTemplateLintRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *ClusterWorkflowTemplateDeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterWorkflowTemplateLintRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ClusterWorkflowTemplateDeleteResponse) ProtoMessage() {} -func (m *ClusterWorkflowTemplateLintRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CreateOptions != nil { - { - size, err := m.CreateOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(size)) +func (x *ClusterWorkflowTemplateDeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 + return ms } - if m.Template != nil { - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintClusterWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintClusterWorkflowTemplate(dAtA []byte, offset int, v uint64) int { - offset -= sovClusterWorkflowTemplate(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ClusterWorkflowTemplateCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Template != nil { - l = m.Template.Size() - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.CreateOptions != nil { - l = m.CreateOptions.Size() - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return mi.MessageOf(x) } -func (m *ClusterWorkflowTemplateGetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.GetOptions != nil { - l = m.GetOptions.Size() - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ClusterWorkflowTemplateListRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use ClusterWorkflowTemplateDeleteResponse.ProtoReflect.Descriptor instead. +func (*ClusterWorkflowTemplateDeleteResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescGZIP(), []int{5} } -func (m *ClusterWorkflowTemplateUpdateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.Template != nil { - l = m.Template.Size() - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type ClusterWorkflowTemplateLintRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Template *v1alpha1.ClusterWorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + CreateOptions *v1.CreateOptions `protobuf:"bytes,2,opt,name=createOptions,proto3" json:"createOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ClusterWorkflowTemplateDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.DeleteOptions != nil { - l = m.DeleteOptions.Size() - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *ClusterWorkflowTemplateLintRequest) Reset() { + *x = ClusterWorkflowTemplateLintRequest{} + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ClusterWorkflowTemplateDeleteResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *ClusterWorkflowTemplateLintRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterWorkflowTemplateLintRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Template != nil { - l = m.Template.Size() - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.CreateOptions != nil { - l = m.CreateOptions.Size() - n += 1 + l + sovClusterWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*ClusterWorkflowTemplateLintRequest) ProtoMessage() {} -func sovClusterWorkflowTemplate(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozClusterWorkflowTemplate(x uint64) (n int) { - return sovClusterWorkflowTemplate(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ClusterWorkflowTemplateCreateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterWorkflowTemplateCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterWorkflowTemplateCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Template == nil { - m.Template = &v1alpha1.ClusterWorkflowTemplate{} - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreateOptions == nil { - m.CreateOptions = &v1.CreateOptions{} - } - if err := m.CreateOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipClusterWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterWorkflowTemplateGetRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterWorkflowTemplateGetRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterWorkflowTemplateGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GetOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GetOptions == nil { - m.GetOptions = &v1.GetOptions{} - } - if err := m.GetOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipClusterWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterWorkflowTemplateListRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterWorkflowTemplateListRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterWorkflowTemplateListRequest: illegal tag %d (wire type %d)", fieldNum, wire) +func (x *ClusterWorkflowTemplateLintRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipClusterWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func (m *ClusterWorkflowTemplateUpdateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterWorkflowTemplateUpdateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterWorkflowTemplateUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Template == nil { - m.Template = &v1alpha1.ClusterWorkflowTemplate{} - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipClusterWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use ClusterWorkflowTemplateLintRequest.ProtoReflect.Descriptor instead. +func (*ClusterWorkflowTemplateLintRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescGZIP(), []int{6} } -func (m *ClusterWorkflowTemplateDeleteRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterWorkflowTemplateDeleteRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterWorkflowTemplateDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteOptions == nil { - m.DeleteOptions = &v1.DeleteOptions{} - } - if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipClusterWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ClusterWorkflowTemplateLintRequest) GetTemplate() *v1alpha1.ClusterWorkflowTemplate { + if x != nil { + return x.Template } return nil } -func (m *ClusterWorkflowTemplateDeleteResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterWorkflowTemplateDeleteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterWorkflowTemplateDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipClusterWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ClusterWorkflowTemplateLintRequest) GetCreateOptions() *v1.CreateOptions { + if x != nil { + return x.CreateOptions } return nil } -func (m *ClusterWorkflowTemplateLintRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterWorkflowTemplateLintRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterWorkflowTemplateLintRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Template == nil { - m.Template = &v1alpha1.ClusterWorkflowTemplate{} - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreateOptions == nil { - m.CreateOptions = &v1.CreateOptions{} - } - if err := m.CreateOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipClusterWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthClusterWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipClusterWorkflowTemplate(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowClusterWorkflowTemplate - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthClusterWorkflowTemplate - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupClusterWorkflowTemplate - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthClusterWorkflowTemplate - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDesc = "" + + "\n" + + "Epkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.proto\x12\x17clusterworkflowtemplate\x1aPgithub.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1/generated.proto\x1a\x1cgoogle/api/annotations.proto\x1a4k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto\"\xf8\x01\n" + + "$ClusterWorkflowTemplateCreateRequest\x12u\n" + + "\btemplate\x18\x01 \x01(\v2Y.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplateR\btemplate\x12Y\n" + + "\rcreateOptions\x18\x02 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptionsR\rcreateOptions\"\x89\x01\n" + + "!ClusterWorkflowTemplateGetRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12P\n" + + "\n" + + "getOptions\x18\x02 \x01(\v20.k8s.io.apimachinery.pkg.apis.meta.v1.GetOptionsR\n" + + "getOptions\"y\n" + + "\"ClusterWorkflowTemplateListRequest\x12S\n" + + "\vlistOptions\x18\x01 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\"\xb5\x01\n" + + "$ClusterWorkflowTemplateUpdateRequest\x12\x16\n" + + "\x04name\x18\x01 \x01(\tB\x02\x18\x01R\x04name\x12u\n" + + "\btemplate\x18\x02 \x01(\v2Y.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplateR\btemplate\"\x95\x01\n" + + "$ClusterWorkflowTemplateDeleteRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12Y\n" + + "\rdeleteOptions\x18\x02 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptionsR\rdeleteOptions\"'\n" + + "%ClusterWorkflowTemplateDeleteResponse\"\xf6\x01\n" + + "\"ClusterWorkflowTemplateLintRequest\x12u\n" + + "\btemplate\x18\x01 \x01(\v2Y.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplateR\btemplate\x12Y\n" + + "\rcreateOptions\x18\x02 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptionsR\rcreateOptions2\x8f\v\n" + + "\x1eClusterWorkflowTemplateService\x12\xe8\x01\n" + + "\x1dCreateClusterWorkflowTemplate\x12=.clusterworkflowtemplate.ClusterWorkflowTemplateCreateRequest\x1aY.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate\"-\x82\xd3\xe4\x93\x02':\x01*\"\"/api/v1/cluster-workflow-templates\x12\xe6\x01\n" + + "\x1aGetClusterWorkflowTemplate\x12:.clusterworkflowtemplate.ClusterWorkflowTemplateGetRequest\x1aY.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate\"1\x82\xd3\xe4\x93\x02+\x12)/api/v1/cluster-workflow-templates/{name}\x12\xe6\x01\n" + + "\x1cListClusterWorkflowTemplates\x12;.clusterworkflowtemplate.ClusterWorkflowTemplateListRequest\x1a].github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplateList\"*\x82\xd3\xe4\x93\x02$\x12\"/api/v1/cluster-workflow-templates\x12\xef\x01\n" + + "\x1dUpdateClusterWorkflowTemplate\x12=.clusterworkflowtemplate.ClusterWorkflowTemplateUpdateRequest\x1aY.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate\"4\x82\xd3\xe4\x93\x02.:\x01*\x1a)/api/v1/cluster-workflow-templates/{name}\x12\xd1\x01\n" + + "\x1dDeleteClusterWorkflowTemplate\x12=.clusterworkflowtemplate.ClusterWorkflowTemplateDeleteRequest\x1a>.clusterworkflowtemplate.ClusterWorkflowTemplateDeleteResponse\"1\x82\xd3\xe4\x93\x02+*)/api/v1/cluster-workflow-templates/{name}\x12\xe9\x01\n" + + "\x1bLintClusterWorkflowTemplate\x12;.clusterworkflowtemplate.ClusterWorkflowTemplateLintRequest\x1aY.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate\"2\x82\xd3\xe4\x93\x02,:\x01*\"'/api/v1/cluster-workflow-templates/lintBMZKgithub.com/argoproj/argo-workflows/v4/pkg/apiclient/clusterworkflowtemplateb\x06proto3" var ( - ErrInvalidLengthClusterWorkflowTemplate = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowClusterWorkflowTemplate = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupClusterWorkflowTemplate = fmt.Errorf("proto: unexpected end of group") + file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescOnce sync.Once + file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescData []byte ) + +func file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescGZIP() []byte { + file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescOnce.Do(func() { + file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDesc), len(file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDesc))) + }) + return file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDescData +} + +var file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_goTypes = []any{ + (*ClusterWorkflowTemplateCreateRequest)(nil), // 0: clusterworkflowtemplate.ClusterWorkflowTemplateCreateRequest + (*ClusterWorkflowTemplateGetRequest)(nil), // 1: clusterworkflowtemplate.ClusterWorkflowTemplateGetRequest + (*ClusterWorkflowTemplateListRequest)(nil), // 2: clusterworkflowtemplate.ClusterWorkflowTemplateListRequest + (*ClusterWorkflowTemplateUpdateRequest)(nil), // 3: clusterworkflowtemplate.ClusterWorkflowTemplateUpdateRequest + (*ClusterWorkflowTemplateDeleteRequest)(nil), // 4: clusterworkflowtemplate.ClusterWorkflowTemplateDeleteRequest + (*ClusterWorkflowTemplateDeleteResponse)(nil), // 5: clusterworkflowtemplate.ClusterWorkflowTemplateDeleteResponse + (*ClusterWorkflowTemplateLintRequest)(nil), // 6: clusterworkflowtemplate.ClusterWorkflowTemplateLintRequest + (*v1alpha1.ClusterWorkflowTemplate)(nil), // 7: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate + (*v1.CreateOptions)(nil), // 8: k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + (*v1.GetOptions)(nil), // 9: k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions + (*v1.ListOptions)(nil), // 10: k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + (*v1.DeleteOptions)(nil), // 11: k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + (*v1alpha1.ClusterWorkflowTemplateList)(nil), // 12: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplateList +} +var file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_depIdxs = []int32{ + 7, // 0: clusterworkflowtemplate.ClusterWorkflowTemplateCreateRequest.template:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate + 8, // 1: clusterworkflowtemplate.ClusterWorkflowTemplateCreateRequest.createOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + 9, // 2: clusterworkflowtemplate.ClusterWorkflowTemplateGetRequest.getOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions + 10, // 3: clusterworkflowtemplate.ClusterWorkflowTemplateListRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 7, // 4: clusterworkflowtemplate.ClusterWorkflowTemplateUpdateRequest.template:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate + 11, // 5: clusterworkflowtemplate.ClusterWorkflowTemplateDeleteRequest.deleteOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + 7, // 6: clusterworkflowtemplate.ClusterWorkflowTemplateLintRequest.template:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate + 8, // 7: clusterworkflowtemplate.ClusterWorkflowTemplateLintRequest.createOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + 0, // 8: clusterworkflowtemplate.ClusterWorkflowTemplateService.CreateClusterWorkflowTemplate:input_type -> clusterworkflowtemplate.ClusterWorkflowTemplateCreateRequest + 1, // 9: clusterworkflowtemplate.ClusterWorkflowTemplateService.GetClusterWorkflowTemplate:input_type -> clusterworkflowtemplate.ClusterWorkflowTemplateGetRequest + 2, // 10: clusterworkflowtemplate.ClusterWorkflowTemplateService.ListClusterWorkflowTemplates:input_type -> clusterworkflowtemplate.ClusterWorkflowTemplateListRequest + 3, // 11: clusterworkflowtemplate.ClusterWorkflowTemplateService.UpdateClusterWorkflowTemplate:input_type -> clusterworkflowtemplate.ClusterWorkflowTemplateUpdateRequest + 4, // 12: clusterworkflowtemplate.ClusterWorkflowTemplateService.DeleteClusterWorkflowTemplate:input_type -> clusterworkflowtemplate.ClusterWorkflowTemplateDeleteRequest + 6, // 13: clusterworkflowtemplate.ClusterWorkflowTemplateService.LintClusterWorkflowTemplate:input_type -> clusterworkflowtemplate.ClusterWorkflowTemplateLintRequest + 7, // 14: clusterworkflowtemplate.ClusterWorkflowTemplateService.CreateClusterWorkflowTemplate:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate + 7, // 15: clusterworkflowtemplate.ClusterWorkflowTemplateService.GetClusterWorkflowTemplate:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate + 12, // 16: clusterworkflowtemplate.ClusterWorkflowTemplateService.ListClusterWorkflowTemplates:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplateList + 7, // 17: clusterworkflowtemplate.ClusterWorkflowTemplateService.UpdateClusterWorkflowTemplate:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate + 5, // 18: clusterworkflowtemplate.ClusterWorkflowTemplateService.DeleteClusterWorkflowTemplate:output_type -> clusterworkflowtemplate.ClusterWorkflowTemplateDeleteResponse + 7, // 19: clusterworkflowtemplate.ClusterWorkflowTemplateService.LintClusterWorkflowTemplate:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ClusterWorkflowTemplate + 14, // [14:20] is the sub-list for method output_type + 8, // [8:14] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_init() } +func file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_init() { + if File_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDesc), len(file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_rawDesc)), + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_depIdxs, + MessageInfos: file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_msgTypes, + }.Build() + File_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto = out.File + file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_goTypes = nil + file_pkg_apiclient_clusterworkflowtemplate_cluster_workflow_template_proto_depIdxs = nil +} diff --git a/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.pb.gw.go b/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.pb.gw.go index a05e32239e85..4b9d3322fe49 100644 --- a/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.pb.gw.go +++ b/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.pb.gw.go @@ -10,489 +10,397 @@ package clusterworkflowtemplate import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterWorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq ClusterWorkflowTemplateCreateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.CreateClusterWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server ClusterWorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq ClusterWorkflowTemplateCreateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CreateClusterWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterWorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateGetRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ClusterWorkflowTemplateGetRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetClusterWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server ClusterWorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateGetRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ClusterWorkflowTemplateGetRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetClusterWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) +var filter_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} func request_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterWorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateListRequest - var metadata runtime.ServerMetadata - + var ( + protoReq ClusterWorkflowTemplateListRequest + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListClusterWorkflowTemplates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(ctx context.Context, marshaler runtime.Marshaler, server ClusterWorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateListRequest - var metadata runtime.ServerMetadata - + var ( + protoReq ClusterWorkflowTemplateListRequest + 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_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListClusterWorkflowTemplates(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterWorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq ClusterWorkflowTemplateUpdateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.UpdateClusterWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server ClusterWorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq ClusterWorkflowTemplateUpdateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.UpdateClusterWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterWorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateDeleteRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ClusterWorkflowTemplateDeleteRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteClusterWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server ClusterWorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateDeleteRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ClusterWorkflowTemplateDeleteRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteClusterWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterWorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateLintRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq ClusterWorkflowTemplateLintRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.LintClusterWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server ClusterWorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ClusterWorkflowTemplateLintRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq ClusterWorkflowTemplateLintRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.LintClusterWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterClusterWorkflowTemplateServiceHandlerServer registers the http handlers for service ClusterWorkflowTemplateService to "mux". // UnaryRPC :call ClusterWorkflowTemplateServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterClusterWorkflowTemplateServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterClusterWorkflowTemplateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ClusterWorkflowTemplateServiceServer) error { - - mux.Handle("POST", pattern_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/CreateClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/GetClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/ListClusterWorkflowTemplates", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/UpdateClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/DeleteClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/LintClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates/lint")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -501,25 +409,24 @@ func RegisterClusterWorkflowTemplateServiceHandlerServer(ctx context.Context, mu // RegisterClusterWorkflowTemplateServiceHandlerFromEndpoint is same as RegisterClusterWorkflowTemplateServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterClusterWorkflowTemplateServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterClusterWorkflowTemplateServiceHandler(ctx, mux, conn) } @@ -533,156 +440,127 @@ func RegisterClusterWorkflowTemplateServiceHandler(ctx context.Context, mux *run // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ClusterWorkflowTemplateServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ClusterWorkflowTemplateServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "ClusterWorkflowTemplateServiceClient" to call the correct interceptors. +// "ClusterWorkflowTemplateServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterClusterWorkflowTemplateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClusterWorkflowTemplateServiceClient) error { - - mux.Handle("POST", pattern_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/CreateClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/GetClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/ListClusterWorkflowTemplates", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/UpdateClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/DeleteClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/clusterworkflowtemplate.ClusterWorkflowTemplateService/LintClusterWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/cluster-workflow-templates/lint")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "cluster-workflow-templates"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cluster-workflow-templates", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "cluster-workflow-templates"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cluster-workflow-templates", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cluster-workflow-templates", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "cluster-workflow-templates", "lint"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "cluster-workflow-templates"}, "")) + pattern_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cluster-workflow-templates", "name"}, "")) + pattern_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "cluster-workflow-templates"}, "")) + pattern_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cluster-workflow-templates", "name"}, "")) + pattern_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cluster-workflow-templates", "name"}, "")) + pattern_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "cluster-workflow-templates", "lint"}, "")) ) var ( forward_ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_0 = runtime.ForwardResponseMessage - - forward_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0 = runtime.ForwardResponseMessage - - forward_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0 = runtime.ForwardResponseMessage - + forward_ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_0 = runtime.ForwardResponseMessage + forward_ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_0 = runtime.ForwardResponseMessage forward_ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_0 = runtime.ForwardResponseMessage - forward_ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_0 = runtime.ForwardResponseMessage - - forward_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0 = runtime.ForwardResponseMessage + forward_ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template_grpc.pb.go b/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template_grpc.pb.go new file mode 100644 index 000000000000..ec86e38a6903 --- /dev/null +++ b/pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template_grpc.pb.go @@ -0,0 +1,314 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.proto + +// Workflow Service +// +// Workflow Service API performs CRUD actions against application resources + +package clusterworkflowtemplate + +import ( + context "context" + v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_FullMethodName = "/clusterworkflowtemplate.ClusterWorkflowTemplateService/CreateClusterWorkflowTemplate" + ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_FullMethodName = "/clusterworkflowtemplate.ClusterWorkflowTemplateService/GetClusterWorkflowTemplate" + ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_FullMethodName = "/clusterworkflowtemplate.ClusterWorkflowTemplateService/ListClusterWorkflowTemplates" + ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_FullMethodName = "/clusterworkflowtemplate.ClusterWorkflowTemplateService/UpdateClusterWorkflowTemplate" + ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_FullMethodName = "/clusterworkflowtemplate.ClusterWorkflowTemplateService/DeleteClusterWorkflowTemplate" + ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_FullMethodName = "/clusterworkflowtemplate.ClusterWorkflowTemplateService/LintClusterWorkflowTemplate" +) + +// ClusterWorkflowTemplateServiceClient is the client API for ClusterWorkflowTemplateService 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 ClusterWorkflowTemplateServiceClient interface { + CreateClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) + GetClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateGetRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) + ListClusterWorkflowTemplates(ctx context.Context, in *ClusterWorkflowTemplateListRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplateList, error) + UpdateClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) + DeleteClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateDeleteRequest, opts ...grpc.CallOption) (*ClusterWorkflowTemplateDeleteResponse, error) + LintClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateLintRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) +} + +type clusterWorkflowTemplateServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewClusterWorkflowTemplateServiceClient(cc grpc.ClientConnInterface) ClusterWorkflowTemplateServiceClient { + return &clusterWorkflowTemplateServiceClient{cc} +} + +func (c *clusterWorkflowTemplateServiceClient) CreateClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.ClusterWorkflowTemplate) + err := c.cc.Invoke(ctx, ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterWorkflowTemplateServiceClient) GetClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateGetRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.ClusterWorkflowTemplate) + err := c.cc.Invoke(ctx, ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterWorkflowTemplateServiceClient) ListClusterWorkflowTemplates(ctx context.Context, in *ClusterWorkflowTemplateListRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplateList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.ClusterWorkflowTemplateList) + err := c.cc.Invoke(ctx, ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterWorkflowTemplateServiceClient) UpdateClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.ClusterWorkflowTemplate) + err := c.cc.Invoke(ctx, ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterWorkflowTemplateServiceClient) DeleteClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateDeleteRequest, opts ...grpc.CallOption) (*ClusterWorkflowTemplateDeleteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ClusterWorkflowTemplateDeleteResponse) + err := c.cc.Invoke(ctx, ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clusterWorkflowTemplateServiceClient) LintClusterWorkflowTemplate(ctx context.Context, in *ClusterWorkflowTemplateLintRequest, opts ...grpc.CallOption) (*v1alpha1.ClusterWorkflowTemplate, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.ClusterWorkflowTemplate) + err := c.cc.Invoke(ctx, ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ClusterWorkflowTemplateServiceServer is the server API for ClusterWorkflowTemplateService service. +// All implementations should embed UnimplementedClusterWorkflowTemplateServiceServer +// for forward compatibility. +type ClusterWorkflowTemplateServiceServer interface { + CreateClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateCreateRequest) (*v1alpha1.ClusterWorkflowTemplate, error) + GetClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateGetRequest) (*v1alpha1.ClusterWorkflowTemplate, error) + ListClusterWorkflowTemplates(context.Context, *ClusterWorkflowTemplateListRequest) (*v1alpha1.ClusterWorkflowTemplateList, error) + UpdateClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateUpdateRequest) (*v1alpha1.ClusterWorkflowTemplate, error) + DeleteClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateDeleteRequest) (*ClusterWorkflowTemplateDeleteResponse, error) + LintClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateLintRequest) (*v1alpha1.ClusterWorkflowTemplate, error) +} + +// UnimplementedClusterWorkflowTemplateServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedClusterWorkflowTemplateServiceServer struct{} + +func (UnimplementedClusterWorkflowTemplateServiceServer) CreateClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateCreateRequest) (*v1alpha1.ClusterWorkflowTemplate, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateClusterWorkflowTemplate not implemented") +} +func (UnimplementedClusterWorkflowTemplateServiceServer) GetClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateGetRequest) (*v1alpha1.ClusterWorkflowTemplate, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClusterWorkflowTemplate not implemented") +} +func (UnimplementedClusterWorkflowTemplateServiceServer) ListClusterWorkflowTemplates(context.Context, *ClusterWorkflowTemplateListRequest) (*v1alpha1.ClusterWorkflowTemplateList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListClusterWorkflowTemplates not implemented") +} +func (UnimplementedClusterWorkflowTemplateServiceServer) UpdateClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateUpdateRequest) (*v1alpha1.ClusterWorkflowTemplate, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateClusterWorkflowTemplate not implemented") +} +func (UnimplementedClusterWorkflowTemplateServiceServer) DeleteClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateDeleteRequest) (*ClusterWorkflowTemplateDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteClusterWorkflowTemplate not implemented") +} +func (UnimplementedClusterWorkflowTemplateServiceServer) LintClusterWorkflowTemplate(context.Context, *ClusterWorkflowTemplateLintRequest) (*v1alpha1.ClusterWorkflowTemplate, error) { + return nil, status.Errorf(codes.Unimplemented, "method LintClusterWorkflowTemplate not implemented") +} +func (UnimplementedClusterWorkflowTemplateServiceServer) testEmbeddedByValue() {} + +// UnsafeClusterWorkflowTemplateServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ClusterWorkflowTemplateServiceServer will +// result in compilation errors. +type UnsafeClusterWorkflowTemplateServiceServer interface { + mustEmbedUnimplementedClusterWorkflowTemplateServiceServer() +} + +func RegisterClusterWorkflowTemplateServiceServer(s grpc.ServiceRegistrar, srv ClusterWorkflowTemplateServiceServer) { + // If the following call pancis, it indicates UnimplementedClusterWorkflowTemplateServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ClusterWorkflowTemplateService_ServiceDesc, srv) +} + +func _ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClusterWorkflowTemplateCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterWorkflowTemplateServiceServer).CreateClusterWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterWorkflowTemplateServiceServer).CreateClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClusterWorkflowTemplateGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterWorkflowTemplateServiceServer).GetClusterWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterWorkflowTemplateServiceServer).GetClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClusterWorkflowTemplateListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterWorkflowTemplateServiceServer).ListClusterWorkflowTemplates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterWorkflowTemplateServiceServer).ListClusterWorkflowTemplates(ctx, req.(*ClusterWorkflowTemplateListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClusterWorkflowTemplateUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterWorkflowTemplateServiceServer).UpdateClusterWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterWorkflowTemplateServiceServer).UpdateClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClusterWorkflowTemplateDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterWorkflowTemplateServiceServer).DeleteClusterWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterWorkflowTemplateServiceServer).DeleteClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClusterWorkflowTemplateLintRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClusterWorkflowTemplateServiceServer).LintClusterWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClusterWorkflowTemplateServiceServer).LintClusterWorkflowTemplate(ctx, req.(*ClusterWorkflowTemplateLintRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ClusterWorkflowTemplateService_ServiceDesc is the grpc.ServiceDesc for ClusterWorkflowTemplateService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ClusterWorkflowTemplateService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "clusterworkflowtemplate.ClusterWorkflowTemplateService", + HandlerType: (*ClusterWorkflowTemplateServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateClusterWorkflowTemplate", + Handler: _ClusterWorkflowTemplateService_CreateClusterWorkflowTemplate_Handler, + }, + { + MethodName: "GetClusterWorkflowTemplate", + Handler: _ClusterWorkflowTemplateService_GetClusterWorkflowTemplate_Handler, + }, + { + MethodName: "ListClusterWorkflowTemplates", + Handler: _ClusterWorkflowTemplateService_ListClusterWorkflowTemplates_Handler, + }, + { + MethodName: "UpdateClusterWorkflowTemplate", + Handler: _ClusterWorkflowTemplateService_UpdateClusterWorkflowTemplate_Handler, + }, + { + MethodName: "DeleteClusterWorkflowTemplate", + Handler: _ClusterWorkflowTemplateService_DeleteClusterWorkflowTemplate_Handler, + }, + { + MethodName: "LintClusterWorkflowTemplate", + Handler: _ClusterWorkflowTemplateService_LintClusterWorkflowTemplate_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/apiclient/clusterworkflowtemplate/cluster-workflow-template.proto", +} diff --git a/pkg/apiclient/cronworkflow/cron-workflow.pb.go b/pkg/apiclient/cronworkflow/cron-workflow.pb.go index f90d800e22e6..10ecf267b5fa 100644 --- a/pkg/apiclient/cronworkflow/cron-workflow.pb.go +++ b/pkg/apiclient/cronworkflow/cron-workflow.pb.go @@ -1,2778 +1,644 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/cronworkflow/cron-workflow.proto package cronworkflow import ( - context "context" - fmt "fmt" v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type LintCronWorkflowRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - CronWorkflow *v1alpha1.CronWorkflow `protobuf:"bytes,2,opt,name=cronWorkflow,proto3" json:"cronWorkflow,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + CronWorkflow *v1alpha1.CronWorkflow `protobuf:"bytes,2,opt,name=cronWorkflow,proto3" json:"cronWorkflow,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LintCronWorkflowRequest) Reset() { *m = LintCronWorkflowRequest{} } -func (m *LintCronWorkflowRequest) String() string { return proto.CompactTextString(m) } -func (*LintCronWorkflowRequest) ProtoMessage() {} -func (*LintCronWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_257f310938c448f8, []int{0} -} -func (m *LintCronWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LintCronWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LintCronWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LintCronWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LintCronWorkflowRequest.Merge(m, src) -} -func (m *LintCronWorkflowRequest) XXX_Size() int { - return m.Size() +func (x *LintCronWorkflowRequest) Reset() { + *x = LintCronWorkflowRequest{} + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LintCronWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LintCronWorkflowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LintCronWorkflowRequest proto.InternalMessageInfo -func (m *LintCronWorkflowRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *LintCronWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LintCronWorkflowRequest) GetCronWorkflow() *v1alpha1.CronWorkflow { - if m != nil { - return m.CronWorkflow - } - return nil -} - -type CreateCronWorkflowRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - CronWorkflow *v1alpha1.CronWorkflow `protobuf:"bytes,2,opt,name=cronWorkflow,proto3" json:"cronWorkflow,omitempty"` - CreateOptions *v1.CreateOptions `protobuf:"bytes,3,opt,name=createOptions,proto3" json:"createOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*LintCronWorkflowRequest) ProtoMessage() {} -func (m *CreateCronWorkflowRequest) Reset() { *m = CreateCronWorkflowRequest{} } -func (m *CreateCronWorkflowRequest) String() string { return proto.CompactTextString(m) } -func (*CreateCronWorkflowRequest) ProtoMessage() {} -func (*CreateCronWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_257f310938c448f8, []int{1} -} -func (m *CreateCronWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateCronWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateCronWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *LintCronWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *CreateCronWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateCronWorkflowRequest.Merge(m, src) -} -func (m *CreateCronWorkflowRequest) XXX_Size() int { - return m.Size() -} -func (m *CreateCronWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateCronWorkflowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateCronWorkflowRequest proto.InternalMessageInfo -func (m *CreateCronWorkflowRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +// Deprecated: Use LintCronWorkflowRequest.ProtoReflect.Descriptor instead. +func (*LintCronWorkflowRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP(), []int{0} } -func (m *CreateCronWorkflowRequest) GetCronWorkflow() *v1alpha1.CronWorkflow { - if m != nil { - return m.CronWorkflow +func (x *LintCronWorkflowRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return nil + return "" } -func (m *CreateCronWorkflowRequest) GetCreateOptions() *v1.CreateOptions { - if m != nil { - return m.CreateOptions +func (x *LintCronWorkflowRequest) GetCronWorkflow() *v1alpha1.CronWorkflow { + if x != nil { + return x.CronWorkflow } return nil } -type ListCronWorkflowsRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListCronWorkflowsRequest) Reset() { *m = ListCronWorkflowsRequest{} } -func (m *ListCronWorkflowsRequest) String() string { return proto.CompactTextString(m) } -func (*ListCronWorkflowsRequest) ProtoMessage() {} -func (*ListCronWorkflowsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_257f310938c448f8, []int{2} -} -func (m *ListCronWorkflowsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListCronWorkflowsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListCronWorkflowsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ListCronWorkflowsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListCronWorkflowsRequest.Merge(m, src) -} -func (m *ListCronWorkflowsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListCronWorkflowsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListCronWorkflowsRequest.DiscardUnknown(m) +type CreateCronWorkflowRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + CronWorkflow *v1alpha1.CronWorkflow `protobuf:"bytes,2,opt,name=cronWorkflow,proto3" json:"cronWorkflow,omitempty"` + CreateOptions *v1.CreateOptions `protobuf:"bytes,3,opt,name=createOptions,proto3" json:"createOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_ListCronWorkflowsRequest proto.InternalMessageInfo - -func (m *ListCronWorkflowsRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *CreateCronWorkflowRequest) Reset() { + *x = CreateCronWorkflowRequest{} + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListCronWorkflowsRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions - } - return nil +func (x *CreateCronWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type GetCronWorkflowRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - GetOptions *v1.GetOptions `protobuf:"bytes,3,opt,name=getOptions,proto3" json:"getOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*CreateCronWorkflowRequest) ProtoMessage() {} -func (m *GetCronWorkflowRequest) Reset() { *m = GetCronWorkflowRequest{} } -func (m *GetCronWorkflowRequest) String() string { return proto.CompactTextString(m) } -func (*GetCronWorkflowRequest) ProtoMessage() {} -func (*GetCronWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_257f310938c448f8, []int{3} -} -func (m *GetCronWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetCronWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetCronWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *CreateCronWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *GetCronWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCronWorkflowRequest.Merge(m, src) -} -func (m *GetCronWorkflowRequest) XXX_Size() int { - return m.Size() -} -func (m *GetCronWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCronWorkflowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCronWorkflowRequest proto.InternalMessageInfo -func (m *GetCronWorkflowRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +// Deprecated: Use CreateCronWorkflowRequest.ProtoReflect.Descriptor instead. +func (*CreateCronWorkflowRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP(), []int{1} } -func (m *GetCronWorkflowRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *CreateCronWorkflowRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *GetCronWorkflowRequest) GetGetOptions() *v1.GetOptions { - if m != nil { - return m.GetOptions +func (x *CreateCronWorkflowRequest) GetCronWorkflow() *v1alpha1.CronWorkflow { + if x != nil { + return x.CronWorkflow } return nil } -type UpdateCronWorkflowRequest struct { - // DEPRECATED: This field is ignored. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - CronWorkflow *v1alpha1.CronWorkflow `protobuf:"bytes,3,opt,name=cronWorkflow,proto3" json:"cronWorkflow,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateCronWorkflowRequest) Reset() { *m = UpdateCronWorkflowRequest{} } -func (m *UpdateCronWorkflowRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateCronWorkflowRequest) ProtoMessage() {} -func (*UpdateCronWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_257f310938c448f8, []int{4} -} -func (m *UpdateCronWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateCronWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateCronWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CreateCronWorkflowRequest) GetCreateOptions() *v1.CreateOptions { + if x != nil { + return x.CreateOptions } + return nil } -func (m *UpdateCronWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateCronWorkflowRequest.Merge(m, src) -} -func (m *UpdateCronWorkflowRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateCronWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateCronWorkflowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateCronWorkflowRequest proto.InternalMessageInfo -// Deprecated: Do not use. -func (m *UpdateCronWorkflowRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +type ListCronWorkflowsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *UpdateCronWorkflowRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *ListCronWorkflowsRequest) Reset() { + *x = ListCronWorkflowsRequest{} + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *UpdateCronWorkflowRequest) GetCronWorkflow() *v1alpha1.CronWorkflow { - if m != nil { - return m.CronWorkflow - } - return nil +func (x *ListCronWorkflowsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type DeleteCronWorkflowRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*ListCronWorkflowsRequest) ProtoMessage() {} -func (m *DeleteCronWorkflowRequest) Reset() { *m = DeleteCronWorkflowRequest{} } -func (m *DeleteCronWorkflowRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteCronWorkflowRequest) ProtoMessage() {} -func (*DeleteCronWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_257f310938c448f8, []int{5} -} -func (m *DeleteCronWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteCronWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteCronWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ListCronWorkflowsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeleteCronWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteCronWorkflowRequest.Merge(m, src) -} -func (m *DeleteCronWorkflowRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteCronWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteCronWorkflowRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteCronWorkflowRequest proto.InternalMessageInfo - -func (m *DeleteCronWorkflowRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +// Deprecated: Use ListCronWorkflowsRequest.ProtoReflect.Descriptor instead. +func (*ListCronWorkflowsRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP(), []int{2} } -func (m *DeleteCronWorkflowRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *ListCronWorkflowsRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *DeleteCronWorkflowRequest) GetDeleteOptions() *v1.DeleteOptions { - if m != nil { - return m.DeleteOptions +func (x *ListCronWorkflowsRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } return nil } -type CronWorkflowDeletedResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CronWorkflowDeletedResponse) Reset() { *m = CronWorkflowDeletedResponse{} } -func (m *CronWorkflowDeletedResponse) String() string { return proto.CompactTextString(m) } -func (*CronWorkflowDeletedResponse) ProtoMessage() {} -func (*CronWorkflowDeletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_257f310938c448f8, []int{6} -} -func (m *CronWorkflowDeletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronWorkflowDeletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CronWorkflowDeletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CronWorkflowDeletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronWorkflowDeletedResponse.Merge(m, src) -} -func (m *CronWorkflowDeletedResponse) XXX_Size() int { - return m.Size() -} -func (m *CronWorkflowDeletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CronWorkflowDeletedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CronWorkflowDeletedResponse proto.InternalMessageInfo - -type CronWorkflowSuspendRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CronWorkflowSuspendRequest) Reset() { *m = CronWorkflowSuspendRequest{} } -func (m *CronWorkflowSuspendRequest) String() string { return proto.CompactTextString(m) } -func (*CronWorkflowSuspendRequest) ProtoMessage() {} -func (*CronWorkflowSuspendRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_257f310938c448f8, []int{7} -} -func (m *CronWorkflowSuspendRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronWorkflowSuspendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CronWorkflowSuspendRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CronWorkflowSuspendRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronWorkflowSuspendRequest.Merge(m, src) -} -func (m *CronWorkflowSuspendRequest) XXX_Size() int { - return m.Size() -} -func (m *CronWorkflowSuspendRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CronWorkflowSuspendRequest.DiscardUnknown(m) +type GetCronWorkflowRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + GetOptions *v1.GetOptions `protobuf:"bytes,3,opt,name=getOptions,proto3" json:"getOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_CronWorkflowSuspendRequest proto.InternalMessageInfo - -func (m *CronWorkflowSuspendRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +func (x *GetCronWorkflowRequest) Reset() { + *x = GetCronWorkflowRequest{} + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CronWorkflowSuspendRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *GetCronWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type CronWorkflowResumeRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*GetCronWorkflowRequest) ProtoMessage() {} -func (m *CronWorkflowResumeRequest) Reset() { *m = CronWorkflowResumeRequest{} } -func (m *CronWorkflowResumeRequest) String() string { return proto.CompactTextString(m) } -func (*CronWorkflowResumeRequest) ProtoMessage() {} -func (*CronWorkflowResumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_257f310938c448f8, []int{8} -} -func (m *CronWorkflowResumeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronWorkflowResumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CronWorkflowResumeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *GetCronWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *CronWorkflowResumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronWorkflowResumeRequest.Merge(m, src) -} -func (m *CronWorkflowResumeRequest) XXX_Size() int { - return m.Size() -} -func (m *CronWorkflowResumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CronWorkflowResumeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CronWorkflowResumeRequest proto.InternalMessageInfo -func (m *CronWorkflowResumeRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +// Deprecated: Use GetCronWorkflowRequest.ProtoReflect.Descriptor instead. +func (*GetCronWorkflowRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP(), []int{3} } -func (m *CronWorkflowResumeRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *GetCronWorkflowRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func init() { - proto.RegisterType((*LintCronWorkflowRequest)(nil), "cronworkflow.LintCronWorkflowRequest") - proto.RegisterType((*CreateCronWorkflowRequest)(nil), "cronworkflow.CreateCronWorkflowRequest") - proto.RegisterType((*ListCronWorkflowsRequest)(nil), "cronworkflow.ListCronWorkflowsRequest") - proto.RegisterType((*GetCronWorkflowRequest)(nil), "cronworkflow.GetCronWorkflowRequest") - proto.RegisterType((*UpdateCronWorkflowRequest)(nil), "cronworkflow.UpdateCronWorkflowRequest") - proto.RegisterType((*DeleteCronWorkflowRequest)(nil), "cronworkflow.DeleteCronWorkflowRequest") - proto.RegisterType((*CronWorkflowDeletedResponse)(nil), "cronworkflow.CronWorkflowDeletedResponse") - proto.RegisterType((*CronWorkflowSuspendRequest)(nil), "cronworkflow.CronWorkflowSuspendRequest") - proto.RegisterType((*CronWorkflowResumeRequest)(nil), "cronworkflow.CronWorkflowResumeRequest") -} - -func init() { - proto.RegisterFile("pkg/apiclient/cronworkflow/cron-workflow.proto", fileDescriptor_257f310938c448f8) -} - -var fileDescriptor_257f310938c448f8 = []byte{ - // 765 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x97, 0x4f, 0x6b, 0xd4, 0x40, - 0x18, 0xc6, 0x99, 0xad, 0x08, 0x7d, 0xdb, 0xa2, 0x4e, 0xa1, 0x6e, 0x63, 0x2d, 0x25, 0x54, 0xdb, - 0xae, 0x76, 0xd2, 0x6d, 0x57, 0x91, 0xea, 0x41, 0xda, 0x42, 0x2f, 0xb5, 0x96, 0x14, 0x91, 0x7a, - 0x91, 0x34, 0x3b, 0xa6, 0xb1, 0xd9, 0x4c, 0xcc, 0x64, 0x53, 0x44, 0x7a, 0xf1, 0xe4, 0x45, 0x10, - 0x3c, 0xea, 0x07, 0x10, 0xfc, 0x06, 0xfe, 0x39, 0x89, 0x20, 0x82, 0x20, 0xf8, 0x05, 0xa4, 0xf8, - 0x41, 0x24, 0xb3, 0xff, 0x32, 0xd9, 0x8d, 0xa6, 0x4b, 0x10, 0xbc, 0x4d, 0x36, 0x99, 0x77, 0x9e, - 0xdf, 0x33, 0x6f, 0x9e, 0xc9, 0x02, 0xf1, 0xf6, 0x2d, 0xcd, 0xf0, 0x6c, 0xd3, 0xb1, 0xa9, 0x1b, - 0x68, 0xa6, 0xcf, 0xdc, 0x03, 0xe6, 0xef, 0x3f, 0x70, 0xd8, 0x81, 0xb8, 0x98, 0x6f, 0x5d, 0x11, - 0xcf, 0x67, 0x01, 0xc3, 0xc3, 0xf1, 0x27, 0x94, 0x2d, 0xcb, 0x0e, 0xf6, 0xea, 0xbb, 0xc4, 0x64, - 0x35, 0xcd, 0xf0, 0x2d, 0xe6, 0xf9, 0xec, 0xa1, 0x18, 0xb4, 0xa7, 0x71, 0x2d, 0xac, 0x68, 0xcd, - 0x35, 0xb8, 0xd6, 0x2e, 0x1d, 0x96, 0x0d, 0xc7, 0xdb, 0x33, 0xca, 0x9a, 0x45, 0x5d, 0xea, 0x1b, - 0x01, 0xad, 0x36, 0xea, 0x2b, 0x13, 0x16, 0x63, 0x96, 0x43, 0xa3, 0xc7, 0x35, 0xc3, 0x75, 0x59, - 0x60, 0x04, 0x36, 0x73, 0x79, 0xf3, 0x6e, 0x65, 0xff, 0x1a, 0x27, 0x36, 0x8b, 0xee, 0xd6, 0x0c, - 0x73, 0xcf, 0x76, 0xa9, 0xff, 0xb8, 0x53, 0xbd, 0x46, 0x03, 0x43, 0x0b, 0xbb, 0x6a, 0xaa, 0x6f, - 0x11, 0x9c, 0xdd, 0xb0, 0xdd, 0x60, 0xd5, 0x67, 0xee, 0xdd, 0xa6, 0x02, 0x9d, 0x3e, 0xaa, 0x53, - 0x1e, 0xe0, 0x09, 0x18, 0x74, 0x8d, 0x1a, 0xe5, 0x9e, 0x61, 0xd2, 0x22, 0x9a, 0x42, 0xb3, 0x83, - 0x7a, 0xe7, 0x07, 0xec, 0x83, 0xe0, 0x6d, 0x4d, 0x2a, 0x16, 0xa6, 0xd0, 0xec, 0xd0, 0xe2, 0x26, - 0xe9, 0x60, 0x93, 0x16, 0xb6, 0x18, 0xdc, 0x6f, 0x63, 0x93, 0xb0, 0x12, 0x59, 0x4b, 0x22, 0x61, - 0xa4, 0xed, 0x61, 0x0b, 0x9b, 0x48, 0x52, 0xa4, 0x35, 0xd4, 0x67, 0x05, 0x18, 0x5f, 0xf5, 0xa9, - 0x11, 0xd0, 0xff, 0x42, 0x2f, 0xde, 0x81, 0x11, 0x53, 0xc8, 0xbd, 0xed, 0x89, 0xad, 0x2a, 0x0e, - 0x88, 0x45, 0x97, 0x48, 0x63, 0xaf, 0x48, 0x7c, 0xaf, 0x3a, 0x4b, 0x44, 0x7b, 0x45, 0xc2, 0xa8, - 0x70, 0x6c, 0xaa, 0x2e, 0x57, 0x52, 0x9f, 0x23, 0x28, 0x6e, 0xd8, 0x5c, 0xda, 0x38, 0x9e, 0xcd, - 0x89, 0x6d, 0x18, 0x72, 0x6c, 0x1e, 0xb4, 0x34, 0x35, 0x8c, 0x28, 0x67, 0xd3, 0xb4, 0xd1, 0x99, - 0xa8, 0xc7, 0xab, 0xa8, 0xaf, 0x11, 0x8c, 0xad, 0xd3, 0x9e, 0x7d, 0x84, 0xe1, 0x44, 0xb4, 0x78, - 0x53, 0x88, 0x18, 0xcb, 0x0a, 0x0b, 0x49, 0x85, 0x5b, 0x00, 0x16, 0x0d, 0x64, 0xd3, 0x16, 0xb2, - 0x09, 0x5c, 0x6f, 0xcf, 0xd3, 0x63, 0x35, 0xd4, 0xcf, 0x08, 0xc6, 0xef, 0x78, 0xd5, 0x94, 0xce, - 0x19, 0x8b, 0x2b, 0x5c, 0x29, 0x14, 0x51, 0x26, 0x95, 0xc9, 0x8e, 0x1a, 0xf8, 0x07, 0x6f, 0xc0, - 0x1b, 0x04, 0xe3, 0x6b, 0xd4, 0xa1, 0xbd, 0x39, 0x8e, 0xef, 0xf4, 0x0e, 0x8c, 0x54, 0x45, 0xb9, - 0xbe, 0x3a, 0x74, 0x2d, 0x3e, 0x55, 0x97, 0x2b, 0xa9, 0xe7, 0xe1, 0x5c, 0x5c, 0x63, 0xe3, 0xd9, - 0xaa, 0x4e, 0xb9, 0xc7, 0x5c, 0x4e, 0xd5, 0x4d, 0x50, 0xe2, 0xb7, 0xb7, 0xeb, 0xdc, 0xa3, 0x6e, - 0xb5, 0x6f, 0x12, 0xf5, 0x56, 0x14, 0x0d, 0x71, 0x4b, 0x78, 0xbd, 0x46, 0xfb, 0x2e, 0xb7, 0xf8, - 0x62, 0x18, 0x46, 0x25, 0x7d, 0xd4, 0x0f, 0x6d, 0x93, 0xe2, 0x8f, 0x08, 0x4e, 0x27, 0x03, 0x13, - 0x5f, 0x20, 0xf1, 0xe8, 0x27, 0x29, 0x81, 0xaa, 0xe4, 0xdc, 0x1a, 0xea, 0xe2, 0xd3, 0x1f, 0xbf, - 0x5e, 0x16, 0x2e, 0xab, 0x33, 0xe2, 0x48, 0x08, 0xcb, 0xf2, 0xa9, 0xc4, 0xb5, 0x27, 0x6d, 0x9c, - 0x43, 0xcd, 0xb1, 0xdd, 0x60, 0x19, 0x95, 0xf0, 0x07, 0x04, 0xb8, 0x3b, 0x42, 0xf1, 0x8c, 0x4c, - 0x90, 0x1a, 0xb2, 0xb9, 0x33, 0xcc, 0x0b, 0x86, 0x19, 0x55, 0xfd, 0x3b, 0x43, 0x24, 0xff, 0x3d, - 0x82, 0x33, 0x5d, 0xb1, 0x87, 0x2f, 0x26, 0xfd, 0xef, 0x9d, 0x8b, 0x8a, 0x9e, 0xaf, 0xf8, 0x68, - 0x1d, 0xb5, 0x24, 0x00, 0xa6, 0x71, 0x06, 0x00, 0xfc, 0x0e, 0xc1, 0xa9, 0x44, 0x48, 0xe2, 0x69, - 0x59, 0x7b, 0xef, 0x0c, 0xcd, 0xdd, 0xf6, 0xb2, 0x50, 0x7d, 0x09, 0xcf, 0x65, 0x68, 0x1d, 0x31, - 0x3e, 0xc4, 0x9f, 0x10, 0xe0, 0xee, 0x08, 0x4d, 0x76, 0x4e, 0x6a, 0xc8, 0xe6, 0x8e, 0x50, 0x11, - 0x08, 0x44, 0xc9, 0x8e, 0x10, 0x35, 0xd0, 0x2b, 0x04, 0xb8, 0x3b, 0x40, 0x93, 0x14, 0xa9, 0x11, - 0xab, 0xcc, 0x25, 0x5f, 0x94, 0xf4, 0x84, 0x6b, 0x7a, 0x5c, 0x3a, 0x86, 0xc7, 0x5f, 0x11, 0xe0, - 0x46, 0x72, 0xfd, 0xf9, 0xed, 0x4c, 0xc9, 0xb9, 0xdc, 0x3d, 0xbe, 0x2e, 0x10, 0xae, 0x28, 0x0b, - 0x99, 0x11, 0x34, 0x5f, 0x08, 0x8a, 0xac, 0xfe, 0x86, 0x60, 0xb4, 0x19, 0xeb, 0x12, 0xcd, 0x6c, - 0x3a, 0x8d, 0x7c, 0x0a, 0xe4, 0x8e, 0x73, 0x43, 0xe0, 0x5c, 0x55, 0xca, 0xd9, 0x71, 0x78, 0x43, - 0xd1, 0x32, 0x2a, 0xad, 0x6c, 0x7e, 0x39, 0x9a, 0x44, 0xdf, 0x8f, 0x26, 0xd1, 0xcf, 0xa3, 0x49, - 0x74, 0xef, 0xe6, 0xb1, 0xbe, 0xef, 0x7b, 0xfc, 0x87, 0xd8, 0x3d, 0x29, 0x3e, 0xc1, 0x97, 0x7e, - 0x07, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xc6, 0xde, 0xe6, 0x68, 0x0c, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// CronWorkflowServiceClient is the client API for CronWorkflowService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type CronWorkflowServiceClient interface { - LintCronWorkflow(ctx context.Context, in *LintCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) - CreateCronWorkflow(ctx context.Context, in *CreateCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) - ListCronWorkflows(ctx context.Context, in *ListCronWorkflowsRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflowList, error) - GetCronWorkflow(ctx context.Context, in *GetCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) - UpdateCronWorkflow(ctx context.Context, in *UpdateCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) - DeleteCronWorkflow(ctx context.Context, in *DeleteCronWorkflowRequest, opts ...grpc.CallOption) (*CronWorkflowDeletedResponse, error) - ResumeCronWorkflow(ctx context.Context, in *CronWorkflowResumeRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) - SuspendCronWorkflow(ctx context.Context, in *CronWorkflowSuspendRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) -} - -type cronWorkflowServiceClient struct { - cc *grpc.ClientConn -} - -func NewCronWorkflowServiceClient(cc *grpc.ClientConn) CronWorkflowServiceClient { - return &cronWorkflowServiceClient{cc} -} - -func (c *cronWorkflowServiceClient) LintCronWorkflow(ctx context.Context, in *LintCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { - out := new(v1alpha1.CronWorkflow) - err := c.cc.Invoke(ctx, "/cronworkflow.CronWorkflowService/LintCronWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cronWorkflowServiceClient) CreateCronWorkflow(ctx context.Context, in *CreateCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { - out := new(v1alpha1.CronWorkflow) - err := c.cc.Invoke(ctx, "/cronworkflow.CronWorkflowService/CreateCronWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cronWorkflowServiceClient) ListCronWorkflows(ctx context.Context, in *ListCronWorkflowsRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflowList, error) { - out := new(v1alpha1.CronWorkflowList) - err := c.cc.Invoke(ctx, "/cronworkflow.CronWorkflowService/ListCronWorkflows", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cronWorkflowServiceClient) GetCronWorkflow(ctx context.Context, in *GetCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { - out := new(v1alpha1.CronWorkflow) - err := c.cc.Invoke(ctx, "/cronworkflow.CronWorkflowService/GetCronWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cronWorkflowServiceClient) UpdateCronWorkflow(ctx context.Context, in *UpdateCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { - out := new(v1alpha1.CronWorkflow) - err := c.cc.Invoke(ctx, "/cronworkflow.CronWorkflowService/UpdateCronWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cronWorkflowServiceClient) DeleteCronWorkflow(ctx context.Context, in *DeleteCronWorkflowRequest, opts ...grpc.CallOption) (*CronWorkflowDeletedResponse, error) { - out := new(CronWorkflowDeletedResponse) - err := c.cc.Invoke(ctx, "/cronworkflow.CronWorkflowService/DeleteCronWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cronWorkflowServiceClient) ResumeCronWorkflow(ctx context.Context, in *CronWorkflowResumeRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { - out := new(v1alpha1.CronWorkflow) - err := c.cc.Invoke(ctx, "/cronworkflow.CronWorkflowService/ResumeCronWorkflow", in, out, opts...) - if err != nil { - return nil, err +func (x *GetCronWorkflowRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return out, nil + return "" } -func (c *cronWorkflowServiceClient) SuspendCronWorkflow(ctx context.Context, in *CronWorkflowSuspendRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { - out := new(v1alpha1.CronWorkflow) - err := c.cc.Invoke(ctx, "/cronworkflow.CronWorkflowService/SuspendCronWorkflow", in, out, opts...) - if err != nil { - return nil, err +func (x *GetCronWorkflowRequest) GetGetOptions() *v1.GetOptions { + if x != nil { + return x.GetOptions } - return out, nil -} - -// CronWorkflowServiceServer is the server API for CronWorkflowService service. -type CronWorkflowServiceServer interface { - LintCronWorkflow(context.Context, *LintCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) - CreateCronWorkflow(context.Context, *CreateCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) - ListCronWorkflows(context.Context, *ListCronWorkflowsRequest) (*v1alpha1.CronWorkflowList, error) - GetCronWorkflow(context.Context, *GetCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) - UpdateCronWorkflow(context.Context, *UpdateCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) - DeleteCronWorkflow(context.Context, *DeleteCronWorkflowRequest) (*CronWorkflowDeletedResponse, error) - ResumeCronWorkflow(context.Context, *CronWorkflowResumeRequest) (*v1alpha1.CronWorkflow, error) - SuspendCronWorkflow(context.Context, *CronWorkflowSuspendRequest) (*v1alpha1.CronWorkflow, error) -} - -// UnimplementedCronWorkflowServiceServer can be embedded to have forward compatible implementations. -type UnimplementedCronWorkflowServiceServer struct { -} - -func (*UnimplementedCronWorkflowServiceServer) LintCronWorkflow(ctx context.Context, req *LintCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method LintCronWorkflow not implemented") -} -func (*UnimplementedCronWorkflowServiceServer) CreateCronWorkflow(ctx context.Context, req *CreateCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateCronWorkflow not implemented") -} -func (*UnimplementedCronWorkflowServiceServer) ListCronWorkflows(ctx context.Context, req *ListCronWorkflowsRequest) (*v1alpha1.CronWorkflowList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListCronWorkflows not implemented") -} -func (*UnimplementedCronWorkflowServiceServer) GetCronWorkflow(ctx context.Context, req *GetCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCronWorkflow not implemented") -} -func (*UnimplementedCronWorkflowServiceServer) UpdateCronWorkflow(ctx context.Context, req *UpdateCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateCronWorkflow not implemented") -} -func (*UnimplementedCronWorkflowServiceServer) DeleteCronWorkflow(ctx context.Context, req *DeleteCronWorkflowRequest) (*CronWorkflowDeletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteCronWorkflow not implemented") -} -func (*UnimplementedCronWorkflowServiceServer) ResumeCronWorkflow(ctx context.Context, req *CronWorkflowResumeRequest) (*v1alpha1.CronWorkflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResumeCronWorkflow not implemented") -} -func (*UnimplementedCronWorkflowServiceServer) SuspendCronWorkflow(ctx context.Context, req *CronWorkflowSuspendRequest) (*v1alpha1.CronWorkflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method SuspendCronWorkflow not implemented") -} - -func RegisterCronWorkflowServiceServer(s *grpc.Server, srv CronWorkflowServiceServer) { - s.RegisterService(&_CronWorkflowService_serviceDesc, srv) + return nil } -func _CronWorkflowService_LintCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LintCronWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CronWorkflowServiceServer).LintCronWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cronworkflow.CronWorkflowService/LintCronWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CronWorkflowServiceServer).LintCronWorkflow(ctx, req.(*LintCronWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) +type UpdateCronWorkflowRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // DEPRECATED: This field is ignored. + // + // Deprecated: Marked as deprecated in pkg/apiclient/cronworkflow/cron-workflow.proto. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + CronWorkflow *v1alpha1.CronWorkflow `protobuf:"bytes,3,opt,name=cronWorkflow,proto3" json:"cronWorkflow,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func _CronWorkflowService_CreateCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateCronWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CronWorkflowServiceServer).CreateCronWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cronworkflow.CronWorkflowService/CreateCronWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CronWorkflowServiceServer).CreateCronWorkflow(ctx, req.(*CreateCronWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *UpdateCronWorkflowRequest) Reset() { + *x = UpdateCronWorkflowRequest{} + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func _CronWorkflowService_ListCronWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListCronWorkflowsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CronWorkflowServiceServer).ListCronWorkflows(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cronworkflow.CronWorkflowService/ListCronWorkflows", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CronWorkflowServiceServer).ListCronWorkflows(ctx, req.(*ListCronWorkflowsRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *UpdateCronWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func _CronWorkflowService_GetCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCronWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CronWorkflowServiceServer).GetCronWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cronworkflow.CronWorkflowService/GetCronWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CronWorkflowServiceServer).GetCronWorkflow(ctx, req.(*GetCronWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*UpdateCronWorkflowRequest) ProtoMessage() {} -func _CronWorkflowService_UpdateCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateCronWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CronWorkflowServiceServer).UpdateCronWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cronworkflow.CronWorkflowService/UpdateCronWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CronWorkflowServiceServer).UpdateCronWorkflow(ctx, req.(*UpdateCronWorkflowRequest)) +func (x *UpdateCronWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _CronWorkflowService_DeleteCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteCronWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CronWorkflowServiceServer).DeleteCronWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cronworkflow.CronWorkflowService/DeleteCronWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CronWorkflowServiceServer).DeleteCronWorkflow(ctx, req.(*DeleteCronWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use UpdateCronWorkflowRequest.ProtoReflect.Descriptor instead. +func (*UpdateCronWorkflowRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP(), []int{4} } -func _CronWorkflowService_ResumeCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CronWorkflowResumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CronWorkflowServiceServer).ResumeCronWorkflow(ctx, in) +// Deprecated: Marked as deprecated in pkg/apiclient/cronworkflow/cron-workflow.proto. +func (x *UpdateCronWorkflowRequest) GetName() string { + if x != nil { + return x.Name } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cronworkflow.CronWorkflowService/ResumeCronWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CronWorkflowServiceServer).ResumeCronWorkflow(ctx, req.(*CronWorkflowResumeRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _CronWorkflowService_SuspendCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CronWorkflowSuspendRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CronWorkflowServiceServer).SuspendCronWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cronworkflow.CronWorkflowService/SuspendCronWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CronWorkflowServiceServer).SuspendCronWorkflow(ctx, req.(*CronWorkflowSuspendRequest)) +func (x *UpdateCronWorkflowRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return interceptor(ctx, in, info, handler) -} - -var _CronWorkflowService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cronworkflow.CronWorkflowService", - HandlerType: (*CronWorkflowServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "LintCronWorkflow", - Handler: _CronWorkflowService_LintCronWorkflow_Handler, - }, - { - MethodName: "CreateCronWorkflow", - Handler: _CronWorkflowService_CreateCronWorkflow_Handler, - }, - { - MethodName: "ListCronWorkflows", - Handler: _CronWorkflowService_ListCronWorkflows_Handler, - }, - { - MethodName: "GetCronWorkflow", - Handler: _CronWorkflowService_GetCronWorkflow_Handler, - }, - { - MethodName: "UpdateCronWorkflow", - Handler: _CronWorkflowService_UpdateCronWorkflow_Handler, - }, - { - MethodName: "DeleteCronWorkflow", - Handler: _CronWorkflowService_DeleteCronWorkflow_Handler, - }, - { - MethodName: "ResumeCronWorkflow", - Handler: _CronWorkflowService_ResumeCronWorkflow_Handler, - }, - { - MethodName: "SuspendCronWorkflow", - Handler: _CronWorkflowService_SuspendCronWorkflow_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/apiclient/cronworkflow/cron-workflow.proto", + return "" } -func (m *LintCronWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *UpdateCronWorkflowRequest) GetCronWorkflow() *v1alpha1.CronWorkflow { + if x != nil { + return x.CronWorkflow } - return dAtA[:n], nil + return nil } -func (m *LintCronWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type DeleteCronWorkflowRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LintCronWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CronWorkflow != nil { - { - size, err := m.CronWorkflow.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCronWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *DeleteCronWorkflowRequest) Reset() { + *x = DeleteCronWorkflowRequest{} + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateCronWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *DeleteCronWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateCronWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*DeleteCronWorkflowRequest) ProtoMessage() {} -func (m *CreateCronWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CreateOptions != nil { - { - size, err := m.CreateOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCronWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.CronWorkflow != nil { - { - size, err := m.CronWorkflow.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCronWorkflow(dAtA, i, uint64(size)) +func (x *DeleteCronWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListCronWorkflowsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil -} - -func (m *ListCronWorkflowsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *ListCronWorkflowsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCronWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use DeleteCronWorkflowRequest.ProtoReflect.Descriptor instead. +func (*DeleteCronWorkflowRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP(), []int{5} } -func (m *GetCronWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *DeleteCronWorkflowRequest) GetName() string { + if x != nil { + return x.Name } - return dAtA[:n], nil -} - -func (m *GetCronWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *GetCronWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *DeleteCronWorkflowRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - if m.GetOptions != nil { - { - size, err := m.GetOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCronWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *UpdateCronWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *DeleteCronWorkflowRequest) GetDeleteOptions() *v1.DeleteOptions { + if x != nil { + return x.DeleteOptions } - return dAtA[:n], nil + return nil } -func (m *UpdateCronWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type CronWorkflowDeletedResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *UpdateCronWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CronWorkflow != nil { - { - size, err := m.CronWorkflow.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCronWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *CronWorkflowDeletedResponse) Reset() { + *x = CronWorkflowDeletedResponse{} + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteCronWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *CronWorkflowDeletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteCronWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*CronWorkflowDeletedResponse) ProtoMessage() {} -func (m *DeleteCronWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.DeleteOptions != nil { - { - size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCronWorkflow(dAtA, i, uint64(size)) +func (x *CronWorkflowDeletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CronWorkflowDeletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronWorkflowDeletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronWorkflowDeletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *CronWorkflowSuspendRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronWorkflowSuspendRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronWorkflowSuspendRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CronWorkflowResumeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *CronWorkflowResumeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use CronWorkflowDeletedResponse.ProtoReflect.Descriptor instead. +func (*CronWorkflowDeletedResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP(), []int{6} } -func (m *CronWorkflowResumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintCronWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type CronWorkflowSuspendRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func encodeVarintCronWorkflow(dAtA []byte, offset int, v uint64) int { - offset -= sovCronWorkflow(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *LintCronWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.CronWorkflow != nil { - l = m.CronWorkflow.Size() - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *CronWorkflowSuspendRequest) Reset() { + *x = CronWorkflowSuspendRequest{} + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateCronWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.CronWorkflow != nil { - l = m.CronWorkflow.Size() - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.CreateOptions != nil { - l = m.CreateOptions.Size() - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *CronWorkflowSuspendRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListCronWorkflowsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*CronWorkflowSuspendRequest) ProtoMessage() {} -func (m *GetCronWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.GetOptions != nil { - l = m.GetOptions.Size() - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *CronWorkflowSuspendRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func (m *UpdateCronWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.CronWorkflow != nil { - l = m.CronWorkflow.Size() - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use CronWorkflowSuspendRequest.ProtoReflect.Descriptor instead. +func (*CronWorkflowSuspendRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP(), []int{7} } -func (m *DeleteCronWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) +func (x *CronWorkflowSuspendRequest) GetName() string { + if x != nil { + return x.Name } - if m.DeleteOptions != nil { - l = m.DeleteOptions.Size() - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *CronWorkflowDeletedResponse) Size() (n int) { - if m == nil { - return 0 +func (x *CronWorkflowSuspendRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *CronWorkflowSuspendRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type CronWorkflowResumeRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CronWorkflowResumeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovCronWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovCronWorkflow(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozCronWorkflow(x uint64) (n int) { - return sovCronWorkflow(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *LintCronWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LintCronWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LintCronWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CronWorkflow", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CronWorkflow == nil { - m.CronWorkflow = &v1alpha1.CronWorkflow{} - } - if err := m.CronWorkflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCronWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCronWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *CronWorkflowResumeRequest) Reset() { + *x = CronWorkflowResumeRequest{} + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateCronWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateCronWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateCronWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CronWorkflow", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CronWorkflow == nil { - m.CronWorkflow = &v1alpha1.CronWorkflow{} - } - if err := m.CronWorkflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreateOptions == nil { - m.CreateOptions = &v1.CreateOptions{} - } - if err := m.CreateOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCronWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCronWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *CronWorkflowResumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListCronWorkflowsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListCronWorkflowsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListCronWorkflowsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCronWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCronWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetCronWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetCronWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetCronWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GetOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GetOptions == nil { - m.GetOptions = &v1.GetOptions{} - } - if err := m.GetOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCronWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCronWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*CronWorkflowResumeRequest) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateCronWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateCronWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateCronWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CronWorkflow", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CronWorkflow == nil { - m.CronWorkflow = &v1alpha1.CronWorkflow{} - } - if err := m.CronWorkflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCronWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCronWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy +func (x *CronWorkflowResumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *DeleteCronWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteCronWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteCronWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteOptions == nil { - m.DeleteOptions = &v1.DeleteOptions{} - } - if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCronWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCronWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use CronWorkflowResumeRequest.ProtoReflect.Descriptor instead. +func (*CronWorkflowResumeRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP(), []int{8} } -func (m *CronWorkflowDeletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronWorkflowDeletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronWorkflowDeletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipCronWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCronWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CronWorkflowResumeRequest) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *CronWorkflowSuspendRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronWorkflowSuspendRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronWorkflowSuspendRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCronWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCronWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CronWorkflowResumeRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return nil + return "" } -func (m *CronWorkflowResumeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronWorkflowResumeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronWorkflowResumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCronWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCronWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCronWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCronWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipCronWorkflow(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCronWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthCronWorkflow - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCronWorkflow - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthCronWorkflow - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_apiclient_cronworkflow_cron_workflow_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDesc = "" + + "\n" + + ".pkg/apiclient/cronworkflow/cron-workflow.proto\x12\fcronworkflow\x1aPgithub.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1/generated.proto\x1a\x1cgoogle/api/annotations.proto\x1a4k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto\"\xab\x01\n" + + "\x17LintCronWorkflowRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12r\n" + + "\fcronWorkflow\x18\x02 \x01(\v2N.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflowR\fcronWorkflow\"\x88\x02\n" + + "\x19CreateCronWorkflowRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12r\n" + + "\fcronWorkflow\x18\x02 \x01(\v2N.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflowR\fcronWorkflow\x12Y\n" + + "\rcreateOptions\x18\x03 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptionsR\rcreateOptions\"\x8d\x01\n" + + "\x18ListCronWorkflowsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12S\n" + + "\vlistOptions\x18\x02 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\"\x9c\x01\n" + + "\x16GetCronWorkflowRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12P\n" + + "\n" + + "getOptions\x18\x03 \x01(\v20.k8s.io.apimachinery.pkg.apis.meta.v1.GetOptionsR\n" + + "getOptions\"\xc5\x01\n" + + "\x19UpdateCronWorkflowRequest\x12\x16\n" + + "\x04name\x18\x01 \x01(\tB\x02\x18\x01R\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12r\n" + + "\fcronWorkflow\x18\x03 \x01(\v2N.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflowR\fcronWorkflow\"\xa8\x01\n" + + "\x19DeleteCronWorkflowRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12Y\n" + + "\rdeleteOptions\x18\x03 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptionsR\rdeleteOptions\"\x1d\n" + + "\x1bCronWorkflowDeletedResponse\"N\n" + + "\x1aCronWorkflowSuspendRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\"M\n" + + "\x19CronWorkflowResumeRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace2\x90\f\n" + + "\x13CronWorkflowService\x12\xbd\x01\n" + + "\x10LintCronWorkflow\x12%.cronworkflow.LintCronWorkflowRequest\x1aN.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow\"2\x82\xd3\xe4\x93\x02,:\x01*\"'/api/v1/cron-workflows/{namespace}/lint\x12\xbc\x01\n" + + "\x12CreateCronWorkflow\x12'.cronworkflow.CreateCronWorkflowRequest\x1aN.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow\"-\x82\xd3\xe4\x93\x02':\x01*\"\"/api/v1/cron-workflows/{namespace}\x12\xbb\x01\n" + + "\x11ListCronWorkflows\x12&.cronworkflow.ListCronWorkflowsRequest\x1aR.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflowList\"*\x82\xd3\xe4\x93\x02$\x12\"/api/v1/cron-workflows/{namespace}\x12\xba\x01\n" + + "\x0fGetCronWorkflow\x12$.cronworkflow.GetCronWorkflowRequest\x1aN.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow\"1\x82\xd3\xe4\x93\x02+\x12)/api/v1/cron-workflows/{namespace}/{name}\x12\xc3\x01\n" + + "\x12UpdateCronWorkflow\x12'.cronworkflow.UpdateCronWorkflowRequest\x1aN.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow\"4\x82\xd3\xe4\x93\x02.:\x01*\x1a)/api/v1/cron-workflows/{namespace}/{name}\x12\x9b\x01\n" + + "\x12DeleteCronWorkflow\x12'.cronworkflow.DeleteCronWorkflowRequest\x1a).cronworkflow.CronWorkflowDeletedResponse\"1\x82\xd3\xe4\x93\x02+*)/api/v1/cron-workflows/{namespace}/{name}\x12\xca\x01\n" + + "\x12ResumeCronWorkflow\x12'.cronworkflow.CronWorkflowResumeRequest\x1aN.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow\";\x82\xd3\xe4\x93\x025:\x01*\x1a0/api/v1/cron-workflows/{namespace}/{name}/resume\x12\xcd\x01\n" + + "\x13SuspendCronWorkflow\x12(.cronworkflow.CronWorkflowSuspendRequest\x1aN.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow\"<\x82\xd3\xe4\x93\x026:\x01*\x1a1/api/v1/cron-workflows/{namespace}/{name}/suspendBBZ@github.com/argoproj/argo-workflows/v4/pkg/apiclient/cronworkflowb\x06proto3" var ( - ErrInvalidLengthCronWorkflow = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCronWorkflow = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCronWorkflow = fmt.Errorf("proto: unexpected end of group") + file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescOnce sync.Once + file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescData []byte ) + +func file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescGZIP() []byte { + file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescOnce.Do(func() { + file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDesc), len(file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDesc))) + }) + return file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDescData +} + +var file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_pkg_apiclient_cronworkflow_cron_workflow_proto_goTypes = []any{ + (*LintCronWorkflowRequest)(nil), // 0: cronworkflow.LintCronWorkflowRequest + (*CreateCronWorkflowRequest)(nil), // 1: cronworkflow.CreateCronWorkflowRequest + (*ListCronWorkflowsRequest)(nil), // 2: cronworkflow.ListCronWorkflowsRequest + (*GetCronWorkflowRequest)(nil), // 3: cronworkflow.GetCronWorkflowRequest + (*UpdateCronWorkflowRequest)(nil), // 4: cronworkflow.UpdateCronWorkflowRequest + (*DeleteCronWorkflowRequest)(nil), // 5: cronworkflow.DeleteCronWorkflowRequest + (*CronWorkflowDeletedResponse)(nil), // 6: cronworkflow.CronWorkflowDeletedResponse + (*CronWorkflowSuspendRequest)(nil), // 7: cronworkflow.CronWorkflowSuspendRequest + (*CronWorkflowResumeRequest)(nil), // 8: cronworkflow.CronWorkflowResumeRequest + (*v1alpha1.CronWorkflow)(nil), // 9: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + (*v1.CreateOptions)(nil), // 10: k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + (*v1.ListOptions)(nil), // 11: k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + (*v1.GetOptions)(nil), // 12: k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions + (*v1.DeleteOptions)(nil), // 13: k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + (*v1alpha1.CronWorkflowList)(nil), // 14: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflowList +} +var file_pkg_apiclient_cronworkflow_cron_workflow_proto_depIdxs = []int32{ + 9, // 0: cronworkflow.LintCronWorkflowRequest.cronWorkflow:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + 9, // 1: cronworkflow.CreateCronWorkflowRequest.cronWorkflow:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + 10, // 2: cronworkflow.CreateCronWorkflowRequest.createOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + 11, // 3: cronworkflow.ListCronWorkflowsRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 12, // 4: cronworkflow.GetCronWorkflowRequest.getOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions + 9, // 5: cronworkflow.UpdateCronWorkflowRequest.cronWorkflow:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + 13, // 6: cronworkflow.DeleteCronWorkflowRequest.deleteOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + 0, // 7: cronworkflow.CronWorkflowService.LintCronWorkflow:input_type -> cronworkflow.LintCronWorkflowRequest + 1, // 8: cronworkflow.CronWorkflowService.CreateCronWorkflow:input_type -> cronworkflow.CreateCronWorkflowRequest + 2, // 9: cronworkflow.CronWorkflowService.ListCronWorkflows:input_type -> cronworkflow.ListCronWorkflowsRequest + 3, // 10: cronworkflow.CronWorkflowService.GetCronWorkflow:input_type -> cronworkflow.GetCronWorkflowRequest + 4, // 11: cronworkflow.CronWorkflowService.UpdateCronWorkflow:input_type -> cronworkflow.UpdateCronWorkflowRequest + 5, // 12: cronworkflow.CronWorkflowService.DeleteCronWorkflow:input_type -> cronworkflow.DeleteCronWorkflowRequest + 8, // 13: cronworkflow.CronWorkflowService.ResumeCronWorkflow:input_type -> cronworkflow.CronWorkflowResumeRequest + 7, // 14: cronworkflow.CronWorkflowService.SuspendCronWorkflow:input_type -> cronworkflow.CronWorkflowSuspendRequest + 9, // 15: cronworkflow.CronWorkflowService.LintCronWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + 9, // 16: cronworkflow.CronWorkflowService.CreateCronWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + 14, // 17: cronworkflow.CronWorkflowService.ListCronWorkflows:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflowList + 9, // 18: cronworkflow.CronWorkflowService.GetCronWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + 9, // 19: cronworkflow.CronWorkflowService.UpdateCronWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + 6, // 20: cronworkflow.CronWorkflowService.DeleteCronWorkflow:output_type -> cronworkflow.CronWorkflowDeletedResponse + 9, // 21: cronworkflow.CronWorkflowService.ResumeCronWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + 9, // 22: cronworkflow.CronWorkflowService.SuspendCronWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.CronWorkflow + 15, // [15:23] is the sub-list for method output_type + 7, // [7:15] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_cronworkflow_cron_workflow_proto_init() } +func file_pkg_apiclient_cronworkflow_cron_workflow_proto_init() { + if File_pkg_apiclient_cronworkflow_cron_workflow_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDesc), len(file_pkg_apiclient_cronworkflow_cron_workflow_proto_rawDesc)), + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_cronworkflow_cron_workflow_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_cronworkflow_cron_workflow_proto_depIdxs, + MessageInfos: file_pkg_apiclient_cronworkflow_cron_workflow_proto_msgTypes, + }.Build() + File_pkg_apiclient_cronworkflow_cron_workflow_proto = out.File + file_pkg_apiclient_cronworkflow_cron_workflow_proto_goTypes = nil + file_pkg_apiclient_cronworkflow_cron_workflow_proto_depIdxs = nil +} diff --git a/pkg/apiclient/cronworkflow/cron-workflow.pb.gw.go b/pkg/apiclient/cronworkflow/cron-workflow.pb.gw.go index 5725c63f2137..fb8534d2e7e8 100644 --- a/pkg/apiclient/cronworkflow/cron-workflow.pb.gw.go +++ b/pkg/apiclient/cronworkflow/cron-workflow.pb.gw.go @@ -10,893 +10,661 @@ package cronworkflow import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_CronWorkflowService_LintCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client CronWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LintCronWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq LintCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.LintCronWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_CronWorkflowService_LintCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server CronWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LintCronWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq LintCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.LintCronWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_CronWorkflowService_CreateCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client CronWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateCronWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CreateCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.CreateCronWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_CronWorkflowService_CreateCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server CronWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateCronWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CreateCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.CreateCronWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_CronWorkflowService_ListCronWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_CronWorkflowService_ListCronWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_CronWorkflowService_ListCronWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client CronWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListCronWorkflowsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ListCronWorkflowsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CronWorkflowService_ListCronWorkflows_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListCronWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_CronWorkflowService_ListCronWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, server CronWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListCronWorkflowsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ListCronWorkflowsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CronWorkflowService_ListCronWorkflows_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListCronWorkflows(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_CronWorkflowService_GetCronWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_CronWorkflowService_GetCronWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_CronWorkflowService_GetCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client CronWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCronWorkflowRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CronWorkflowService_GetCronWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetCronWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_CronWorkflowService_GetCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server CronWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetCronWorkflowRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CronWorkflowService_GetCronWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetCronWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_CronWorkflowService_UpdateCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client CronWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateCronWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq UpdateCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.UpdateCronWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_CronWorkflowService_UpdateCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server CronWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateCronWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq UpdateCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.UpdateCronWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_CronWorkflowService_DeleteCronWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_CronWorkflowService_DeleteCronWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_CronWorkflowService_DeleteCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client CronWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteCronWorkflowRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CronWorkflowService_DeleteCronWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteCronWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_CronWorkflowService_DeleteCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server CronWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteCronWorkflowRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteCronWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CronWorkflowService_DeleteCronWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteCronWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_CronWorkflowService_ResumeCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client CronWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CronWorkflowResumeRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CronWorkflowResumeRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.ResumeCronWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_CronWorkflowService_ResumeCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server CronWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CronWorkflowResumeRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CronWorkflowResumeRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.ResumeCronWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_CronWorkflowService_SuspendCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client CronWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CronWorkflowSuspendRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CronWorkflowSuspendRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.SuspendCronWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_CronWorkflowService_SuspendCronWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server CronWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CronWorkflowSuspendRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CronWorkflowSuspendRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.SuspendCronWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterCronWorkflowServiceHandlerServer registers the http handlers for service CronWorkflowService to "mux". // UnaryRPC :call CronWorkflowServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCronWorkflowServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterCronWorkflowServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CronWorkflowServiceServer) error { - - mux.Handle("POST", pattern_CronWorkflowService_LintCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_CronWorkflowService_LintCronWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/LintCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/lint")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_CronWorkflowService_LintCronWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_CronWorkflowService_LintCronWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_LintCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_LintCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_CronWorkflowService_CreateCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_CronWorkflowService_CreateCronWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/CreateCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_CronWorkflowService_CreateCronWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_CronWorkflowService_CreateCronWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_CreateCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_CreateCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_CronWorkflowService_ListCronWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_CronWorkflowService_ListCronWorkflows_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/ListCronWorkflows", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_CronWorkflowService_ListCronWorkflows_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_CronWorkflowService_ListCronWorkflows_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_ListCronWorkflows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_ListCronWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_CronWorkflowService_GetCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_CronWorkflowService_GetCronWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/GetCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_CronWorkflowService_GetCronWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_CronWorkflowService_GetCronWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_GetCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_GetCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_CronWorkflowService_UpdateCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_CronWorkflowService_UpdateCronWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/UpdateCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_CronWorkflowService_UpdateCronWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_CronWorkflowService_UpdateCronWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_UpdateCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_UpdateCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_CronWorkflowService_DeleteCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_CronWorkflowService_DeleteCronWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/DeleteCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_CronWorkflowService_DeleteCronWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_CronWorkflowService_DeleteCronWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_DeleteCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_DeleteCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_CronWorkflowService_ResumeCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_CronWorkflowService_ResumeCronWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/ResumeCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}/resume")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_CronWorkflowService_ResumeCronWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_CronWorkflowService_ResumeCronWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_ResumeCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_ResumeCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_CronWorkflowService_SuspendCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_CronWorkflowService_SuspendCronWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/SuspendCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}/suspend")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_CronWorkflowService_SuspendCronWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_CronWorkflowService_SuspendCronWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_SuspendCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_SuspendCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -905,25 +673,24 @@ func RegisterCronWorkflowServiceHandlerServer(ctx context.Context, mux *runtime. // RegisterCronWorkflowServiceHandlerFromEndpoint is same as RegisterCronWorkflowServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterCronWorkflowServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterCronWorkflowServiceHandler(ctx, mux, conn) } @@ -937,204 +704,165 @@ func RegisterCronWorkflowServiceHandler(ctx context.Context, mux *runtime.ServeM // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CronWorkflowServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CronWorkflowServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "CronWorkflowServiceClient" to call the correct interceptors. +// "CronWorkflowServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterCronWorkflowServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CronWorkflowServiceClient) error { - - mux.Handle("POST", pattern_CronWorkflowService_LintCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_CronWorkflowService_LintCronWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/LintCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/lint")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CronWorkflowService_LintCronWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_CronWorkflowService_LintCronWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_LintCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_LintCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_CronWorkflowService_CreateCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_CronWorkflowService_CreateCronWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/CreateCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CronWorkflowService_CreateCronWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_CronWorkflowService_CreateCronWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_CreateCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_CreateCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_CronWorkflowService_ListCronWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_CronWorkflowService_ListCronWorkflows_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/ListCronWorkflows", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CronWorkflowService_ListCronWorkflows_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_CronWorkflowService_ListCronWorkflows_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_ListCronWorkflows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_ListCronWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_CronWorkflowService_GetCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_CronWorkflowService_GetCronWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/GetCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CronWorkflowService_GetCronWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_CronWorkflowService_GetCronWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_GetCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_GetCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_CronWorkflowService_UpdateCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_CronWorkflowService_UpdateCronWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/UpdateCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CronWorkflowService_UpdateCronWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_CronWorkflowService_UpdateCronWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_UpdateCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_UpdateCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_CronWorkflowService_DeleteCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_CronWorkflowService_DeleteCronWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/DeleteCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CronWorkflowService_DeleteCronWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_CronWorkflowService_DeleteCronWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_DeleteCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_DeleteCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_CronWorkflowService_ResumeCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_CronWorkflowService_ResumeCronWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/ResumeCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}/resume")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CronWorkflowService_ResumeCronWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_CronWorkflowService_ResumeCronWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_ResumeCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_ResumeCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_CronWorkflowService_SuspendCronWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_CronWorkflowService_SuspendCronWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/cronworkflow.CronWorkflowService/SuspendCronWorkflow", runtime.WithHTTPPathPattern("/api/v1/cron-workflows/{namespace}/{name}/suspend")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_CronWorkflowService_SuspendCronWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_CronWorkflowService_SuspendCronWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_CronWorkflowService_SuspendCronWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_CronWorkflowService_SuspendCronWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_CronWorkflowService_LintCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "cron-workflows", "namespace", "lint"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_CronWorkflowService_CreateCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cron-workflows", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_CronWorkflowService_ListCronWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cron-workflows", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_CronWorkflowService_GetCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "cron-workflows", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_CronWorkflowService_UpdateCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "cron-workflows", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_CronWorkflowService_DeleteCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "cron-workflows", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_CronWorkflowService_ResumeCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "cron-workflows", "namespace", "name", "resume"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_CronWorkflowService_SuspendCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "cron-workflows", "namespace", "name", "suspend"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_CronWorkflowService_LintCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "cron-workflows", "namespace", "lint"}, "")) + pattern_CronWorkflowService_CreateCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cron-workflows", "namespace"}, "")) + pattern_CronWorkflowService_ListCronWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "cron-workflows", "namespace"}, "")) + pattern_CronWorkflowService_GetCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "cron-workflows", "namespace", "name"}, "")) + pattern_CronWorkflowService_UpdateCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "cron-workflows", "namespace", "name"}, "")) + pattern_CronWorkflowService_DeleteCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "cron-workflows", "namespace", "name"}, "")) + pattern_CronWorkflowService_ResumeCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "cron-workflows", "namespace", "name", "resume"}, "")) + pattern_CronWorkflowService_SuspendCronWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "cron-workflows", "namespace", "name", "suspend"}, "")) ) var ( - forward_CronWorkflowService_LintCronWorkflow_0 = runtime.ForwardResponseMessage - - forward_CronWorkflowService_CreateCronWorkflow_0 = runtime.ForwardResponseMessage - - forward_CronWorkflowService_ListCronWorkflows_0 = runtime.ForwardResponseMessage - - forward_CronWorkflowService_GetCronWorkflow_0 = runtime.ForwardResponseMessage - - forward_CronWorkflowService_UpdateCronWorkflow_0 = runtime.ForwardResponseMessage - - forward_CronWorkflowService_DeleteCronWorkflow_0 = runtime.ForwardResponseMessage - - forward_CronWorkflowService_ResumeCronWorkflow_0 = runtime.ForwardResponseMessage - + forward_CronWorkflowService_LintCronWorkflow_0 = runtime.ForwardResponseMessage + forward_CronWorkflowService_CreateCronWorkflow_0 = runtime.ForwardResponseMessage + forward_CronWorkflowService_ListCronWorkflows_0 = runtime.ForwardResponseMessage + forward_CronWorkflowService_GetCronWorkflow_0 = runtime.ForwardResponseMessage + forward_CronWorkflowService_UpdateCronWorkflow_0 = runtime.ForwardResponseMessage + forward_CronWorkflowService_DeleteCronWorkflow_0 = runtime.ForwardResponseMessage + forward_CronWorkflowService_ResumeCronWorkflow_0 = runtime.ForwardResponseMessage forward_CronWorkflowService_SuspendCronWorkflow_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/cronworkflow/cron-workflow_grpc.pb.go b/pkg/apiclient/cronworkflow/cron-workflow_grpc.pb.go new file mode 100644 index 000000000000..f91d1eeb0dcd --- /dev/null +++ b/pkg/apiclient/cronworkflow/cron-workflow_grpc.pb.go @@ -0,0 +1,386 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/cronworkflow/cron-workflow.proto + +package cronworkflow + +import ( + context "context" + v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + CronWorkflowService_LintCronWorkflow_FullMethodName = "/cronworkflow.CronWorkflowService/LintCronWorkflow" + CronWorkflowService_CreateCronWorkflow_FullMethodName = "/cronworkflow.CronWorkflowService/CreateCronWorkflow" + CronWorkflowService_ListCronWorkflows_FullMethodName = "/cronworkflow.CronWorkflowService/ListCronWorkflows" + CronWorkflowService_GetCronWorkflow_FullMethodName = "/cronworkflow.CronWorkflowService/GetCronWorkflow" + CronWorkflowService_UpdateCronWorkflow_FullMethodName = "/cronworkflow.CronWorkflowService/UpdateCronWorkflow" + CronWorkflowService_DeleteCronWorkflow_FullMethodName = "/cronworkflow.CronWorkflowService/DeleteCronWorkflow" + CronWorkflowService_ResumeCronWorkflow_FullMethodName = "/cronworkflow.CronWorkflowService/ResumeCronWorkflow" + CronWorkflowService_SuspendCronWorkflow_FullMethodName = "/cronworkflow.CronWorkflowService/SuspendCronWorkflow" +) + +// CronWorkflowServiceClient is the client API for CronWorkflowService 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 CronWorkflowServiceClient interface { + LintCronWorkflow(ctx context.Context, in *LintCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) + CreateCronWorkflow(ctx context.Context, in *CreateCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) + ListCronWorkflows(ctx context.Context, in *ListCronWorkflowsRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflowList, error) + GetCronWorkflow(ctx context.Context, in *GetCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) + UpdateCronWorkflow(ctx context.Context, in *UpdateCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) + DeleteCronWorkflow(ctx context.Context, in *DeleteCronWorkflowRequest, opts ...grpc.CallOption) (*CronWorkflowDeletedResponse, error) + ResumeCronWorkflow(ctx context.Context, in *CronWorkflowResumeRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) + SuspendCronWorkflow(ctx context.Context, in *CronWorkflowSuspendRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) +} + +type cronWorkflowServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewCronWorkflowServiceClient(cc grpc.ClientConnInterface) CronWorkflowServiceClient { + return &cronWorkflowServiceClient{cc} +} + +func (c *cronWorkflowServiceClient) LintCronWorkflow(ctx context.Context, in *LintCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.CronWorkflow) + err := c.cc.Invoke(ctx, CronWorkflowService_LintCronWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cronWorkflowServiceClient) CreateCronWorkflow(ctx context.Context, in *CreateCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.CronWorkflow) + err := c.cc.Invoke(ctx, CronWorkflowService_CreateCronWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cronWorkflowServiceClient) ListCronWorkflows(ctx context.Context, in *ListCronWorkflowsRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflowList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.CronWorkflowList) + err := c.cc.Invoke(ctx, CronWorkflowService_ListCronWorkflows_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cronWorkflowServiceClient) GetCronWorkflow(ctx context.Context, in *GetCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.CronWorkflow) + err := c.cc.Invoke(ctx, CronWorkflowService_GetCronWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cronWorkflowServiceClient) UpdateCronWorkflow(ctx context.Context, in *UpdateCronWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.CronWorkflow) + err := c.cc.Invoke(ctx, CronWorkflowService_UpdateCronWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cronWorkflowServiceClient) DeleteCronWorkflow(ctx context.Context, in *DeleteCronWorkflowRequest, opts ...grpc.CallOption) (*CronWorkflowDeletedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CronWorkflowDeletedResponse) + err := c.cc.Invoke(ctx, CronWorkflowService_DeleteCronWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cronWorkflowServiceClient) ResumeCronWorkflow(ctx context.Context, in *CronWorkflowResumeRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.CronWorkflow) + err := c.cc.Invoke(ctx, CronWorkflowService_ResumeCronWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cronWorkflowServiceClient) SuspendCronWorkflow(ctx context.Context, in *CronWorkflowSuspendRequest, opts ...grpc.CallOption) (*v1alpha1.CronWorkflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.CronWorkflow) + err := c.cc.Invoke(ctx, CronWorkflowService_SuspendCronWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CronWorkflowServiceServer is the server API for CronWorkflowService service. +// All implementations should embed UnimplementedCronWorkflowServiceServer +// for forward compatibility. +type CronWorkflowServiceServer interface { + LintCronWorkflow(context.Context, *LintCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) + CreateCronWorkflow(context.Context, *CreateCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) + ListCronWorkflows(context.Context, *ListCronWorkflowsRequest) (*v1alpha1.CronWorkflowList, error) + GetCronWorkflow(context.Context, *GetCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) + UpdateCronWorkflow(context.Context, *UpdateCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) + DeleteCronWorkflow(context.Context, *DeleteCronWorkflowRequest) (*CronWorkflowDeletedResponse, error) + ResumeCronWorkflow(context.Context, *CronWorkflowResumeRequest) (*v1alpha1.CronWorkflow, error) + SuspendCronWorkflow(context.Context, *CronWorkflowSuspendRequest) (*v1alpha1.CronWorkflow, error) +} + +// UnimplementedCronWorkflowServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCronWorkflowServiceServer struct{} + +func (UnimplementedCronWorkflowServiceServer) LintCronWorkflow(context.Context, *LintCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method LintCronWorkflow not implemented") +} +func (UnimplementedCronWorkflowServiceServer) CreateCronWorkflow(context.Context, *CreateCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateCronWorkflow not implemented") +} +func (UnimplementedCronWorkflowServiceServer) ListCronWorkflows(context.Context, *ListCronWorkflowsRequest) (*v1alpha1.CronWorkflowList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListCronWorkflows not implemented") +} +func (UnimplementedCronWorkflowServiceServer) GetCronWorkflow(context.Context, *GetCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCronWorkflow not implemented") +} +func (UnimplementedCronWorkflowServiceServer) UpdateCronWorkflow(context.Context, *UpdateCronWorkflowRequest) (*v1alpha1.CronWorkflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateCronWorkflow not implemented") +} +func (UnimplementedCronWorkflowServiceServer) DeleteCronWorkflow(context.Context, *DeleteCronWorkflowRequest) (*CronWorkflowDeletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteCronWorkflow not implemented") +} +func (UnimplementedCronWorkflowServiceServer) ResumeCronWorkflow(context.Context, *CronWorkflowResumeRequest) (*v1alpha1.CronWorkflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResumeCronWorkflow not implemented") +} +func (UnimplementedCronWorkflowServiceServer) SuspendCronWorkflow(context.Context, *CronWorkflowSuspendRequest) (*v1alpha1.CronWorkflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method SuspendCronWorkflow not implemented") +} +func (UnimplementedCronWorkflowServiceServer) testEmbeddedByValue() {} + +// UnsafeCronWorkflowServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to CronWorkflowServiceServer will +// result in compilation errors. +type UnsafeCronWorkflowServiceServer interface { + mustEmbedUnimplementedCronWorkflowServiceServer() +} + +func RegisterCronWorkflowServiceServer(s grpc.ServiceRegistrar, srv CronWorkflowServiceServer) { + // If the following call pancis, it indicates UnimplementedCronWorkflowServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&CronWorkflowService_ServiceDesc, srv) +} + +func _CronWorkflowService_LintCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LintCronWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CronWorkflowServiceServer).LintCronWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CronWorkflowService_LintCronWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CronWorkflowServiceServer).LintCronWorkflow(ctx, req.(*LintCronWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CronWorkflowService_CreateCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateCronWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CronWorkflowServiceServer).CreateCronWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CronWorkflowService_CreateCronWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CronWorkflowServiceServer).CreateCronWorkflow(ctx, req.(*CreateCronWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CronWorkflowService_ListCronWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListCronWorkflowsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CronWorkflowServiceServer).ListCronWorkflows(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CronWorkflowService_ListCronWorkflows_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CronWorkflowServiceServer).ListCronWorkflows(ctx, req.(*ListCronWorkflowsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CronWorkflowService_GetCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCronWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CronWorkflowServiceServer).GetCronWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CronWorkflowService_GetCronWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CronWorkflowServiceServer).GetCronWorkflow(ctx, req.(*GetCronWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CronWorkflowService_UpdateCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateCronWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CronWorkflowServiceServer).UpdateCronWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CronWorkflowService_UpdateCronWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CronWorkflowServiceServer).UpdateCronWorkflow(ctx, req.(*UpdateCronWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CronWorkflowService_DeleteCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteCronWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CronWorkflowServiceServer).DeleteCronWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CronWorkflowService_DeleteCronWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CronWorkflowServiceServer).DeleteCronWorkflow(ctx, req.(*DeleteCronWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CronWorkflowService_ResumeCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CronWorkflowResumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CronWorkflowServiceServer).ResumeCronWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CronWorkflowService_ResumeCronWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CronWorkflowServiceServer).ResumeCronWorkflow(ctx, req.(*CronWorkflowResumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CronWorkflowService_SuspendCronWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CronWorkflowSuspendRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CronWorkflowServiceServer).SuspendCronWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CronWorkflowService_SuspendCronWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CronWorkflowServiceServer).SuspendCronWorkflow(ctx, req.(*CronWorkflowSuspendRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// CronWorkflowService_ServiceDesc is the grpc.ServiceDesc for CronWorkflowService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var CronWorkflowService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "cronworkflow.CronWorkflowService", + HandlerType: (*CronWorkflowServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "LintCronWorkflow", + Handler: _CronWorkflowService_LintCronWorkflow_Handler, + }, + { + MethodName: "CreateCronWorkflow", + Handler: _CronWorkflowService_CreateCronWorkflow_Handler, + }, + { + MethodName: "ListCronWorkflows", + Handler: _CronWorkflowService_ListCronWorkflows_Handler, + }, + { + MethodName: "GetCronWorkflow", + Handler: _CronWorkflowService_GetCronWorkflow_Handler, + }, + { + MethodName: "UpdateCronWorkflow", + Handler: _CronWorkflowService_UpdateCronWorkflow_Handler, + }, + { + MethodName: "DeleteCronWorkflow", + Handler: _CronWorkflowService_DeleteCronWorkflow_Handler, + }, + { + MethodName: "ResumeCronWorkflow", + Handler: _CronWorkflowService_ResumeCronWorkflow_Handler, + }, + { + MethodName: "SuspendCronWorkflow", + Handler: _CronWorkflowService_SuspendCronWorkflow_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/apiclient/cronworkflow/cron-workflow.proto", +} diff --git a/pkg/apiclient/error-translating-workflow-service-client.go b/pkg/apiclient/error-translating-workflow-service-client.go index 6380515f360a..c76620392a6d 100644 --- a/pkg/apiclient/error-translating-workflow-service-client.go +++ b/pkg/apiclient/error-translating-workflow-service-client.go @@ -87,7 +87,7 @@ func (c *errorTranslatingWorkflowServiceClient) LintWorkflow(ctx context.Context } func (c *errorTranslatingWorkflowServiceClient) PodLogs(ctx context.Context, req *workflowpkg.WorkflowLogRequest, _ ...grpc.CallOption) (workflowpkg.WorkflowService_PodLogsClient, error) { - logs, err := c.delegate.PodLogs(ctx, req) + logs, err := c.delegate.PodLogs(ctx, req) //nolint:staticcheck // pass-through of the deprecated RPC return logs, grpcutil.TranslateError(err) } diff --git a/pkg/apiclient/event/event.pb.go b/pkg/apiclient/event/event.pb.go index 249dab1279b4..5dbe2bbfb493 100644 --- a/pkg/apiclient/event/event.pb.go +++ b/pkg/apiclient/event/event.pb.go @@ -1,35 +1,31 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/event/event.proto package event import ( - context "context" - fmt "fmt" v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type EventRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` // The namespace for the event. This can be empty if the client has cluster scoped permissions. // If empty, then the event is "broadcast" to workflow event binding in all namespaces. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` @@ -40,920 +36,222 @@ type EventRequest struct { // This is made available as `discriminator` in the event binding selector (`/spec/event/selector)` Discriminator string `protobuf:"bytes,2,opt,name=discriminator,proto3" json:"discriminator,omitempty"` // The event itself can be any data. - Payload *v1alpha1.Item `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EventRequest) Reset() { *m = EventRequest{} } -func (m *EventRequest) String() string { return proto.CompactTextString(m) } -func (*EventRequest) ProtoMessage() {} -func (*EventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d80a0d2509a47d1c, []int{0} -} -func (m *EventRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventRequest.Merge(m, src) -} -func (m *EventRequest) XXX_Size() int { - return m.Size() -} -func (m *EventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EventRequest.DiscardUnknown(m) + Payload *v1alpha1.Item `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_EventRequest proto.InternalMessageInfo - -func (m *EventRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -func (m *EventRequest) GetDiscriminator() string { - if m != nil { - return m.Discriminator - } - return "" +func (x *EventRequest) Reset() { + *x = EventRequest{} + mi := &file_pkg_apiclient_event_event_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventRequest) GetPayload() *v1alpha1.Item { - if m != nil { - return m.Payload - } - return nil +func (x *EventRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type EventResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*EventRequest) ProtoMessage() {} -func (m *EventResponse) Reset() { *m = EventResponse{} } -func (m *EventResponse) String() string { return proto.CompactTextString(m) } -func (*EventResponse) ProtoMessage() {} -func (*EventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d80a0d2509a47d1c, []int{1} -} -func (m *EventResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *EventRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_event_event_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *EventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventResponse.Merge(m, src) -} -func (m *EventResponse) XXX_Size() int { - return m.Size() -} -func (m *EventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_EventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_EventResponse proto.InternalMessageInfo -type ListWorkflowEventBindingsRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use EventRequest.ProtoReflect.Descriptor instead. +func (*EventRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_event_event_proto_rawDescGZIP(), []int{0} } -func (m *ListWorkflowEventBindingsRequest) Reset() { *m = ListWorkflowEventBindingsRequest{} } -func (m *ListWorkflowEventBindingsRequest) String() string { return proto.CompactTextString(m) } -func (*ListWorkflowEventBindingsRequest) ProtoMessage() {} -func (*ListWorkflowEventBindingsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d80a0d2509a47d1c, []int{2} -} -func (m *ListWorkflowEventBindingsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListWorkflowEventBindingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListWorkflowEventBindingsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *EventRequest) GetNamespace() string { + if x != nil { + return x.Namespace } + return "" } -func (m *ListWorkflowEventBindingsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListWorkflowEventBindingsRequest.Merge(m, src) -} -func (m *ListWorkflowEventBindingsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListWorkflowEventBindingsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListWorkflowEventBindingsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListWorkflowEventBindingsRequest proto.InternalMessageInfo -func (m *ListWorkflowEventBindingsRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *EventRequest) GetDiscriminator() string { + if x != nil { + return x.Discriminator } return "" } -func (m *ListWorkflowEventBindingsRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions +func (x *EventRequest) GetPayload() *v1alpha1.Item { + if x != nil { + return x.Payload } return nil } -func init() { - proto.RegisterType((*EventRequest)(nil), "event.EventRequest") - proto.RegisterType((*EventResponse)(nil), "event.EventResponse") - proto.RegisterType((*ListWorkflowEventBindingsRequest)(nil), "event.ListWorkflowEventBindingsRequest") -} - -func init() { proto.RegisterFile("pkg/apiclient/event/event.proto", fileDescriptor_d80a0d2509a47d1c) } - -var fileDescriptor_d80a0d2509a47d1c = []byte{ - // 484 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x4f, 0x8b, 0x13, 0x31, - 0x18, 0xc6, 0x49, 0x45, 0x65, 0xd3, 0x5d, 0x84, 0xe8, 0xa1, 0x96, 0xa5, 0x96, 0x22, 0xb8, 0x28, - 0x4d, 0x98, 0x6e, 0x05, 0xff, 0xdc, 0x16, 0x54, 0x84, 0x05, 0x65, 0xf6, 0x20, 0xec, 0x45, 0xd3, - 0xe9, 0xeb, 0x34, 0x76, 0x26, 0x89, 0x49, 0x36, 0xcb, 0xb2, 0xec, 0xc5, 0xaf, 0x20, 0x7e, 0x13, - 0x3f, 0x84, 0x47, 0x41, 0xbc, 0x8a, 0x14, 0x3f, 0x88, 0x4c, 0x3a, 0xd3, 0x99, 0xa2, 0xa2, 0xb2, - 0x97, 0x21, 0xf3, 0x26, 0x79, 0xf2, 0x3c, 0xbf, 0xe4, 0xc5, 0x37, 0xf4, 0x3c, 0x65, 0x5c, 0x8b, - 0x24, 0x13, 0x20, 0x1d, 0x03, 0xbf, 0xfa, 0x52, 0x6d, 0x94, 0x53, 0xe4, 0x62, 0xf8, 0xe9, 0x3e, - 0x4f, 0x85, 0x9b, 0x1d, 0x4d, 0x68, 0xa2, 0x72, 0xc6, 0x4d, 0xaa, 0xb4, 0x51, 0x6f, 0xc2, 0x60, - 0x78, 0xac, 0xcc, 0xfc, 0x75, 0xa6, 0x8e, 0x2d, 0xf3, 0x63, 0x56, 0xaa, 0x59, 0x56, 0x55, 0x99, - 0x8f, 0x78, 0xa6, 0x67, 0x3c, 0x62, 0x29, 0x48, 0x30, 0xdc, 0xc1, 0x74, 0x29, 0xdc, 0xdd, 0x4e, - 0x95, 0x4a, 0x33, 0x28, 0x96, 0x33, 0x2e, 0xa5, 0x72, 0xdc, 0x09, 0x25, 0x6d, 0x39, 0x3b, 0x9e, - 0xdf, 0xb3, 0x54, 0xa8, 0x62, 0x36, 0xe7, 0xc9, 0x4c, 0x48, 0x30, 0x27, 0xb5, 0x7a, 0x0e, 0x8e, - 0x33, 0xff, 0x8b, 0xe6, 0xe0, 0x23, 0xc2, 0x9b, 0x8f, 0x0a, 0xbf, 0x31, 0xbc, 0x3d, 0x02, 0xeb, - 0xc8, 0x36, 0xde, 0x90, 0x3c, 0x07, 0xab, 0x79, 0x02, 0x1d, 0xd4, 0x47, 0x3b, 0x1b, 0x71, 0x5d, - 0x20, 0x37, 0xf1, 0xd6, 0x54, 0xd8, 0xc4, 0x88, 0x5c, 0x48, 0xee, 0x94, 0xe9, 0xb4, 0xc2, 0x8a, - 0xf5, 0x22, 0x79, 0x85, 0x2f, 0x6b, 0x7e, 0x92, 0x29, 0x3e, 0xed, 0x5c, 0xe8, 0xa3, 0x9d, 0xf6, - 0xe8, 0x31, 0xad, 0x61, 0xd0, 0x0a, 0x46, 0x18, 0xbc, 0x5c, 0xc1, 0xa0, 0x7e, 0x4c, 0xf5, 0x3c, - 0xa5, 0x85, 0x5d, 0x5a, 0x55, 0x69, 0x05, 0x83, 0x3e, 0x75, 0x90, 0xc7, 0x95, 0xec, 0xe0, 0x0a, - 0xde, 0x2a, 0x5d, 0x5b, 0xad, 0xa4, 0x85, 0xc1, 0x07, 0x84, 0xfb, 0xfb, 0xc2, 0xba, 0x17, 0xe5, - 0xc6, 0x30, 0xbb, 0x27, 0xe4, 0x54, 0xc8, 0xd4, 0xfe, 0x5b, 0xb6, 0x03, 0xdc, 0xce, 0x84, 0x75, - 0xcf, 0x74, 0xa0, 0x1a, 0x92, 0xb5, 0x47, 0x11, 0x5d, 0x62, 0xa5, 0x4d, 0xac, 0xb5, 0xcf, 0x02, - 0x2b, 0xf5, 0x11, 0xdd, 0xaf, 0x37, 0xc6, 0x4d, 0x95, 0xd1, 0xb7, 0x56, 0xc9, 0xf7, 0x00, 0x8c, - 0x17, 0x09, 0x10, 0x8f, 0x37, 0x63, 0x48, 0x40, 0x78, 0x08, 0x65, 0x72, 0x95, 0x2e, 0xdf, 0x4e, - 0xf3, 0x12, 0xba, 0xd7, 0xd6, 0x8b, 0x65, 0xc6, 0x87, 0xef, 0xbe, 0xfc, 0x78, 0xdf, 0xba, 0x3b, - 0xb8, 0x1d, 0x5e, 0x80, 0x8f, 0x96, 0xaf, 0xce, 0xb2, 0xd3, 0x55, 0x86, 0x33, 0x76, 0xba, 0x76, - 0x13, 0x67, 0x0f, 0x2a, 0x62, 0xe4, 0x2b, 0xc2, 0xd7, 0xff, 0x08, 0x88, 0xdc, 0x2a, 0x0f, 0xfc, - 0x1b, 0xc2, 0xee, 0xe1, 0xf9, 0x6f, 0xf2, 0x77, 0xfa, 0xc5, 0xb9, 0x83, 0xdd, 0x90, 0x6f, 0x48, - 0xee, 0x54, 0xf9, 0xaa, 0xbd, 0xc3, 0x60, 0x6e, 0x38, 0x29, 0xbd, 0x34, 0x03, 0xef, 0x3d, 0xf9, - 0xb4, 0xe8, 0xa1, 0xcf, 0x8b, 0x1e, 0xfa, 0xbe, 0xe8, 0xa1, 0xc3, 0xfb, 0xff, 0xd5, 0x74, 0xcd, - 0x16, 0x9e, 0x5c, 0x0a, 0x0d, 0xb1, 0xfb, 0x33, 0x00, 0x00, 0xff, 0xff, 0x3b, 0x24, 0x82, 0xc5, - 0xe0, 0x03, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// EventServiceClient is the client API for EventService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type EventServiceClient interface { - ReceiveEvent(ctx context.Context, in *EventRequest, opts ...grpc.CallOption) (*EventResponse, error) - ListWorkflowEventBindings(ctx context.Context, in *ListWorkflowEventBindingsRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowEventBindingList, error) -} - -type eventServiceClient struct { - cc *grpc.ClientConn -} - -func NewEventServiceClient(cc *grpc.ClientConn) EventServiceClient { - return &eventServiceClient{cc} -} - -func (c *eventServiceClient) ReceiveEvent(ctx context.Context, in *EventRequest, opts ...grpc.CallOption) (*EventResponse, error) { - out := new(EventResponse) - err := c.cc.Invoke(ctx, "/event.EventService/ReceiveEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *eventServiceClient) ListWorkflowEventBindings(ctx context.Context, in *ListWorkflowEventBindingsRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowEventBindingList, error) { - out := new(v1alpha1.WorkflowEventBindingList) - err := c.cc.Invoke(ctx, "/event.EventService/ListWorkflowEventBindings", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// EventServiceServer is the server API for EventService service. -type EventServiceServer interface { - ReceiveEvent(context.Context, *EventRequest) (*EventResponse, error) - ListWorkflowEventBindings(context.Context, *ListWorkflowEventBindingsRequest) (*v1alpha1.WorkflowEventBindingList, error) -} - -// UnimplementedEventServiceServer can be embedded to have forward compatible implementations. -type UnimplementedEventServiceServer struct { -} - -func (*UnimplementedEventServiceServer) ReceiveEvent(ctx context.Context, req *EventRequest) (*EventResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReceiveEvent not implemented") -} -func (*UnimplementedEventServiceServer) ListWorkflowEventBindings(ctx context.Context, req *ListWorkflowEventBindingsRequest) (*v1alpha1.WorkflowEventBindingList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowEventBindings not implemented") -} - -func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer) { - s.RegisterService(&_EventService_serviceDesc, srv) -} - -func _EventService_ReceiveEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EventRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EventServiceServer).ReceiveEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/event.EventService/ReceiveEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EventServiceServer).ReceiveEvent(ctx, req.(*EventRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _EventService_ListWorkflowEventBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListWorkflowEventBindingsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EventServiceServer).ListWorkflowEventBindings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/event.EventService/ListWorkflowEventBindings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EventServiceServer).ListWorkflowEventBindings(ctx, req.(*ListWorkflowEventBindingsRequest)) - } - return interceptor(ctx, in, info, handler) +type EventResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var _EventService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "event.EventService", - HandlerType: (*EventServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ReceiveEvent", - Handler: _EventService_ReceiveEvent_Handler, - }, - { - MethodName: "ListWorkflowEventBindings", - Handler: _EventService_ListWorkflowEventBindings_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/apiclient/event/event.proto", +func (x *EventResponse) Reset() { + *x = EventResponse{} + mi := &file_pkg_apiclient_event_event_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *EventResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EventResponse) ProtoMessage() {} -func (m *EventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Payload != nil { - { - size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) +func (x *EventResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_event_event_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x1a - } - if len(m.Discriminator) > 0 { - i -= len(m.Discriminator) - copy(dAtA[i:], m.Discriminator) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Discriminator))) - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *EventResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use EventResponse.ProtoReflect.Descriptor instead. +func (*EventResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_event_event_proto_rawDescGZIP(), []int{1} } -func (m *EventResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type ListWorkflowEventBindingsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil +func (x *ListWorkflowEventBindingsRequest) Reset() { + *x = ListWorkflowEventBindingsRequest{} + mi := &file_pkg_apiclient_event_event_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListWorkflowEventBindingsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *ListWorkflowEventBindingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListWorkflowEventBindingsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ListWorkflowEventBindingsRequest) ProtoMessage() {} -func (m *ListWorkflowEventBindingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEvent(dAtA, i, uint64(size)) +func (x *ListWorkflowEventBindingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_event_event_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { - offset -= sovEvent(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *EventRequest) Size() (n int) { - if m == nil { - return 0 + return ms } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - l = len(m.Discriminator) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.Payload != nil { - l = m.Payload.Size() - n += 1 + l + sovEvent(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return mi.MessageOf(x) } -func (m *EventResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use ListWorkflowEventBindingsRequest.ProtoReflect.Descriptor instead. +func (*ListWorkflowEventBindingsRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_event_event_proto_rawDescGZIP(), []int{2} } -func (m *ListWorkflowEventBindingsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovEvent(uint64(l)) +func (x *ListWorkflowEventBindingsRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovEvent(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEvent(x uint64) (n int) { - return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return "" } -func (m *EventRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Discriminator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Discriminator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Payload == nil { - m.Payload = &v1alpha1.Item{} - } - if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ListWorkflowEventBindingsRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } return nil } -func (m *EventResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListWorkflowEventBindingsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListWorkflowEventBindingsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListWorkflowEventBindingsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEvent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var File_pkg_apiclient_event_event_proto protoreflect.FileDescriptor - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipEvent(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthEvent - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEvent - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthEvent - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +const file_pkg_apiclient_event_event_proto_rawDesc = "" + + "\n" + + "\x1fpkg/apiclient/event/event.proto\x12\x05event\x1aPgithub.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1/generated.proto\x1a\x1cgoogle/api/annotations.proto\x1a4k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto\"\xb4\x01\n" + + "\fEventRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12$\n" + + "\rdiscriminator\x18\x02 \x01(\tR\rdiscriminator\x12`\n" + + "\apayload\x18\x03 \x01(\v2F.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ItemR\apayload\"\x0f\n" + + "\rEventResponse\"\x95\x01\n" + + " ListWorkflowEventBindingsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12S\n" + + "\vlistOptions\x18\x02 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions2\xde\x02\n" + + "\fEventService\x12v\n" + + "\fReceiveEvent\x12\x13.event.EventRequest\x1a\x14.event.EventResponse\";\x82\xd3\xe4\x93\x025:\apayload\"*/api/v1/events/{namespace}/{discriminator}\x12\xd5\x01\n" + + "\x19ListWorkflowEventBindings\x12'.event.ListWorkflowEventBindingsRequest\x1aZ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowEventBindingList\"3\x82\xd3\xe4\x93\x02-\x12+/api/v1/workflow-event-bindings/{namespace}B;Z9github.com/argoproj/argo-workflows/v4/pkg/apiclient/eventb\x06proto3" var ( - ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") + file_pkg_apiclient_event_event_proto_rawDescOnce sync.Once + file_pkg_apiclient_event_event_proto_rawDescData []byte ) + +func file_pkg_apiclient_event_event_proto_rawDescGZIP() []byte { + file_pkg_apiclient_event_event_proto_rawDescOnce.Do(func() { + file_pkg_apiclient_event_event_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_apiclient_event_event_proto_rawDesc), len(file_pkg_apiclient_event_event_proto_rawDesc))) + }) + return file_pkg_apiclient_event_event_proto_rawDescData +} + +var file_pkg_apiclient_event_event_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_pkg_apiclient_event_event_proto_goTypes = []any{ + (*EventRequest)(nil), // 0: event.EventRequest + (*EventResponse)(nil), // 1: event.EventResponse + (*ListWorkflowEventBindingsRequest)(nil), // 2: event.ListWorkflowEventBindingsRequest + (*v1alpha1.Item)(nil), // 3: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Item + (*v1.ListOptions)(nil), // 4: k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + (*v1alpha1.WorkflowEventBindingList)(nil), // 5: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowEventBindingList +} +var file_pkg_apiclient_event_event_proto_depIdxs = []int32{ + 3, // 0: event.EventRequest.payload:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Item + 4, // 1: event.ListWorkflowEventBindingsRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 0, // 2: event.EventService.ReceiveEvent:input_type -> event.EventRequest + 2, // 3: event.EventService.ListWorkflowEventBindings:input_type -> event.ListWorkflowEventBindingsRequest + 1, // 4: event.EventService.ReceiveEvent:output_type -> event.EventResponse + 5, // 5: event.EventService.ListWorkflowEventBindings:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowEventBindingList + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_event_event_proto_init() } +func file_pkg_apiclient_event_event_proto_init() { + if File_pkg_apiclient_event_event_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_event_event_proto_rawDesc), len(file_pkg_apiclient_event_event_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_event_event_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_event_event_proto_depIdxs, + MessageInfos: file_pkg_apiclient_event_event_proto_msgTypes, + }.Build() + File_pkg_apiclient_event_event_proto = out.File + file_pkg_apiclient_event_event_proto_goTypes = nil + file_pkg_apiclient_event_event_proto_depIdxs = nil +} diff --git a/pkg/apiclient/event/event.pb.gw.go b/pkg/apiclient/event/event.pb.gw.go index 4e9a322f379e..bd013e8d3ff2 100644 --- a/pkg/apiclient/event/event.pb.gw.go +++ b/pkg/apiclient/event/event.pb.gw.go @@ -10,243 +10,191 @@ package event import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_EventService_ReceiveEvent_0(ctx context.Context, marshaler runtime.Marshaler, client EventServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq EventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Payload); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq EventRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Payload); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["discriminator"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "discriminator") } - protoReq.Discriminator, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "discriminator", err) } - msg, err := client.ReceiveEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_EventService_ReceiveEvent_0(ctx context.Context, marshaler runtime.Marshaler, server EventServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq EventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Payload); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq EventRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Payload); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["discriminator"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "discriminator") } - protoReq.Discriminator, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "discriminator", err) } - msg, err := server.ReceiveEvent(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_EventService_ListWorkflowEventBindings_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_EventService_ListWorkflowEventBindings_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_EventService_ListWorkflowEventBindings_0(ctx context.Context, marshaler runtime.Marshaler, client EventServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListWorkflowEventBindingsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ListWorkflowEventBindingsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_EventService_ListWorkflowEventBindings_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListWorkflowEventBindings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_EventService_ListWorkflowEventBindings_0(ctx context.Context, marshaler runtime.Marshaler, server EventServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListWorkflowEventBindingsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ListWorkflowEventBindingsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_EventService_ListWorkflowEventBindings_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListWorkflowEventBindings(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterEventServiceHandlerServer registers the http handlers for service EventService to "mux". // UnaryRPC :call EventServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterEventServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventServiceServer) error { - - mux.Handle("POST", pattern_EventService_ReceiveEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_EventService_ReceiveEvent_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/event.EventService/ReceiveEvent", runtime.WithHTTPPathPattern("/api/v1/events/{namespace}/{discriminator}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_EventService_ReceiveEvent_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_EventService_ReceiveEvent_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventService_ReceiveEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventService_ReceiveEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_EventService_ListWorkflowEventBindings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventService_ListWorkflowEventBindings_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/event.EventService/ListWorkflowEventBindings", runtime.WithHTTPPathPattern("/api/v1/workflow-event-bindings/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_EventService_ListWorkflowEventBindings_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_EventService_ListWorkflowEventBindings_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventService_ListWorkflowEventBindings_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventService_ListWorkflowEventBindings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -255,25 +203,24 @@ func RegisterEventServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu // RegisterEventServiceHandlerFromEndpoint is same as RegisterEventServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterEventServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterEventServiceHandler(ctx, mux, conn) } @@ -287,60 +234,51 @@ func RegisterEventServiceHandler(ctx context.Context, mux *runtime.ServeMux, con // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "EventServiceClient" to call the correct interceptors. +// "EventServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterEventServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventServiceClient) error { - - mux.Handle("POST", pattern_EventService_ReceiveEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_EventService_ReceiveEvent_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/event.EventService/ReceiveEvent", runtime.WithHTTPPathPattern("/api/v1/events/{namespace}/{discriminator}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EventService_ReceiveEvent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_EventService_ReceiveEvent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventService_ReceiveEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventService_ReceiveEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_EventService_ListWorkflowEventBindings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventService_ListWorkflowEventBindings_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/event.EventService/ListWorkflowEventBindings", runtime.WithHTTPPathPattern("/api/v1/workflow-event-bindings/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EventService_ListWorkflowEventBindings_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_EventService_ListWorkflowEventBindings_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventService_ListWorkflowEventBindings_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventService_ListWorkflowEventBindings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_EventService_ReceiveEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "events", "namespace", "discriminator"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_EventService_ListWorkflowEventBindings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflow-event-bindings", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_EventService_ReceiveEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "events", "namespace", "discriminator"}, "")) + pattern_EventService_ListWorkflowEventBindings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflow-event-bindings", "namespace"}, "")) ) var ( - forward_EventService_ReceiveEvent_0 = runtime.ForwardResponseMessage - + forward_EventService_ReceiveEvent_0 = runtime.ForwardResponseMessage forward_EventService_ListWorkflowEventBindings_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/event/event_grpc.pb.go b/pkg/apiclient/event/event_grpc.pb.go new file mode 100644 index 000000000000..4471efcdee73 --- /dev/null +++ b/pkg/apiclient/event/event_grpc.pb.go @@ -0,0 +1,158 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/event/event.proto + +package event + +import ( + context "context" + v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + EventService_ReceiveEvent_FullMethodName = "/event.EventService/ReceiveEvent" + EventService_ListWorkflowEventBindings_FullMethodName = "/event.EventService/ListWorkflowEventBindings" +) + +// EventServiceClient is the client API for EventService 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 EventServiceClient interface { + ReceiveEvent(ctx context.Context, in *EventRequest, opts ...grpc.CallOption) (*EventResponse, error) + ListWorkflowEventBindings(ctx context.Context, in *ListWorkflowEventBindingsRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowEventBindingList, error) +} + +type eventServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient { + return &eventServiceClient{cc} +} + +func (c *eventServiceClient) ReceiveEvent(ctx context.Context, in *EventRequest, opts ...grpc.CallOption) (*EventResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(EventResponse) + err := c.cc.Invoke(ctx, EventService_ReceiveEvent_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *eventServiceClient) ListWorkflowEventBindings(ctx context.Context, in *ListWorkflowEventBindingsRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowEventBindingList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.WorkflowEventBindingList) + err := c.cc.Invoke(ctx, EventService_ListWorkflowEventBindings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// EventServiceServer is the server API for EventService service. +// All implementations should embed UnimplementedEventServiceServer +// for forward compatibility. +type EventServiceServer interface { + ReceiveEvent(context.Context, *EventRequest) (*EventResponse, error) + ListWorkflowEventBindings(context.Context, *ListWorkflowEventBindingsRequest) (*v1alpha1.WorkflowEventBindingList, error) +} + +// UnimplementedEventServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEventServiceServer struct{} + +func (UnimplementedEventServiceServer) ReceiveEvent(context.Context, *EventRequest) (*EventResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReceiveEvent not implemented") +} +func (UnimplementedEventServiceServer) ListWorkflowEventBindings(context.Context, *ListWorkflowEventBindingsRequest) (*v1alpha1.WorkflowEventBindingList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowEventBindings not implemented") +} +func (UnimplementedEventServiceServer) testEmbeddedByValue() {} + +// UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to EventServiceServer will +// result in compilation errors. +type UnsafeEventServiceServer interface { + mustEmbedUnimplementedEventServiceServer() +} + +func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer) { + // If the following call pancis, it indicates UnimplementedEventServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&EventService_ServiceDesc, srv) +} + +func _EventService_ReceiveEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EventServiceServer).ReceiveEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EventService_ReceiveEvent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EventServiceServer).ReceiveEvent(ctx, req.(*EventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _EventService_ListWorkflowEventBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListWorkflowEventBindingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EventServiceServer).ListWorkflowEventBindings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EventService_ListWorkflowEventBindings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EventServiceServer).ListWorkflowEventBindings(ctx, req.(*ListWorkflowEventBindingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var EventService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "event.EventService", + HandlerType: (*EventServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ReceiveEvent", + Handler: _EventService_ReceiveEvent_Handler, + }, + { + MethodName: "ListWorkflowEventBindings", + Handler: _EventService_ListWorkflowEventBindings_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/apiclient/event/event.proto", +} diff --git a/pkg/apiclient/eventsource/eventsource.pb.go b/pkg/apiclient/eventsource/eventsource.pb.go index 7fa701a277a2..30c2f2c06b3a 100644 --- a/pkg/apiclient/eventsource/eventsource.pb.go +++ b/pkg/apiclient/eventsource/eventsource.pb.go @@ -1,3166 +1,706 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/eventsource/eventsource.proto package eventsource import ( - context "context" - fmt "fmt" v1alpha1 "github.com/argoproj/argo-events/pkg/apis/events/v1alpha1" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" v11 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type CreateEventSourceRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - EventSource *v1alpha1.EventSource `protobuf:"bytes,2,opt,name=eventSource,proto3" json:"eventSource,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateEventSourceRequest) Reset() { *m = CreateEventSourceRequest{} } -func (m *CreateEventSourceRequest) String() string { return proto.CompactTextString(m) } -func (*CreateEventSourceRequest) ProtoMessage() {} -func (*CreateEventSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b13fbf03f636aa35, []int{0} -} -func (m *CreateEventSourceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateEventSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateEventSourceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + EventSource *v1alpha1.EventSource `protobuf:"bytes,2,opt,name=eventSource,proto3" json:"eventSource,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CreateEventSourceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateEventSourceRequest.Merge(m, src) -} -func (m *CreateEventSourceRequest) XXX_Size() int { - return m.Size() -} -func (m *CreateEventSourceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateEventSourceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateEventSourceRequest proto.InternalMessageInfo -func (m *CreateEventSourceRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *CreateEventSourceRequest) Reset() { + *x = CreateEventSourceRequest{} + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateEventSourceRequest) GetEventSource() *v1alpha1.EventSource { - if m != nil { - return m.EventSource - } - return nil +func (x *CreateEventSourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type GetEventSourceRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*CreateEventSourceRequest) ProtoMessage() {} -func (m *GetEventSourceRequest) Reset() { *m = GetEventSourceRequest{} } -func (m *GetEventSourceRequest) String() string { return proto.CompactTextString(m) } -func (*GetEventSourceRequest) ProtoMessage() {} -func (*GetEventSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b13fbf03f636aa35, []int{1} -} -func (m *GetEventSourceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetEventSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetEventSourceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *CreateEventSourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *GetEventSourceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetEventSourceRequest.Merge(m, src) -} -func (m *GetEventSourceRequest) XXX_Size() int { - return m.Size() -} -func (m *GetEventSourceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetEventSourceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetEventSourceRequest proto.InternalMessageInfo - -func (m *GetEventSourceRequest) GetName() string { - if m != nil { - return m.Name + return ms } - return "" + return mi.MessageOf(x) } -func (m *GetEventSourceRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -type ListEventSourcesRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListEventSourcesRequest) Reset() { *m = ListEventSourcesRequest{} } -func (m *ListEventSourcesRequest) String() string { return proto.CompactTextString(m) } -func (*ListEventSourcesRequest) ProtoMessage() {} -func (*ListEventSourcesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b13fbf03f636aa35, []int{2} -} -func (m *ListEventSourcesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListEventSourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListEventSourcesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ListEventSourcesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListEventSourcesRequest.Merge(m, src) -} -func (m *ListEventSourcesRequest) XXX_Size() int { - return m.Size() -} -func (m *ListEventSourcesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListEventSourcesRequest.DiscardUnknown(m) +// Deprecated: Use CreateEventSourceRequest.ProtoReflect.Descriptor instead. +func (*CreateEventSourceRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP(), []int{0} } -var xxx_messageInfo_ListEventSourcesRequest proto.InternalMessageInfo - -func (m *ListEventSourcesRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *CreateEventSourceRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *ListEventSourcesRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions +func (x *CreateEventSourceRequest) GetEventSource() *v1alpha1.EventSource { + if x != nil { + return x.EventSource } return nil } -type DeleteEventSourceRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteEventSourceRequest) Reset() { *m = DeleteEventSourceRequest{} } -func (m *DeleteEventSourceRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteEventSourceRequest) ProtoMessage() {} -func (*DeleteEventSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b13fbf03f636aa35, []int{3} -} -func (m *DeleteEventSourceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteEventSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteEventSourceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeleteEventSourceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteEventSourceRequest.Merge(m, src) -} -func (m *DeleteEventSourceRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteEventSourceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteEventSourceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteEventSourceRequest proto.InternalMessageInfo - -func (m *DeleteEventSourceRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +type GetEventSourceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *DeleteEventSourceRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *GetEventSourceRequest) Reset() { + *x = GetEventSourceRequest{} + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteEventSourceRequest) GetDeleteOptions() *v1.DeleteOptions { - if m != nil { - return m.DeleteOptions - } - return nil +func (x *GetEventSourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type UpdateEventSourceRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - EventSource *v1alpha1.EventSource `protobuf:"bytes,3,opt,name=eventSource,proto3" json:"eventSource,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*GetEventSourceRequest) ProtoMessage() {} -func (m *UpdateEventSourceRequest) Reset() { *m = UpdateEventSourceRequest{} } -func (m *UpdateEventSourceRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateEventSourceRequest) ProtoMessage() {} -func (*UpdateEventSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b13fbf03f636aa35, []int{4} -} -func (m *UpdateEventSourceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateEventSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateEventSourceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *GetEventSourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *UpdateEventSourceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateEventSourceRequest.Merge(m, src) -} -func (m *UpdateEventSourceRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateEventSourceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateEventSourceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateEventSourceRequest proto.InternalMessageInfo - -func (m *UpdateEventSourceRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *UpdateEventSourceRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -func (m *UpdateEventSourceRequest) GetEventSource() *v1alpha1.EventSource { - if m != nil { - return m.EventSource + return ms } - return nil + return mi.MessageOf(x) } -type EventSourcesLogsRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // optional - only return entries for this event source - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // optional - only return entries for this event source type (e.g. `webhook`) - EventSourceType string `protobuf:"bytes,3,opt,name=eventSourceType,proto3" json:"eventSourceType,omitempty"` - // optional - only return entries for this event name (e.g. `example`) - EventName string `protobuf:"bytes,4,opt,name=eventName,proto3" json:"eventName,omitempty"` - // optional - only return entries where `msg` matches this regular expression - Grep string `protobuf:"bytes,5,opt,name=grep,proto3" json:"grep,omitempty"` - PodLogOptions *v11.PodLogOptions `protobuf:"bytes,6,opt,name=podLogOptions,proto3" json:"podLogOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EventSourcesLogsRequest) Reset() { *m = EventSourcesLogsRequest{} } -func (m *EventSourcesLogsRequest) String() string { return proto.CompactTextString(m) } -func (*EventSourcesLogsRequest) ProtoMessage() {} -func (*EventSourcesLogsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b13fbf03f636aa35, []int{5} -} -func (m *EventSourcesLogsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventSourcesLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventSourcesLogsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EventSourcesLogsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventSourcesLogsRequest.Merge(m, src) -} -func (m *EventSourcesLogsRequest) XXX_Size() int { - return m.Size() -} -func (m *EventSourcesLogsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EventSourcesLogsRequest.DiscardUnknown(m) +// Deprecated: Use GetEventSourceRequest.ProtoReflect.Descriptor instead. +func (*GetEventSourceRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP(), []int{1} } -var xxx_messageInfo_EventSourcesLogsRequest proto.InternalMessageInfo - -func (m *EventSourcesLogsRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *GetEventSourceRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *EventSourcesLogsRequest) GetName() string { - if m != nil { - return m.Name +func (x *GetEventSourceRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *EventSourcesLogsRequest) GetEventSourceType() string { - if m != nil { - return m.EventSourceType - } - return "" +type ListEventSourcesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EventSourcesLogsRequest) GetEventName() string { - if m != nil { - return m.EventName - } - return "" +func (x *ListEventSourcesRequest) Reset() { + *x = ListEventSourcesRequest{} + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventSourcesLogsRequest) GetGrep() string { - if m != nil { - return m.Grep - } - return "" +func (x *ListEventSourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventSourcesLogsRequest) GetPodLogOptions() *v11.PodLogOptions { - if m != nil { - return m.PodLogOptions - } - return nil -} +func (*ListEventSourcesRequest) ProtoMessage() {} -// structured log entry -type LogEntry struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - EventSourceName string `protobuf:"bytes,2,opt,name=eventSourceName,proto3" json:"eventSourceName,omitempty"` - // optional - the event source type (e.g. `webhook`) - EventSourceType string `protobuf:"bytes,3,opt,name=eventSourceType,proto3" json:"eventSourceType,omitempty"` - // optional - the event name (e.g. `example`) - EventName string `protobuf:"bytes,4,opt,name=eventName,proto3" json:"eventName,omitempty"` - Level string `protobuf:"bytes,5,opt,name=level,proto3" json:"level,omitempty"` - Time *v1.Time `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` - Msg string `protobuf:"bytes,7,opt,name=msg,proto3" json:"msg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogEntry) Reset() { *m = LogEntry{} } -func (m *LogEntry) String() string { return proto.CompactTextString(m) } -func (*LogEntry) ProtoMessage() {} -func (*LogEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_b13fbf03f636aa35, []int{6} -} -func (m *LogEntry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ListEventSourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *LogEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogEntry.Merge(m, src) -} -func (m *LogEntry) XXX_Size() int { - return m.Size() -} -func (m *LogEntry) XXX_DiscardUnknown() { - xxx_messageInfo_LogEntry.DiscardUnknown(m) -} - -var xxx_messageInfo_LogEntry proto.InternalMessageInfo - -func (m *LogEntry) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -func (m *LogEntry) GetEventSourceName() string { - if m != nil { - return m.EventSourceName + return ms } - return "" + return mi.MessageOf(x) } -func (m *LogEntry) GetEventSourceType() string { - if m != nil { - return m.EventSourceType - } - return "" -} - -func (m *LogEntry) GetEventName() string { - if m != nil { - return m.EventName - } - return "" +// Deprecated: Use ListEventSourcesRequest.ProtoReflect.Descriptor instead. +func (*ListEventSourcesRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP(), []int{2} } -func (m *LogEntry) GetLevel() string { - if m != nil { - return m.Level +func (x *ListEventSourcesRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *LogEntry) GetTime() *v1.Time { - if m != nil { - return m.Time +func (x *ListEventSourcesRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } return nil } -func (m *LogEntry) GetMsg() string { - if m != nil { - return m.Msg - } - return "" -} - -type EventSourceWatchEvent struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Object *v1alpha1.EventSource `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EventSourceWatchEvent) Reset() { *m = EventSourceWatchEvent{} } -func (m *EventSourceWatchEvent) String() string { return proto.CompactTextString(m) } -func (*EventSourceWatchEvent) ProtoMessage() {} -func (*EventSourceWatchEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_b13fbf03f636aa35, []int{7} -} -func (m *EventSourceWatchEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventSourceWatchEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventSourceWatchEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EventSourceWatchEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventSourceWatchEvent.Merge(m, src) -} -func (m *EventSourceWatchEvent) XXX_Size() int { - return m.Size() -} -func (m *EventSourceWatchEvent) XXX_DiscardUnknown() { - xxx_messageInfo_EventSourceWatchEvent.DiscardUnknown(m) +type DeleteEventSourceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_EventSourceWatchEvent proto.InternalMessageInfo - -func (m *EventSourceWatchEvent) GetType() string { - if m != nil { - return m.Type - } - return "" +func (x *DeleteEventSourceRequest) Reset() { + *x = DeleteEventSourceRequest{} + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *EventSourceWatchEvent) GetObject() *v1alpha1.EventSource { - if m != nil { - return m.Object - } - return nil +func (x *DeleteEventSourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type EventSourceDeletedResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*DeleteEventSourceRequest) ProtoMessage() {} -func (m *EventSourceDeletedResponse) Reset() { *m = EventSourceDeletedResponse{} } -func (m *EventSourceDeletedResponse) String() string { return proto.CompactTextString(m) } -func (*EventSourceDeletedResponse) ProtoMessage() {} -func (*EventSourceDeletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b13fbf03f636aa35, []int{8} -} -func (m *EventSourceDeletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventSourceDeletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventSourceDeletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *DeleteEventSourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *EventSourceDeletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventSourceDeletedResponse.Merge(m, src) -} -func (m *EventSourceDeletedResponse) XXX_Size() int { - return m.Size() -} -func (m *EventSourceDeletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_EventSourceDeletedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_EventSourceDeletedResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*CreateEventSourceRequest)(nil), "eventsource.CreateEventSourceRequest") - proto.RegisterType((*GetEventSourceRequest)(nil), "eventsource.GetEventSourceRequest") - proto.RegisterType((*ListEventSourcesRequest)(nil), "eventsource.ListEventSourcesRequest") - proto.RegisterType((*DeleteEventSourceRequest)(nil), "eventsource.DeleteEventSourceRequest") - proto.RegisterType((*UpdateEventSourceRequest)(nil), "eventsource.UpdateEventSourceRequest") - proto.RegisterType((*EventSourcesLogsRequest)(nil), "eventsource.EventSourcesLogsRequest") - proto.RegisterType((*LogEntry)(nil), "eventsource.LogEntry") - proto.RegisterType((*EventSourceWatchEvent)(nil), "eventsource.EventSourceWatchEvent") - proto.RegisterType((*EventSourceDeletedResponse)(nil), "eventsource.EventSourceDeletedResponse") -} - -func init() { - proto.RegisterFile("pkg/apiclient/eventsource/eventsource.proto", fileDescriptor_b13fbf03f636aa35) -} - -var fileDescriptor_b13fbf03f636aa35 = []byte{ - // 854 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0x4d, 0x6b, 0xdc, 0x46, - 0x18, 0xc7, 0x99, 0xf5, 0x4b, 0xbb, 0x63, 0xdc, 0x7a, 0x87, 0x1a, 0x2f, 0xc2, 0x18, 0x5b, 0x7d, - 0xdb, 0x6e, 0xbb, 0x92, 0xd7, 0x76, 0xa1, 0xf4, 0xd0, 0x42, 0x6b, 0xe3, 0x1a, 0xb6, 0x6e, 0x91, - 0x1d, 0x42, 0x02, 0x21, 0xc8, 0xda, 0x89, 0x56, 0x5e, 0x49, 0xa3, 0x68, 0xc6, 0x32, 0x26, 0xf8, - 0xe2, 0x53, 0x08, 0xb9, 0x84, 0x10, 0x72, 0xce, 0x29, 0xa7, 0x24, 0xa7, 0xe4, 0x33, 0xe4, 0x18, - 0xc8, 0x17, 0x08, 0x26, 0x1f, 0x20, 0x1f, 0x21, 0xcc, 0x48, 0x6b, 0x8d, 0xb4, 0xab, 0xec, 0x1a, - 0x36, 0xb7, 0x47, 0xa3, 0x99, 0xff, 0xfc, 0x9e, 0xff, 0x33, 0x7a, 0x46, 0xf0, 0xe7, 0xa0, 0x6b, - 0xeb, 0x66, 0xe0, 0x58, 0xae, 0x83, 0x7d, 0xa6, 0xe3, 0x08, 0xfb, 0x8c, 0x92, 0xa3, 0xd0, 0xc2, - 0x72, 0xac, 0x05, 0x21, 0x61, 0x04, 0xcd, 0x48, 0x43, 0xca, 0x3f, 0xb6, 0xc3, 0x3a, 0x47, 0x07, - 0x9a, 0x45, 0x3c, 0xdd, 0x0c, 0x6d, 0x12, 0x84, 0xe4, 0x50, 0x04, 0x8d, 0x78, 0x96, 0x9e, 0x28, - 0xd3, 0x44, 0x48, 0x8f, 0x9a, 0xa6, 0x1b, 0x74, 0xcc, 0xa6, 0x6e, 0x63, 0x1f, 0x87, 0x26, 0xc3, - 0xed, 0x58, 0x56, 0x59, 0xb4, 0x09, 0xb1, 0x5d, 0xcc, 0x27, 0xeb, 0xa6, 0xef, 0x13, 0x66, 0x32, - 0x87, 0xf8, 0x34, 0x79, 0xab, 0x76, 0x7f, 0xa3, 0x9a, 0x43, 0xc4, 0x5b, 0x8b, 0x84, 0x58, 0x8f, - 0xfa, 0x15, 0x36, 0xd2, 0x39, 0x9e, 0x69, 0x75, 0x1c, 0x1f, 0x87, 0x27, 0xe9, 0xfe, 0x1e, 0x66, - 0xe6, 0x80, 0x55, 0xea, 0x13, 0x00, 0xab, 0x7f, 0x87, 0xd8, 0x64, 0x78, 0x8b, 0x13, 0xee, 0x89, - 0xbc, 0x0c, 0x7c, 0xfb, 0x08, 0x53, 0x86, 0x16, 0x61, 0xd9, 0x37, 0x3d, 0x4c, 0x03, 0xd3, 0xc2, - 0x55, 0xb0, 0x0c, 0x6a, 0x65, 0x23, 0x1d, 0x40, 0x36, 0x8c, 0xbd, 0x88, 0xd7, 0x54, 0x4b, 0xcb, - 0xa0, 0x36, 0xb3, 0xb6, 0xa5, 0xa5, 0x96, 0x68, 0x3d, 0x4b, 0x44, 0x70, 0x33, 0xb6, 0x40, 0x0b, - 0xba, 0xb6, 0xc6, 0x91, 0xb4, 0xe4, 0xb9, 0x67, 0x89, 0x26, 0x03, 0xc8, 0xca, 0xea, 0x0e, 0x9c, - 0xdf, 0xc6, 0x6c, 0x00, 0x1f, 0x82, 0x93, 0x1c, 0x27, 0x41, 0x13, 0x71, 0x96, 0xb9, 0x94, 0x63, - 0x56, 0xef, 0x03, 0xb8, 0xd0, 0x72, 0xa8, 0x2c, 0x46, 0x47, 0xcb, 0x76, 0x0f, 0xce, 0xb8, 0x0e, - 0x65, 0xff, 0x05, 0xa2, 0x2e, 0x49, 0xb6, 0x4d, 0x2d, 0x36, 0x5d, 0x93, 0x4d, 0x4f, 0x33, 0xe4, - 0xa6, 0x6b, 0x51, 0x53, 0x6b, 0xa5, 0x0b, 0x0d, 0x59, 0x45, 0x7d, 0x0a, 0x60, 0x75, 0x13, 0xbb, - 0x78, 0xa0, 0xfb, 0x97, 0xce, 0x0e, 0x5d, 0x83, 0xb3, 0x6d, 0xa1, 0xd6, 0xa3, 0x9c, 0x10, 0x94, - 0xeb, 0xa3, 0x51, 0x6e, 0xca, 0x4b, 0x8d, 0xac, 0x92, 0xfa, 0x12, 0xc0, 0xea, 0x95, 0xa0, 0x6d, - 0x8e, 0x89, 0x34, 0x77, 0x76, 0x26, 0x3e, 0xdb, 0xd9, 0xf9, 0x00, 0xe0, 0x82, 0x5c, 0xec, 0x16, - 0xb1, 0x47, 0x2c, 0x78, 0x2f, 0xa9, 0x92, 0x94, 0x54, 0x0d, 0x7e, 0x2d, 0x89, 0xef, 0x9f, 0x04, - 0x31, 0x7a, 0xd9, 0xc8, 0x0f, 0x73, 0x6d, 0x31, 0xb4, 0xcb, 0x25, 0x26, 0x63, 0xed, 0x8b, 0x01, - 0xae, 0x6d, 0x87, 0x38, 0xa8, 0x4e, 0xc5, 0xda, 0x3c, 0x46, 0xdb, 0x70, 0x36, 0x20, 0xed, 0x16, - 0xb1, 0x7b, 0xc5, 0x9b, 0x16, 0xa6, 0xac, 0x48, 0xc5, 0xd3, 0xf8, 0xb7, 0xcf, 0x4b, 0xf5, 0xbf, - 0x3c, 0xd1, 0xc8, 0xae, 0x53, 0xcf, 0x4a, 0xf0, 0xcb, 0x16, 0xb1, 0xb7, 0x7c, 0x16, 0x9e, 0x0c, - 0xc9, 0x31, 0x9b, 0xcf, 0x6e, 0x9a, 0x6e, 0x7e, 0x78, 0x6c, 0x99, 0x7f, 0x03, 0xa7, 0x5c, 0x1c, - 0x61, 0x37, 0x49, 0x3d, 0x7e, 0x40, 0x7f, 0xc0, 0x49, 0xe6, 0x78, 0x38, 0x49, 0xb9, 0x3e, 0xda, - 0x79, 0xdd, 0x77, 0x3c, 0x6c, 0x88, 0x75, 0x68, 0x0e, 0x4e, 0x78, 0xd4, 0xae, 0x7e, 0x21, 0x34, - 0x79, 0xa8, 0xde, 0x03, 0x70, 0x5e, 0xaa, 0xfb, 0x55, 0x93, 0x59, 0x1d, 0xf1, 0xcc, 0xbd, 0x67, - 0x1c, 0x3f, 0x39, 0xac, 0x3c, 0x46, 0x37, 0xe0, 0x34, 0x39, 0x38, 0xc4, 0x16, 0x1b, 0x6f, 0x17, - 0x4b, 0x44, 0xd5, 0x45, 0xa8, 0x48, 0xc3, 0xf1, 0x77, 0xd6, 0x36, 0x30, 0x0d, 0x88, 0x4f, 0xf1, - 0xda, 0xe3, 0x32, 0x44, 0xd2, 0xeb, 0x3d, 0x1c, 0x46, 0x8e, 0x85, 0xd1, 0x0b, 0x00, 0x2b, 0x7d, - 0x9d, 0x19, 0x7d, 0xaf, 0xc9, 0x57, 0x52, 0x51, 0xe7, 0x56, 0xc6, 0x93, 0x80, 0xfa, 0xcb, 0xd9, - 0xdb, 0xf7, 0x0f, 0x4b, 0x3f, 0xa8, 0x2b, 0xe2, 0xe6, 0x89, 0x9a, 0xf1, 0x35, 0xd6, 0x88, 0x77, - 0xa7, 0xfa, 0x9d, 0x8b, 0x93, 0x74, 0xfa, 0x3b, 0xa8, 0xa3, 0x67, 0x00, 0x7e, 0x95, 0x6d, 0xd4, - 0x48, 0xcd, 0xe0, 0x0e, 0xec, 0xe2, 0xe3, 0x62, 0x5d, 0x15, 0xac, 0x75, 0x54, 0x1b, 0xca, 0x1a, - 0xc7, 0xa7, 0xe8, 0x11, 0x80, 0x95, 0xbe, 0xee, 0x9b, 0x73, 0xb8, 0xa8, 0x3b, 0x2b, 0x3f, 0x66, - 0xa6, 0x15, 0x97, 0xb7, 0xc7, 0x55, 0x1f, 0x9d, 0xeb, 0x15, 0x80, 0x95, 0xbe, 0x5e, 0x9b, 0xe3, - 0x2a, 0xea, 0xc5, 0xe3, 0x72, 0x73, 0x5d, 0x50, 0x37, 0x94, 0x91, 0xa9, 0xf9, 0x01, 0x78, 0x0e, - 0xe0, 0x5c, 0xfe, 0x76, 0x45, 0xdf, 0x65, 0xb8, 0x0b, 0x2e, 0x5f, 0x65, 0x67, 0x2c, 0xd8, 0x5c, - 0x5d, 0xfd, 0x49, 0xa0, 0x7f, 0x8b, 0x86, 0x1f, 0x5a, 0x74, 0x17, 0xc0, 0xb9, 0xfc, 0xed, 0x90, - 0x03, 0x2e, 0xb8, 0x3c, 0x94, 0xf9, 0x6c, 0x5a, 0x49, 0xbf, 0x55, 0x7f, 0x15, 0x9b, 0xeb, 0xa8, - 0xd1, 0xdb, 0x9c, 0xb2, 0x10, 0x9b, 0xde, 0x27, 0xec, 0x73, 0x89, 0x4d, 0x57, 0x01, 0x7a, 0x00, - 0x60, 0x25, 0xed, 0x52, 0x97, 0x33, 0x4f, 0x2d, 0x22, 0x4e, 0x05, 0xfb, 0x3f, 0x8f, 0x61, 0x60, - 0xab, 0xe0, 0xaf, 0x7f, 0x5f, 0x9f, 0x2f, 0x81, 0x37, 0xe7, 0x4b, 0xe0, 0xdd, 0xf9, 0x12, 0xb8, - 0xfe, 0x67, 0xe1, 0xcf, 0xee, 0x31, 0x09, 0xbb, 0xb7, 0x5c, 0x72, 0x4c, 0xf5, 0x68, 0x43, 0x2f, - 0xfc, 0x99, 0x3e, 0x98, 0x16, 0xbf, 0x9c, 0xeb, 0x1f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x20, 0x7b, - 0x71, 0x81, 0x70, 0x0b, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// EventSourceServiceClient is the client API for EventSourceService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type EventSourceServiceClient interface { - CreateEventSource(ctx context.Context, in *CreateEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) - GetEventSource(ctx context.Context, in *GetEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) - DeleteEventSource(ctx context.Context, in *DeleteEventSourceRequest, opts ...grpc.CallOption) (*EventSourceDeletedResponse, error) - UpdateEventSource(ctx context.Context, in *UpdateEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) - ListEventSources(ctx context.Context, in *ListEventSourcesRequest, opts ...grpc.CallOption) (*v1alpha1.EventSourceList, error) - EventSourcesLogs(ctx context.Context, in *EventSourcesLogsRequest, opts ...grpc.CallOption) (EventSourceService_EventSourcesLogsClient, error) - WatchEventSources(ctx context.Context, in *ListEventSourcesRequest, opts ...grpc.CallOption) (EventSourceService_WatchEventSourcesClient, error) -} - -type eventSourceServiceClient struct { - cc *grpc.ClientConn -} - -func NewEventSourceServiceClient(cc *grpc.ClientConn) EventSourceServiceClient { - return &eventSourceServiceClient{cc} -} - -func (c *eventSourceServiceClient) CreateEventSource(ctx context.Context, in *CreateEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) { - out := new(v1alpha1.EventSource) - err := c.cc.Invoke(ctx, "/eventsource.EventSourceService/CreateEventSource", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *eventSourceServiceClient) GetEventSource(ctx context.Context, in *GetEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) { - out := new(v1alpha1.EventSource) - err := c.cc.Invoke(ctx, "/eventsource.EventSourceService/GetEventSource", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *eventSourceServiceClient) DeleteEventSource(ctx context.Context, in *DeleteEventSourceRequest, opts ...grpc.CallOption) (*EventSourceDeletedResponse, error) { - out := new(EventSourceDeletedResponse) - err := c.cc.Invoke(ctx, "/eventsource.EventSourceService/DeleteEventSource", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *eventSourceServiceClient) UpdateEventSource(ctx context.Context, in *UpdateEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) { - out := new(v1alpha1.EventSource) - err := c.cc.Invoke(ctx, "/eventsource.EventSourceService/UpdateEventSource", in, out, opts...) - if err != nil { - return nil, err + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *eventSourceServiceClient) ListEventSources(ctx context.Context, in *ListEventSourcesRequest, opts ...grpc.CallOption) (*v1alpha1.EventSourceList, error) { - out := new(v1alpha1.EventSourceList) - err := c.cc.Invoke(ctx, "/eventsource.EventSourceService/ListEventSources", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *eventSourceServiceClient) EventSourcesLogs(ctx context.Context, in *EventSourcesLogsRequest, opts ...grpc.CallOption) (EventSourceService_EventSourcesLogsClient, error) { - stream, err := c.cc.NewStream(ctx, &_EventSourceService_serviceDesc.Streams[0], "/eventsource.EventSourceService/EventSourcesLogs", opts...) - if err != nil { - return nil, err - } - x := &eventSourceServiceEventSourcesLogsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type EventSourceService_EventSourcesLogsClient interface { - Recv() (*LogEntry, error) - grpc.ClientStream -} - -type eventSourceServiceEventSourcesLogsClient struct { - grpc.ClientStream +// Deprecated: Use DeleteEventSourceRequest.ProtoReflect.Descriptor instead. +func (*DeleteEventSourceRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP(), []int{3} } -func (x *eventSourceServiceEventSourcesLogsClient) Recv() (*LogEntry, error) { - m := new(LogEntry) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *DeleteEventSourceRequest) GetName() string { + if x != nil { + return x.Name } - return m, nil + return "" } -func (c *eventSourceServiceClient) WatchEventSources(ctx context.Context, in *ListEventSourcesRequest, opts ...grpc.CallOption) (EventSourceService_WatchEventSourcesClient, error) { - stream, err := c.cc.NewStream(ctx, &_EventSourceService_serviceDesc.Streams[1], "/eventsource.EventSourceService/WatchEventSources", opts...) - if err != nil { - return nil, err - } - x := &eventSourceServiceWatchEventSourcesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *DeleteEventSourceRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return x, nil -} - -type EventSourceService_WatchEventSourcesClient interface { - Recv() (*EventSourceWatchEvent, error) - grpc.ClientStream -} - -type eventSourceServiceWatchEventSourcesClient struct { - grpc.ClientStream + return "" } -func (x *eventSourceServiceWatchEventSourcesClient) Recv() (*EventSourceWatchEvent, error) { - m := new(EventSourceWatchEvent) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *DeleteEventSourceRequest) GetDeleteOptions() *v1.DeleteOptions { + if x != nil { + return x.DeleteOptions } - return m, nil -} - -// EventSourceServiceServer is the server API for EventSourceService service. -type EventSourceServiceServer interface { - CreateEventSource(context.Context, *CreateEventSourceRequest) (*v1alpha1.EventSource, error) - GetEventSource(context.Context, *GetEventSourceRequest) (*v1alpha1.EventSource, error) - DeleteEventSource(context.Context, *DeleteEventSourceRequest) (*EventSourceDeletedResponse, error) - UpdateEventSource(context.Context, *UpdateEventSourceRequest) (*v1alpha1.EventSource, error) - ListEventSources(context.Context, *ListEventSourcesRequest) (*v1alpha1.EventSourceList, error) - EventSourcesLogs(*EventSourcesLogsRequest, EventSourceService_EventSourcesLogsServer) error - WatchEventSources(*ListEventSourcesRequest, EventSourceService_WatchEventSourcesServer) error -} - -// UnimplementedEventSourceServiceServer can be embedded to have forward compatible implementations. -type UnimplementedEventSourceServiceServer struct { + return nil } -func (*UnimplementedEventSourceServiceServer) CreateEventSource(ctx context.Context, req *CreateEventSourceRequest) (*v1alpha1.EventSource, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateEventSource not implemented") -} -func (*UnimplementedEventSourceServiceServer) GetEventSource(ctx context.Context, req *GetEventSourceRequest) (*v1alpha1.EventSource, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetEventSource not implemented") -} -func (*UnimplementedEventSourceServiceServer) DeleteEventSource(ctx context.Context, req *DeleteEventSourceRequest) (*EventSourceDeletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteEventSource not implemented") -} -func (*UnimplementedEventSourceServiceServer) UpdateEventSource(ctx context.Context, req *UpdateEventSourceRequest) (*v1alpha1.EventSource, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateEventSource not implemented") -} -func (*UnimplementedEventSourceServiceServer) ListEventSources(ctx context.Context, req *ListEventSourcesRequest) (*v1alpha1.EventSourceList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEventSources not implemented") -} -func (*UnimplementedEventSourceServiceServer) EventSourcesLogs(req *EventSourcesLogsRequest, srv EventSourceService_EventSourcesLogsServer) error { - return status.Errorf(codes.Unimplemented, "method EventSourcesLogs not implemented") -} -func (*UnimplementedEventSourceServiceServer) WatchEventSources(req *ListEventSourcesRequest, srv EventSourceService_WatchEventSourcesServer) error { - return status.Errorf(codes.Unimplemented, "method WatchEventSources not implemented") +type UpdateEventSourceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + EventSource *v1alpha1.EventSource `protobuf:"bytes,3,opt,name=eventSource,proto3" json:"eventSource,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func RegisterEventSourceServiceServer(s *grpc.Server, srv EventSourceServiceServer) { - s.RegisterService(&_EventSourceService_serviceDesc, srv) +func (x *UpdateEventSourceRequest) Reset() { + *x = UpdateEventSourceRequest{} + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func _EventSourceService_CreateEventSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateEventSourceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EventSourceServiceServer).CreateEventSource(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/eventsource.EventSourceService/CreateEventSource", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EventSourceServiceServer).CreateEventSource(ctx, req.(*CreateEventSourceRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *UpdateEventSourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func _EventSourceService_GetEventSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetEventSourceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EventSourceServiceServer).GetEventSource(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/eventsource.EventSourceService/GetEventSource", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EventSourceServiceServer).GetEventSource(ctx, req.(*GetEventSourceRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*UpdateEventSourceRequest) ProtoMessage() {} -func _EventSourceService_DeleteEventSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteEventSourceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EventSourceServiceServer).DeleteEventSource(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/eventsource.EventSourceService/DeleteEventSource", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EventSourceServiceServer).DeleteEventSource(ctx, req.(*DeleteEventSourceRequest)) +func (x *UpdateEventSourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _EventSourceService_UpdateEventSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateEventSourceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EventSourceServiceServer).UpdateEventSource(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/eventsource.EventSourceService/UpdateEventSource", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EventSourceServiceServer).UpdateEventSource(ctx, req.(*UpdateEventSourceRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use UpdateEventSourceRequest.ProtoReflect.Descriptor instead. +func (*UpdateEventSourceRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP(), []int{4} } -func _EventSourceService_ListEventSources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEventSourcesRequest) - if err := dec(in); err != nil { - return nil, err +func (x *UpdateEventSourceRequest) GetName() string { + if x != nil { + return x.Name } - if interceptor == nil { - return srv.(EventSourceServiceServer).ListEventSources(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/eventsource.EventSourceService/ListEventSources", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EventSourceServiceServer).ListEventSources(ctx, req.(*ListEventSourcesRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _EventSourceService_EventSourcesLogs_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(EventSourcesLogsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *UpdateEventSourceRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return srv.(EventSourceServiceServer).EventSourcesLogs(m, &eventSourceServiceEventSourcesLogsServer{stream}) -} - -type EventSourceService_EventSourcesLogsServer interface { - Send(*LogEntry) error - grpc.ServerStream -} - -type eventSourceServiceEventSourcesLogsServer struct { - grpc.ServerStream -} - -func (x *eventSourceServiceEventSourcesLogsServer) Send(m *LogEntry) error { - return x.ServerStream.SendMsg(m) + return "" } -func _EventSourceService_WatchEventSources_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListEventSourcesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *UpdateEventSourceRequest) GetEventSource() *v1alpha1.EventSource { + if x != nil { + return x.EventSource } - return srv.(EventSourceServiceServer).WatchEventSources(m, &eventSourceServiceWatchEventSourcesServer{stream}) -} - -type EventSourceService_WatchEventSourcesServer interface { - Send(*EventSourceWatchEvent) error - grpc.ServerStream -} - -type eventSourceServiceWatchEventSourcesServer struct { - grpc.ServerStream + return nil } -func (x *eventSourceServiceWatchEventSourcesServer) Send(m *EventSourceWatchEvent) error { - return x.ServerStream.SendMsg(m) +type EventSourcesLogsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + // optional - only return entries for this event source + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // optional - only return entries for this event source type (e.g. `webhook`) + EventSourceType string `protobuf:"bytes,3,opt,name=eventSourceType,proto3" json:"eventSourceType,omitempty"` + // optional - only return entries for this event name (e.g. `example`) + EventName string `protobuf:"bytes,4,opt,name=eventName,proto3" json:"eventName,omitempty"` + // optional - only return entries where `msg` matches this regular expression + Grep string `protobuf:"bytes,5,opt,name=grep,proto3" json:"grep,omitempty"` + PodLogOptions *v11.PodLogOptions `protobuf:"bytes,6,opt,name=podLogOptions,proto3" json:"podLogOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var _EventSourceService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "eventsource.EventSourceService", - HandlerType: (*EventSourceServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateEventSource", - Handler: _EventSourceService_CreateEventSource_Handler, - }, - { - MethodName: "GetEventSource", - Handler: _EventSourceService_GetEventSource_Handler, - }, - { - MethodName: "DeleteEventSource", - Handler: _EventSourceService_DeleteEventSource_Handler, - }, - { - MethodName: "UpdateEventSource", - Handler: _EventSourceService_UpdateEventSource_Handler, - }, - { - MethodName: "ListEventSources", - Handler: _EventSourceService_ListEventSources_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "EventSourcesLogs", - Handler: _EventSourceService_EventSourcesLogs_Handler, - ServerStreams: true, - }, - { - StreamName: "WatchEventSources", - Handler: _EventSourceService_WatchEventSources_Handler, - ServerStreams: true, - }, - }, - Metadata: "pkg/apiclient/eventsource/eventsource.proto", +func (x *EventSourcesLogsRequest) Reset() { + *x = EventSourcesLogsRequest{} + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateEventSourceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *EventSourcesLogsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateEventSourceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*EventSourcesLogsRequest) ProtoMessage() {} -func (m *CreateEventSourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.EventSource != nil { - { - size, err := m.EventSource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEventsource(dAtA, i, uint64(size)) +func (x *EventSourcesLogsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 + return ms } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetEventSourceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetEventSourceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetEventSourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListEventSourcesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ListEventSourcesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use EventSourcesLogsRequest.ProtoReflect.Descriptor instead. +func (*EventSourcesLogsRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP(), []int{5} } -func (m *ListEventSourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEventsource(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa +func (x *EventSourcesLogsRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return len(dAtA) - i, nil + return "" } -func (m *DeleteEventSourceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *EventSourcesLogsRequest) GetName() string { + if x != nil { + return x.Name } - return dAtA[:n], nil -} - -func (m *DeleteEventSourceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *DeleteEventSourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.DeleteOptions != nil { - { - size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEventsource(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a +func (x *EventSourcesLogsRequest) GetEventSourceType() string { + if x != nil { + return x.EventSourceType } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *UpdateEventSourceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *EventSourcesLogsRequest) GetEventName() string { + if x != nil { + return x.EventName } - return dAtA[:n], nil -} - -func (m *UpdateEventSourceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *UpdateEventSourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.EventSource != nil { - { - size, err := m.EventSource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEventsource(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa +func (x *EventSourcesLogsRequest) GetGrep() string { + if x != nil { + return x.Grep } - return len(dAtA) - i, nil + return "" } -func (m *EventSourcesLogsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *EventSourcesLogsRequest) GetPodLogOptions() *v11.PodLogOptions { + if x != nil { + return x.PodLogOptions } - return dAtA[:n], nil + return nil } -func (m *EventSourcesLogsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// structured log entry +type LogEntry struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + EventSourceName string `protobuf:"bytes,2,opt,name=eventSourceName,proto3" json:"eventSourceName,omitempty"` + // optional - the event source type (e.g. `webhook`) + EventSourceType string `protobuf:"bytes,3,opt,name=eventSourceType,proto3" json:"eventSourceType,omitempty"` + // optional - the event name (e.g. `example`) + EventName string `protobuf:"bytes,4,opt,name=eventName,proto3" json:"eventName,omitempty"` + Level string `protobuf:"bytes,5,opt,name=level,proto3" json:"level,omitempty"` + Time *v1.Time `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` + Msg string `protobuf:"bytes,7,opt,name=msg,proto3" json:"msg,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EventSourcesLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PodLogOptions != nil { - { - size, err := m.PodLogOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEventsource(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.Grep) > 0 { - i -= len(m.Grep) - copy(dAtA[i:], m.Grep) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Grep))) - i-- - dAtA[i] = 0x2a - } - if len(m.EventName) > 0 { - i -= len(m.EventName) - copy(dAtA[i:], m.EventName) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.EventName))) - i-- - dAtA[i] = 0x22 - } - if len(m.EventSourceType) > 0 { - i -= len(m.EventSourceType) - copy(dAtA[i:], m.EventSourceType) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.EventSourceType))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *LogEntry) Reset() { + *x = LogEntry{} + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LogEntry) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *LogEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LogEntry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*LogEntry) ProtoMessage() {} -func (m *LogEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Msg))) - i-- - dAtA[i] = 0x3a - } - if m.Time != nil { - { - size, err := m.Time.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEventsource(dAtA, i, uint64(size)) +func (x *LogEntry) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x32 - } - if len(m.Level) > 0 { - i -= len(m.Level) - copy(dAtA[i:], m.Level) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Level))) - i-- - dAtA[i] = 0x2a - } - if len(m.EventName) > 0 { - i -= len(m.EventName) - copy(dAtA[i:], m.EventName) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.EventName))) - i-- - dAtA[i] = 0x22 + return ms } - if len(m.EventSourceType) > 0 { - i -= len(m.EventSourceType) - copy(dAtA[i:], m.EventSourceType) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.EventSourceType))) - i-- - dAtA[i] = 0x1a - } - if len(m.EventSourceName) > 0 { - i -= len(m.EventSourceName) - copy(dAtA[i:], m.EventSourceName) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.EventSourceName))) - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *EventSourceWatchEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventSourceWatchEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use LogEntry.ProtoReflect.Descriptor instead. +func (*LogEntry) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP(), []int{6} } -func (m *EventSourceWatchEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *LogEntry) GetNamespace() string { + if x != nil { + return x.Namespace } - if m.Object != nil { - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEventsource(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Type) > 0 { - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintEventsource(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *EventSourceDeletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *LogEntry) GetEventSourceName() string { + if x != nil { + return x.EventSourceName } - return dAtA[:n], nil -} - -func (m *EventSourceDeletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *EventSourceDeletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *LogEntry) GetEventSourceType() string { + if x != nil { + return x.EventSourceType } - return len(dAtA) - i, nil + return "" } -func encodeVarintEventsource(dAtA []byte, offset int, v uint64) int { - offset -= sovEventsource(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CreateEventSourceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) +func (x *LogEntry) GetEventName() string { + if x != nil { + return x.EventName } - if m.EventSource != nil { - l = m.EventSource.Size() - n += 1 + l + sovEventsource(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *GetEventSourceRequest) Size() (n int) { - if m == nil { - return 0 +func (x *LogEntry) GetLevel() string { + if x != nil { + return x.Level } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *ListEventSourcesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovEventsource(uint64(l)) +func (x *LogEntry) GetTime() *v1.Time { + if x != nil { + return x.Time } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return nil } -func (m *DeleteEventSourceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) +func (x *LogEntry) GetMsg() string { + if x != nil { + return x.Msg } - if m.DeleteOptions != nil { - l = m.DeleteOptions.Size() - n += 1 + l + sovEventsource(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *UpdateEventSourceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - if m.EventSource != nil { - l = m.EventSource.Size() - n += 1 + l + sovEventsource(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type EventSourceWatchEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Object *v1alpha1.EventSource `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EventSourcesLogsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.EventSourceType) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.EventName) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.Grep) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - if m.PodLogOptions != nil { - l = m.PodLogOptions.Size() - n += 1 + l + sovEventsource(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *EventSourceWatchEvent) Reset() { + *x = EventSourceWatchEvent{} + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LogEntry) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.EventSourceName) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.EventSourceType) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.EventName) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.Level) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - if m.Time != nil { - l = m.Time.Size() - n += 1 + l + sovEventsource(uint64(l)) - } - l = len(m.Msg) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *EventSourceWatchEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventSourceWatchEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovEventsource(uint64(l)) - } - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovEventsource(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*EventSourceWatchEvent) ProtoMessage() {} -func (m *EventSourceDeletedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovEventsource(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEventsource(x uint64) (n int) { - return sovEventsource(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *CreateEventSourceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateEventSourceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateEventSourceRequest: illegal tag %d (wire type %d)", fieldNum, wire) +func (x *EventSourceWatchEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EventSource == nil { - m.EventSource = &v1alpha1.EventSource{} - } - if err := m.EventSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEventsource(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEventsource - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func (m *GetEventSourceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetEventSourceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetEventSourceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEventsource(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEventsource - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use EventSourceWatchEvent.ProtoReflect.Descriptor instead. +func (*EventSourceWatchEvent) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP(), []int{7} } -func (m *ListEventSourcesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListEventSourcesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListEventSourcesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEventsource(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEventsource - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *EventSourceWatchEvent) GetType() string { + if x != nil { + return x.Type } - return nil + return "" } -func (m *DeleteEventSourceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteEventSourceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteEventSourceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteOptions == nil { - m.DeleteOptions = &v1.DeleteOptions{} - } - if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEventsource(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEventsource - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *EventSourceWatchEvent) GetObject() *v1alpha1.EventSource { + if x != nil { + return x.Object } return nil } -func (m *UpdateEventSourceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateEventSourceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateEventSourceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EventSource == nil { - m.EventSource = &v1alpha1.EventSource{} - } - if err := m.EventSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEventsource(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEventsource - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type EventSourceDeletedResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *EventSourcesLogsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventSourcesLogsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventSourcesLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventSourceType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EventSourceType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EventName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Grep", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Grep = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodLogOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodLogOptions == nil { - m.PodLogOptions = &v11.PodLogOptions{} - } - if err := m.PodLogOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEventsource(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEventsource - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *EventSourceDeletedResponse) Reset() { + *x = EventSourceDeletedResponse{} + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LogEntry) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LogEntry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LogEntry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventSourceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EventSourceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventSourceType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EventSourceType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EventName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Level = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Time == nil { - m.Time = &v1.Time{} - } - if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Msg = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEventsource(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEventsource - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *EventSourceDeletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventSourceWatchEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventSourceWatchEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventSourceWatchEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEventsource - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEventsource - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &v1alpha1.EventSource{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEventsource(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEventsource - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventSourceDeletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEventsource - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventSourceDeletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventSourceDeletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipEventsource(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEventsource - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*EventSourceDeletedResponse) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipEventsource(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEventsource - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEventsource - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEventsource - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthEventsource - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEventsource - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthEventsource - } - if depth == 0 { - return iNdEx, nil +func (x *EventSourceDeletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_eventsource_eventsource_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return 0, io.ErrUnexpectedEOF + return mi.MessageOf(x) } +// Deprecated: Use EventSourceDeletedResponse.ProtoReflect.Descriptor instead. +func (*EventSourceDeletedResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP(), []int{8} +} + +var File_pkg_apiclient_eventsource_eventsource_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_eventsource_eventsource_proto_rawDesc = "" + + "\n" + + "+pkg/apiclient/eventsource/eventsource.proto\x12\veventsource\x1aHgithub.com/argoproj/argo-events/pkg/apis/events/v1alpha1/generated.proto\x1a\x1cgoogle/api/annotations.proto\x1a\"k8s.io/api/core/v1/generated.proto\x1a4k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto\"\xa1\x01\n" + + "\x18CreateEventSourceRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12g\n" + + "\veventSource\x18\x02 \x01(\v2E.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceR\veventSource\"I\n" + + "\x15GetEventSourceRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\"\x8c\x01\n" + + "\x17ListEventSourcesRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12S\n" + + "\vlistOptions\x18\x02 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\"\xa7\x01\n" + + "\x18DeleteEventSourceRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12Y\n" + + "\rdeleteOptions\x18\x03 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptionsR\rdeleteOptions\"\xb5\x01\n" + + "\x18UpdateEventSourceRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12g\n" + + "\veventSource\x18\x03 \x01(\v2E.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceR\veventSource\"\xf0\x01\n" + + "\x17EventSourcesLogsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12(\n" + + "\x0feventSourceType\x18\x03 \x01(\tR\x0feventSourceType\x12\x1c\n" + + "\teventName\x18\x04 \x01(\tR\teventName\x12\x12\n" + + "\x04grep\x18\x05 \x01(\tR\x04grep\x12G\n" + + "\rpodLogOptions\x18\x06 \x01(\v2!.k8s.io.api.core.v1.PodLogOptionsR\rpodLogOptions\"\x82\x02\n" + + "\bLogEntry\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12(\n" + + "\x0feventSourceName\x18\x02 \x01(\tR\x0feventSourceName\x12(\n" + + "\x0feventSourceType\x18\x03 \x01(\tR\x0feventSourceType\x12\x1c\n" + + "\teventName\x18\x04 \x01(\tR\teventName\x12\x14\n" + + "\x05level\x18\x05 \x01(\tR\x05level\x12>\n" + + "\x04time\x18\x06 \x01(\v2*.k8s.io.apimachinery.pkg.apis.meta.v1.TimeR\x04time\x12\x10\n" + + "\x03msg\x18\a \x01(\tR\x03msg\"\x8a\x01\n" + + "\x15EventSourceWatchEvent\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12]\n" + + "\x06object\x18\x02 \x01(\v2E.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceR\x06object\"\x1c\n" + + "\x1aEventSourceDeletedResponse2\x97\t\n" + + "\x12EventSourceService\x12\xaf\x01\n" + + "\x11CreateEventSource\x12%.eventsource.CreateEventSourceRequest\x1aE.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource\",\x82\xd3\xe4\x93\x02&:\x01*\"!/api/v1/event-sources/{namespace}\x12\xad\x01\n" + + "\x0eGetEventSource\x12\".eventsource.GetEventSourceRequest\x1aE.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource\"0\x82\xd3\xe4\x93\x02*\x12(/api/v1/event-sources/{namespace}/{name}\x12\x95\x01\n" + + "\x11DeleteEventSource\x12%.eventsource.DeleteEventSourceRequest\x1a'.eventsource.EventSourceDeletedResponse\"0\x82\xd3\xe4\x93\x02**(/api/v1/event-sources/{namespace}/{name}\x12\xb6\x01\n" + + "\x11UpdateEventSource\x12%.eventsource.UpdateEventSourceRequest\x1aE.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource\"3\x82\xd3\xe4\x93\x02-:\x01*\x1a(/api/v1/event-sources/{namespace}/{name}\x12\xae\x01\n" + + "\x10ListEventSources\x12$.eventsource.ListEventSourcesRequest\x1aI.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceList\")\x82\xd3\xe4\x93\x02#\x12!/api/v1/event-sources/{namespace}\x12\x88\x01\n" + + "\x10EventSourcesLogs\x12$.eventsource.EventSourcesLogsRequest\x1a\x15.eventsource.LogEntry\"5\x82\xd3\xe4\x93\x02/\x12-/api/v1/stream/event-sources/{namespace}/logs0\x01\x12\x91\x01\n" + + "\x11WatchEventSources\x12$.eventsource.ListEventSourcesRequest\x1a\".eventsource.EventSourceWatchEvent\"0\x82\xd3\xe4\x93\x02*\x12(/api/v1/stream/event-sources/{namespace}0\x01BAZ?github.com/argoproj/argo-workflows/v4/pkg/apiclient/eventsourceb\x06proto3" + var ( - ErrInvalidLengthEventsource = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEventsource = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEventsource = fmt.Errorf("proto: unexpected end of group") + file_pkg_apiclient_eventsource_eventsource_proto_rawDescOnce sync.Once + file_pkg_apiclient_eventsource_eventsource_proto_rawDescData []byte ) + +func file_pkg_apiclient_eventsource_eventsource_proto_rawDescGZIP() []byte { + file_pkg_apiclient_eventsource_eventsource_proto_rawDescOnce.Do(func() { + file_pkg_apiclient_eventsource_eventsource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_apiclient_eventsource_eventsource_proto_rawDesc), len(file_pkg_apiclient_eventsource_eventsource_proto_rawDesc))) + }) + return file_pkg_apiclient_eventsource_eventsource_proto_rawDescData +} + +var file_pkg_apiclient_eventsource_eventsource_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_pkg_apiclient_eventsource_eventsource_proto_goTypes = []any{ + (*CreateEventSourceRequest)(nil), // 0: eventsource.CreateEventSourceRequest + (*GetEventSourceRequest)(nil), // 1: eventsource.GetEventSourceRequest + (*ListEventSourcesRequest)(nil), // 2: eventsource.ListEventSourcesRequest + (*DeleteEventSourceRequest)(nil), // 3: eventsource.DeleteEventSourceRequest + (*UpdateEventSourceRequest)(nil), // 4: eventsource.UpdateEventSourceRequest + (*EventSourcesLogsRequest)(nil), // 5: eventsource.EventSourcesLogsRequest + (*LogEntry)(nil), // 6: eventsource.LogEntry + (*EventSourceWatchEvent)(nil), // 7: eventsource.EventSourceWatchEvent + (*EventSourceDeletedResponse)(nil), // 8: eventsource.EventSourceDeletedResponse + (*v1alpha1.EventSource)(nil), // 9: github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource + (*v1.ListOptions)(nil), // 10: k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + (*v1.DeleteOptions)(nil), // 11: k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + (*v11.PodLogOptions)(nil), // 12: k8s.io.api.core.v1.PodLogOptions + (*v1.Time)(nil), // 13: k8s.io.apimachinery.pkg.apis.meta.v1.Time + (*v1alpha1.EventSourceList)(nil), // 14: github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceList +} +var file_pkg_apiclient_eventsource_eventsource_proto_depIdxs = []int32{ + 9, // 0: eventsource.CreateEventSourceRequest.eventSource:type_name -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource + 10, // 1: eventsource.ListEventSourcesRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 11, // 2: eventsource.DeleteEventSourceRequest.deleteOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + 9, // 3: eventsource.UpdateEventSourceRequest.eventSource:type_name -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource + 12, // 4: eventsource.EventSourcesLogsRequest.podLogOptions:type_name -> k8s.io.api.core.v1.PodLogOptions + 13, // 5: eventsource.LogEntry.time:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.Time + 9, // 6: eventsource.EventSourceWatchEvent.object:type_name -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource + 0, // 7: eventsource.EventSourceService.CreateEventSource:input_type -> eventsource.CreateEventSourceRequest + 1, // 8: eventsource.EventSourceService.GetEventSource:input_type -> eventsource.GetEventSourceRequest + 3, // 9: eventsource.EventSourceService.DeleteEventSource:input_type -> eventsource.DeleteEventSourceRequest + 4, // 10: eventsource.EventSourceService.UpdateEventSource:input_type -> eventsource.UpdateEventSourceRequest + 2, // 11: eventsource.EventSourceService.ListEventSources:input_type -> eventsource.ListEventSourcesRequest + 5, // 12: eventsource.EventSourceService.EventSourcesLogs:input_type -> eventsource.EventSourcesLogsRequest + 2, // 13: eventsource.EventSourceService.WatchEventSources:input_type -> eventsource.ListEventSourcesRequest + 9, // 14: eventsource.EventSourceService.CreateEventSource:output_type -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource + 9, // 15: eventsource.EventSourceService.GetEventSource:output_type -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource + 8, // 16: eventsource.EventSourceService.DeleteEventSource:output_type -> eventsource.EventSourceDeletedResponse + 9, // 17: eventsource.EventSourceService.UpdateEventSource:output_type -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSource + 14, // 18: eventsource.EventSourceService.ListEventSources:output_type -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceList + 6, // 19: eventsource.EventSourceService.EventSourcesLogs:output_type -> eventsource.LogEntry + 7, // 20: eventsource.EventSourceService.WatchEventSources:output_type -> eventsource.EventSourceWatchEvent + 14, // [14:21] is the sub-list for method output_type + 7, // [7:14] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_eventsource_eventsource_proto_init() } +func file_pkg_apiclient_eventsource_eventsource_proto_init() { + if File_pkg_apiclient_eventsource_eventsource_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_eventsource_eventsource_proto_rawDesc), len(file_pkg_apiclient_eventsource_eventsource_proto_rawDesc)), + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_eventsource_eventsource_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_eventsource_eventsource_proto_depIdxs, + MessageInfos: file_pkg_apiclient_eventsource_eventsource_proto_msgTypes, + }.Build() + File_pkg_apiclient_eventsource_eventsource_proto = out.File + file_pkg_apiclient_eventsource_eventsource_proto_goTypes = nil + file_pkg_apiclient_eventsource_eventsource_proto_depIdxs = nil +} diff --git a/pkg/apiclient/eventsource/eventsource.pb.gw.go b/pkg/apiclient/eventsource/eventsource.pb.gw.go index eedec46cbf26..c50fc4ddf0e6 100644 --- a/pkg/apiclient/eventsource/eventsource.pb.gw.go +++ b/pkg/apiclient/eventsource/eventsource.pb.gw.go @@ -10,466 +10,340 @@ package eventsource import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_EventSourceService_CreateEventSource_0(ctx context.Context, marshaler runtime.Marshaler, client EventSourceServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateEventSourceRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CreateEventSourceRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.CreateEventSource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_EventSourceService_CreateEventSource_0(ctx context.Context, marshaler runtime.Marshaler, server EventSourceServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateEventSourceRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CreateEventSourceRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.CreateEventSource(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_EventSourceService_GetEventSource_0(ctx context.Context, marshaler runtime.Marshaler, client EventSourceServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetEventSourceRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetEventSourceRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.GetEventSource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_EventSourceService_GetEventSource_0(ctx context.Context, marshaler runtime.Marshaler, server EventSourceServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetEventSourceRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetEventSourceRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.GetEventSource(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_EventSourceService_DeleteEventSource_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_EventSourceService_DeleteEventSource_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_EventSourceService_DeleteEventSource_0(ctx context.Context, marshaler runtime.Marshaler, client EventSourceServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteEventSourceRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteEventSourceRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_EventSourceService_DeleteEventSource_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteEventSource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_EventSourceService_DeleteEventSource_0(ctx context.Context, marshaler runtime.Marshaler, server EventSourceServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteEventSourceRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteEventSourceRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_EventSourceService_DeleteEventSource_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteEventSource(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_EventSourceService_UpdateEventSource_0(ctx context.Context, marshaler runtime.Marshaler, client EventSourceServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateEventSourceRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq UpdateEventSourceRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.UpdateEventSource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_EventSourceService_UpdateEventSource_0(ctx context.Context, marshaler runtime.Marshaler, server EventSourceServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateEventSourceRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq UpdateEventSourceRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.UpdateEventSource(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_EventSourceService_ListEventSources_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_EventSourceService_ListEventSources_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_EventSourceService_ListEventSources_0(ctx context.Context, marshaler runtime.Marshaler, client EventSourceServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListEventSourcesRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ListEventSourcesRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_EventSourceService_ListEventSources_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListEventSources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_EventSourceService_ListEventSources_0(ctx context.Context, marshaler runtime.Marshaler, server EventSourceServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListEventSourcesRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ListEventSourcesRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_EventSourceService_ListEventSources_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListEventSources(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_EventSourceService_EventSourcesLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_EventSourceService_EventSourcesLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_EventSourceService_EventSourcesLogs_0(ctx context.Context, marshaler runtime.Marshaler, client EventSourceServiceClient, req *http.Request, pathParams map[string]string) (EventSourceService_EventSourcesLogsClient, runtime.ServerMetadata, error) { - var protoReq EventSourcesLogsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq EventSourcesLogsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_EventSourceService_EventSourcesLogs_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - stream, err := client.EventSourcesLogs(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -480,42 +354,33 @@ func request_EventSourceService_EventSourcesLogs_0(ctx context.Context, marshale } metadata.HeaderMD = header return stream, metadata, nil - } -var ( - filter_EventSourceService_WatchEventSources_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_EventSourceService_WatchEventSources_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_EventSourceService_WatchEventSources_0(ctx context.Context, marshaler runtime.Marshaler, client EventSourceServiceClient, req *http.Request, pathParams map[string]string) (EventSourceService_WatchEventSourcesClient, runtime.ServerMetadata, error) { - var protoReq ListEventSourcesRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ListEventSourcesRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_EventSourceService_WatchEventSources_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - stream, err := client.WatchEventSources(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -526,138 +391,123 @@ func request_EventSourceService_WatchEventSources_0(ctx context.Context, marshal } metadata.HeaderMD = header return stream, metadata, nil - } // RegisterEventSourceServiceHandlerServer registers the http handlers for service EventSourceService to "mux". // UnaryRPC :call EventSourceServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventSourceServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterEventSourceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventSourceServiceServer) error { - - mux.Handle("POST", pattern_EventSourceService_CreateEventSource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_EventSourceService_CreateEventSource_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/eventsource.EventSourceService/CreateEventSource", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_EventSourceService_CreateEventSource_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_EventSourceService_CreateEventSource_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_CreateEventSource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_CreateEventSource_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_EventSourceService_GetEventSource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventSourceService_GetEventSource_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/eventsource.EventSourceService/GetEventSource", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_EventSourceService_GetEventSource_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_EventSourceService_GetEventSource_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_GetEventSource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_GetEventSource_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_EventSourceService_DeleteEventSource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_EventSourceService_DeleteEventSource_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/eventsource.EventSourceService/DeleteEventSource", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_EventSourceService_DeleteEventSource_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_EventSourceService_DeleteEventSource_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_DeleteEventSource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_DeleteEventSource_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_EventSourceService_UpdateEventSource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_EventSourceService_UpdateEventSource_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/eventsource.EventSourceService/UpdateEventSource", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_EventSourceService_UpdateEventSource_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_EventSourceService_UpdateEventSource_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_UpdateEventSource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_UpdateEventSource_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_EventSourceService_ListEventSources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventSourceService_ListEventSources_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/eventsource.EventSourceService/ListEventSources", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_EventSourceService_ListEventSources_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_EventSourceService_ListEventSources_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_ListEventSources_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_ListEventSources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_EventSourceService_EventSourcesLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventSourceService_EventSourcesLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - mux.Handle("GET", pattern_EventSourceService_WatchEventSources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventSourceService_WatchEventSources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -670,25 +520,24 @@ func RegisterEventSourceServiceHandlerServer(ctx context.Context, mux *runtime.S // RegisterEventSourceServiceHandlerFromEndpoint is same as RegisterEventSourceServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterEventSourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterEventSourceServiceHandler(ctx, mux, conn) } @@ -702,180 +551,146 @@ func RegisterEventSourceServiceHandler(ctx context.Context, mux *runtime.ServeMu // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventSourceServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventSourceServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "EventSourceServiceClient" to call the correct interceptors. +// "EventSourceServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterEventSourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventSourceServiceClient) error { - - mux.Handle("POST", pattern_EventSourceService_CreateEventSource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_EventSourceService_CreateEventSource_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/eventsource.EventSourceService/CreateEventSource", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EventSourceService_CreateEventSource_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_EventSourceService_CreateEventSource_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_CreateEventSource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_CreateEventSource_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_EventSourceService_GetEventSource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventSourceService_GetEventSource_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/eventsource.EventSourceService/GetEventSource", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EventSourceService_GetEventSource_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_EventSourceService_GetEventSource_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_GetEventSource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_GetEventSource_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_EventSourceService_DeleteEventSource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_EventSourceService_DeleteEventSource_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/eventsource.EventSourceService/DeleteEventSource", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EventSourceService_DeleteEventSource_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_EventSourceService_DeleteEventSource_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_DeleteEventSource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_DeleteEventSource_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_EventSourceService_UpdateEventSource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_EventSourceService_UpdateEventSource_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/eventsource.EventSourceService/UpdateEventSource", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EventSourceService_UpdateEventSource_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_EventSourceService_UpdateEventSource_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_UpdateEventSource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_UpdateEventSource_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_EventSourceService_ListEventSources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventSourceService_ListEventSources_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/eventsource.EventSourceService/ListEventSources", runtime.WithHTTPPathPattern("/api/v1/event-sources/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EventSourceService_ListEventSources_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_EventSourceService_ListEventSources_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_ListEventSources_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_ListEventSources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_EventSourceService_EventSourcesLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventSourceService_EventSourcesLogs_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/eventsource.EventSourceService/EventSourcesLogs", runtime.WithHTTPPathPattern("/api/v1/stream/event-sources/{namespace}/logs")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EventSourceService_EventSourcesLogs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_EventSourceService_EventSourcesLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_EventSourcesLogs_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_EventSourcesLogs_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_EventSourceService_WatchEventSources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_EventSourceService_WatchEventSources_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/eventsource.EventSourceService/WatchEventSources", runtime.WithHTTPPathPattern("/api/v1/stream/event-sources/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_EventSourceService_WatchEventSources_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_EventSourceService_WatchEventSources_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_EventSourceService_WatchEventSources_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - + forward_EventSourceService_WatchEventSources_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_EventSourceService_CreateEventSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "event-sources", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_EventSourceService_GetEventSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "event-sources", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_EventSourceService_DeleteEventSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "event-sources", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_EventSourceService_UpdateEventSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "event-sources", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_EventSourceService_ListEventSources_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "event-sources", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_EventSourceService_EventSourcesLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "stream", "event-sources", "namespace", "logs"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_EventSourceService_WatchEventSources_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "stream", "event-sources", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_EventSourceService_CreateEventSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "event-sources", "namespace"}, "")) + pattern_EventSourceService_GetEventSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "event-sources", "namespace", "name"}, "")) + pattern_EventSourceService_DeleteEventSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "event-sources", "namespace", "name"}, "")) + pattern_EventSourceService_UpdateEventSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "event-sources", "namespace", "name"}, "")) + pattern_EventSourceService_ListEventSources_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "event-sources", "namespace"}, "")) + pattern_EventSourceService_EventSourcesLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "stream", "event-sources", "namespace", "logs"}, "")) + pattern_EventSourceService_WatchEventSources_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "stream", "event-sources", "namespace"}, "")) ) var ( forward_EventSourceService_CreateEventSource_0 = runtime.ForwardResponseMessage - - forward_EventSourceService_GetEventSource_0 = runtime.ForwardResponseMessage - + forward_EventSourceService_GetEventSource_0 = runtime.ForwardResponseMessage forward_EventSourceService_DeleteEventSource_0 = runtime.ForwardResponseMessage - forward_EventSourceService_UpdateEventSource_0 = runtime.ForwardResponseMessage - - forward_EventSourceService_ListEventSources_0 = runtime.ForwardResponseMessage - - forward_EventSourceService_EventSourcesLogs_0 = runtime.ForwardResponseStream - + forward_EventSourceService_ListEventSources_0 = runtime.ForwardResponseMessage + forward_EventSourceService_EventSourcesLogs_0 = runtime.ForwardResponseStream forward_EventSourceService_WatchEventSources_0 = runtime.ForwardResponseStream ) diff --git a/pkg/apiclient/eventsource/eventsource_grpc.pb.go b/pkg/apiclient/eventsource/eventsource_grpc.pb.go new file mode 100644 index 000000000000..de515c7cf778 --- /dev/null +++ b/pkg/apiclient/eventsource/eventsource_grpc.pb.go @@ -0,0 +1,355 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/eventsource/eventsource.proto + +package eventsource + +import ( + context "context" + v1alpha1 "github.com/argoproj/argo-events/pkg/apis/events/v1alpha1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + EventSourceService_CreateEventSource_FullMethodName = "/eventsource.EventSourceService/CreateEventSource" + EventSourceService_GetEventSource_FullMethodName = "/eventsource.EventSourceService/GetEventSource" + EventSourceService_DeleteEventSource_FullMethodName = "/eventsource.EventSourceService/DeleteEventSource" + EventSourceService_UpdateEventSource_FullMethodName = "/eventsource.EventSourceService/UpdateEventSource" + EventSourceService_ListEventSources_FullMethodName = "/eventsource.EventSourceService/ListEventSources" + EventSourceService_EventSourcesLogs_FullMethodName = "/eventsource.EventSourceService/EventSourcesLogs" + EventSourceService_WatchEventSources_FullMethodName = "/eventsource.EventSourceService/WatchEventSources" +) + +// EventSourceServiceClient is the client API for EventSourceService 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 EventSourceServiceClient interface { + CreateEventSource(ctx context.Context, in *CreateEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) + GetEventSource(ctx context.Context, in *GetEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) + DeleteEventSource(ctx context.Context, in *DeleteEventSourceRequest, opts ...grpc.CallOption) (*EventSourceDeletedResponse, error) + UpdateEventSource(ctx context.Context, in *UpdateEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) + ListEventSources(ctx context.Context, in *ListEventSourcesRequest, opts ...grpc.CallOption) (*v1alpha1.EventSourceList, error) + EventSourcesLogs(ctx context.Context, in *EventSourcesLogsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogEntry], error) + WatchEventSources(ctx context.Context, in *ListEventSourcesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventSourceWatchEvent], error) +} + +type eventSourceServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewEventSourceServiceClient(cc grpc.ClientConnInterface) EventSourceServiceClient { + return &eventSourceServiceClient{cc} +} + +func (c *eventSourceServiceClient) CreateEventSource(ctx context.Context, in *CreateEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.EventSource) + err := c.cc.Invoke(ctx, EventSourceService_CreateEventSource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *eventSourceServiceClient) GetEventSource(ctx context.Context, in *GetEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.EventSource) + err := c.cc.Invoke(ctx, EventSourceService_GetEventSource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *eventSourceServiceClient) DeleteEventSource(ctx context.Context, in *DeleteEventSourceRequest, opts ...grpc.CallOption) (*EventSourceDeletedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(EventSourceDeletedResponse) + err := c.cc.Invoke(ctx, EventSourceService_DeleteEventSource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *eventSourceServiceClient) UpdateEventSource(ctx context.Context, in *UpdateEventSourceRequest, opts ...grpc.CallOption) (*v1alpha1.EventSource, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.EventSource) + err := c.cc.Invoke(ctx, EventSourceService_UpdateEventSource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *eventSourceServiceClient) ListEventSources(ctx context.Context, in *ListEventSourcesRequest, opts ...grpc.CallOption) (*v1alpha1.EventSourceList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.EventSourceList) + err := c.cc.Invoke(ctx, EventSourceService_ListEventSources_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *eventSourceServiceClient) EventSourcesLogs(ctx context.Context, in *EventSourcesLogsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogEntry], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &EventSourceService_ServiceDesc.Streams[0], EventSourceService_EventSourcesLogs_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[EventSourcesLogsRequest, LogEntry]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type EventSourceService_EventSourcesLogsClient = grpc.ServerStreamingClient[LogEntry] + +func (c *eventSourceServiceClient) WatchEventSources(ctx context.Context, in *ListEventSourcesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventSourceWatchEvent], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &EventSourceService_ServiceDesc.Streams[1], EventSourceService_WatchEventSources_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[ListEventSourcesRequest, EventSourceWatchEvent]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type EventSourceService_WatchEventSourcesClient = grpc.ServerStreamingClient[EventSourceWatchEvent] + +// EventSourceServiceServer is the server API for EventSourceService service. +// All implementations should embed UnimplementedEventSourceServiceServer +// for forward compatibility. +type EventSourceServiceServer interface { + CreateEventSource(context.Context, *CreateEventSourceRequest) (*v1alpha1.EventSource, error) + GetEventSource(context.Context, *GetEventSourceRequest) (*v1alpha1.EventSource, error) + DeleteEventSource(context.Context, *DeleteEventSourceRequest) (*EventSourceDeletedResponse, error) + UpdateEventSource(context.Context, *UpdateEventSourceRequest) (*v1alpha1.EventSource, error) + ListEventSources(context.Context, *ListEventSourcesRequest) (*v1alpha1.EventSourceList, error) + EventSourcesLogs(*EventSourcesLogsRequest, grpc.ServerStreamingServer[LogEntry]) error + WatchEventSources(*ListEventSourcesRequest, grpc.ServerStreamingServer[EventSourceWatchEvent]) error +} + +// UnimplementedEventSourceServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEventSourceServiceServer struct{} + +func (UnimplementedEventSourceServiceServer) CreateEventSource(context.Context, *CreateEventSourceRequest) (*v1alpha1.EventSource, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateEventSource not implemented") +} +func (UnimplementedEventSourceServiceServer) GetEventSource(context.Context, *GetEventSourceRequest) (*v1alpha1.EventSource, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetEventSource not implemented") +} +func (UnimplementedEventSourceServiceServer) DeleteEventSource(context.Context, *DeleteEventSourceRequest) (*EventSourceDeletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteEventSource not implemented") +} +func (UnimplementedEventSourceServiceServer) UpdateEventSource(context.Context, *UpdateEventSourceRequest) (*v1alpha1.EventSource, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateEventSource not implemented") +} +func (UnimplementedEventSourceServiceServer) ListEventSources(context.Context, *ListEventSourcesRequest) (*v1alpha1.EventSourceList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListEventSources not implemented") +} +func (UnimplementedEventSourceServiceServer) EventSourcesLogs(*EventSourcesLogsRequest, grpc.ServerStreamingServer[LogEntry]) error { + return status.Errorf(codes.Unimplemented, "method EventSourcesLogs not implemented") +} +func (UnimplementedEventSourceServiceServer) WatchEventSources(*ListEventSourcesRequest, grpc.ServerStreamingServer[EventSourceWatchEvent]) error { + return status.Errorf(codes.Unimplemented, "method WatchEventSources not implemented") +} +func (UnimplementedEventSourceServiceServer) testEmbeddedByValue() {} + +// UnsafeEventSourceServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to EventSourceServiceServer will +// result in compilation errors. +type UnsafeEventSourceServiceServer interface { + mustEmbedUnimplementedEventSourceServiceServer() +} + +func RegisterEventSourceServiceServer(s grpc.ServiceRegistrar, srv EventSourceServiceServer) { + // If the following call pancis, it indicates UnimplementedEventSourceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&EventSourceService_ServiceDesc, srv) +} + +func _EventSourceService_CreateEventSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateEventSourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EventSourceServiceServer).CreateEventSource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EventSourceService_CreateEventSource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EventSourceServiceServer).CreateEventSource(ctx, req.(*CreateEventSourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _EventSourceService_GetEventSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetEventSourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EventSourceServiceServer).GetEventSource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EventSourceService_GetEventSource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EventSourceServiceServer).GetEventSource(ctx, req.(*GetEventSourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _EventSourceService_DeleteEventSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteEventSourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EventSourceServiceServer).DeleteEventSource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EventSourceService_DeleteEventSource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EventSourceServiceServer).DeleteEventSource(ctx, req.(*DeleteEventSourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _EventSourceService_UpdateEventSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateEventSourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EventSourceServiceServer).UpdateEventSource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EventSourceService_UpdateEventSource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EventSourceServiceServer).UpdateEventSource(ctx, req.(*UpdateEventSourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _EventSourceService_ListEventSources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListEventSourcesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EventSourceServiceServer).ListEventSources(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EventSourceService_ListEventSources_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EventSourceServiceServer).ListEventSources(ctx, req.(*ListEventSourcesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _EventSourceService_EventSourcesLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(EventSourcesLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(EventSourceServiceServer).EventSourcesLogs(m, &grpc.GenericServerStream[EventSourcesLogsRequest, LogEntry]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type EventSourceService_EventSourcesLogsServer = grpc.ServerStreamingServer[LogEntry] + +func _EventSourceService_WatchEventSources_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListEventSourcesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(EventSourceServiceServer).WatchEventSources(m, &grpc.GenericServerStream[ListEventSourcesRequest, EventSourceWatchEvent]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type EventSourceService_WatchEventSourcesServer = grpc.ServerStreamingServer[EventSourceWatchEvent] + +// EventSourceService_ServiceDesc is the grpc.ServiceDesc for EventSourceService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var EventSourceService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "eventsource.EventSourceService", + HandlerType: (*EventSourceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateEventSource", + Handler: _EventSourceService_CreateEventSource_Handler, + }, + { + MethodName: "GetEventSource", + Handler: _EventSourceService_GetEventSource_Handler, + }, + { + MethodName: "DeleteEventSource", + Handler: _EventSourceService_DeleteEventSource_Handler, + }, + { + MethodName: "UpdateEventSource", + Handler: _EventSourceService_UpdateEventSource_Handler, + }, + { + MethodName: "ListEventSources", + Handler: _EventSourceService_ListEventSources_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "EventSourcesLogs", + Handler: _EventSourceService_EventSourcesLogs_Handler, + ServerStreams: true, + }, + { + StreamName: "WatchEventSources", + Handler: _EventSourceService_WatchEventSources_Handler, + ServerStreams: true, + }, + }, + Metadata: "pkg/apiclient/eventsource/eventsource.proto", +} diff --git a/pkg/apiclient/eventsource/forwarder_overwrite.go b/pkg/apiclient/eventsource/forwarder_overwrite.go index 107af0fde858..77a8b49911ab 100644 --- a/pkg/apiclient/eventsource/forwarder_overwrite.go +++ b/pkg/apiclient/eventsource/forwarder_overwrite.go @@ -1,10 +1,10 @@ package eventsource import ( - "github.com/argoproj/pkg/grpc/http" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" ) func init() { - forward_EventSourceService_EventSourcesLogs_0 = http.StreamForwarder - forward_EventSourceService_WatchEventSources_0 = http.StreamForwarder + forward_EventSourceService_EventSourcesLogs_0 = gateway.StreamForwarder + forward_EventSourceService_WatchEventSources_0 = gateway.StreamForwarder } diff --git a/pkg/apiclient/http1/event-watch-client.go b/pkg/apiclient/http1/event-watch-client.go index 3966948b607d..07a5b5bb81e5 100644 --- a/pkg/apiclient/http1/event-watch-client.go +++ b/pkg/apiclient/http1/event-watch-client.go @@ -1,12 +1,12 @@ package http1 import ( - corev1 "k8s.io/api/core/v1" + workflowpkg "github.com/argoproj/argo-workflows/v4/pkg/apiclient/workflow" ) type eventWatchClient struct{ serverSentEventsClient } -func (f eventWatchClient) Recv() (*corev1.Event, error) { - v := &corev1.Event{} +func (f eventWatchClient) Recv() (*workflowpkg.EventWatchEvent, error) { + v := &workflowpkg.EventWatchEvent{} return v, f.RecvEvent(v) } diff --git a/pkg/apiclient/info/info.pb.go b/pkg/apiclient/info/info.pb.go index 5297b0e29f39..1bb0c4fdaff1 100644 --- a/pkg/apiclient/info/info.pb.go +++ b/pkg/apiclient/info/info.pb.go @@ -1,2115 +1,494 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/info/info.proto package info import ( - context "context" - fmt "fmt" v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type GetInfoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *GetInfoRequest) Reset() { *m = GetInfoRequest{} } -func (m *GetInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetInfoRequest) ProtoMessage() {} -func (*GetInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_96940c93018255fa, []int{0} -} -func (m *GetInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetInfoRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetInfoRequest.Merge(m, src) -} -func (m *GetInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *GetInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetInfoRequest.DiscardUnknown(m) +func (x *GetInfoRequest) Reset() { + *x = GetInfoRequest{} + mi := &file_pkg_apiclient_info_info_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -var xxx_messageInfo_GetInfoRequest proto.InternalMessageInfo - -type InfoResponse struct { - ManagedNamespace string `protobuf:"bytes,1,opt,name=managedNamespace,proto3" json:"managedNamespace,omitempty"` - Links []*v1alpha1.Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"` - // which modals to show - Modals map[string]bool `protobuf:"bytes,3,rep,name=modals,proto3" json:"modals,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - NavColor string `protobuf:"bytes,4,opt,name=navColor,proto3" json:"navColor,omitempty"` - Columns []*v1alpha1.Column `protobuf:"bytes,5,rep,name=columns,proto3" json:"columns,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GetInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InfoResponse) Reset() { *m = InfoResponse{} } -func (m *InfoResponse) String() string { return proto.CompactTextString(m) } -func (*InfoResponse) ProtoMessage() {} -func (*InfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_96940c93018255fa, []int{1} -} -func (m *InfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InfoResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InfoResponse.Merge(m, src) -} -func (m *InfoResponse) XXX_Size() int { - return m.Size() -} -func (m *InfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_InfoResponse proto.InternalMessageInfo - -func (m *InfoResponse) GetManagedNamespace() string { - if m != nil { - return m.ManagedNamespace - } - return "" -} - -func (m *InfoResponse) GetLinks() []*v1alpha1.Link { - if m != nil { - return m.Links - } - return nil -} - -func (m *InfoResponse) GetModals() map[string]bool { - if m != nil { - return m.Modals - } - return nil -} - -func (m *InfoResponse) GetNavColor() string { - if m != nil { - return m.NavColor - } - return "" -} +func (*GetInfoRequest) ProtoMessage() {} -func (m *InfoResponse) GetColumns() []*v1alpha1.Column { - if m != nil { - return m.Columns +func (x *GetInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_info_info_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type GetVersionRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead. +func (*GetInfoRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_info_info_proto_rawDescGZIP(), []int{0} } -func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} } -func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) } -func (*GetVersionRequest) ProtoMessage() {} -func (*GetVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_96940c93018255fa, []int{2} -} -func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetVersionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetVersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetVersionRequest.Merge(m, src) -} -func (m *GetVersionRequest) XXX_Size() int { - return m.Size() -} -func (m *GetVersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetVersionRequest.DiscardUnknown(m) +type InfoResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ManagedNamespace string `protobuf:"bytes,1,opt,name=managedNamespace,proto3" json:"managedNamespace,omitempty"` + Links []*v1alpha1.Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"` + // which modals to show + Modals map[string]bool `protobuf:"bytes,3,rep,name=modals,proto3" json:"modals,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` + NavColor string `protobuf:"bytes,4,opt,name=navColor,proto3" json:"navColor,omitempty"` + Columns []*v1alpha1.Column `protobuf:"bytes,5,rep,name=columns,proto3" json:"columns,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_GetVersionRequest proto.InternalMessageInfo - -type GetUserInfoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *InfoResponse) Reset() { + *x = InfoResponse{} + mi := &file_pkg_apiclient_info_info_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *GetUserInfoRequest) Reset() { *m = GetUserInfoRequest{} } -func (m *GetUserInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetUserInfoRequest) ProtoMessage() {} -func (*GetUserInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_96940c93018255fa, []int{3} -} -func (m *GetUserInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +func (x *InfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetUserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetUserInfoRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetUserInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserInfoRequest.Merge(m, src) -} -func (m *GetUserInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *GetUserInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetUserInfoRequest proto.InternalMessageInfo -type GetUserInfoResponse struct { - Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` - Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` - Groups []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"` - Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` - EmailVerified bool `protobuf:"varint,5,opt,name=emailVerified,proto3" json:"emailVerified,omitempty"` - ServiceAccountName string `protobuf:"bytes,6,opt,name=serviceAccountName,proto3" json:"serviceAccountName,omitempty"` - ServiceAccountNamespace string `protobuf:"bytes,7,opt,name=serviceAccountNamespace,proto3" json:"serviceAccountNamespace,omitempty"` - Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*InfoResponse) ProtoMessage() {} -func (m *GetUserInfoResponse) Reset() { *m = GetUserInfoResponse{} } -func (m *GetUserInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetUserInfoResponse) ProtoMessage() {} -func (*GetUserInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_96940c93018255fa, []int{4} -} -func (m *GetUserInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetUserInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetUserInfoResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *InfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_info_info_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GetUserInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUserInfoResponse.Merge(m, src) -} -func (m *GetUserInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *GetUserInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetUserInfoResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GetUserInfoResponse proto.InternalMessageInfo - -func (m *GetUserInfoResponse) GetIssuer() string { - if m != nil { - return m.Issuer - } - return "" +// Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead. +func (*InfoResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_info_info_proto_rawDescGZIP(), []int{1} } -func (m *GetUserInfoResponse) GetSubject() string { - if m != nil { - return m.Subject +func (x *InfoResponse) GetManagedNamespace() string { + if x != nil { + return x.ManagedNamespace } return "" } -func (m *GetUserInfoResponse) GetGroups() []string { - if m != nil { - return m.Groups +func (x *InfoResponse) GetLinks() []*v1alpha1.Link { + if x != nil { + return x.Links } return nil } -func (m *GetUserInfoResponse) GetEmail() string { - if m != nil { - return m.Email +func (x *InfoResponse) GetModals() map[string]bool { + if x != nil { + return x.Modals } - return "" -} - -func (m *GetUserInfoResponse) GetEmailVerified() bool { - if m != nil { - return m.EmailVerified - } - return false + return nil } -func (m *GetUserInfoResponse) GetServiceAccountName() string { - if m != nil { - return m.ServiceAccountName +func (x *InfoResponse) GetNavColor() string { + if x != nil { + return x.NavColor } return "" } -func (m *GetUserInfoResponse) GetServiceAccountNamespace() string { - if m != nil { - return m.ServiceAccountNamespace +func (x *InfoResponse) GetColumns() []*v1alpha1.Column { + if x != nil { + return x.Columns } - return "" + return nil } -func (m *GetUserInfoResponse) GetName() string { - if m != nil { - return m.Name - } - return "" +type GetVersionRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type CollectEventRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GetVersionRequest) Reset() { + *x = GetVersionRequest{} + mi := &file_pkg_apiclient_info_info_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CollectEventRequest) Reset() { *m = CollectEventRequest{} } -func (m *CollectEventRequest) String() string { return proto.CompactTextString(m) } -func (*CollectEventRequest) ProtoMessage() {} -func (*CollectEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_96940c93018255fa, []int{5} -} -func (m *CollectEventRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CollectEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CollectEventRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CollectEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CollectEventRequest.Merge(m, src) -} -func (m *CollectEventRequest) XXX_Size() int { - return m.Size() -} -func (m *CollectEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CollectEventRequest.DiscardUnknown(m) +func (x *GetVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CollectEventRequest proto.InternalMessageInfo +func (*GetVersionRequest) ProtoMessage() {} -func (m *CollectEventRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type CollectEventResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CollectEventResponse) Reset() { *m = CollectEventResponse{} } -func (m *CollectEventResponse) String() string { return proto.CompactTextString(m) } -func (*CollectEventResponse) ProtoMessage() {} -func (*CollectEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_96940c93018255fa, []int{6} -} -func (m *CollectEventResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CollectEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CollectEventResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *GetVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_info_info_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CollectEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CollectEventResponse.Merge(m, src) -} -func (m *CollectEventResponse) XXX_Size() int { - return m.Size() -} -func (m *CollectEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CollectEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CollectEventResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*GetInfoRequest)(nil), "info.GetInfoRequest") - proto.RegisterType((*InfoResponse)(nil), "info.InfoResponse") - proto.RegisterMapType((map[string]bool)(nil), "info.InfoResponse.ModalsEntry") - proto.RegisterType((*GetVersionRequest)(nil), "info.GetVersionRequest") - proto.RegisterType((*GetUserInfoRequest)(nil), "info.GetUserInfoRequest") - proto.RegisterType((*GetUserInfoResponse)(nil), "info.GetUserInfoResponse") - proto.RegisterType((*CollectEventRequest)(nil), "info.CollectEventRequest") - proto.RegisterType((*CollectEventResponse)(nil), "info.CollectEventResponse") -} - -func init() { proto.RegisterFile("pkg/apiclient/info/info.proto", fileDescriptor_96940c93018255fa) } - -var fileDescriptor_96940c93018255fa = []byte{ - // 686 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0x96, 0x93, 0x26, 0x69, 0x37, 0xa5, 0xa4, 0xdb, 0xa8, 0x35, 0x06, 0xa2, 0x12, 0x71, 0x28, - 0x95, 0xb0, 0xd5, 0x52, 0xa1, 0xd2, 0x1b, 0x54, 0x6d, 0xa9, 0x04, 0x08, 0x19, 0xd1, 0x03, 0xaa, - 0x84, 0x36, 0xce, 0xc4, 0xdd, 0xc6, 0xd9, 0x35, 0xbb, 0x6b, 0x57, 0xbd, 0x72, 0x43, 0x1c, 0x39, - 0xf1, 0x0e, 0x3c, 0x08, 0x47, 0x24, 0x5e, 0x00, 0x55, 0x3c, 0x08, 0xf2, 0x7a, 0x9d, 0x3a, 0x34, - 0x1c, 0x50, 0x2f, 0xd6, 0xfc, 0xf9, 0x9b, 0x99, 0x6f, 0x66, 0x07, 0xdd, 0x8d, 0x87, 0xa1, 0x47, - 0x62, 0x1a, 0x44, 0x14, 0x98, 0xf2, 0x28, 0x1b, 0x70, 0xfd, 0x71, 0x63, 0xc1, 0x15, 0xc7, 0x33, - 0x99, 0xec, 0xbc, 0x0e, 0xa9, 0x3a, 0x49, 0x7a, 0x6e, 0xc0, 0x47, 0x1e, 0x11, 0x21, 0x8f, 0x05, - 0x3f, 0xd5, 0xc2, 0xc3, 0x33, 0x2e, 0x86, 0x83, 0x88, 0x9f, 0x49, 0x2f, 0xdd, 0xf2, 0x0c, 0x94, - 0xf4, 0x0a, 0xab, 0x97, 0x6e, 0x90, 0x28, 0x3e, 0x21, 0x1b, 0x5e, 0x08, 0x0c, 0x04, 0x51, 0xd0, - 0xcf, 0x71, 0x9d, 0x3b, 0x21, 0xe7, 0x61, 0x04, 0x59, 0xb8, 0x47, 0x18, 0xe3, 0x8a, 0x28, 0xca, - 0x99, 0xcc, 0xbd, 0xdd, 0x16, 0x5a, 0x38, 0x00, 0x75, 0xc8, 0x06, 0xdc, 0x87, 0x0f, 0x09, 0x48, - 0xd5, 0xfd, 0x5c, 0x45, 0xf3, 0xb9, 0x2e, 0x63, 0xce, 0x24, 0xe0, 0x75, 0xd4, 0x1a, 0x11, 0x46, - 0x42, 0xe8, 0xbf, 0x22, 0x23, 0x90, 0x31, 0x09, 0xc0, 0xb6, 0x56, 0xad, 0xb5, 0x39, 0xff, 0x8a, - 0x1d, 0x1f, 0xa3, 0x5a, 0x44, 0xd9, 0x50, 0xda, 0x95, 0xd5, 0xea, 0x5a, 0x73, 0x73, 0xdf, 0xbd, - 0x6c, 0xc7, 0x2d, 0xda, 0xd1, 0xc2, 0xfb, 0x71, 0x3b, 0x6e, 0xba, 0xe5, 0xc6, 0xc3, 0xd0, 0xcd, - 0xda, 0x71, 0x0b, 0xab, 0x5b, 0xb4, 0xe3, 0xbe, 0xa0, 0x6c, 0xe8, 0xe7, 0xa0, 0xf8, 0x31, 0xaa, - 0x8f, 0x78, 0x9f, 0x44, 0xd2, 0xae, 0x6a, 0xf8, 0x8e, 0xab, 0xf9, 0x2b, 0x57, 0xeb, 0xbe, 0xd4, - 0x01, 0x7b, 0x4c, 0x89, 0x73, 0xdf, 0x44, 0x63, 0x07, 0xcd, 0x32, 0x92, 0xee, 0xf2, 0x88, 0x0b, - 0x7b, 0x46, 0x57, 0x3e, 0xd6, 0x71, 0x0f, 0x35, 0x02, 0x1e, 0x25, 0x23, 0x26, 0xed, 0x9a, 0x06, - 0x7d, 0x7e, 0xfd, 0x9a, 0x77, 0x35, 0xa0, 0x5f, 0x00, 0x3b, 0x4f, 0x50, 0xb3, 0x54, 0x16, 0x6e, - 0xa1, 0xea, 0x10, 0xce, 0x0d, 0x87, 0x99, 0x88, 0xdb, 0xa8, 0x96, 0x92, 0x28, 0x01, 0xbb, 0xb2, - 0x6a, 0xad, 0xcd, 0xfa, 0xb9, 0xb2, 0x53, 0xd9, 0xb6, 0xba, 0x4b, 0x68, 0xf1, 0x00, 0xd4, 0x11, - 0x08, 0x49, 0x39, 0x2b, 0x46, 0xd4, 0x46, 0xf8, 0x00, 0xd4, 0x5b, 0x09, 0xa2, 0x3c, 0xb8, 0xaf, - 0x15, 0xb4, 0x34, 0x61, 0x36, 0xf3, 0x5b, 0x46, 0x75, 0x2a, 0x65, 0x02, 0xc2, 0x64, 0x34, 0x1a, - 0xb6, 0x51, 0x43, 0x26, 0xbd, 0x53, 0x08, 0x94, 0x4e, 0x3b, 0xe7, 0x17, 0x6a, 0xf6, 0x47, 0x28, - 0x78, 0x12, 0xe7, 0x3c, 0xcf, 0xf9, 0x46, 0xcb, 0xca, 0x84, 0x11, 0xa1, 0x91, 0x21, 0x31, 0x57, - 0xf0, 0x7d, 0x74, 0x43, 0x0b, 0x47, 0x20, 0xe8, 0x80, 0x42, 0xdf, 0xae, 0xe9, 0x26, 0x26, 0x8d, - 0xd8, 0x45, 0x58, 0x82, 0x48, 0x69, 0x00, 0x4f, 0x83, 0x80, 0x27, 0x4c, 0x65, 0x4b, 0x63, 0xd7, - 0x35, 0xd0, 0x14, 0x0f, 0xde, 0x46, 0x2b, 0x57, 0xad, 0xf9, 0xf2, 0x35, 0xf4, 0x4f, 0xff, 0x72, - 0x63, 0x8c, 0x66, 0x58, 0x86, 0x3d, 0xab, 0xc3, 0xb4, 0xdc, 0x7d, 0x80, 0x96, 0x76, 0x79, 0x14, - 0x41, 0xa0, 0xf6, 0x52, 0x60, 0xca, 0x50, 0x36, 0x0e, 0xb5, 0x4a, 0xa1, 0xcb, 0xa8, 0x3d, 0x19, - 0x9a, 0xd3, 0xb8, 0xf9, 0xad, 0x8a, 0x9a, 0x19, 0xaf, 0x6f, 0xf2, 0xb4, 0xf8, 0x10, 0x35, 0xcc, - 0xcb, 0xc1, 0xed, 0x7c, 0x0f, 0x27, 0x1f, 0x92, 0x83, 0xaf, 0x6e, 0x67, 0xb7, 0xfd, 0xf1, 0xe7, - 0xef, 0x2f, 0x95, 0x05, 0x3c, 0xaf, 0x9f, 0x63, 0xba, 0xa1, 0x0f, 0x00, 0xfe, 0x64, 0x21, 0x74, - 0x39, 0x65, 0xbc, 0x32, 0x86, 0x9b, 0x9c, 0xbb, 0x73, 0x78, 0xfd, 0xd5, 0x34, 0x88, 0xdd, 0x15, - 0x5d, 0xc8, 0x22, 0xbe, 0x59, 0x14, 0x92, 0x9a, 0xe4, 0xc7, 0xa8, 0x59, 0x5a, 0x22, 0x6c, 0x8f, - 0x6b, 0xf9, 0x6b, 0xdd, 0x9c, 0x5b, 0x53, 0x3c, 0xa6, 0x4b, 0x5b, 0x83, 0x63, 0xdc, 0x2a, 0xc0, - 0x13, 0x09, 0x42, 0x77, 0x7a, 0x82, 0xe6, 0xcb, 0xe4, 0x62, 0x03, 0x32, 0x65, 0x36, 0x8e, 0x33, - 0xcd, 0x65, 0x12, 0xdc, 0xd3, 0x09, 0x6e, 0x77, 0x97, 0x8b, 0x04, 0x4a, 0x90, 0x60, 0x48, 0x59, - 0xe8, 0x41, 0x16, 0xb7, 0x63, 0xad, 0x3f, 0xdb, 0xff, 0x7e, 0xd1, 0xb1, 0x7e, 0x5c, 0x74, 0xac, - 0x5f, 0x17, 0x1d, 0xeb, 0xdd, 0xf6, 0x7f, 0x9d, 0xd5, 0xd2, 0x85, 0xee, 0xd5, 0xf5, 0x9d, 0x7c, - 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x25, 0x33, 0x1e, 0xbe, 0x05, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// InfoServiceClient is the client API for InfoService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InfoServiceClient interface { - GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) - GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*v1alpha1.Version, error) - GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) - CollectEvent(ctx context.Context, in *CollectEventRequest, opts ...grpc.CallOption) (*CollectEventResponse, error) -} - -type infoServiceClient struct { - cc *grpc.ClientConn + return mi.MessageOf(x) } -func NewInfoServiceClient(cc *grpc.ClientConn) InfoServiceClient { - return &infoServiceClient{cc} -} - -func (c *infoServiceClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) { - out := new(InfoResponse) - err := c.cc.Invoke(ctx, "/info.InfoService/GetInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *infoServiceClient) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*v1alpha1.Version, error) { - out := new(v1alpha1.Version) - err := c.cc.Invoke(ctx, "/info.InfoService/GetVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *infoServiceClient) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) { - out := new(GetUserInfoResponse) - err := c.cc.Invoke(ctx, "/info.InfoService/GetUserInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *infoServiceClient) CollectEvent(ctx context.Context, in *CollectEventRequest, opts ...grpc.CallOption) (*CollectEventResponse, error) { - out := new(CollectEventResponse) - err := c.cc.Invoke(ctx, "/info.InfoService/CollectEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// InfoServiceServer is the server API for InfoService service. -type InfoServiceServer interface { - GetInfo(context.Context, *GetInfoRequest) (*InfoResponse, error) - GetVersion(context.Context, *GetVersionRequest) (*v1alpha1.Version, error) - GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) - CollectEvent(context.Context, *CollectEventRequest) (*CollectEventResponse, error) -} - -// UnimplementedInfoServiceServer can be embedded to have forward compatible implementations. -type UnimplementedInfoServiceServer struct { -} - -func (*UnimplementedInfoServiceServer) GetInfo(ctx context.Context, req *GetInfoRequest) (*InfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") -} -func (*UnimplementedInfoServiceServer) GetVersion(ctx context.Context, req *GetVersionRequest) (*v1alpha1.Version, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") -} -func (*UnimplementedInfoServiceServer) GetUserInfo(ctx context.Context, req *GetUserInfoRequest) (*GetUserInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented") -} -func (*UnimplementedInfoServiceServer) CollectEvent(ctx context.Context, req *CollectEventRequest) (*CollectEventResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CollectEvent not implemented") +// Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead. +func (*GetVersionRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_info_info_proto_rawDescGZIP(), []int{2} } -func RegisterInfoServiceServer(s *grpc.Server, srv InfoServiceServer) { - s.RegisterService(&_InfoService_serviceDesc, srv) +type GetUserInfoRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func _InfoService_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InfoServiceServer).GetInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/info.InfoService/GetInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InfoServiceServer).GetInfo(ctx, req.(*GetInfoRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *GetUserInfoRequest) Reset() { + *x = GetUserInfoRequest{} + mi := &file_pkg_apiclient_info_info_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func _InfoService_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetVersionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InfoServiceServer).GetVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/info.InfoService/GetVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InfoServiceServer).GetVersion(ctx, req.(*GetVersionRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *GetUserInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func _InfoService_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InfoServiceServer).GetUserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/info.InfoService/GetUserInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InfoServiceServer).GetUserInfo(ctx, req.(*GetUserInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*GetUserInfoRequest) ProtoMessage() {} -func _InfoService_CollectEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CollectEventRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InfoServiceServer).CollectEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/info.InfoService/CollectEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InfoServiceServer).CollectEvent(ctx, req.(*CollectEventRequest)) +func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_info_info_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) -} - -var _InfoService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "info.InfoService", - HandlerType: (*InfoServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetInfo", - Handler: _InfoService_GetInfo_Handler, - }, - { - MethodName: "GetVersion", - Handler: _InfoService_GetVersion_Handler, - }, - { - MethodName: "GetUserInfo", - Handler: _InfoService_GetUserInfo_Handler, - }, - { - MethodName: "CollectEvent", - Handler: _InfoService_CollectEvent_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/apiclient/info/info.proto", + return mi.MessageOf(x) } -func (m *GetInfoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead. +func (*GetUserInfoRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_info_info_proto_rawDescGZIP(), []int{3} } -func (m *GetInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type GetUserInfoResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` + Groups []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"` + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` + EmailVerified bool `protobuf:"varint,5,opt,name=emailVerified,proto3" json:"emailVerified,omitempty"` + ServiceAccountName string `protobuf:"bytes,6,opt,name=serviceAccountName,proto3" json:"serviceAccountName,omitempty"` + ServiceAccountNamespace string `protobuf:"bytes,7,opt,name=serviceAccountNamespace,proto3" json:"serviceAccountNamespace,omitempty"` + Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *GetInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil +func (x *GetUserInfoResponse) Reset() { + *x = GetUserInfoResponse{} + mi := &file_pkg_apiclient_info_info_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *InfoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *GetUserInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*GetUserInfoResponse) ProtoMessage() {} -func (m *InfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Columns) > 0 { - for iNdEx := len(m.Columns) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Columns[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintInfo(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.NavColor) > 0 { - i -= len(m.NavColor) - copy(dAtA[i:], m.NavColor) - i = encodeVarintInfo(dAtA, i, uint64(len(m.NavColor))) - i-- - dAtA[i] = 0x22 - } - if len(m.Modals) > 0 { - for k := range m.Modals { - v := m.Modals[k] - baseI := i - i-- - if v { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintInfo(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintInfo(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Links) > 0 { - for iNdEx := len(m.Links) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Links[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintInfo(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 +func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_info_info_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if len(m.ManagedNamespace) > 0 { - i -= len(m.ManagedNamespace) - copy(dAtA[i:], m.ManagedNamespace) - i = encodeVarintInfo(dAtA, i, uint64(len(m.ManagedNamespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetVersionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetVersionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *GetVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil +// Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead. +func (*GetUserInfoResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_info_info_proto_rawDescGZIP(), []int{4} } -func (m *GetUserInfoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *GetUserInfoResponse) GetIssuer() string { + if x != nil { + return x.Issuer } - return dAtA[:n], nil -} - -func (m *GetUserInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *GetUserInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *GetUserInfoResponse) GetSubject() string { + if x != nil { + return x.Subject } - return len(dAtA) - i, nil + return "" } -func (m *GetUserInfoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *GetUserInfoResponse) GetGroups() []string { + if x != nil { + return x.Groups } - return dAtA[:n], nil -} - -func (m *GetUserInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *GetUserInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintInfo(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x42 - } - if len(m.ServiceAccountNamespace) > 0 { - i -= len(m.ServiceAccountNamespace) - copy(dAtA[i:], m.ServiceAccountNamespace) - i = encodeVarintInfo(dAtA, i, uint64(len(m.ServiceAccountNamespace))) - i-- - dAtA[i] = 0x3a - } - if len(m.ServiceAccountName) > 0 { - i -= len(m.ServiceAccountName) - copy(dAtA[i:], m.ServiceAccountName) - i = encodeVarintInfo(dAtA, i, uint64(len(m.ServiceAccountName))) - i-- - dAtA[i] = 0x32 - } - if m.EmailVerified { - i-- - if m.EmailVerified { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.Email) > 0 { - i -= len(m.Email) - copy(dAtA[i:], m.Email) - i = encodeVarintInfo(dAtA, i, uint64(len(m.Email))) - i-- - dAtA[i] = 0x22 - } - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Groups[iNdEx]) - copy(dAtA[i:], m.Groups[iNdEx]) - i = encodeVarintInfo(dAtA, i, uint64(len(m.Groups[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Subject) > 0 { - i -= len(m.Subject) - copy(dAtA[i:], m.Subject) - i = encodeVarintInfo(dAtA, i, uint64(len(m.Subject))) - i-- - dAtA[i] = 0x12 +func (x *GetUserInfoResponse) GetEmail() string { + if x != nil { + return x.Email } - if len(m.Issuer) > 0 { - i -= len(m.Issuer) - copy(dAtA[i:], m.Issuer) - i = encodeVarintInfo(dAtA, i, uint64(len(m.Issuer))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *CollectEventRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *GetUserInfoResponse) GetEmailVerified() bool { + if x != nil { + return x.EmailVerified } - return dAtA[:n], nil -} - -func (m *CollectEventRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return false } -func (m *CollectEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *GetUserInfoResponse) GetServiceAccountName() string { + if x != nil { + return x.ServiceAccountName } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintInfo(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *CollectEventResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *GetUserInfoResponse) GetServiceAccountNamespace() string { + if x != nil { + return x.ServiceAccountNamespace } - return dAtA[:n], nil -} - -func (m *CollectEventResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *CollectEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *GetUserInfoResponse) GetName() string { + if x != nil { + return x.Name } - return len(dAtA) - i, nil + return "" } -func encodeVarintInfo(dAtA []byte, offset int, v uint64) int { - offset -= sovInfo(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GetInfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type CollectEventRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *InfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ManagedNamespace) - if l > 0 { - n += 1 + l + sovInfo(uint64(l)) - } - if len(m.Links) > 0 { - for _, e := range m.Links { - l = e.Size() - n += 1 + l + sovInfo(uint64(l)) - } - } - if len(m.Modals) > 0 { - for k, v := range m.Modals { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovInfo(uint64(len(k))) + 1 + 1 - n += mapEntrySize + 1 + sovInfo(uint64(mapEntrySize)) - } - } - l = len(m.NavColor) - if l > 0 { - n += 1 + l + sovInfo(uint64(l)) - } - if len(m.Columns) > 0 { - for _, e := range m.Columns { - l = e.Size() - n += 1 + l + sovInfo(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *CollectEventRequest) Reset() { + *x = CollectEventRequest{} + mi := &file_pkg_apiclient_info_info_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *GetVersionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *CollectEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetUserInfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*CollectEventRequest) ProtoMessage() {} -func (m *GetUserInfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Issuer) - if l > 0 { - n += 1 + l + sovInfo(uint64(l)) - } - l = len(m.Subject) - if l > 0 { - n += 1 + l + sovInfo(uint64(l)) - } - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovInfo(uint64(l)) +func (x *CollectEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_info_info_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - l = len(m.Email) - if l > 0 { - n += 1 + l + sovInfo(uint64(l)) - } - if m.EmailVerified { - n += 2 - } - l = len(m.ServiceAccountName) - if l > 0 { - n += 1 + l + sovInfo(uint64(l)) - } - l = len(m.ServiceAccountNamespace) - if l > 0 { - n += 1 + l + sovInfo(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovInfo(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return mi.MessageOf(x) } -func (m *CollectEventRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovInfo(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use CollectEventRequest.ProtoReflect.Descriptor instead. +func (*CollectEventRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_info_info_proto_rawDescGZIP(), []int{5} } -func (m *CollectEventResponse) Size() (n int) { - if m == nil { - return 0 +func (x *CollectEventRequest) GetName() string { + if x != nil { + return x.Name } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func sovInfo(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozInfo(x uint64) (n int) { - return sovInfo(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +type CollectEventResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *GetInfoRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipInfo(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthInfo - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *CollectEventResponse) Reset() { + *x = CollectEventResponse{} + mi := &file_pkg_apiclient_info_info_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *InfoResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: InfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManagedNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ManagedNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Links", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Links = append(m.Links, &v1alpha1.Link{}) - if err := m.Links[len(m.Links)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Modals", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Modals == nil { - m.Modals = make(map[string]bool) - } - var mapkey string - var mapvalue bool - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthInfo - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthInfo - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapvaluetemp int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvaluetemp |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - mapvalue = bool(mapvaluetemp != 0) - } else { - iNdEx = entryPreIndex - skippy, err := skipInfo(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthInfo - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Modals[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NavColor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NavColor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Columns", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Columns = append(m.Columns, &v1alpha1.Column{}) - if err := m.Columns[len(m.Columns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipInfo(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthInfo - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *CollectEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetVersionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetVersionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetVersionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipInfo(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthInfo - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetUserInfoRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetUserInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetUserInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipInfo(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthInfo - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*CollectEventResponse) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetUserInfoResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } +func (x *CollectEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_info_info_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetUserInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetUserInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Issuer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Issuer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subject = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Email = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EmailVerified", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EmailVerified = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceAccountName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceAccountNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipInfo(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthInfo - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CollectEventRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CollectEventRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectEventRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthInfo - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipInfo(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthInfo - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func (m *CollectEventResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CollectEventResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectEventResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipInfo(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthInfo - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipInfo(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowInfo - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowInfo - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowInfo - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthInfo - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupInfo - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthInfo - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +// Deprecated: Use CollectEventResponse.ProtoReflect.Descriptor instead. +func (*CollectEventResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_info_info_proto_rawDescGZIP(), []int{6} +} + +var File_pkg_apiclient_info_info_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_info_info_proto_rawDesc = "" + + "\n" + + "\x1dpkg/apiclient/info/info.proto\x12\x04info\x1aPgithub.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1/generated.proto\x1a\x1cgoogle/api/annotations.proto\"\x10\n" + + "\x0eGetInfoRequest\"\x8b\x03\n" + + "\fInfoResponse\x12*\n" + + "\x10managedNamespace\x18\x01 \x01(\tR\x10managedNamespace\x12\\\n" + + "\x05links\x18\x02 \x03(\v2F.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.LinkR\x05links\x126\n" + + "\x06modals\x18\x03 \x03(\v2\x1e.info.InfoResponse.ModalsEntryR\x06modals\x12\x1a\n" + + "\bnavColor\x18\x04 \x01(\tR\bnavColor\x12b\n" + + "\acolumns\x18\x05 \x03(\v2H.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.ColumnR\acolumns\x1a9\n" + + "\vModalsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\bR\x05value:\x028\x01\"\x13\n" + + "\x11GetVersionRequest\"\x14\n" + + "\x12GetUserInfoRequest\"\x99\x02\n" + + "\x13GetUserInfoResponse\x12\x16\n" + + "\x06issuer\x18\x01 \x01(\tR\x06issuer\x12\x18\n" + + "\asubject\x18\x02 \x01(\tR\asubject\x12\x16\n" + + "\x06groups\x18\x03 \x03(\tR\x06groups\x12\x14\n" + + "\x05email\x18\x04 \x01(\tR\x05email\x12$\n" + + "\remailVerified\x18\x05 \x01(\bR\remailVerified\x12.\n" + + "\x12serviceAccountName\x18\x06 \x01(\tR\x12serviceAccountName\x128\n" + + "\x17serviceAccountNamespace\x18\a \x01(\tR\x17serviceAccountNamespace\x12\x12\n" + + "\x04name\x18\b \x01(\tR\x04name\")\n" + + "\x13CollectEventRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"\x16\n" + + "\x14CollectEventResponse2\xac\x03\n" + + "\vInfoService\x12I\n" + + "\aGetInfo\x12\x14.info.GetInfoRequest\x1a\x12.info.InfoResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\f/api/v1/info\x12\x89\x01\n" + + "\n" + + "GetVersion\x12\x17.info.GetVersionRequest\x1aI.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Version\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/v1/version\x12\\\n" + + "\vGetUserInfo\x12\x18.info.GetUserInfoRequest\x1a\x19.info.GetUserInfoResponse\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v1/userinfo\x12h\n" + + "\fCollectEvent\x12\x19.info.CollectEventRequest\x1a\x1a.info.CollectEventResponse\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/api/v1/tracking/eventB:Z8github.com/argoproj/argo-workflows/v4/pkg/apiclient/infob\x06proto3" var ( - ErrInvalidLengthInfo = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowInfo = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupInfo = fmt.Errorf("proto: unexpected end of group") + file_pkg_apiclient_info_info_proto_rawDescOnce sync.Once + file_pkg_apiclient_info_info_proto_rawDescData []byte ) + +func file_pkg_apiclient_info_info_proto_rawDescGZIP() []byte { + file_pkg_apiclient_info_info_proto_rawDescOnce.Do(func() { + file_pkg_apiclient_info_info_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_apiclient_info_info_proto_rawDesc), len(file_pkg_apiclient_info_info_proto_rawDesc))) + }) + return file_pkg_apiclient_info_info_proto_rawDescData +} + +var file_pkg_apiclient_info_info_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_pkg_apiclient_info_info_proto_goTypes = []any{ + (*GetInfoRequest)(nil), // 0: info.GetInfoRequest + (*InfoResponse)(nil), // 1: info.InfoResponse + (*GetVersionRequest)(nil), // 2: info.GetVersionRequest + (*GetUserInfoRequest)(nil), // 3: info.GetUserInfoRequest + (*GetUserInfoResponse)(nil), // 4: info.GetUserInfoResponse + (*CollectEventRequest)(nil), // 5: info.CollectEventRequest + (*CollectEventResponse)(nil), // 6: info.CollectEventResponse + nil, // 7: info.InfoResponse.ModalsEntry + (*v1alpha1.Link)(nil), // 8: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Link + (*v1alpha1.Column)(nil), // 9: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Column + (*v1alpha1.Version)(nil), // 10: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Version +} +var file_pkg_apiclient_info_info_proto_depIdxs = []int32{ + 8, // 0: info.InfoResponse.links:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Link + 7, // 1: info.InfoResponse.modals:type_name -> info.InfoResponse.ModalsEntry + 9, // 2: info.InfoResponse.columns:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Column + 0, // 3: info.InfoService.GetInfo:input_type -> info.GetInfoRequest + 2, // 4: info.InfoService.GetVersion:input_type -> info.GetVersionRequest + 3, // 5: info.InfoService.GetUserInfo:input_type -> info.GetUserInfoRequest + 5, // 6: info.InfoService.CollectEvent:input_type -> info.CollectEventRequest + 1, // 7: info.InfoService.GetInfo:output_type -> info.InfoResponse + 10, // 8: info.InfoService.GetVersion:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Version + 4, // 9: info.InfoService.GetUserInfo:output_type -> info.GetUserInfoResponse + 6, // 10: info.InfoService.CollectEvent:output_type -> info.CollectEventResponse + 7, // [7:11] is the sub-list for method output_type + 3, // [3:7] 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 +} + +func init() { file_pkg_apiclient_info_info_proto_init() } +func file_pkg_apiclient_info_info_proto_init() { + if File_pkg_apiclient_info_info_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_info_info_proto_rawDesc), len(file_pkg_apiclient_info_info_proto_rawDesc)), + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_info_info_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_info_info_proto_depIdxs, + MessageInfos: file_pkg_apiclient_info_info_proto_msgTypes, + }.Build() + File_pkg_apiclient_info_info_proto = out.File + file_pkg_apiclient_info_info_proto_goTypes = nil + file_pkg_apiclient_info_info_proto_depIdxs = nil +} diff --git a/pkg/apiclient/info/info.pb.gw.go b/pkg/apiclient/info/info.pb.gw.go index 245ce70c58b9..3bef5b3f4449 100644 --- a/pkg/apiclient/info/info.pb.gw.go +++ b/pkg/apiclient/info/info.pb.gw.go @@ -10,213 +10,207 @@ package info import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_InfoService_GetInfo_0(ctx context.Context, marshaler runtime.Marshaler, client InfoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetInfoRequest - var metadata runtime.ServerMetadata - + var ( + protoReq GetInfoRequest + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_InfoService_GetInfo_0(ctx context.Context, marshaler runtime.Marshaler, server InfoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetInfoRequest - var metadata runtime.ServerMetadata - + var ( + protoReq GetInfoRequest + metadata runtime.ServerMetadata + ) msg, err := server.GetInfo(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_InfoService_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, client InfoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetVersionRequest - var metadata runtime.ServerMetadata - + var ( + protoReq GetVersionRequest + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_InfoService_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, server InfoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetVersionRequest - var metadata runtime.ServerMetadata - + var ( + protoReq GetVersionRequest + metadata runtime.ServerMetadata + ) msg, err := server.GetVersion(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_InfoService_GetUserInfo_0(ctx context.Context, marshaler runtime.Marshaler, client InfoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetUserInfoRequest - var metadata runtime.ServerMetadata - + var ( + protoReq GetUserInfoRequest + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetUserInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_InfoService_GetUserInfo_0(ctx context.Context, marshaler runtime.Marshaler, server InfoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetUserInfoRequest - var metadata runtime.ServerMetadata - + var ( + protoReq GetUserInfoRequest + metadata runtime.ServerMetadata + ) msg, err := server.GetUserInfo(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_InfoService_CollectEvent_0(ctx context.Context, marshaler runtime.Marshaler, client InfoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CollectEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq CollectEventRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.CollectEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_InfoService_CollectEvent_0(ctx context.Context, marshaler runtime.Marshaler, server InfoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CollectEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq CollectEventRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CollectEvent(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterInfoServiceHandlerServer registers the http handlers for service InfoService to "mux". // UnaryRPC :call InfoServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInfoServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterInfoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfoServiceServer) error { - - mux.Handle("GET", pattern_InfoService_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_InfoService_GetInfo_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/info.InfoService/GetInfo", runtime.WithHTTPPathPattern("/api/v1/info")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_InfoService_GetInfo_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_InfoService_GetInfo_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_InfoService_GetInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_InfoService_GetInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_InfoService_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_InfoService_GetVersion_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/info.InfoService/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_InfoService_GetVersion_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_InfoService_GetVersion_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_InfoService_GetVersion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_InfoService_GetVersion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_InfoService_GetUserInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_InfoService_GetUserInfo_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/info.InfoService/GetUserInfo", runtime.WithHTTPPathPattern("/api/v1/userinfo")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_InfoService_GetUserInfo_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_InfoService_GetUserInfo_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_InfoService_GetUserInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_InfoService_GetUserInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_InfoService_CollectEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_InfoService_CollectEvent_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/info.InfoService/CollectEvent", runtime.WithHTTPPathPattern("/api/v1/tracking/event")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_InfoService_CollectEvent_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_InfoService_CollectEvent_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_InfoService_CollectEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_InfoService_CollectEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -225,25 +219,24 @@ func RegisterInfoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux // RegisterInfoServiceHandlerFromEndpoint is same as RegisterInfoServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterInfoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterInfoServiceHandler(ctx, mux, conn) } @@ -257,108 +250,89 @@ func RegisterInfoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InfoServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InfoServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "InfoServiceClient" to call the correct interceptors. +// "InfoServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterInfoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfoServiceClient) error { - - mux.Handle("GET", pattern_InfoService_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_InfoService_GetInfo_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/info.InfoService/GetInfo", runtime.WithHTTPPathPattern("/api/v1/info")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_InfoService_GetInfo_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_InfoService_GetInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_InfoService_GetInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_InfoService_GetInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_InfoService_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_InfoService_GetVersion_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/info.InfoService/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_InfoService_GetVersion_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_InfoService_GetVersion_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_InfoService_GetVersion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_InfoService_GetVersion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_InfoService_GetUserInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_InfoService_GetUserInfo_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/info.InfoService/GetUserInfo", runtime.WithHTTPPathPattern("/api/v1/userinfo")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_InfoService_GetUserInfo_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_InfoService_GetUserInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_InfoService_GetUserInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_InfoService_GetUserInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_InfoService_CollectEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_InfoService_CollectEvent_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/info.InfoService/CollectEvent", runtime.WithHTTPPathPattern("/api/v1/tracking/event")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_InfoService_CollectEvent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_InfoService_CollectEvent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_InfoService_CollectEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_InfoService_CollectEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_InfoService_GetInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "info"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_InfoService_GetVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "version"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_InfoService_GetUserInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "userinfo"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_InfoService_CollectEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "tracking", "event"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_InfoService_GetInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "info"}, "")) + pattern_InfoService_GetVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "version"}, "")) + pattern_InfoService_GetUserInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "userinfo"}, "")) + pattern_InfoService_CollectEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "tracking", "event"}, "")) ) var ( - forward_InfoService_GetInfo_0 = runtime.ForwardResponseMessage - - forward_InfoService_GetVersion_0 = runtime.ForwardResponseMessage - - forward_InfoService_GetUserInfo_0 = runtime.ForwardResponseMessage - + forward_InfoService_GetInfo_0 = runtime.ForwardResponseMessage + forward_InfoService_GetVersion_0 = runtime.ForwardResponseMessage + forward_InfoService_GetUserInfo_0 = runtime.ForwardResponseMessage forward_InfoService_CollectEvent_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/info/info_grpc.pb.go b/pkg/apiclient/info/info_grpc.pb.go new file mode 100644 index 000000000000..004ab145109f --- /dev/null +++ b/pkg/apiclient/info/info_grpc.pb.go @@ -0,0 +1,234 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/info/info.proto + +package info + +import ( + context "context" + v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + InfoService_GetInfo_FullMethodName = "/info.InfoService/GetInfo" + InfoService_GetVersion_FullMethodName = "/info.InfoService/GetVersion" + InfoService_GetUserInfo_FullMethodName = "/info.InfoService/GetUserInfo" + InfoService_CollectEvent_FullMethodName = "/info.InfoService/CollectEvent" +) + +// InfoServiceClient is the client API for InfoService 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 InfoServiceClient interface { + GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) + GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*v1alpha1.Version, error) + GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) + CollectEvent(ctx context.Context, in *CollectEventRequest, opts ...grpc.CallOption) (*CollectEventResponse, error) +} + +type infoServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewInfoServiceClient(cc grpc.ClientConnInterface) InfoServiceClient { + return &infoServiceClient{cc} +} + +func (c *infoServiceClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(InfoResponse) + err := c.cc.Invoke(ctx, InfoService_GetInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *infoServiceClient) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*v1alpha1.Version, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Version) + err := c.cc.Invoke(ctx, InfoService_GetVersion_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *infoServiceClient) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetUserInfoResponse) + err := c.cc.Invoke(ctx, InfoService_GetUserInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *infoServiceClient) CollectEvent(ctx context.Context, in *CollectEventRequest, opts ...grpc.CallOption) (*CollectEventResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CollectEventResponse) + err := c.cc.Invoke(ctx, InfoService_CollectEvent_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// InfoServiceServer is the server API for InfoService service. +// All implementations should embed UnimplementedInfoServiceServer +// for forward compatibility. +type InfoServiceServer interface { + GetInfo(context.Context, *GetInfoRequest) (*InfoResponse, error) + GetVersion(context.Context, *GetVersionRequest) (*v1alpha1.Version, error) + GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) + CollectEvent(context.Context, *CollectEventRequest) (*CollectEventResponse, error) +} + +// UnimplementedInfoServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInfoServiceServer struct{} + +func (UnimplementedInfoServiceServer) GetInfo(context.Context, *GetInfoRequest) (*InfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") +} +func (UnimplementedInfoServiceServer) GetVersion(context.Context, *GetVersionRequest) (*v1alpha1.Version, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") +} +func (UnimplementedInfoServiceServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented") +} +func (UnimplementedInfoServiceServer) CollectEvent(context.Context, *CollectEventRequest) (*CollectEventResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CollectEvent not implemented") +} +func (UnimplementedInfoServiceServer) testEmbeddedByValue() {} + +// UnsafeInfoServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to InfoServiceServer will +// result in compilation errors. +type UnsafeInfoServiceServer interface { + mustEmbedUnimplementedInfoServiceServer() +} + +func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer) { + // If the following call pancis, it indicates UnimplementedInfoServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&InfoService_ServiceDesc, srv) +} + +func _InfoService_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InfoServiceServer).GetInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: InfoService_GetInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InfoServiceServer).GetInfo(ctx, req.(*GetInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InfoService_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InfoServiceServer).GetVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: InfoService_GetVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InfoServiceServer).GetVersion(ctx, req.(*GetVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InfoService_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InfoServiceServer).GetUserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: InfoService_GetUserInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InfoServiceServer).GetUserInfo(ctx, req.(*GetUserInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InfoService_CollectEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CollectEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InfoServiceServer).CollectEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: InfoService_CollectEvent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InfoServiceServer).CollectEvent(ctx, req.(*CollectEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// InfoService_ServiceDesc is the grpc.ServiceDesc for InfoService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var InfoService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "info.InfoService", + HandlerType: (*InfoServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetInfo", + Handler: _InfoService_GetInfo_Handler, + }, + { + MethodName: "GetVersion", + Handler: _InfoService_GetVersion_Handler, + }, + { + MethodName: "GetUserInfo", + Handler: _InfoService_GetUserInfo_Handler, + }, + { + MethodName: "CollectEvent", + Handler: _InfoService_CollectEvent_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/apiclient/info/info.proto", +} diff --git a/pkg/apiclient/protocompat.go b/pkg/apiclient/protocompat.go new file mode 100644 index 000000000000..2de83a85f3f0 --- /dev/null +++ b/pkg/apiclient/protocompat.go @@ -0,0 +1,32 @@ +package apiclient + +import ( + "fmt" + + "google.golang.org/protobuf/proto" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + workflowpkg "github.com/argoproj/argo-workflows/v4/pkg/apiclient/workflow" +) + +// init probes that protobuf can marshal API messages embedding Kubernetes +// types. Kubernetes v1.35 (k8s.io/* v0.35) generates its types without +// ProtoMessage() unless the kubernetes_protomessage_one_more_release build tag +// is set (v1.36 drops the method entirely), which makes +// google.golang.org/protobuf panic deep inside its legacy bridge on the first +// real API call. Builds in this repo avoid that via the build tag (exported by +// the Makefile) or the patched vendor tree (hack/vendor-patches.sh) — but +// module consumers of this package get neither by default. Probing here turns +// an obscure runtime panic into an immediate, actionable one at startup. +func init() { + defer func() { + if r := recover(); r != nil { + panic(fmt.Sprintf( + "pkg/apiclient cannot marshal Kubernetes types (%v); "+ + "build with -tags=kubernetes_protomessage_one_more_release (Kubernetes v1.35 only) "+ + "or use the argo-workflows patched vendor tree (`make vendor`) — see docs/upgrading.md", + r)) + } + }() + _, _ = proto.Marshal(&workflowpkg.WorkflowGetRequest{GetOptions: &metav1.GetOptions{}}) +} diff --git a/pkg/apiclient/protocompat_test.go b/pkg/apiclient/protocompat_test.go new file mode 100644 index 000000000000..41b860c8f843 --- /dev/null +++ b/pkg/apiclient/protocompat_test.go @@ -0,0 +1,24 @@ +package apiclient + +import ( + "testing" + + "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + workflowpkg "github.com/argoproj/argo-workflows/v4/pkg/apiclient/workflow" +) + +// The package-level init probe already ran by the time this test executes; this +// pins that marshalling messages carrying Kubernetes types works (via the build +// tag or the patched vendor tree — see protocompat.go). +func TestProtoCompat_MarshalKubernetesTypes(t *testing.T) { + data, err := proto.Marshal(&workflowpkg.WorkflowGetRequest{ + Name: "wf", + Namespace: "ns", + GetOptions: &metav1.GetOptions{}, + }) + require.NoError(t, err) + require.NotEmpty(t, data) +} diff --git a/pkg/apiclient/sensor/forwarder_overwrite.go b/pkg/apiclient/sensor/forwarder_overwrite.go index 65b9d63d13df..52d18c7b3f20 100644 --- a/pkg/apiclient/sensor/forwarder_overwrite.go +++ b/pkg/apiclient/sensor/forwarder_overwrite.go @@ -1,10 +1,10 @@ package sensor import ( - "github.com/argoproj/pkg/grpc/http" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" ) func init() { - forward_SensorService_SensorsLogs_0 = http.StreamForwarder - forward_SensorService_WatchSensors_0 = http.StreamForwarder + forward_SensorService_SensorsLogs_0 = gateway.StreamForwarder + forward_SensorService_WatchSensors_0 = gateway.StreamForwarder } diff --git a/pkg/apiclient/sensor/sensor.pb.go b/pkg/apiclient/sensor/sensor.pb.go index feaf1f1b1950..315977cf5b4e 100644 --- a/pkg/apiclient/sensor/sensor.pb.go +++ b/pkg/apiclient/sensor/sensor.pb.go @@ -1,3286 +1,732 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/sensor/sensor.proto package sensor import ( - context "context" - fmt "fmt" v1alpha1 "github.com/argoproj/argo-events/pkg/apis/events/v1alpha1" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" v11 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ListSensorsRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ListSensorsRequest) Reset() { *m = ListSensorsRequest{} } -func (m *ListSensorsRequest) String() string { return proto.CompactTextString(m) } -func (*ListSensorsRequest) ProtoMessage() {} -func (*ListSensorsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78ba963e1c6b5b55, []int{0} -} -func (m *ListSensorsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListSensorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListSensorsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ListSensorsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListSensorsRequest.Merge(m, src) -} -func (m *ListSensorsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListSensorsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListSensorsRequest.DiscardUnknown(m) +func (x *ListSensorsRequest) Reset() { + *x = ListSensorsRequest{} + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -var xxx_messageInfo_ListSensorsRequest proto.InternalMessageInfo - -func (m *ListSensorsRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *ListSensorsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListSensorsRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions - } - return nil -} +func (*ListSensorsRequest) ProtoMessage() {} -type CreateSensorRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - Sensor *v1alpha1.Sensor `protobuf:"bytes,2,opt,name=sensor,proto3" json:"sensor,omitempty"` - CreateOptions *v1.CreateOptions `protobuf:"bytes,3,opt,name=createOptions,proto3" json:"createOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateSensorRequest) Reset() { *m = CreateSensorRequest{} } -func (m *CreateSensorRequest) String() string { return proto.CompactTextString(m) } -func (*CreateSensorRequest) ProtoMessage() {} -func (*CreateSensorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78ba963e1c6b5b55, []int{1} -} -func (m *CreateSensorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateSensorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateSensorRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ListSensorsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *CreateSensorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateSensorRequest.Merge(m, src) -} -func (m *CreateSensorRequest) XXX_Size() int { - return m.Size() -} -func (m *CreateSensorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateSensorRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateSensorRequest proto.InternalMessageInfo -func (m *CreateSensorRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +// Deprecated: Use ListSensorsRequest.ProtoReflect.Descriptor instead. +func (*ListSensorsRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sensor_sensor_proto_rawDescGZIP(), []int{0} } -func (m *CreateSensorRequest) GetSensor() *v1alpha1.Sensor { - if m != nil { - return m.Sensor +func (x *ListSensorsRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return nil + return "" } -func (m *CreateSensorRequest) GetCreateOptions() *v1.CreateOptions { - if m != nil { - return m.CreateOptions +func (x *ListSensorsRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } return nil } -type GetSensorRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - GetOptions *v1.GetOptions `protobuf:"bytes,3,opt,name=getOptions,proto3" json:"getOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetSensorRequest) Reset() { *m = GetSensorRequest{} } -func (m *GetSensorRequest) String() string { return proto.CompactTextString(m) } -func (*GetSensorRequest) ProtoMessage() {} -func (*GetSensorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78ba963e1c6b5b55, []int{2} -} -func (m *GetSensorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetSensorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetSensorRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetSensorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetSensorRequest.Merge(m, src) -} -func (m *GetSensorRequest) XXX_Size() int { - return m.Size() -} -func (m *GetSensorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetSensorRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetSensorRequest proto.InternalMessageInfo - -func (m *GetSensorRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +type CreateSensorRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + Sensor *v1alpha1.Sensor `protobuf:"bytes,2,opt,name=sensor,proto3" json:"sensor,omitempty"` + CreateOptions *v1.CreateOptions `protobuf:"bytes,3,opt,name=createOptions,proto3" json:"createOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *GetSensorRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *CreateSensorRequest) Reset() { + *x = CreateSensorRequest{} + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *GetSensorRequest) GetGetOptions() *v1.GetOptions { - if m != nil { - return m.GetOptions - } - return nil +func (x *CreateSensorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type UpdateSensorRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Sensor *v1alpha1.Sensor `protobuf:"bytes,3,opt,name=sensor,proto3" json:"sensor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*CreateSensorRequest) ProtoMessage() {} -func (m *UpdateSensorRequest) Reset() { *m = UpdateSensorRequest{} } -func (m *UpdateSensorRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateSensorRequest) ProtoMessage() {} -func (*UpdateSensorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78ba963e1c6b5b55, []int{3} -} -func (m *UpdateSensorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateSensorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateSensorRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *CreateSensorRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *UpdateSensorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateSensorRequest.Merge(m, src) -} -func (m *UpdateSensorRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateSensorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateSensorRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateSensorRequest proto.InternalMessageInfo - -func (m *UpdateSensorRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +// Deprecated: Use CreateSensorRequest.ProtoReflect.Descriptor instead. +func (*CreateSensorRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sensor_sensor_proto_rawDescGZIP(), []int{1} } -func (m *UpdateSensorRequest) GetName() string { - if m != nil { - return m.Name +func (x *CreateSensorRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *UpdateSensorRequest) GetSensor() *v1alpha1.Sensor { - if m != nil { - return m.Sensor +func (x *CreateSensorRequest) GetSensor() *v1alpha1.Sensor { + if x != nil { + return x.Sensor } return nil } -type DeleteSensorRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteSensorRequest) Reset() { *m = DeleteSensorRequest{} } -func (m *DeleteSensorRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteSensorRequest) ProtoMessage() {} -func (*DeleteSensorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78ba963e1c6b5b55, []int{4} -} -func (m *DeleteSensorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteSensorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteSensorRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeleteSensorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteSensorRequest.Merge(m, src) -} -func (m *DeleteSensorRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteSensorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteSensorRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteSensorRequest proto.InternalMessageInfo - -func (m *DeleteSensorRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *DeleteSensorRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -func (m *DeleteSensorRequest) GetDeleteOptions() *v1.DeleteOptions { - if m != nil { - return m.DeleteOptions +func (x *CreateSensorRequest) GetCreateOptions() *v1.CreateOptions { + if x != nil { + return x.CreateOptions } return nil } -type DeleteSensorResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type GetSensorRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + GetOptions *v1.GetOptions `protobuf:"bytes,3,opt,name=getOptions,proto3" json:"getOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *DeleteSensorResponse) Reset() { *m = DeleteSensorResponse{} } -func (m *DeleteSensorResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteSensorResponse) ProtoMessage() {} -func (*DeleteSensorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78ba963e1c6b5b55, []int{5} -} -func (m *DeleteSensorResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteSensorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteSensorResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeleteSensorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteSensorResponse.Merge(m, src) -} -func (m *DeleteSensorResponse) XXX_Size() int { - return m.Size() +func (x *GetSensorRequest) Reset() { + *x = GetSensorRequest{} + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteSensorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteSensorResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteSensorResponse proto.InternalMessageInfo -type SensorsLogsRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // optional - only return entries for this sensor name - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // optional - only return entries for this trigger - TriggerName string `protobuf:"bytes,3,opt,name=triggerName,proto3" json:"triggerName,omitempty"` - // option - only return entries where `msg` contains this regular expressions - Grep string `protobuf:"bytes,4,opt,name=grep,proto3" json:"grep,omitempty"` - PodLogOptions *v11.PodLogOptions `protobuf:"bytes,5,opt,name=podLogOptions,proto3" json:"podLogOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SensorsLogsRequest) Reset() { *m = SensorsLogsRequest{} } -func (m *SensorsLogsRequest) String() string { return proto.CompactTextString(m) } -func (*SensorsLogsRequest) ProtoMessage() {} -func (*SensorsLogsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78ba963e1c6b5b55, []int{6} -} -func (m *SensorsLogsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SensorsLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SensorsLogsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SensorsLogsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SensorsLogsRequest.Merge(m, src) -} -func (m *SensorsLogsRequest) XXX_Size() int { - return m.Size() -} -func (m *SensorsLogsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SensorsLogsRequest.DiscardUnknown(m) +func (x *GetSensorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SensorsLogsRequest proto.InternalMessageInfo +func (*GetSensorRequest) ProtoMessage() {} -func (m *SensorsLogsRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *GetSensorRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *SensorsLogsRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +// Deprecated: Use GetSensorRequest.ProtoReflect.Descriptor instead. +func (*GetSensorRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sensor_sensor_proto_rawDescGZIP(), []int{2} } -func (m *SensorsLogsRequest) GetTriggerName() string { - if m != nil { - return m.TriggerName +func (x *GetSensorRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *SensorsLogsRequest) GetGrep() string { - if m != nil { - return m.Grep +func (x *GetSensorRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *SensorsLogsRequest) GetPodLogOptions() *v11.PodLogOptions { - if m != nil { - return m.PodLogOptions +func (x *GetSensorRequest) GetGetOptions() *v1.GetOptions { + if x != nil { + return x.GetOptions } return nil } -// structured log entry -type LogEntry struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - SensorName string `protobuf:"bytes,2,opt,name=sensorName,proto3" json:"sensorName,omitempty"` - // optional - any trigger name - TriggerName string `protobuf:"bytes,3,opt,name=triggerName,proto3" json:"triggerName,omitempty"` - Level string `protobuf:"bytes,5,opt,name=level,proto3" json:"level,omitempty"` - Time *v1.Time `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` - Msg string `protobuf:"bytes,7,opt,name=msg,proto3" json:"msg,omitempty"` - // optional - trigger dependency name - DependencyName string `protobuf:"bytes,8,opt,name=dependencyName,proto3" json:"dependencyName,omitempty"` - // optional - Cloud Event context - EventContext string `protobuf:"bytes,9,opt,name=eventContext,proto3" json:"eventContext,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogEntry) Reset() { *m = LogEntry{} } -func (m *LogEntry) String() string { return proto.CompactTextString(m) } -func (*LogEntry) ProtoMessage() {} -func (*LogEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_78ba963e1c6b5b55, []int{7} -} -func (m *LogEntry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogEntry.Merge(m, src) -} -func (m *LogEntry) XXX_Size() int { - return m.Size() -} -func (m *LogEntry) XXX_DiscardUnknown() { - xxx_messageInfo_LogEntry.DiscardUnknown(m) -} - -var xxx_messageInfo_LogEntry proto.InternalMessageInfo - -func (m *LogEntry) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -func (m *LogEntry) GetSensorName() string { - if m != nil { - return m.SensorName - } - return "" +type UpdateSensorRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Sensor *v1alpha1.Sensor `protobuf:"bytes,3,opt,name=sensor,proto3" json:"sensor,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *LogEntry) GetTriggerName() string { - if m != nil { - return m.TriggerName - } - return "" +func (x *UpdateSensorRequest) Reset() { + *x = UpdateSensorRequest{} + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LogEntry) GetLevel() string { - if m != nil { - return m.Level - } - return "" +func (x *UpdateSensorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LogEntry) GetTime() *v1.Time { - if m != nil { - return m.Time - } - return nil -} +func (*UpdateSensorRequest) ProtoMessage() {} -func (m *LogEntry) GetMsg() string { - if m != nil { - return m.Msg +func (x *UpdateSensorRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *LogEntry) GetDependencyName() string { - if m != nil { - return m.DependencyName - } - return "" +// Deprecated: Use UpdateSensorRequest.ProtoReflect.Descriptor instead. +func (*UpdateSensorRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sensor_sensor_proto_rawDescGZIP(), []int{3} } -func (m *LogEntry) GetEventContext() string { - if m != nil { - return m.EventContext +func (x *UpdateSensorRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -type SensorWatchEvent struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Object *v1alpha1.Sensor `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SensorWatchEvent) Reset() { *m = SensorWatchEvent{} } -func (m *SensorWatchEvent) String() string { return proto.CompactTextString(m) } -func (*SensorWatchEvent) ProtoMessage() {} -func (*SensorWatchEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_78ba963e1c6b5b55, []int{8} -} -func (m *SensorWatchEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SensorWatchEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SensorWatchEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SensorWatchEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_SensorWatchEvent.Merge(m, src) -} -func (m *SensorWatchEvent) XXX_Size() int { - return m.Size() -} -func (m *SensorWatchEvent) XXX_DiscardUnknown() { - xxx_messageInfo_SensorWatchEvent.DiscardUnknown(m) -} - -var xxx_messageInfo_SensorWatchEvent proto.InternalMessageInfo - -func (m *SensorWatchEvent) GetType() string { - if m != nil { - return m.Type +func (x *UpdateSensorRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *SensorWatchEvent) GetObject() *v1alpha1.Sensor { - if m != nil { - return m.Object +func (x *UpdateSensorRequest) GetSensor() *v1alpha1.Sensor { + if x != nil { + return x.Sensor } return nil } -func init() { - proto.RegisterType((*ListSensorsRequest)(nil), "sensor.ListSensorsRequest") - proto.RegisterType((*CreateSensorRequest)(nil), "sensor.CreateSensorRequest") - proto.RegisterType((*GetSensorRequest)(nil), "sensor.GetSensorRequest") - proto.RegisterType((*UpdateSensorRequest)(nil), "sensor.UpdateSensorRequest") - proto.RegisterType((*DeleteSensorRequest)(nil), "sensor.DeleteSensorRequest") - proto.RegisterType((*DeleteSensorResponse)(nil), "sensor.DeleteSensorResponse") - proto.RegisterType((*SensorsLogsRequest)(nil), "sensor.SensorsLogsRequest") - proto.RegisterType((*LogEntry)(nil), "sensor.LogEntry") - proto.RegisterType((*SensorWatchEvent)(nil), "sensor.SensorWatchEvent") -} - -func init() { proto.RegisterFile("pkg/apiclient/sensor/sensor.proto", fileDescriptor_78ba963e1c6b5b55) } - -var fileDescriptor_78ba963e1c6b5b55 = []byte{ - // 887 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xcf, 0x6f, 0xdc, 0x44, - 0x14, 0xc7, 0x35, 0x9b, 0x34, 0xed, 0xbe, 0xdd, 0xa0, 0x68, 0x52, 0xa1, 0x95, 0x1b, 0xa2, 0x74, - 0x40, 0x6d, 0x89, 0x54, 0x3b, 0xdb, 0xf6, 0x80, 0x7a, 0x40, 0x88, 0xa4, 0x4a, 0x0f, 0xab, 0x52, - 0x39, 0x20, 0x28, 0x17, 0xe4, 0x78, 0x1f, 0x13, 0x37, 0xb6, 0xc7, 0xcc, 0x4c, 0x5c, 0x22, 0x84, - 0x84, 0xb8, 0xf0, 0x07, 0x14, 0x38, 0x21, 0x24, 0xf8, 0x5f, 0x90, 0x38, 0x21, 0x24, 0xfe, 0x01, - 0x14, 0x71, 0xe0, 0xcf, 0xa8, 0x3c, 0x9e, 0x5d, 0xdb, 0xbb, 0xdb, 0x76, 0xdb, 0xec, 0xc9, 0xf3, - 0xeb, 0xbd, 0xf7, 0x79, 0xf3, 0x9d, 0x99, 0x67, 0xb8, 0x9a, 0x1d, 0x73, 0x2f, 0xc8, 0xa2, 0x30, - 0x8e, 0x30, 0xd5, 0x9e, 0xc2, 0x54, 0x09, 0x69, 0x3f, 0x6e, 0x26, 0x85, 0x16, 0x74, 0xa5, 0xec, - 0x39, 0xf7, 0x79, 0xa4, 0x8f, 0x4e, 0x0e, 0xdd, 0x50, 0x24, 0x5e, 0x20, 0xb9, 0xc8, 0xa4, 0x78, - 0x6c, 0x1a, 0x37, 0x31, 0xc7, 0x54, 0x2b, 0xcf, 0xba, 0x52, 0x9e, 0xed, 0xe7, 0xfd, 0x20, 0xce, - 0x8e, 0x82, 0xbe, 0xc7, 0x31, 0x45, 0x19, 0x68, 0x1c, 0x96, 0x1e, 0x9d, 0x0d, 0x2e, 0x04, 0x8f, - 0xb1, 0x58, 0xec, 0x05, 0x69, 0x2a, 0x74, 0xa0, 0x23, 0x91, 0x2a, 0x3b, 0xcb, 0x8e, 0xdf, 0x53, - 0x6e, 0x24, 0xcc, 0x6c, 0x28, 0x24, 0x7a, 0xf9, 0xb4, 0x87, 0x3b, 0xd5, 0x9a, 0x24, 0x08, 0x8f, - 0xa2, 0x14, 0xe5, 0x69, 0x15, 0x3f, 0x41, 0x1d, 0xcc, 0xb0, 0x62, 0x3f, 0x10, 0xa0, 0x83, 0x48, - 0xe9, 0x03, 0x93, 0x90, 0xf2, 0xf1, 0xab, 0x13, 0x54, 0x9a, 0x6e, 0x40, 0x3b, 0x0d, 0x12, 0x54, - 0x59, 0x10, 0x62, 0x8f, 0x6c, 0x91, 0x1b, 0x6d, 0xbf, 0x1a, 0xa0, 0x07, 0xd0, 0x89, 0x23, 0xa5, - 0x3f, 0xca, 0x0c, 0x63, 0xaf, 0xb5, 0x45, 0x6e, 0x74, 0x6e, 0xf5, 0xdd, 0x12, 0xc0, 0xad, 0x03, - 0xb8, 0xd9, 0x31, 0x2f, 0x06, 0x94, 0x5b, 0x00, 0xb8, 0x79, 0xdf, 0x1d, 0x54, 0x86, 0x7e, 0xdd, - 0x0b, 0xfb, 0x9f, 0xc0, 0xfa, 0xae, 0xc4, 0x40, 0x63, 0xc9, 0x32, 0x1f, 0xca, 0x67, 0x60, 0xb5, - 0xb0, 0x14, 0x1f, 0xb8, 0x95, 0x24, 0xee, 0x48, 0x12, 0xd3, 0xf8, 0xa2, 0x94, 0xa0, 0x22, 0xb2, - 0xfd, 0x91, 0x24, 0xae, 0x0d, 0x6b, 0xfd, 0xd1, 0x47, 0xb0, 0x1a, 0x1a, 0x9c, 0x51, 0x9a, 0x4b, - 0x26, 0xc0, 0xed, 0xf9, 0xd2, 0xdc, 0xad, 0x9b, 0xfa, 0x4d, 0x4f, 0xec, 0x67, 0x02, 0x6b, 0xfb, - 0xa8, 0x9b, 0x79, 0x52, 0x58, 0x2e, 0xd2, 0xb2, 0x29, 0x9a, 0x76, 0x33, 0xf7, 0xd6, 0x64, 0xee, - 0x0f, 0x01, 0x38, 0xea, 0x26, 0xde, 0xce, 0x7c, 0x78, 0xfb, 0x63, 0x3b, 0xbf, 0xe6, 0x83, 0xfd, - 0x46, 0x60, 0xfd, 0x93, 0x6c, 0xf8, 0x8a, 0x1a, 0x8c, 0xc8, 0x5b, 0x35, 0xf2, 0x4a, 0x97, 0xa5, - 0xc5, 0xea, 0xc2, 0x7e, 0x27, 0xb0, 0xbe, 0x87, 0x31, 0x4e, 0x32, 0xbe, 0xfa, 0xfe, 0x3d, 0x82, - 0xd5, 0xa1, 0x71, 0xf4, 0x5a, 0x0a, 0xef, 0xd5, 0x4d, 0xfd, 0xa6, 0x27, 0xf6, 0x26, 0x5c, 0x6e, - 0x32, 0xaa, 0x4c, 0xa4, 0x0a, 0xd9, 0x1f, 0x04, 0xa8, 0xbd, 0x6a, 0x03, 0xc1, 0xd5, 0xeb, 0xef, - 0xef, 0x16, 0x74, 0xb4, 0x8c, 0x38, 0x47, 0xf9, 0xa0, 0x98, 0x5a, 0x32, 0x53, 0xf5, 0xa1, 0xc2, - 0x8a, 0x4b, 0xcc, 0x7a, 0xcb, 0xa5, 0x55, 0xd1, 0xa6, 0xfb, 0xb0, 0x9a, 0x89, 0xe1, 0x40, 0xf0, - 0x51, 0xc6, 0x17, 0x4c, 0xc6, 0x57, 0x6b, 0x19, 0xbb, 0xc5, 0xfb, 0x52, 0xe4, 0xf7, 0xb0, 0xbe, - 0xd0, 0x6f, 0xda, 0xb1, 0x5f, 0x5b, 0x70, 0x69, 0x20, 0xf8, 0xbd, 0x54, 0xcb, 0xd3, 0x97, 0xd0, - 0x6f, 0x02, 0x94, 0xca, 0x3d, 0xa8, 0x72, 0xa8, 0x8d, 0xcc, 0x91, 0xc9, 0x65, 0xb8, 0x10, 0x63, - 0x8e, 0xb1, 0xa1, 0x6d, 0xfb, 0x65, 0x87, 0xbe, 0x0f, 0xcb, 0x3a, 0x4a, 0xb0, 0xb7, 0x62, 0x52, - 0xd8, 0x9e, 0x4f, 0xb4, 0x8f, 0xa3, 0x04, 0x7d, 0x63, 0x47, 0xd7, 0x60, 0x29, 0x51, 0xbc, 0x77, - 0xd1, 0xf8, 0x2c, 0x9a, 0xf4, 0x1a, 0xbc, 0x31, 0xc4, 0x0c, 0xd3, 0x21, 0xa6, 0xe1, 0xa9, 0x81, - 0xb9, 0x64, 0x26, 0x27, 0x46, 0x29, 0x83, 0xae, 0x39, 0xa3, 0xbb, 0x22, 0xd5, 0xf8, 0xb5, 0xee, - 0xb5, 0xcd, 0xaa, 0xc6, 0x18, 0xfb, 0x8e, 0xc0, 0x5a, 0x29, 0xf4, 0xa7, 0x81, 0x0e, 0x8f, 0xee, - 0x15, 0x73, 0x85, 0x24, 0xfa, 0x34, 0x1b, 0x1f, 0xd1, 0xa2, 0x5d, 0x5c, 0x14, 0x71, 0xf8, 0x18, - 0x43, 0xbd, 0xb8, 0x07, 0xac, 0xf4, 0x77, 0xeb, 0xaf, 0x8b, 0xb0, 0x5a, 0x0e, 0x1d, 0xa0, 0xcc, - 0xa3, 0x10, 0xe9, 0x8f, 0x04, 0x3a, 0xb5, 0xc7, 0x9e, 0x3a, 0xae, 0xad, 0x6a, 0xd3, 0x15, 0xc0, - 0xd9, 0x3b, 0x2f, 0x47, 0xe1, 0x93, 0xbd, 0xfd, 0xfd, 0x3f, 0xff, 0x3d, 0x6d, 0xbd, 0x45, 0xaf, - 0x98, 0xd2, 0x95, 0xf7, 0x6d, 0x19, 0x55, 0xde, 0x37, 0xe3, 0x03, 0xf2, 0x2d, 0x4d, 0xa1, 0x53, - 0xbb, 0x13, 0x15, 0xd5, 0xf4, 0x45, 0x71, 0xd6, 0xc6, 0xc4, 0xf6, 0xf0, 0x31, 0xcf, 0x44, 0x78, - 0x97, 0x5e, 0x1f, 0x47, 0xd0, 0x12, 0x83, 0x64, 0x56, 0x20, 0x2f, 0x16, 0x5c, 0xed, 0x10, 0x2a, - 0xa1, 0x6b, 0x44, 0x99, 0x67, 0x1b, 0x7a, 0x4d, 0x98, 0x4a, 0x4c, 0xb6, 0x6d, 0x02, 0xbf, 0x43, - 0xd9, 0xcb, 0x03, 0xef, 0x10, 0xfa, 0x13, 0x81, 0x6e, 0xbd, 0xba, 0xd1, 0x2b, 0x23, 0xc7, 0x33, - 0x6a, 0x9e, 0x73, 0xee, 0x43, 0xc0, 0xae, 0x19, 0xba, 0x2d, 0xf6, 0xa2, 0x8d, 0xbf, 0x4b, 0xb6, - 0xe9, 0x2f, 0x04, 0xba, 0xf5, 0x17, 0xbf, 0xe2, 0x9a, 0x51, 0x07, 0x16, 0xc0, 0x75, 0xd3, 0x70, - 0x5d, 0x77, 0xd8, 0x0b, 0xb8, 0xca, 0xb6, 0xc1, 0x3b, 0x81, 0x6e, 0xfd, 0x1d, 0xad, 0xe8, 0x66, - 0x54, 0x00, 0x67, 0x63, 0xf6, 0xa4, 0x7d, 0x7a, 0xad, 0x5e, 0xdb, 0x73, 0x44, 0xa6, 0x4f, 0x09, - 0xb4, 0xc7, 0x05, 0x9a, 0x8e, 0xcf, 0xc0, 0x64, 0xcd, 0x5e, 0xc0, 0x7e, 0x4c, 0x9f, 0xa2, 0xe7, - 0x52, 0x7d, 0x78, 0xff, 0xcf, 0xb3, 0x4d, 0xf2, 0xf7, 0xd9, 0x26, 0xf9, 0xf7, 0x6c, 0x93, 0x7c, - 0x7e, 0xf7, 0xb9, 0xff, 0x9e, 0x4f, 0x84, 0x3c, 0xfe, 0x32, 0x16, 0x4f, 0x94, 0x97, 0xdf, 0xf1, - 0x66, 0xfd, 0xcc, 0x1e, 0xae, 0x98, 0x9f, 0xbf, 0xdb, 0xcf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x8e, - 0x95, 0x62, 0xd8, 0xeb, 0x0a, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// SensorServiceClient is the client API for SensorService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SensorServiceClient interface { - ListSensors(ctx context.Context, in *ListSensorsRequest, opts ...grpc.CallOption) (*v1alpha1.SensorList, error) - SensorsLogs(ctx context.Context, in *SensorsLogsRequest, opts ...grpc.CallOption) (SensorService_SensorsLogsClient, error) - WatchSensors(ctx context.Context, in *ListSensorsRequest, opts ...grpc.CallOption) (SensorService_WatchSensorsClient, error) - CreateSensor(ctx context.Context, in *CreateSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) - UpdateSensor(ctx context.Context, in *UpdateSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) - DeleteSensor(ctx context.Context, in *DeleteSensorRequest, opts ...grpc.CallOption) (*DeleteSensorResponse, error) - GetSensor(ctx context.Context, in *GetSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) -} - -type sensorServiceClient struct { - cc *grpc.ClientConn -} - -func NewSensorServiceClient(cc *grpc.ClientConn) SensorServiceClient { - return &sensorServiceClient{cc} -} - -func (c *sensorServiceClient) ListSensors(ctx context.Context, in *ListSensorsRequest, opts ...grpc.CallOption) (*v1alpha1.SensorList, error) { - out := new(v1alpha1.SensorList) - err := c.cc.Invoke(ctx, "/sensor.SensorService/ListSensors", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sensorServiceClient) SensorsLogs(ctx context.Context, in *SensorsLogsRequest, opts ...grpc.CallOption) (SensorService_SensorsLogsClient, error) { - stream, err := c.cc.NewStream(ctx, &_SensorService_serviceDesc.Streams[0], "/sensor.SensorService/SensorsLogs", opts...) - if err != nil { - return nil, err - } - x := &sensorServiceSensorsLogsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type SensorService_SensorsLogsClient interface { - Recv() (*LogEntry, error) - grpc.ClientStream -} - -type sensorServiceSensorsLogsClient struct { - grpc.ClientStream -} - -func (x *sensorServiceSensorsLogsClient) Recv() (*LogEntry, error) { - m := new(LogEntry) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *sensorServiceClient) WatchSensors(ctx context.Context, in *ListSensorsRequest, opts ...grpc.CallOption) (SensorService_WatchSensorsClient, error) { - stream, err := c.cc.NewStream(ctx, &_SensorService_serviceDesc.Streams[1], "/sensor.SensorService/WatchSensors", opts...) - if err != nil { - return nil, err - } - x := &sensorServiceWatchSensorsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type SensorService_WatchSensorsClient interface { - Recv() (*SensorWatchEvent, error) - grpc.ClientStream -} - -type sensorServiceWatchSensorsClient struct { - grpc.ClientStream -} - -func (x *sensorServiceWatchSensorsClient) Recv() (*SensorWatchEvent, error) { - m := new(SensorWatchEvent) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *sensorServiceClient) CreateSensor(ctx context.Context, in *CreateSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) { - out := new(v1alpha1.Sensor) - err := c.cc.Invoke(ctx, "/sensor.SensorService/CreateSensor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sensorServiceClient) UpdateSensor(ctx context.Context, in *UpdateSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) { - out := new(v1alpha1.Sensor) - err := c.cc.Invoke(ctx, "/sensor.SensorService/UpdateSensor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sensorServiceClient) DeleteSensor(ctx context.Context, in *DeleteSensorRequest, opts ...grpc.CallOption) (*DeleteSensorResponse, error) { - out := new(DeleteSensorResponse) - err := c.cc.Invoke(ctx, "/sensor.SensorService/DeleteSensor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sensorServiceClient) GetSensor(ctx context.Context, in *GetSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) { - out := new(v1alpha1.Sensor) - err := c.cc.Invoke(ctx, "/sensor.SensorService/GetSensor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SensorServiceServer is the server API for SensorService service. -type SensorServiceServer interface { - ListSensors(context.Context, *ListSensorsRequest) (*v1alpha1.SensorList, error) - SensorsLogs(*SensorsLogsRequest, SensorService_SensorsLogsServer) error - WatchSensors(*ListSensorsRequest, SensorService_WatchSensorsServer) error - CreateSensor(context.Context, *CreateSensorRequest) (*v1alpha1.Sensor, error) - UpdateSensor(context.Context, *UpdateSensorRequest) (*v1alpha1.Sensor, error) - DeleteSensor(context.Context, *DeleteSensorRequest) (*DeleteSensorResponse, error) - GetSensor(context.Context, *GetSensorRequest) (*v1alpha1.Sensor, error) -} - -// UnimplementedSensorServiceServer can be embedded to have forward compatible implementations. -type UnimplementedSensorServiceServer struct { -} - -func (*UnimplementedSensorServiceServer) ListSensors(ctx context.Context, req *ListSensorsRequest) (*v1alpha1.SensorList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListSensors not implemented") -} -func (*UnimplementedSensorServiceServer) SensorsLogs(req *SensorsLogsRequest, srv SensorService_SensorsLogsServer) error { - return status.Errorf(codes.Unimplemented, "method SensorsLogs not implemented") -} -func (*UnimplementedSensorServiceServer) WatchSensors(req *ListSensorsRequest, srv SensorService_WatchSensorsServer) error { - return status.Errorf(codes.Unimplemented, "method WatchSensors not implemented") -} -func (*UnimplementedSensorServiceServer) CreateSensor(ctx context.Context, req *CreateSensorRequest) (*v1alpha1.Sensor, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateSensor not implemented") -} -func (*UnimplementedSensorServiceServer) UpdateSensor(ctx context.Context, req *UpdateSensorRequest) (*v1alpha1.Sensor, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateSensor not implemented") -} -func (*UnimplementedSensorServiceServer) DeleteSensor(ctx context.Context, req *DeleteSensorRequest) (*DeleteSensorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteSensor not implemented") -} -func (*UnimplementedSensorServiceServer) GetSensor(ctx context.Context, req *GetSensorRequest) (*v1alpha1.Sensor, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetSensor not implemented") -} - -func RegisterSensorServiceServer(s *grpc.Server, srv SensorServiceServer) { - s.RegisterService(&_SensorService_serviceDesc, srv) -} - -func _SensorService_ListSensors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListSensorsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SensorServiceServer).ListSensors(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sensor.SensorService/ListSensors", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SensorServiceServer).ListSensors(ctx, req.(*ListSensorsRequest)) - } - return interceptor(ctx, in, info, handler) +type DeleteSensorRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func _SensorService_SensorsLogs_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SensorsLogsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SensorServiceServer).SensorsLogs(m, &sensorServiceSensorsLogsServer{stream}) +func (x *DeleteSensorRequest) Reset() { + *x = DeleteSensorRequest{} + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type SensorService_SensorsLogsServer interface { - Send(*LogEntry) error - grpc.ServerStream +func (x *DeleteSensorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type sensorServiceSensorsLogsServer struct { - grpc.ServerStream -} +func (*DeleteSensorRequest) ProtoMessage() {} -func (x *sensorServiceSensorsLogsServer) Send(m *LogEntry) error { - return x.ServerStream.SendMsg(m) -} - -func _SensorService_WatchSensors_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListSensorsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *DeleteSensorRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(SensorServiceServer).WatchSensors(m, &sensorServiceWatchSensorsServer{stream}) -} - -type SensorService_WatchSensorsServer interface { - Send(*SensorWatchEvent) error - grpc.ServerStream -} - -type sensorServiceWatchSensorsServer struct { - grpc.ServerStream + return mi.MessageOf(x) } -func (x *sensorServiceWatchSensorsServer) Send(m *SensorWatchEvent) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use DeleteSensorRequest.ProtoReflect.Descriptor instead. +func (*DeleteSensorRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sensor_sensor_proto_rawDescGZIP(), []int{4} } -func _SensorService_CreateSensor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateSensorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SensorServiceServer).CreateSensor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sensor.SensorService/CreateSensor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SensorServiceServer).CreateSensor(ctx, req.(*CreateSensorRequest)) +func (x *DeleteSensorRequest) GetName() string { + if x != nil { + return x.Name } - return interceptor(ctx, in, info, handler) + return "" } -func _SensorService_UpdateSensor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateSensorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SensorServiceServer).UpdateSensor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sensor.SensorService/UpdateSensor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SensorServiceServer).UpdateSensor(ctx, req.(*UpdateSensorRequest)) +func (x *DeleteSensorRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return interceptor(ctx, in, info, handler) + return "" } -func _SensorService_DeleteSensor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteSensorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SensorServiceServer).DeleteSensor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sensor.SensorService/DeleteSensor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SensorServiceServer).DeleteSensor(ctx, req.(*DeleteSensorRequest)) +func (x *DeleteSensorRequest) GetDeleteOptions() *v1.DeleteOptions { + if x != nil { + return x.DeleteOptions } - return interceptor(ctx, in, info, handler) + return nil } -func _SensorService_GetSensor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetSensorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SensorServiceServer).GetSensor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sensor.SensorService/GetSensor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SensorServiceServer).GetSensor(ctx, req.(*GetSensorRequest)) - } - return interceptor(ctx, in, info, handler) +type DeleteSensorResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var _SensorService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "sensor.SensorService", - HandlerType: (*SensorServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListSensors", - Handler: _SensorService_ListSensors_Handler, - }, - { - MethodName: "CreateSensor", - Handler: _SensorService_CreateSensor_Handler, - }, - { - MethodName: "UpdateSensor", - Handler: _SensorService_UpdateSensor_Handler, - }, - { - MethodName: "DeleteSensor", - Handler: _SensorService_DeleteSensor_Handler, - }, - { - MethodName: "GetSensor", - Handler: _SensorService_GetSensor_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "SensorsLogs", - Handler: _SensorService_SensorsLogs_Handler, - ServerStreams: true, - }, - { - StreamName: "WatchSensors", - Handler: _SensorService_WatchSensors_Handler, - ServerStreams: true, - }, - }, - Metadata: "pkg/apiclient/sensor/sensor.proto", +func (x *DeleteSensorResponse) Reset() { + *x = DeleteSensorResponse{} + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListSensorsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *DeleteSensorResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListSensorsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*DeleteSensorResponse) ProtoMessage() {} -func (m *ListSensorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSensor(dAtA, i, uint64(size)) +func (x *DeleteSensorResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 + return ms } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *CreateSensorRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use DeleteSensorResponse.ProtoReflect.Descriptor instead. +func (*DeleteSensorResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sensor_sensor_proto_rawDescGZIP(), []int{5} } -func (m *CreateSensorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type SensorsLogsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + // optional - only return entries for this sensor name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // optional - only return entries for this trigger + TriggerName string `protobuf:"bytes,3,opt,name=triggerName,proto3" json:"triggerName,omitempty"` + // option - only return entries where `msg` contains this regular expressions + Grep string `protobuf:"bytes,4,opt,name=grep,proto3" json:"grep,omitempty"` + PodLogOptions *v11.PodLogOptions `protobuf:"bytes,5,opt,name=podLogOptions,proto3" json:"podLogOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CreateSensorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CreateOptions != nil { - { - size, err := m.CreateOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSensor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Sensor != nil { - { - size, err := m.Sensor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSensor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *SensorsLogsRequest) Reset() { + *x = SensorsLogsRequest{} + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *GetSensorRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *SensorsLogsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetSensorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*SensorsLogsRequest) ProtoMessage() {} -func (m *GetSensorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.GetOptions != nil { - { - size, err := m.GetOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSensor(dAtA, i, uint64(size)) +func (x *SensorsLogsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 + return ms } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UpdateSensorRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *UpdateSensorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateSensorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Sensor != nil { - { - size, err := m.Sensor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSensor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use SensorsLogsRequest.ProtoReflect.Descriptor instead. +func (*SensorsLogsRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sensor_sensor_proto_rawDescGZIP(), []int{6} } -func (m *DeleteSensorRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *SensorsLogsRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return dAtA[:n], nil -} - -func (m *DeleteSensorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *DeleteSensorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.DeleteOptions != nil { - { - size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSensor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 +func (x *SensorsLogsRequest) GetName() string { + if x != nil { + return x.Name } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *DeleteSensorResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *SensorsLogsRequest) GetTriggerName() string { + if x != nil { + return x.TriggerName } - return dAtA[:n], nil -} - -func (m *DeleteSensorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *DeleteSensorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *SensorsLogsRequest) GetGrep() string { + if x != nil { + return x.Grep } - return len(dAtA) - i, nil + return "" } -func (m *SensorsLogsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *SensorsLogsRequest) GetPodLogOptions() *v11.PodLogOptions { + if x != nil { + return x.PodLogOptions } - return dAtA[:n], nil + return nil } -func (m *SensorsLogsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// structured log entry +type LogEntry struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + SensorName string `protobuf:"bytes,2,opt,name=sensorName,proto3" json:"sensorName,omitempty"` + // optional - any trigger name + TriggerName string `protobuf:"bytes,3,opt,name=triggerName,proto3" json:"triggerName,omitempty"` + Level string `protobuf:"bytes,5,opt,name=level,proto3" json:"level,omitempty"` + Time *v1.Time `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` + Msg string `protobuf:"bytes,7,opt,name=msg,proto3" json:"msg,omitempty"` + // optional - trigger dependency name + DependencyName string `protobuf:"bytes,8,opt,name=dependencyName,proto3" json:"dependencyName,omitempty"` + // optional - Cloud Event context + EventContext string `protobuf:"bytes,9,opt,name=eventContext,proto3" json:"eventContext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *SensorsLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PodLogOptions != nil { - { - size, err := m.PodLogOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSensor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.Grep) > 0 { - i -= len(m.Grep) - copy(dAtA[i:], m.Grep) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Grep))) - i-- - dAtA[i] = 0x22 - } - if len(m.TriggerName) > 0 { - i -= len(m.TriggerName) - copy(dAtA[i:], m.TriggerName) - i = encodeVarintSensor(dAtA, i, uint64(len(m.TriggerName))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *LogEntry) Reset() { + *x = LogEntry{} + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LogEntry) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *LogEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LogEntry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*LogEntry) ProtoMessage() {} -func (m *LogEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.EventContext) > 0 { - i -= len(m.EventContext) - copy(dAtA[i:], m.EventContext) - i = encodeVarintSensor(dAtA, i, uint64(len(m.EventContext))) - i-- - dAtA[i] = 0x4a - } - if len(m.DependencyName) > 0 { - i -= len(m.DependencyName) - copy(dAtA[i:], m.DependencyName) - i = encodeVarintSensor(dAtA, i, uint64(len(m.DependencyName))) - i-- - dAtA[i] = 0x42 - } - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Msg))) - i-- - dAtA[i] = 0x3a - } - if m.Time != nil { - { - size, err := m.Time.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSensor(dAtA, i, uint64(size)) +func (x *LogEntry) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x32 - } - if len(m.Level) > 0 { - i -= len(m.Level) - copy(dAtA[i:], m.Level) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Level))) - i-- - dAtA[i] = 0x2a - } - if len(m.TriggerName) > 0 { - i -= len(m.TriggerName) - copy(dAtA[i:], m.TriggerName) - i = encodeVarintSensor(dAtA, i, uint64(len(m.TriggerName))) - i-- - dAtA[i] = 0x1a + return ms } - if len(m.SensorName) > 0 { - i -= len(m.SensorName) - copy(dAtA[i:], m.SensorName) - i = encodeVarintSensor(dAtA, i, uint64(len(m.SensorName))) - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *SensorWatchEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SensorWatchEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use LogEntry.ProtoReflect.Descriptor instead. +func (*LogEntry) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sensor_sensor_proto_rawDescGZIP(), []int{7} } -func (m *SensorWatchEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Object != nil { - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSensor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Type) > 0 { - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintSensor(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa +func (x *LogEntry) GetNamespace() string { + if x != nil { + return x.Namespace } - return len(dAtA) - i, nil + return "" } -func encodeVarintSensor(dAtA []byte, offset int, v uint64) int { - offset -= sovSensor(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ListSensorsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovSensor(uint64(l)) +func (x *LogEntry) GetSensorName() string { + if x != nil { + return x.SensorName } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *CreateSensorRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - if m.Sensor != nil { - l = m.Sensor.Size() - n += 1 + l + sovSensor(uint64(l)) +func (x *LogEntry) GetTriggerName() string { + if x != nil { + return x.TriggerName } - if m.CreateOptions != nil { - l = m.CreateOptions.Size() - n += 1 + l + sovSensor(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *GetSensorRequest) Size() (n int) { - if m == nil { - return 0 +func (x *LogEntry) GetLevel() string { + if x != nil { + return x.Level } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - if m.GetOptions != nil { - l = m.GetOptions.Size() - n += 1 + l + sovSensor(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *UpdateSensorRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - if m.Sensor != nil { - l = m.Sensor.Size() - n += 1 + l + sovSensor(uint64(l)) +func (x *LogEntry) GetTime() *v1.Time { + if x != nil { + return x.Time } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return nil } -func (m *DeleteSensorRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) +func (x *LogEntry) GetMsg() string { + if x != nil { + return x.Msg } - if m.DeleteOptions != nil { - l = m.DeleteOptions.Size() - n += 1 + l + sovSensor(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *DeleteSensorResponse) Size() (n int) { - if m == nil { - return 0 +func (x *LogEntry) GetDependencyName() string { + if x != nil { + return x.DependencyName } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *SensorsLogsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.TriggerName) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.Grep) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - if m.PodLogOptions != nil { - l = m.PodLogOptions.Size() - n += 1 + l + sovSensor(uint64(l)) +func (x *LogEntry) GetEventContext() string { + if x != nil { + return x.EventContext } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *LogEntry) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.SensorName) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.TriggerName) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.Level) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - if m.Time != nil { - l = m.Time.Size() - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.Msg) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.DependencyName) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - l = len(m.EventContext) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type SensorWatchEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Object *v1alpha1.Sensor `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *SensorWatchEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovSensor(uint64(l)) - } - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovSensor(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovSensor(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozSensor(x uint64) (n int) { - return sovSensor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ListSensorsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListSensorsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListSensorsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSensor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSensor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *SensorWatchEvent) Reset() { + *x = SensorWatchEvent{} + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateSensorRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateSensorRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateSensorRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sensor", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Sensor == nil { - m.Sensor = &v1alpha1.Sensor{} - } - if err := m.Sensor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreateOptions == nil { - m.CreateOptions = &v1.CreateOptions{} - } - if err := m.CreateOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSensor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSensor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *SensorWatchEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetSensorRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetSensorRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetSensorRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GetOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GetOptions == nil { - m.GetOptions = &v1.GetOptions{} - } - if err := m.GetOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSensor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSensor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateSensorRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateSensorRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateSensorRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sensor", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Sensor == nil { - m.Sensor = &v1alpha1.Sensor{} - } - if err := m.Sensor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSensor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSensor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*SensorWatchEvent) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteSensorRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteSensorRequest: wiretype end group for non-group") +func (x *SensorWatchEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sensor_sensor_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteSensorRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteOptions == nil { - m.DeleteOptions = &v1.DeleteOptions{} - } - if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSensor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSensor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func (m *DeleteSensorResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteSensorResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteSensorResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipSensor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSensor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use SensorWatchEvent.ProtoReflect.Descriptor instead. +func (*SensorWatchEvent) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sensor_sensor_proto_rawDescGZIP(), []int{8} } -func (m *SensorsLogsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SensorsLogsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SensorsLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TriggerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TriggerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Grep", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Grep = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodLogOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodLogOptions == nil { - m.PodLogOptions = &v11.PodLogOptions{} - } - if err := m.PodLogOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSensor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSensor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *SensorWatchEvent) GetType() string { + if x != nil { + return x.Type } - return nil + return "" } -func (m *LogEntry) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LogEntry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LogEntry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SensorName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SensorName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TriggerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TriggerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Level = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Time == nil { - m.Time = &v1.Time{} - } - if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Msg = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DependencyName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DependencyName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventContext", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EventContext = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSensor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSensor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *SensorWatchEvent) GetObject() *v1alpha1.Sensor { + if x != nil { + return x.Object } return nil } -func (m *SensorWatchEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SensorWatchEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SensorWatchEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSensor - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSensor - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSensor - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &v1alpha1.Sensor{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSensor(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSensor - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipSensor(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSensor - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSensor - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSensor - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthSensor - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupSensor - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthSensor - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_apiclient_sensor_sensor_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_sensor_sensor_proto_rawDesc = "" + + "\n" + + "!pkg/apiclient/sensor/sensor.proto\x12\x06sensor\x1aHgithub.com/argoproj/argo-events/pkg/apis/events/v1alpha1/generated.proto\x1a\x1cgoogle/api/annotations.proto\x1a\"k8s.io/api/core/v1/generated.proto\x1a4k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto\"\x87\x01\n" + + "\x12ListSensorsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12S\n" + + "\vlistOptions\x18\x02 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\"\xe8\x01\n" + + "\x13CreateSensorRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + + "\x06sensor\x18\x02 \x01(\v2@.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorR\x06sensor\x12Y\n" + + "\rcreateOptions\x18\x03 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptionsR\rcreateOptions\"\x96\x01\n" + + "\x10GetSensorRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12P\n" + + "\n" + + "getOptions\x18\x03 \x01(\v20.k8s.io.apimachinery.pkg.apis.meta.v1.GetOptionsR\n" + + "getOptions\"\xa1\x01\n" + + "\x13UpdateSensorRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12X\n" + + "\x06sensor\x18\x03 \x01(\v2@.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorR\x06sensor\"\xa2\x01\n" + + "\x13DeleteSensorRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12Y\n" + + "\rdeleteOptions\x18\x03 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptionsR\rdeleteOptions\"\x16\n" + + "\x14DeleteSensorResponse\"\xc5\x01\n" + + "\x12SensorsLogsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vtriggerName\x18\x03 \x01(\tR\vtriggerName\x12\x12\n" + + "\x04grep\x18\x04 \x01(\tR\x04grep\x12G\n" + + "\rpodLogOptions\x18\x05 \x01(\v2!.k8s.io.api.core.v1.PodLogOptionsR\rpodLogOptions\"\x9e\x02\n" + + "\bLogEntry\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1e\n" + + "\n" + + "sensorName\x18\x02 \x01(\tR\n" + + "sensorName\x12 \n" + + "\vtriggerName\x18\x03 \x01(\tR\vtriggerName\x12\x14\n" + + "\x05level\x18\x05 \x01(\tR\x05level\x12>\n" + + "\x04time\x18\x06 \x01(\v2*.k8s.io.apimachinery.pkg.apis.meta.v1.TimeR\x04time\x12\x10\n" + + "\x03msg\x18\a \x01(\tR\x03msg\x12&\n" + + "\x0edependencyName\x18\b \x01(\tR\x0edependencyName\x12\"\n" + + "\feventContext\x18\t \x01(\tR\feventContext\"\x80\x01\n" + + "\x10SensorWatchEvent\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12X\n" + + "\x06object\x18\x02 \x01(\v2@.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorR\x06object2\xce\a\n" + + "\rSensorService\x12\x94\x01\n" + + "\vListSensors\x12\x1a.sensor.ListSensorsRequest\x1aD.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorList\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/v1/sensors/{namespace}\x12n\n" + + "\vSensorsLogs\x12\x1a.sensor.SensorsLogsRequest\x1a\x10.sensor.LogEntry\"/\x82\xd3\xe4\x93\x02)\x12'/api/v1/stream/sensors/{namespace}/logs0\x01\x12r\n" + + "\fWatchSensors\x12\x1a.sensor.ListSensorsRequest\x1a\x18.sensor.SensorWatchEvent\"*\x82\xd3\xe4\x93\x02$\x12\"/api/v1/stream/sensors/{namespace}0\x01\x12\x95\x01\n" + + "\fCreateSensor\x12\x1b.sensor.CreateSensorRequest\x1a@.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/v1/sensors/{namespace}\x12\x9c\x01\n" + + "\fUpdateSensor\x12\x1b.sensor.UpdateSensorRequest\x1a@.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor\"-\x82\xd3\xe4\x93\x02':\x01*\x1a\"/api/v1/sensors/{namespace}/{name}\x12u\n" + + "\fDeleteSensor\x12\x1b.sensor.DeleteSensorRequest\x1a\x1c.sensor.DeleteSensorResponse\"*\x82\xd3\xe4\x93\x02$*\"/api/v1/sensors/{namespace}/{name}\x12\x93\x01\n" + + "\tGetSensor\x12\x18.sensor.GetSensorRequest\x1a@.github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor\"*\x82\xd3\xe4\x93\x02$\x12\"/api/v1/sensors/{namespace}/{name}B k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 10, // 1: sensor.CreateSensorRequest.sensor:type_name -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor + 11, // 2: sensor.CreateSensorRequest.createOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + 12, // 3: sensor.GetSensorRequest.getOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions + 10, // 4: sensor.UpdateSensorRequest.sensor:type_name -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor + 13, // 5: sensor.DeleteSensorRequest.deleteOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + 14, // 6: sensor.SensorsLogsRequest.podLogOptions:type_name -> k8s.io.api.core.v1.PodLogOptions + 15, // 7: sensor.LogEntry.time:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.Time + 10, // 8: sensor.SensorWatchEvent.object:type_name -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor + 0, // 9: sensor.SensorService.ListSensors:input_type -> sensor.ListSensorsRequest + 6, // 10: sensor.SensorService.SensorsLogs:input_type -> sensor.SensorsLogsRequest + 0, // 11: sensor.SensorService.WatchSensors:input_type -> sensor.ListSensorsRequest + 1, // 12: sensor.SensorService.CreateSensor:input_type -> sensor.CreateSensorRequest + 3, // 13: sensor.SensorService.UpdateSensor:input_type -> sensor.UpdateSensorRequest + 4, // 14: sensor.SensorService.DeleteSensor:input_type -> sensor.DeleteSensorRequest + 2, // 15: sensor.SensorService.GetSensor:input_type -> sensor.GetSensorRequest + 16, // 16: sensor.SensorService.ListSensors:output_type -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.SensorList + 7, // 17: sensor.SensorService.SensorsLogs:output_type -> sensor.LogEntry + 8, // 18: sensor.SensorService.WatchSensors:output_type -> sensor.SensorWatchEvent + 10, // 19: sensor.SensorService.CreateSensor:output_type -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor + 10, // 20: sensor.SensorService.UpdateSensor:output_type -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor + 5, // 21: sensor.SensorService.DeleteSensor:output_type -> sensor.DeleteSensorResponse + 10, // 22: sensor.SensorService.GetSensor:output_type -> github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.Sensor + 16, // [16:23] is the sub-list for method output_type + 9, // [9:16] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_sensor_sensor_proto_init() } +func file_pkg_apiclient_sensor_sensor_proto_init() { + if File_pkg_apiclient_sensor_sensor_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_sensor_sensor_proto_rawDesc), len(file_pkg_apiclient_sensor_sensor_proto_rawDesc)), + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_sensor_sensor_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_sensor_sensor_proto_depIdxs, + MessageInfos: file_pkg_apiclient_sensor_sensor_proto_msgTypes, + }.Build() + File_pkg_apiclient_sensor_sensor_proto = out.File + file_pkg_apiclient_sensor_sensor_proto_goTypes = nil + file_pkg_apiclient_sensor_sensor_proto_depIdxs = nil +} diff --git a/pkg/apiclient/sensor/sensor.pb.gw.go b/pkg/apiclient/sensor/sensor.pb.gw.go index a2b2ab4ab1f9..6c1d8129fde9 100644 --- a/pkg/apiclient/sensor/sensor.pb.gw.go +++ b/pkg/apiclient/sensor/sensor.pb.gw.go @@ -10,134 +10,110 @@ package sensor import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - var ( - filter_SensorService_ListSensors_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join ) -func request_SensorService_ListSensors_0(ctx context.Context, marshaler runtime.Marshaler, client SensorServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListSensorsRequest - var metadata runtime.ServerMetadata +var filter_SensorService_ListSensors_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +func request_SensorService_ListSensors_0(ctx context.Context, marshaler runtime.Marshaler, client SensorServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var ( - val string - ok bool - err error - _ = err + protoReq ListSensorsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SensorService_ListSensors_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListSensors(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_SensorService_ListSensors_0(ctx context.Context, marshaler runtime.Marshaler, server SensorServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListSensorsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ListSensorsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SensorService_ListSensors_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListSensors(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_SensorService_SensorsLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_SensorService_SensorsLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_SensorService_SensorsLogs_0(ctx context.Context, marshaler runtime.Marshaler, client SensorServiceClient, req *http.Request, pathParams map[string]string) (SensorService_SensorsLogsClient, runtime.ServerMetadata, error) { - var protoReq SensorsLogsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq SensorsLogsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SensorService_SensorsLogs_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - stream, err := client.SensorsLogs(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -148,42 +124,33 @@ func request_SensorService_SensorsLogs_0(ctx context.Context, marshaler runtime. } metadata.HeaderMD = header return stream, metadata, nil - } -var ( - filter_SensorService_WatchSensors_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_SensorService_WatchSensors_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_SensorService_WatchSensors_0(ctx context.Context, marshaler runtime.Marshaler, client SensorServiceClient, req *http.Request, pathParams map[string]string) (SensorService_WatchSensorsClient, runtime.ServerMetadata, error) { - var protoReq ListSensorsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq ListSensorsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SensorService_WatchSensors_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - stream, err := client.WatchSensors(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -194,492 +161,371 @@ func request_SensorService_WatchSensors_0(ctx context.Context, marshaler runtime } metadata.HeaderMD = header return stream, metadata, nil - } func request_SensorService_CreateSensor_0(ctx context.Context, marshaler runtime.Marshaler, client SensorServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateSensorRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CreateSensorRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.CreateSensor(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_SensorService_CreateSensor_0(ctx context.Context, marshaler runtime.Marshaler, server SensorServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateSensorRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CreateSensorRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.CreateSensor(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_SensorService_UpdateSensor_0(ctx context.Context, marshaler runtime.Marshaler, client SensorServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateSensorRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq UpdateSensorRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.UpdateSensor(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_SensorService_UpdateSensor_0(ctx context.Context, marshaler runtime.Marshaler, server SensorServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateSensorRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq UpdateSensorRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.UpdateSensor(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_SensorService_DeleteSensor_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_SensorService_DeleteSensor_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_SensorService_DeleteSensor_0(ctx context.Context, marshaler runtime.Marshaler, client SensorServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteSensorRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteSensorRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SensorService_DeleteSensor_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteSensor(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_SensorService_DeleteSensor_0(ctx context.Context, marshaler runtime.Marshaler, server SensorServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteSensorRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteSensorRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SensorService_DeleteSensor_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteSensor(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_SensorService_GetSensor_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_SensorService_GetSensor_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_SensorService_GetSensor_0(ctx context.Context, marshaler runtime.Marshaler, client SensorServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetSensorRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetSensorRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SensorService_GetSensor_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetSensor(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_SensorService_GetSensor_0(ctx context.Context, marshaler runtime.Marshaler, server SensorServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetSensorRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetSensorRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SensorService_GetSensor_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetSensor(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterSensorServiceHandlerServer registers the http handlers for service SensorService to "mux". // UnaryRPC :call SensorServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSensorServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterSensorServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SensorServiceServer) error { - - mux.Handle("GET", pattern_SensorService_ListSensors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SensorService_ListSensors_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/sensor.SensorService/ListSensors", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_SensorService_ListSensors_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_SensorService_ListSensors_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_ListSensors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_ListSensors_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_SensorService_SensorsLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SensorService_SensorsLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - mux.Handle("GET", pattern_SensorService_WatchSensors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SensorService_WatchSensors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - - mux.Handle("POST", pattern_SensorService_CreateSensor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_SensorService_CreateSensor_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/sensor.SensorService/CreateSensor", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_SensorService_CreateSensor_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_SensorService_CreateSensor_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_CreateSensor_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_CreateSensor_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_SensorService_UpdateSensor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_SensorService_UpdateSensor_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/sensor.SensorService/UpdateSensor", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_SensorService_UpdateSensor_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_SensorService_UpdateSensor_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_UpdateSensor_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_UpdateSensor_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_SensorService_DeleteSensor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_SensorService_DeleteSensor_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/sensor.SensorService/DeleteSensor", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_SensorService_DeleteSensor_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_SensorService_DeleteSensor_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_DeleteSensor_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_DeleteSensor_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_SensorService_GetSensor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SensorService_GetSensor_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/sensor.SensorService/GetSensor", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_SensorService_GetSensor_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_SensorService_GetSensor_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_GetSensor_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_GetSensor_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -688,25 +534,24 @@ func RegisterSensorServiceHandlerServer(ctx context.Context, mux *runtime.ServeM // RegisterSensorServiceHandlerFromEndpoint is same as RegisterSensorServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterSensorServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterSensorServiceHandler(ctx, mux, conn) } @@ -720,180 +565,146 @@ func RegisterSensorServiceHandler(ctx context.Context, mux *runtime.ServeMux, co // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SensorServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SensorServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "SensorServiceClient" to call the correct interceptors. +// "SensorServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterSensorServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SensorServiceClient) error { - - mux.Handle("GET", pattern_SensorService_ListSensors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SensorService_ListSensors_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sensor.SensorService/ListSensors", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SensorService_ListSensors_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SensorService_ListSensors_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_ListSensors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_ListSensors_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_SensorService_SensorsLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SensorService_SensorsLogs_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sensor.SensorService/SensorsLogs", runtime.WithHTTPPathPattern("/api/v1/stream/sensors/{namespace}/logs")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SensorService_SensorsLogs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SensorService_SensorsLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_SensorsLogs_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - + forward_SensorService_SensorsLogs_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_SensorService_WatchSensors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SensorService_WatchSensors_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sensor.SensorService/WatchSensors", runtime.WithHTTPPathPattern("/api/v1/stream/sensors/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SensorService_WatchSensors_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SensorService_WatchSensors_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_WatchSensors_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - + forward_SensorService_WatchSensors_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_SensorService_CreateSensor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_SensorService_CreateSensor_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sensor.SensorService/CreateSensor", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SensorService_CreateSensor_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SensorService_CreateSensor_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_CreateSensor_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_CreateSensor_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_SensorService_UpdateSensor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_SensorService_UpdateSensor_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sensor.SensorService/UpdateSensor", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SensorService_UpdateSensor_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SensorService_UpdateSensor_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_UpdateSensor_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_UpdateSensor_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_SensorService_DeleteSensor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_SensorService_DeleteSensor_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sensor.SensorService/DeleteSensor", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SensorService_DeleteSensor_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SensorService_DeleteSensor_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_DeleteSensor_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_DeleteSensor_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_SensorService_GetSensor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SensorService_GetSensor_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sensor.SensorService/GetSensor", runtime.WithHTTPPathPattern("/api/v1/sensors/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SensorService_GetSensor_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SensorService_GetSensor_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SensorService_GetSensor_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SensorService_GetSensor_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_SensorService_ListSensors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "sensors", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_SensorService_SensorsLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "stream", "sensors", "namespace", "logs"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_SensorService_WatchSensors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "stream", "sensors", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_SensorService_CreateSensor_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "sensors", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_SensorService_UpdateSensor_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sensors", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_SensorService_DeleteSensor_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sensors", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_SensorService_GetSensor_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sensors", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_SensorService_ListSensors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "sensors", "namespace"}, "")) + pattern_SensorService_SensorsLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "stream", "sensors", "namespace", "logs"}, "")) + pattern_SensorService_WatchSensors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "stream", "sensors", "namespace"}, "")) + pattern_SensorService_CreateSensor_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "sensors", "namespace"}, "")) + pattern_SensorService_UpdateSensor_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sensors", "namespace", "name"}, "")) + pattern_SensorService_DeleteSensor_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sensors", "namespace", "name"}, "")) + pattern_SensorService_GetSensor_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sensors", "namespace", "name"}, "")) ) var ( - forward_SensorService_ListSensors_0 = runtime.ForwardResponseMessage - - forward_SensorService_SensorsLogs_0 = runtime.ForwardResponseStream - + forward_SensorService_ListSensors_0 = runtime.ForwardResponseMessage + forward_SensorService_SensorsLogs_0 = runtime.ForwardResponseStream forward_SensorService_WatchSensors_0 = runtime.ForwardResponseStream - forward_SensorService_CreateSensor_0 = runtime.ForwardResponseMessage - forward_SensorService_UpdateSensor_0 = runtime.ForwardResponseMessage - forward_SensorService_DeleteSensor_0 = runtime.ForwardResponseMessage - - forward_SensorService_GetSensor_0 = runtime.ForwardResponseMessage + forward_SensorService_GetSensor_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/sensor/sensor_grpc.pb.go b/pkg/apiclient/sensor/sensor_grpc.pb.go new file mode 100644 index 000000000000..4853cf8dfc9f --- /dev/null +++ b/pkg/apiclient/sensor/sensor_grpc.pb.go @@ -0,0 +1,355 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/sensor/sensor.proto + +package sensor + +import ( + context "context" + v1alpha1 "github.com/argoproj/argo-events/pkg/apis/events/v1alpha1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + SensorService_ListSensors_FullMethodName = "/sensor.SensorService/ListSensors" + SensorService_SensorsLogs_FullMethodName = "/sensor.SensorService/SensorsLogs" + SensorService_WatchSensors_FullMethodName = "/sensor.SensorService/WatchSensors" + SensorService_CreateSensor_FullMethodName = "/sensor.SensorService/CreateSensor" + SensorService_UpdateSensor_FullMethodName = "/sensor.SensorService/UpdateSensor" + SensorService_DeleteSensor_FullMethodName = "/sensor.SensorService/DeleteSensor" + SensorService_GetSensor_FullMethodName = "/sensor.SensorService/GetSensor" +) + +// SensorServiceClient is the client API for SensorService 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 SensorServiceClient interface { + ListSensors(ctx context.Context, in *ListSensorsRequest, opts ...grpc.CallOption) (*v1alpha1.SensorList, error) + SensorsLogs(ctx context.Context, in *SensorsLogsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogEntry], error) + WatchSensors(ctx context.Context, in *ListSensorsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SensorWatchEvent], error) + CreateSensor(ctx context.Context, in *CreateSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) + UpdateSensor(ctx context.Context, in *UpdateSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) + DeleteSensor(ctx context.Context, in *DeleteSensorRequest, opts ...grpc.CallOption) (*DeleteSensorResponse, error) + GetSensor(ctx context.Context, in *GetSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) +} + +type sensorServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSensorServiceClient(cc grpc.ClientConnInterface) SensorServiceClient { + return &sensorServiceClient{cc} +} + +func (c *sensorServiceClient) ListSensors(ctx context.Context, in *ListSensorsRequest, opts ...grpc.CallOption) (*v1alpha1.SensorList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.SensorList) + err := c.cc.Invoke(ctx, SensorService_ListSensors_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sensorServiceClient) SensorsLogs(ctx context.Context, in *SensorsLogsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogEntry], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &SensorService_ServiceDesc.Streams[0], SensorService_SensorsLogs_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[SensorsLogsRequest, LogEntry]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type SensorService_SensorsLogsClient = grpc.ServerStreamingClient[LogEntry] + +func (c *sensorServiceClient) WatchSensors(ctx context.Context, in *ListSensorsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SensorWatchEvent], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &SensorService_ServiceDesc.Streams[1], SensorService_WatchSensors_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[ListSensorsRequest, SensorWatchEvent]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type SensorService_WatchSensorsClient = grpc.ServerStreamingClient[SensorWatchEvent] + +func (c *sensorServiceClient) CreateSensor(ctx context.Context, in *CreateSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Sensor) + err := c.cc.Invoke(ctx, SensorService_CreateSensor_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sensorServiceClient) UpdateSensor(ctx context.Context, in *UpdateSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Sensor) + err := c.cc.Invoke(ctx, SensorService_UpdateSensor_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sensorServiceClient) DeleteSensor(ctx context.Context, in *DeleteSensorRequest, opts ...grpc.CallOption) (*DeleteSensorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteSensorResponse) + err := c.cc.Invoke(ctx, SensorService_DeleteSensor_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sensorServiceClient) GetSensor(ctx context.Context, in *GetSensorRequest, opts ...grpc.CallOption) (*v1alpha1.Sensor, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Sensor) + err := c.cc.Invoke(ctx, SensorService_GetSensor_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SensorServiceServer is the server API for SensorService service. +// All implementations should embed UnimplementedSensorServiceServer +// for forward compatibility. +type SensorServiceServer interface { + ListSensors(context.Context, *ListSensorsRequest) (*v1alpha1.SensorList, error) + SensorsLogs(*SensorsLogsRequest, grpc.ServerStreamingServer[LogEntry]) error + WatchSensors(*ListSensorsRequest, grpc.ServerStreamingServer[SensorWatchEvent]) error + CreateSensor(context.Context, *CreateSensorRequest) (*v1alpha1.Sensor, error) + UpdateSensor(context.Context, *UpdateSensorRequest) (*v1alpha1.Sensor, error) + DeleteSensor(context.Context, *DeleteSensorRequest) (*DeleteSensorResponse, error) + GetSensor(context.Context, *GetSensorRequest) (*v1alpha1.Sensor, error) +} + +// UnimplementedSensorServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSensorServiceServer struct{} + +func (UnimplementedSensorServiceServer) ListSensors(context.Context, *ListSensorsRequest) (*v1alpha1.SensorList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSensors not implemented") +} +func (UnimplementedSensorServiceServer) SensorsLogs(*SensorsLogsRequest, grpc.ServerStreamingServer[LogEntry]) error { + return status.Errorf(codes.Unimplemented, "method SensorsLogs not implemented") +} +func (UnimplementedSensorServiceServer) WatchSensors(*ListSensorsRequest, grpc.ServerStreamingServer[SensorWatchEvent]) error { + return status.Errorf(codes.Unimplemented, "method WatchSensors not implemented") +} +func (UnimplementedSensorServiceServer) CreateSensor(context.Context, *CreateSensorRequest) (*v1alpha1.Sensor, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateSensor not implemented") +} +func (UnimplementedSensorServiceServer) UpdateSensor(context.Context, *UpdateSensorRequest) (*v1alpha1.Sensor, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateSensor not implemented") +} +func (UnimplementedSensorServiceServer) DeleteSensor(context.Context, *DeleteSensorRequest) (*DeleteSensorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteSensor not implemented") +} +func (UnimplementedSensorServiceServer) GetSensor(context.Context, *GetSensorRequest) (*v1alpha1.Sensor, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSensor not implemented") +} +func (UnimplementedSensorServiceServer) testEmbeddedByValue() {} + +// UnsafeSensorServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SensorServiceServer will +// result in compilation errors. +type UnsafeSensorServiceServer interface { + mustEmbedUnimplementedSensorServiceServer() +} + +func RegisterSensorServiceServer(s grpc.ServiceRegistrar, srv SensorServiceServer) { + // If the following call pancis, it indicates UnimplementedSensorServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&SensorService_ServiceDesc, srv) +} + +func _SensorService_ListSensors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSensorsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SensorServiceServer).ListSensors(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SensorService_ListSensors_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SensorServiceServer).ListSensors(ctx, req.(*ListSensorsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SensorService_SensorsLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SensorsLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SensorServiceServer).SensorsLogs(m, &grpc.GenericServerStream[SensorsLogsRequest, LogEntry]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type SensorService_SensorsLogsServer = grpc.ServerStreamingServer[LogEntry] + +func _SensorService_WatchSensors_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListSensorsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SensorServiceServer).WatchSensors(m, &grpc.GenericServerStream[ListSensorsRequest, SensorWatchEvent]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type SensorService_WatchSensorsServer = grpc.ServerStreamingServer[SensorWatchEvent] + +func _SensorService_CreateSensor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateSensorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SensorServiceServer).CreateSensor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SensorService_CreateSensor_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SensorServiceServer).CreateSensor(ctx, req.(*CreateSensorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SensorService_UpdateSensor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSensorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SensorServiceServer).UpdateSensor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SensorService_UpdateSensor_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SensorServiceServer).UpdateSensor(ctx, req.(*UpdateSensorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SensorService_DeleteSensor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteSensorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SensorServiceServer).DeleteSensor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SensorService_DeleteSensor_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SensorServiceServer).DeleteSensor(ctx, req.(*DeleteSensorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SensorService_GetSensor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSensorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SensorServiceServer).GetSensor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SensorService_GetSensor_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SensorServiceServer).GetSensor(ctx, req.(*GetSensorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SensorService_ServiceDesc is the grpc.ServiceDesc for SensorService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SensorService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "sensor.SensorService", + HandlerType: (*SensorServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListSensors", + Handler: _SensorService_ListSensors_Handler, + }, + { + MethodName: "CreateSensor", + Handler: _SensorService_CreateSensor_Handler, + }, + { + MethodName: "UpdateSensor", + Handler: _SensorService_UpdateSensor_Handler, + }, + { + MethodName: "DeleteSensor", + Handler: _SensorService_DeleteSensor_Handler, + }, + { + MethodName: "GetSensor", + Handler: _SensorService_GetSensor_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "SensorsLogs", + Handler: _SensorService_SensorsLogs_Handler, + ServerStreams: true, + }, + { + StreamName: "WatchSensors", + Handler: _SensorService_WatchSensors_Handler, + ServerStreams: true, + }, + }, + Metadata: "pkg/apiclient/sensor/sensor.proto", +} diff --git a/pkg/apiclient/sync/sync.pb.go b/pkg/apiclient/sync/sync.pb.go index 74cd84ad7860..da0dd2197390 100644 --- a/pkg/apiclient/sync/sync.pb.go +++ b/pkg/apiclient/sync/sync.pb.go @@ -1,31 +1,26 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/sync/sync.proto package sync import ( - context "context" - fmt "fmt" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type SyncConfigType int32 @@ -34,2176 +29,553 @@ const ( SyncConfigType_DATABASE SyncConfigType = 1 ) -var SyncConfigType_name = map[int32]string{ - 0: "CONFIGMAP", - 1: "DATABASE", -} +// Enum value maps for SyncConfigType. +var ( + SyncConfigType_name = map[int32]string{ + 0: "CONFIGMAP", + 1: "DATABASE", + } + SyncConfigType_value = map[string]int32{ + "CONFIGMAP": 0, + "DATABASE": 1, + } +) -var SyncConfigType_value = map[string]int32{ - "CONFIGMAP": 0, - "DATABASE": 1, +func (x SyncConfigType) Enum() *SyncConfigType { + p := new(SyncConfigType) + *p = x + return p } func (x SyncConfigType) String() string { - return proto.EnumName(SyncConfigType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (SyncConfigType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_74ab334b2e266b46, []int{0} +func (SyncConfigType) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_apiclient_sync_sync_proto_enumTypes[0].Descriptor() } -type CreateSyncLimitRequest struct { - Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` - Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` - Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateSyncLimitRequest) Reset() { *m = CreateSyncLimitRequest{} } -func (m *CreateSyncLimitRequest) String() string { return proto.CompactTextString(m) } -func (*CreateSyncLimitRequest) ProtoMessage() {} -func (*CreateSyncLimitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_74ab334b2e266b46, []int{0} -} -func (m *CreateSyncLimitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateSyncLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateSyncLimitRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *CreateSyncLimitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateSyncLimitRequest.Merge(m, src) -} -func (m *CreateSyncLimitRequest) XXX_Size() int { - return m.Size() +func (SyncConfigType) Type() protoreflect.EnumType { + return &file_pkg_apiclient_sync_sync_proto_enumTypes[0] } -func (m *CreateSyncLimitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateSyncLimitRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateSyncLimitRequest proto.InternalMessageInfo -func (m *CreateSyncLimitRequest) GetType() SyncConfigType { - if m != nil { - return m.Type - } - return SyncConfigType_CONFIGMAP +func (x SyncConfigType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *CreateSyncLimitRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +// Deprecated: Use SyncConfigType.Descriptor instead. +func (SyncConfigType) EnumDescriptor() ([]byte, []int) { + return file_pkg_apiclient_sync_sync_proto_rawDescGZIP(), []int{0} } -func (m *CreateSyncLimitRequest) GetCmName() string { - if m != nil { - return m.CmName - } - return "" +type CreateSyncLimitRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` + Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CreateSyncLimitRequest) GetKey() string { - if m != nil { - return m.Key - } - return "" +func (x *CreateSyncLimitRequest) Reset() { + *x = CreateSyncLimitRequest{} + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateSyncLimitRequest) GetLimit() int32 { - if m != nil { - return m.Limit - } - return 0 +func (x *CreateSyncLimitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type SyncLimitResponse struct { - Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` - Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` - Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*CreateSyncLimitRequest) ProtoMessage() {} -func (m *SyncLimitResponse) Reset() { *m = SyncLimitResponse{} } -func (m *SyncLimitResponse) String() string { return proto.CompactTextString(m) } -func (*SyncLimitResponse) ProtoMessage() {} -func (*SyncLimitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_74ab334b2e266b46, []int{1} -} -func (m *SyncLimitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncLimitResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *CreateSyncLimitRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SyncLimitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncLimitResponse.Merge(m, src) -} -func (m *SyncLimitResponse) XXX_Size() int { - return m.Size() -} -func (m *SyncLimitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SyncLimitResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SyncLimitResponse proto.InternalMessageInfo +// Deprecated: Use CreateSyncLimitRequest.ProtoReflect.Descriptor instead. +func (*CreateSyncLimitRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sync_sync_proto_rawDescGZIP(), []int{0} +} -func (m *SyncLimitResponse) GetType() SyncConfigType { - if m != nil { - return m.Type +func (x *CreateSyncLimitRequest) GetType() SyncConfigType { + if x != nil { + return x.Type } return SyncConfigType_CONFIGMAP } -func (m *SyncLimitResponse) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *CreateSyncLimitRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *SyncLimitResponse) GetCmName() string { - if m != nil { - return m.CmName +func (x *CreateSyncLimitRequest) GetCmName() string { + if x != nil { + return x.CmName } return "" } -func (m *SyncLimitResponse) GetKey() string { - if m != nil { - return m.Key +func (x *CreateSyncLimitRequest) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *SyncLimitResponse) GetLimit() int32 { - if m != nil { - return m.Limit +func (x *CreateSyncLimitRequest) GetLimit() int32 { + if x != nil { + return x.Limit } return 0 } -type GetSyncLimitRequest struct { - Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` - Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetSyncLimitRequest) Reset() { *m = GetSyncLimitRequest{} } -func (m *GetSyncLimitRequest) String() string { return proto.CompactTextString(m) } -func (*GetSyncLimitRequest) ProtoMessage() {} -func (*GetSyncLimitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_74ab334b2e266b46, []int{2} -} -func (m *GetSyncLimitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetSyncLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetSyncLimitRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetSyncLimitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetSyncLimitRequest.Merge(m, src) -} -func (m *GetSyncLimitRequest) XXX_Size() int { - return m.Size() -} -func (m *GetSyncLimitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetSyncLimitRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetSyncLimitRequest proto.InternalMessageInfo - -func (m *GetSyncLimitRequest) GetType() SyncConfigType { - if m != nil { - return m.Type - } - return SyncConfigType_CONFIGMAP -} - -func (m *GetSyncLimitRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +type SyncLimitResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` + Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *GetSyncLimitRequest) GetCmName() string { - if m != nil { - return m.CmName - } - return "" +func (x *SyncLimitResponse) Reset() { + *x = SyncLimitResponse{} + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *GetSyncLimitRequest) GetKey() string { - if m != nil { - return m.Key - } - return "" +func (x *SyncLimitResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type UpdateSyncLimitRequest struct { - Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` - Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` - Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*SyncLimitResponse) ProtoMessage() {} -func (m *UpdateSyncLimitRequest) Reset() { *m = UpdateSyncLimitRequest{} } -func (m *UpdateSyncLimitRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateSyncLimitRequest) ProtoMessage() {} -func (*UpdateSyncLimitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_74ab334b2e266b46, []int{3} -} -func (m *UpdateSyncLimitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateSyncLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateSyncLimitRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *SyncLimitResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *UpdateSyncLimitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateSyncLimitRequest.Merge(m, src) -} -func (m *UpdateSyncLimitRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateSyncLimitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateSyncLimitRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateSyncLimitRequest proto.InternalMessageInfo +// Deprecated: Use SyncLimitResponse.ProtoReflect.Descriptor instead. +func (*SyncLimitResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sync_sync_proto_rawDescGZIP(), []int{1} +} -func (m *UpdateSyncLimitRequest) GetType() SyncConfigType { - if m != nil { - return m.Type +func (x *SyncLimitResponse) GetType() SyncConfigType { + if x != nil { + return x.Type } return SyncConfigType_CONFIGMAP } -func (m *UpdateSyncLimitRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *SyncLimitResponse) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *UpdateSyncLimitRequest) GetCmName() string { - if m != nil { - return m.CmName +func (x *SyncLimitResponse) GetCmName() string { + if x != nil { + return x.CmName } return "" } -func (m *UpdateSyncLimitRequest) GetKey() string { - if m != nil { - return m.Key +func (x *SyncLimitResponse) GetKey() string { + if x != nil { + return x.Key } return "" } -func (m *UpdateSyncLimitRequest) GetLimit() int32 { - if m != nil { - return m.Limit +func (x *SyncLimitResponse) GetLimit() int32 { + if x != nil { + return x.Limit } return 0 } -type DeleteSyncLimitRequest struct { - Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` - Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteSyncLimitRequest) Reset() { *m = DeleteSyncLimitRequest{} } -func (m *DeleteSyncLimitRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteSyncLimitRequest) ProtoMessage() {} -func (*DeleteSyncLimitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_74ab334b2e266b46, []int{4} -} -func (m *DeleteSyncLimitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteSyncLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteSyncLimitRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeleteSyncLimitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteSyncLimitRequest.Merge(m, src) -} -func (m *DeleteSyncLimitRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteSyncLimitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteSyncLimitRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteSyncLimitRequest proto.InternalMessageInfo - -func (m *DeleteSyncLimitRequest) GetType() SyncConfigType { - if m != nil { - return m.Type - } - return SyncConfigType_CONFIGMAP -} - -func (m *DeleteSyncLimitRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +type GetSyncLimitRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` + Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *DeleteSyncLimitRequest) GetCmName() string { - if m != nil { - return m.CmName - } - return "" +func (x *GetSyncLimitRequest) Reset() { + *x = GetSyncLimitRequest{} + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteSyncLimitRequest) GetKey() string { - if m != nil { - return m.Key - } - return "" +func (x *GetSyncLimitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type DeleteSyncLimitResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*GetSyncLimitRequest) ProtoMessage() {} -func (m *DeleteSyncLimitResponse) Reset() { *m = DeleteSyncLimitResponse{} } -func (m *DeleteSyncLimitResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteSyncLimitResponse) ProtoMessage() {} -func (*DeleteSyncLimitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_74ab334b2e266b46, []int{5} -} -func (m *DeleteSyncLimitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteSyncLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteSyncLimitResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *GetSyncLimitRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeleteSyncLimitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteSyncLimitResponse.Merge(m, src) -} -func (m *DeleteSyncLimitResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteSyncLimitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteSyncLimitResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteSyncLimitResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("sync.SyncConfigType", SyncConfigType_name, SyncConfigType_value) - proto.RegisterType((*CreateSyncLimitRequest)(nil), "sync.CreateSyncLimitRequest") - proto.RegisterType((*SyncLimitResponse)(nil), "sync.SyncLimitResponse") - proto.RegisterType((*GetSyncLimitRequest)(nil), "sync.GetSyncLimitRequest") - proto.RegisterType((*UpdateSyncLimitRequest)(nil), "sync.UpdateSyncLimitRequest") - proto.RegisterType((*DeleteSyncLimitRequest)(nil), "sync.DeleteSyncLimitRequest") - proto.RegisterType((*DeleteSyncLimitResponse)(nil), "sync.DeleteSyncLimitResponse") -} - -func init() { proto.RegisterFile("pkg/apiclient/sync/sync.proto", fileDescriptor_74ab334b2e266b46) } - -var fileDescriptor_74ab334b2e266b46 = []byte{ - // 487 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0x41, 0x6b, 0x13, 0x41, - 0x14, 0x76, 0x9a, 0xa4, 0x98, 0x67, 0x6d, 0xe2, 0x58, 0xd2, 0x6d, 0x48, 0x42, 0xd8, 0x82, 0xc4, - 0x40, 0xb3, 0x58, 0x3d, 0x88, 0xb7, 0x34, 0xb5, 0x45, 0xd0, 0x2a, 0x49, 0xbd, 0x78, 0xdb, 0xae, - 0xaf, 0xeb, 0x34, 0xbb, 0x33, 0xe3, 0xce, 0x34, 0x65, 0x29, 0xbd, 0x78, 0x11, 0xbc, 0x7a, 0xf4, - 0xe2, 0xcf, 0xf1, 0x28, 0x88, 0x77, 0x09, 0xfe, 0x10, 0xd9, 0x59, 0x6b, 0x9b, 0x34, 0x4b, 0x8f, - 0xe6, 0xb2, 0xbc, 0x99, 0xf9, 0x98, 0xef, 0xfb, 0xf6, 0x7d, 0x6f, 0xa0, 0x2e, 0x87, 0xbe, 0xe3, - 0x4a, 0xe6, 0x05, 0x0c, 0xb9, 0x76, 0x54, 0xcc, 0x3d, 0xf3, 0xe9, 0xc8, 0x48, 0x68, 0x41, 0xf3, - 0x49, 0x5d, 0xad, 0xf9, 0x42, 0xf8, 0x01, 0x26, 0x38, 0xc7, 0xe5, 0x5c, 0x68, 0x57, 0x33, 0xc1, - 0x55, 0x8a, 0xb1, 0xbf, 0x12, 0xa8, 0xf4, 0x22, 0x74, 0x35, 0x0e, 0x62, 0xee, 0x3d, 0x67, 0x21, - 0xd3, 0x7d, 0x7c, 0x7f, 0x8c, 0x4a, 0xd3, 0x16, 0xe4, 0x75, 0x2c, 0xd1, 0x22, 0x4d, 0xd2, 0x5a, - 0xde, 0x5c, 0xe9, 0x98, 0x9b, 0x13, 0x54, 0x4f, 0xf0, 0x43, 0xe6, 0xef, 0xc7, 0x12, 0xfb, 0x06, - 0x41, 0x6b, 0x50, 0xe4, 0x6e, 0x88, 0x4a, 0xba, 0x1e, 0x5a, 0x0b, 0x4d, 0xd2, 0x2a, 0xf6, 0x2f, - 0x36, 0x68, 0x05, 0x16, 0xbd, 0x70, 0xcf, 0x0d, 0xd1, 0xca, 0x99, 0xa3, 0xbf, 0x2b, 0x5a, 0x86, - 0xdc, 0x10, 0x63, 0x2b, 0x6f, 0x36, 0x93, 0x92, 0xae, 0x40, 0x21, 0x48, 0x14, 0x58, 0x85, 0x26, - 0x69, 0x15, 0xfa, 0xe9, 0xc2, 0xfe, 0x42, 0xe0, 0xce, 0x25, 0x71, 0x4a, 0x0a, 0xae, 0x70, 0x6e, - 0xd4, 0x7d, 0x24, 0x70, 0x77, 0x17, 0xf5, 0xff, 0xff, 0x7b, 0xa6, 0x95, 0xaf, 0xe5, 0xdb, 0x79, - 0x6e, 0xe5, 0x27, 0x02, 0x95, 0x6d, 0x0c, 0x70, 0x1e, 0x24, 0xda, 0x6b, 0xb0, 0x7a, 0x45, 0x4b, - 0x1a, 0xae, 0xf6, 0x06, 0x2c, 0x4f, 0x52, 0xd3, 0xdb, 0x50, 0xec, 0xbd, 0xdc, 0xdb, 0x79, 0xb6, - 0xfb, 0xa2, 0xfb, 0xaa, 0x7c, 0x83, 0x2e, 0xc1, 0xcd, 0xed, 0xee, 0x7e, 0x77, 0xab, 0x3b, 0x78, - 0x5a, 0x26, 0x9b, 0x3f, 0x73, 0x70, 0x2b, 0xc1, 0x0f, 0x30, 0x1a, 0x31, 0x0f, 0x69, 0x08, 0xa5, - 0xa9, 0x99, 0xa2, 0xb5, 0xd4, 0xd0, 0xec, 0x51, 0xab, 0xae, 0x5e, 0xd8, 0x9d, 0x10, 0x62, 0xaf, - 0x7f, 0xf8, 0xf1, 0xfb, 0xf3, 0x42, 0xdd, 0xb6, 0xcc, 0xf8, 0x8e, 0x1e, 0xa4, 0x33, 0x7e, 0xfa, - 0xcf, 0xee, 0xd9, 0x13, 0xd2, 0xa6, 0x47, 0xb0, 0x74, 0x39, 0x81, 0x74, 0x2d, 0xbd, 0x6d, 0x46, - 0x2a, 0xb3, 0x89, 0xee, 0x19, 0xa2, 0x26, 0x6d, 0x64, 0x11, 0x39, 0xa7, 0x43, 0x8c, 0xcf, 0xa8, - 0x82, 0xd2, 0x54, 0xc6, 0xce, 0xad, 0xcd, 0x8e, 0x5e, 0x36, 0xe3, 0x7d, 0xc3, 0xb8, 0x5e, 0xbd, - 0x86, 0x31, 0x31, 0x38, 0x82, 0xd2, 0x54, 0xa7, 0xce, 0x49, 0x67, 0x87, 0xa9, 0x5a, 0xcf, 0x38, - 0x9d, 0x34, 0xdb, 0xbe, 0x86, 0x7a, 0x6b, 0xe7, 0xdb, 0xb8, 0x41, 0xbe, 0x8f, 0x1b, 0xe4, 0xd7, - 0xb8, 0x41, 0xde, 0x3c, 0xf6, 0x99, 0x7e, 0x77, 0x7c, 0xd0, 0xf1, 0x44, 0xe8, 0xb8, 0x91, 0x2f, - 0x64, 0x24, 0x8e, 0x4c, 0xb1, 0x71, 0x22, 0xa2, 0xe1, 0x61, 0x20, 0x4e, 0x94, 0x33, 0x7a, 0xe4, - 0x5c, 0x7d, 0x93, 0x0f, 0x16, 0xcd, 0x5b, 0xfb, 0xf0, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x36, - 0xb0, 0x1c, 0x73, 0xb0, 0x05, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// SyncServiceClient is the client API for SyncService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SyncServiceClient interface { - CreateSyncLimit(ctx context.Context, in *CreateSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) - GetSyncLimit(ctx context.Context, in *GetSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) - UpdateSyncLimit(ctx context.Context, in *UpdateSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) - DeleteSyncLimit(ctx context.Context, in *DeleteSyncLimitRequest, opts ...grpc.CallOption) (*DeleteSyncLimitResponse, error) -} - -type syncServiceClient struct { - cc *grpc.ClientConn -} - -func NewSyncServiceClient(cc *grpc.ClientConn) SyncServiceClient { - return &syncServiceClient{cc} -} - -func (c *syncServiceClient) CreateSyncLimit(ctx context.Context, in *CreateSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) { - out := new(SyncLimitResponse) - err := c.cc.Invoke(ctx, "/sync.SyncService/CreateSyncLimit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *syncServiceClient) GetSyncLimit(ctx context.Context, in *GetSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) { - out := new(SyncLimitResponse) - err := c.cc.Invoke(ctx, "/sync.SyncService/GetSyncLimit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *syncServiceClient) UpdateSyncLimit(ctx context.Context, in *UpdateSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) { - out := new(SyncLimitResponse) - err := c.cc.Invoke(ctx, "/sync.SyncService/UpdateSyncLimit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *syncServiceClient) DeleteSyncLimit(ctx context.Context, in *DeleteSyncLimitRequest, opts ...grpc.CallOption) (*DeleteSyncLimitResponse, error) { - out := new(DeleteSyncLimitResponse) - err := c.cc.Invoke(ctx, "/sync.SyncService/DeleteSyncLimit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SyncServiceServer is the server API for SyncService service. -type SyncServiceServer interface { - CreateSyncLimit(context.Context, *CreateSyncLimitRequest) (*SyncLimitResponse, error) - GetSyncLimit(context.Context, *GetSyncLimitRequest) (*SyncLimitResponse, error) - UpdateSyncLimit(context.Context, *UpdateSyncLimitRequest) (*SyncLimitResponse, error) - DeleteSyncLimit(context.Context, *DeleteSyncLimitRequest) (*DeleteSyncLimitResponse, error) -} - -// UnimplementedSyncServiceServer can be embedded to have forward compatible implementations. -type UnimplementedSyncServiceServer struct { -} - -func (*UnimplementedSyncServiceServer) CreateSyncLimit(ctx context.Context, req *CreateSyncLimitRequest) (*SyncLimitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateSyncLimit not implemented") -} -func (*UnimplementedSyncServiceServer) GetSyncLimit(ctx context.Context, req *GetSyncLimitRequest) (*SyncLimitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetSyncLimit not implemented") -} -func (*UnimplementedSyncServiceServer) UpdateSyncLimit(ctx context.Context, req *UpdateSyncLimitRequest) (*SyncLimitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateSyncLimit not implemented") -} -func (*UnimplementedSyncServiceServer) DeleteSyncLimit(ctx context.Context, req *DeleteSyncLimitRequest) (*DeleteSyncLimitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteSyncLimit not implemented") -} - -func RegisterSyncServiceServer(s *grpc.Server, srv SyncServiceServer) { - s.RegisterService(&_SyncService_serviceDesc, srv) +// Deprecated: Use GetSyncLimitRequest.ProtoReflect.Descriptor instead. +func (*GetSyncLimitRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sync_sync_proto_rawDescGZIP(), []int{2} } -func _SyncService_CreateSyncLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateSyncLimitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SyncServiceServer).CreateSyncLimit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sync.SyncService/CreateSyncLimit", +func (x *GetSyncLimitRequest) GetType() SyncConfigType { + if x != nil { + return x.Type } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SyncServiceServer).CreateSyncLimit(ctx, req.(*CreateSyncLimitRequest)) - } - return interceptor(ctx, in, info, handler) + return SyncConfigType_CONFIGMAP } -func _SyncService_GetSyncLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetSyncLimitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SyncServiceServer).GetSyncLimit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sync.SyncService/GetSyncLimit", +func (x *GetSyncLimitRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SyncServiceServer).GetSyncLimit(ctx, req.(*GetSyncLimitRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _SyncService_UpdateSyncLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateSyncLimitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SyncServiceServer).UpdateSyncLimit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sync.SyncService/UpdateSyncLimit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SyncServiceServer).UpdateSyncLimit(ctx, req.(*UpdateSyncLimitRequest)) +func (x *GetSyncLimitRequest) GetCmName() string { + if x != nil { + return x.CmName } - return interceptor(ctx, in, info, handler) + return "" } -func _SyncService_DeleteSyncLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteSyncLimitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SyncServiceServer).DeleteSyncLimit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/sync.SyncService/DeleteSyncLimit", +func (x *GetSyncLimitRequest) GetKey() string { + if x != nil { + return x.Key } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SyncServiceServer).DeleteSyncLimit(ctx, req.(*DeleteSyncLimitRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -var _SyncService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "sync.SyncService", - HandlerType: (*SyncServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateSyncLimit", - Handler: _SyncService_CreateSyncLimit_Handler, - }, - { - MethodName: "GetSyncLimit", - Handler: _SyncService_GetSyncLimit_Handler, - }, - { - MethodName: "UpdateSyncLimit", - Handler: _SyncService_UpdateSyncLimit_Handler, - }, - { - MethodName: "DeleteSyncLimit", - Handler: _SyncService_DeleteSyncLimit_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/apiclient/sync/sync.proto", +type UpdateSyncLimitRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` + Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CreateSyncLimitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *UpdateSyncLimitRequest) Reset() { + *x = UpdateSyncLimitRequest{} + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *CreateSyncLimitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *UpdateSyncLimitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateSyncLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Limit != 0 { - i = encodeVarintSync(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x28 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintSync(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x22 - } - if len(m.CmName) > 0 { - i -= len(m.CmName) - copy(dAtA[i:], m.CmName) - i = encodeVarintSync(dAtA, i, uint64(len(m.CmName))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSync(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintSync(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} +func (*UpdateSyncLimitRequest) ProtoMessage() {} -func (m *SyncLimitResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *UpdateSyncLimitRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *SyncLimitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Limit != 0 { - i = encodeVarintSync(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x28 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintSync(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x22 - } - if len(m.CmName) > 0 { - i -= len(m.CmName) - copy(dAtA[i:], m.CmName) - i = encodeVarintSync(dAtA, i, uint64(len(m.CmName))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSync(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintSync(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil +// Deprecated: Use UpdateSyncLimitRequest.ProtoReflect.Descriptor instead. +func (*UpdateSyncLimitRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sync_sync_proto_rawDescGZIP(), []int{3} } -func (m *GetSyncLimitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *UpdateSyncLimitRequest) GetType() SyncConfigType { + if x != nil { + return x.Type } - return dAtA[:n], nil -} - -func (m *GetSyncLimitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return SyncConfigType_CONFIGMAP } -func (m *GetSyncLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintSync(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x22 - } - if len(m.CmName) > 0 { - i -= len(m.CmName) - copy(dAtA[i:], m.CmName) - i = encodeVarintSync(dAtA, i, uint64(len(m.CmName))) - i-- - dAtA[i] = 0x1a +func (x *UpdateSyncLimitRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSync(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintSync(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return "" } -func (m *UpdateSyncLimitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *UpdateSyncLimitRequest) GetCmName() string { + if x != nil { + return x.CmName } - return dAtA[:n], nil -} - -func (m *UpdateSyncLimitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *UpdateSyncLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Limit != 0 { - i = encodeVarintSync(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x28 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintSync(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x22 - } - if len(m.CmName) > 0 { - i -= len(m.CmName) - copy(dAtA[i:], m.CmName) - i = encodeVarintSync(dAtA, i, uint64(len(m.CmName))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSync(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 +func (x *UpdateSyncLimitRequest) GetKey() string { + if x != nil { + return x.Key } - if m.Type != 0 { - i = encodeVarintSync(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return "" } -func (m *DeleteSyncLimitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *UpdateSyncLimitRequest) GetLimit() int32 { + if x != nil { + return x.Limit } - return dAtA[:n], nil -} - -func (m *DeleteSyncLimitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return 0 } -func (m *DeleteSyncLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintSync(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x22 - } - if len(m.CmName) > 0 { - i -= len(m.CmName) - copy(dAtA[i:], m.CmName) - i = encodeVarintSync(dAtA, i, uint64(len(m.CmName))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintSync(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintSync(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil +type DeleteSyncLimitRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type SyncConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncConfigType" json:"type,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + CmName string `protobuf:"bytes,3,opt,name=cmName,proto3" json:"cmName,omitempty"` + Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *DeleteSyncLimitResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *DeleteSyncLimitRequest) Reset() { + *x = DeleteSyncLimitRequest{} + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *DeleteSyncLimitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *DeleteSyncLimitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteSyncLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} +func (*DeleteSyncLimitRequest) ProtoMessage() {} -func encodeVarintSync(dAtA []byte, offset int, v uint64) int { - offset -= sovSync(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CreateSyncLimitRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovSync(uint64(m.Type)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - l = len(m.CmName) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - if m.Limit != 0 { - n += 1 + sovSync(uint64(m.Limit)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *DeleteSyncLimitRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func (m *SyncLimitResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovSync(uint64(m.Type)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - l = len(m.CmName) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - if m.Limit != 0 { - n += 1 + sovSync(uint64(m.Limit)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use DeleteSyncLimitRequest.ProtoReflect.Descriptor instead. +func (*DeleteSyncLimitRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sync_sync_proto_rawDescGZIP(), []int{4} } -func (m *GetSyncLimitRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovSync(uint64(m.Type)) +func (x *DeleteSyncLimitRequest) GetType() SyncConfigType { + if x != nil { + return x.Type } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - l = len(m.CmName) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return SyncConfigType_CONFIGMAP } -func (m *UpdateSyncLimitRequest) Size() (n int) { - if m == nil { - return 0 +func (x *DeleteSyncLimitRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovSync(uint64(m.Type)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - l = len(m.CmName) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - if m.Limit != 0 { - n += 1 + sovSync(uint64(m.Limit)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *DeleteSyncLimitRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovSync(uint64(m.Type)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) +func (x *DeleteSyncLimitRequest) GetCmName() string { + if x != nil { + return x.CmName } - l = len(m.CmName) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovSync(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *DeleteSyncLimitResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *DeleteSyncLimitRequest) GetKey() string { + if x != nil { + return x.Key } - return n + return "" } -func sovSync(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozSync(x uint64) (n int) { - return sovSync(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +type DeleteSyncLimitResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *CreateSyncLimitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateSyncLimitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateSyncLimitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= SyncConfigType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CmName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CmName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipSync(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSync - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *DeleteSyncLimitResponse) Reset() { + *x = DeleteSyncLimitResponse{} + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *SyncLimitResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SyncLimitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncLimitResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= SyncConfigType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CmName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CmName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipSync(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSync - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *DeleteSyncLimitResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetSyncLimitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetSyncLimitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetSyncLimitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= SyncConfigType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CmName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CmName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSync(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSync - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateSyncLimitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateSyncLimitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateSyncLimitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= SyncConfigType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CmName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CmName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipSync(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSync - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*DeleteSyncLimitResponse) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteSyncLimitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteSyncLimitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteSyncLimitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= SyncConfigType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CmName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CmName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthSync - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSync - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSync(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSync - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy +func (x *DeleteSyncLimitResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_sync_sync_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *DeleteSyncLimitResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSync - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteSyncLimitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteSyncLimitResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipSync(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSync - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipSync(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSync - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSync - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSync - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthSync - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupSync - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthSync - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +// Deprecated: Use DeleteSyncLimitResponse.ProtoReflect.Descriptor instead. +func (*DeleteSyncLimitResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_sync_sync_proto_rawDescGZIP(), []int{5} +} + +var File_pkg_apiclient_sync_sync_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_sync_sync_proto_rawDesc = "" + + "\n" + + "\x1dpkg/apiclient/sync/sync.proto\x12\x04sync\x1a\x1cgoogle/api/annotations.proto\"\xa0\x01\n" + + "\x16CreateSyncLimitRequest\x12(\n" + + "\x04type\x18\x01 \x01(\x0e2\x14.sync.SyncConfigTypeR\x04type\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x16\n" + + "\x06cmName\x18\x03 \x01(\tR\x06cmName\x12\x10\n" + + "\x03key\x18\x04 \x01(\tR\x03key\x12\x14\n" + + "\x05limit\x18\x05 \x01(\x05R\x05limit\"\x9b\x01\n" + + "\x11SyncLimitResponse\x12(\n" + + "\x04type\x18\x01 \x01(\x0e2\x14.sync.SyncConfigTypeR\x04type\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x16\n" + + "\x06cmName\x18\x03 \x01(\tR\x06cmName\x12\x10\n" + + "\x03key\x18\x04 \x01(\tR\x03key\x12\x14\n" + + "\x05limit\x18\x05 \x01(\x05R\x05limit\"\x87\x01\n" + + "\x13GetSyncLimitRequest\x12(\n" + + "\x04type\x18\x01 \x01(\x0e2\x14.sync.SyncConfigTypeR\x04type\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x16\n" + + "\x06cmName\x18\x03 \x01(\tR\x06cmName\x12\x10\n" + + "\x03key\x18\x04 \x01(\tR\x03key\"\xa0\x01\n" + + "\x16UpdateSyncLimitRequest\x12(\n" + + "\x04type\x18\x01 \x01(\x0e2\x14.sync.SyncConfigTypeR\x04type\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x16\n" + + "\x06cmName\x18\x03 \x01(\tR\x06cmName\x12\x10\n" + + "\x03key\x18\x04 \x01(\tR\x03key\x12\x14\n" + + "\x05limit\x18\x05 \x01(\x05R\x05limit\"\x8a\x01\n" + + "\x16DeleteSyncLimitRequest\x12(\n" + + "\x04type\x18\x01 \x01(\x0e2\x14.sync.SyncConfigTypeR\x04type\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x16\n" + + "\x06cmName\x18\x03 \x01(\tR\x06cmName\x12\x10\n" + + "\x03key\x18\x04 \x01(\tR\x03key\"\x19\n" + + "\x17DeleteSyncLimitResponse*-\n" + + "\x0eSyncConfigType\x12\r\n" + + "\tCONFIGMAP\x10\x00\x12\f\n" + + "\bDATABASE\x10\x012\xd5\x03\n" + + "\vSyncService\x12m\n" + + "\x0fCreateSyncLimit\x12\x1c.sync.CreateSyncLimitRequest\x1a\x17.sync.SyncLimitResponse\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/v1/sync/{namespace}\x12j\n" + + "\fGetSyncLimit\x12\x19.sync.GetSyncLimitRequest\x1a\x17.sync.SyncLimitResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/api/v1/sync/{namespace}/{key}\x12s\n" + + "\x0fUpdateSyncLimit\x12\x1c.sync.UpdateSyncLimitRequest\x1a\x17.sync.SyncLimitResponse\")\x82\xd3\xe4\x93\x02#:\x01*\x1a\x1e/api/v1/sync/{namespace}/{key}\x12v\n" + + "\x0fDeleteSyncLimit\x12\x1c.sync.DeleteSyncLimitRequest\x1a\x1d.sync.DeleteSyncLimitResponse\"&\x82\xd3\xe4\x93\x02 *\x1e/api/v1/sync/{namespace}/{key}B:Z8github.com/argoproj/argo-workflows/v4/pkg/apiclient/syncb\x06proto3" var ( - ErrInvalidLengthSync = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSync = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupSync = fmt.Errorf("proto: unexpected end of group") + file_pkg_apiclient_sync_sync_proto_rawDescOnce sync.Once + file_pkg_apiclient_sync_sync_proto_rawDescData []byte ) + +func file_pkg_apiclient_sync_sync_proto_rawDescGZIP() []byte { + file_pkg_apiclient_sync_sync_proto_rawDescOnce.Do(func() { + file_pkg_apiclient_sync_sync_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_apiclient_sync_sync_proto_rawDesc), len(file_pkg_apiclient_sync_sync_proto_rawDesc))) + }) + return file_pkg_apiclient_sync_sync_proto_rawDescData +} + +var file_pkg_apiclient_sync_sync_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_pkg_apiclient_sync_sync_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_pkg_apiclient_sync_sync_proto_goTypes = []any{ + (SyncConfigType)(0), // 0: sync.SyncConfigType + (*CreateSyncLimitRequest)(nil), // 1: sync.CreateSyncLimitRequest + (*SyncLimitResponse)(nil), // 2: sync.SyncLimitResponse + (*GetSyncLimitRequest)(nil), // 3: sync.GetSyncLimitRequest + (*UpdateSyncLimitRequest)(nil), // 4: sync.UpdateSyncLimitRequest + (*DeleteSyncLimitRequest)(nil), // 5: sync.DeleteSyncLimitRequest + (*DeleteSyncLimitResponse)(nil), // 6: sync.DeleteSyncLimitResponse +} +var file_pkg_apiclient_sync_sync_proto_depIdxs = []int32{ + 0, // 0: sync.CreateSyncLimitRequest.type:type_name -> sync.SyncConfigType + 0, // 1: sync.SyncLimitResponse.type:type_name -> sync.SyncConfigType + 0, // 2: sync.GetSyncLimitRequest.type:type_name -> sync.SyncConfigType + 0, // 3: sync.UpdateSyncLimitRequest.type:type_name -> sync.SyncConfigType + 0, // 4: sync.DeleteSyncLimitRequest.type:type_name -> sync.SyncConfigType + 1, // 5: sync.SyncService.CreateSyncLimit:input_type -> sync.CreateSyncLimitRequest + 3, // 6: sync.SyncService.GetSyncLimit:input_type -> sync.GetSyncLimitRequest + 4, // 7: sync.SyncService.UpdateSyncLimit:input_type -> sync.UpdateSyncLimitRequest + 5, // 8: sync.SyncService.DeleteSyncLimit:input_type -> sync.DeleteSyncLimitRequest + 2, // 9: sync.SyncService.CreateSyncLimit:output_type -> sync.SyncLimitResponse + 2, // 10: sync.SyncService.GetSyncLimit:output_type -> sync.SyncLimitResponse + 2, // 11: sync.SyncService.UpdateSyncLimit:output_type -> sync.SyncLimitResponse + 6, // 12: sync.SyncService.DeleteSyncLimit:output_type -> sync.DeleteSyncLimitResponse + 9, // [9:13] is the sub-list for method output_type + 5, // [5:9] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_sync_sync_proto_init() } +func file_pkg_apiclient_sync_sync_proto_init() { + if File_pkg_apiclient_sync_sync_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_sync_sync_proto_rawDesc), len(file_pkg_apiclient_sync_sync_proto_rawDesc)), + NumEnums: 1, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_sync_sync_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_sync_sync_proto_depIdxs, + EnumInfos: file_pkg_apiclient_sync_sync_proto_enumTypes, + MessageInfos: file_pkg_apiclient_sync_sync_proto_msgTypes, + }.Build() + File_pkg_apiclient_sync_sync_proto = out.File + file_pkg_apiclient_sync_sync_proto_goTypes = nil + file_pkg_apiclient_sync_sync_proto_depIdxs = nil +} diff --git a/pkg/apiclient/sync/sync.pb.gw.go b/pkg/apiclient/sync/sync.pb.gw.go index f5efce5e87fd..58751e06d8ec 100644 --- a/pkg/apiclient/sync/sync.pb.gw.go +++ b/pkg/apiclient/sync/sync.pb.gw.go @@ -10,475 +10,361 @@ package sync import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_SyncService_CreateSyncLimit_0(ctx context.Context, marshaler runtime.Marshaler, client SyncServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateSyncLimitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CreateSyncLimitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.CreateSyncLimit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_SyncService_CreateSyncLimit_0(ctx context.Context, marshaler runtime.Marshaler, server SyncServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateSyncLimitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq CreateSyncLimitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.CreateSyncLimit(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_SyncService_GetSyncLimit_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "key": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_SyncService_GetSyncLimit_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "key": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_SyncService_GetSyncLimit_0(ctx context.Context, marshaler runtime.Marshaler, client SyncServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetSyncLimitRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetSyncLimitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") } - protoReq.Key, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SyncService_GetSyncLimit_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetSyncLimit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_SyncService_GetSyncLimit_0(ctx context.Context, marshaler runtime.Marshaler, server SyncServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetSyncLimitRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetSyncLimitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") } - protoReq.Key, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SyncService_GetSyncLimit_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetSyncLimit(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_SyncService_UpdateSyncLimit_0(ctx context.Context, marshaler runtime.Marshaler, client SyncServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateSyncLimitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq UpdateSyncLimitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") } - protoReq.Key, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) } - msg, err := client.UpdateSyncLimit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_SyncService_UpdateSyncLimit_0(ctx context.Context, marshaler runtime.Marshaler, server SyncServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateSyncLimitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq UpdateSyncLimitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") } - protoReq.Key, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) } - msg, err := server.UpdateSyncLimit(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_SyncService_DeleteSyncLimit_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "key": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_SyncService_DeleteSyncLimit_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "key": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_SyncService_DeleteSyncLimit_0(ctx context.Context, marshaler runtime.Marshaler, client SyncServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteSyncLimitRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteSyncLimitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") } - protoReq.Key, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SyncService_DeleteSyncLimit_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteSyncLimit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_SyncService_DeleteSyncLimit_0(ctx context.Context, marshaler runtime.Marshaler, server SyncServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteSyncLimitRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteSyncLimitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") } - protoReq.Key, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SyncService_DeleteSyncLimit_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteSyncLimit(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterSyncServiceHandlerServer registers the http handlers for service SyncService to "mux". // UnaryRPC :call SyncServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSyncServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterSyncServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SyncServiceServer) error { - - mux.Handle("POST", pattern_SyncService_CreateSyncLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_SyncService_CreateSyncLimit_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/sync.SyncService/CreateSyncLimit", runtime.WithHTTPPathPattern("/api/v1/sync/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_SyncService_CreateSyncLimit_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_SyncService_CreateSyncLimit_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SyncService_CreateSyncLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SyncService_CreateSyncLimit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_SyncService_GetSyncLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SyncService_GetSyncLimit_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/sync.SyncService/GetSyncLimit", runtime.WithHTTPPathPattern("/api/v1/sync/{namespace}/{key}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_SyncService_GetSyncLimit_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_SyncService_GetSyncLimit_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SyncService_GetSyncLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SyncService_GetSyncLimit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_SyncService_UpdateSyncLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_SyncService_UpdateSyncLimit_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/sync.SyncService/UpdateSyncLimit", runtime.WithHTTPPathPattern("/api/v1/sync/{namespace}/{key}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_SyncService_UpdateSyncLimit_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_SyncService_UpdateSyncLimit_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SyncService_UpdateSyncLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SyncService_UpdateSyncLimit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_SyncService_DeleteSyncLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_SyncService_DeleteSyncLimit_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/sync.SyncService/DeleteSyncLimit", runtime.WithHTTPPathPattern("/api/v1/sync/{namespace}/{key}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_SyncService_DeleteSyncLimit_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_SyncService_DeleteSyncLimit_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SyncService_DeleteSyncLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SyncService_DeleteSyncLimit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -487,25 +373,24 @@ func RegisterSyncServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux // RegisterSyncServiceHandlerFromEndpoint is same as RegisterSyncServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterSyncServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterSyncServiceHandler(ctx, mux, conn) } @@ -519,108 +404,89 @@ func RegisterSyncServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SyncServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SyncServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "SyncServiceClient" to call the correct interceptors. +// "SyncServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterSyncServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SyncServiceClient) error { - - mux.Handle("POST", pattern_SyncService_CreateSyncLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_SyncService_CreateSyncLimit_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sync.SyncService/CreateSyncLimit", runtime.WithHTTPPathPattern("/api/v1/sync/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SyncService_CreateSyncLimit_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SyncService_CreateSyncLimit_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SyncService_CreateSyncLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SyncService_CreateSyncLimit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_SyncService_GetSyncLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_SyncService_GetSyncLimit_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sync.SyncService/GetSyncLimit", runtime.WithHTTPPathPattern("/api/v1/sync/{namespace}/{key}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SyncService_GetSyncLimit_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SyncService_GetSyncLimit_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SyncService_GetSyncLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SyncService_GetSyncLimit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_SyncService_UpdateSyncLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_SyncService_UpdateSyncLimit_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sync.SyncService/UpdateSyncLimit", runtime.WithHTTPPathPattern("/api/v1/sync/{namespace}/{key}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SyncService_UpdateSyncLimit_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SyncService_UpdateSyncLimit_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SyncService_UpdateSyncLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SyncService_UpdateSyncLimit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_SyncService_DeleteSyncLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_SyncService_DeleteSyncLimit_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/sync.SyncService/DeleteSyncLimit", runtime.WithHTTPPathPattern("/api/v1/sync/{namespace}/{key}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_SyncService_DeleteSyncLimit_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_SyncService_DeleteSyncLimit_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_SyncService_DeleteSyncLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_SyncService_DeleteSyncLimit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_SyncService_CreateSyncLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "sync", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_SyncService_GetSyncLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sync", "namespace", "key"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_SyncService_UpdateSyncLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sync", "namespace", "key"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_SyncService_DeleteSyncLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sync", "namespace", "key"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_SyncService_CreateSyncLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "sync", "namespace"}, "")) + pattern_SyncService_GetSyncLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sync", "namespace", "key"}, "")) + pattern_SyncService_UpdateSyncLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sync", "namespace", "key"}, "")) + pattern_SyncService_DeleteSyncLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "sync", "namespace", "key"}, "")) ) var ( forward_SyncService_CreateSyncLimit_0 = runtime.ForwardResponseMessage - - forward_SyncService_GetSyncLimit_0 = runtime.ForwardResponseMessage - + forward_SyncService_GetSyncLimit_0 = runtime.ForwardResponseMessage forward_SyncService_UpdateSyncLimit_0 = runtime.ForwardResponseMessage - forward_SyncService_DeleteSyncLimit_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/sync/sync_grpc.pb.go b/pkg/apiclient/sync/sync_grpc.pb.go new file mode 100644 index 000000000000..112437d427c3 --- /dev/null +++ b/pkg/apiclient/sync/sync_grpc.pb.go @@ -0,0 +1,233 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/sync/sync.proto + +package sync + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + SyncService_CreateSyncLimit_FullMethodName = "/sync.SyncService/CreateSyncLimit" + SyncService_GetSyncLimit_FullMethodName = "/sync.SyncService/GetSyncLimit" + SyncService_UpdateSyncLimit_FullMethodName = "/sync.SyncService/UpdateSyncLimit" + SyncService_DeleteSyncLimit_FullMethodName = "/sync.SyncService/DeleteSyncLimit" +) + +// SyncServiceClient is the client API for SyncService 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 SyncServiceClient interface { + CreateSyncLimit(ctx context.Context, in *CreateSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) + GetSyncLimit(ctx context.Context, in *GetSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) + UpdateSyncLimit(ctx context.Context, in *UpdateSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) + DeleteSyncLimit(ctx context.Context, in *DeleteSyncLimitRequest, opts ...grpc.CallOption) (*DeleteSyncLimitResponse, error) +} + +type syncServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSyncServiceClient(cc grpc.ClientConnInterface) SyncServiceClient { + return &syncServiceClient{cc} +} + +func (c *syncServiceClient) CreateSyncLimit(ctx context.Context, in *CreateSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SyncLimitResponse) + err := c.cc.Invoke(ctx, SyncService_CreateSyncLimit_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *syncServiceClient) GetSyncLimit(ctx context.Context, in *GetSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SyncLimitResponse) + err := c.cc.Invoke(ctx, SyncService_GetSyncLimit_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *syncServiceClient) UpdateSyncLimit(ctx context.Context, in *UpdateSyncLimitRequest, opts ...grpc.CallOption) (*SyncLimitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SyncLimitResponse) + err := c.cc.Invoke(ctx, SyncService_UpdateSyncLimit_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *syncServiceClient) DeleteSyncLimit(ctx context.Context, in *DeleteSyncLimitRequest, opts ...grpc.CallOption) (*DeleteSyncLimitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteSyncLimitResponse) + err := c.cc.Invoke(ctx, SyncService_DeleteSyncLimit_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SyncServiceServer is the server API for SyncService service. +// All implementations should embed UnimplementedSyncServiceServer +// for forward compatibility. +type SyncServiceServer interface { + CreateSyncLimit(context.Context, *CreateSyncLimitRequest) (*SyncLimitResponse, error) + GetSyncLimit(context.Context, *GetSyncLimitRequest) (*SyncLimitResponse, error) + UpdateSyncLimit(context.Context, *UpdateSyncLimitRequest) (*SyncLimitResponse, error) + DeleteSyncLimit(context.Context, *DeleteSyncLimitRequest) (*DeleteSyncLimitResponse, error) +} + +// UnimplementedSyncServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSyncServiceServer struct{} + +func (UnimplementedSyncServiceServer) CreateSyncLimit(context.Context, *CreateSyncLimitRequest) (*SyncLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateSyncLimit not implemented") +} +func (UnimplementedSyncServiceServer) GetSyncLimit(context.Context, *GetSyncLimitRequest) (*SyncLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSyncLimit not implemented") +} +func (UnimplementedSyncServiceServer) UpdateSyncLimit(context.Context, *UpdateSyncLimitRequest) (*SyncLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateSyncLimit not implemented") +} +func (UnimplementedSyncServiceServer) DeleteSyncLimit(context.Context, *DeleteSyncLimitRequest) (*DeleteSyncLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteSyncLimit not implemented") +} +func (UnimplementedSyncServiceServer) testEmbeddedByValue() {} + +// UnsafeSyncServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SyncServiceServer will +// result in compilation errors. +type UnsafeSyncServiceServer interface { + mustEmbedUnimplementedSyncServiceServer() +} + +func RegisterSyncServiceServer(s grpc.ServiceRegistrar, srv SyncServiceServer) { + // If the following call pancis, it indicates UnimplementedSyncServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&SyncService_ServiceDesc, srv) +} + +func _SyncService_CreateSyncLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateSyncLimitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SyncServiceServer).CreateSyncLimit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SyncService_CreateSyncLimit_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SyncServiceServer).CreateSyncLimit(ctx, req.(*CreateSyncLimitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SyncService_GetSyncLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSyncLimitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SyncServiceServer).GetSyncLimit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SyncService_GetSyncLimit_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SyncServiceServer).GetSyncLimit(ctx, req.(*GetSyncLimitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SyncService_UpdateSyncLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSyncLimitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SyncServiceServer).UpdateSyncLimit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SyncService_UpdateSyncLimit_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SyncServiceServer).UpdateSyncLimit(ctx, req.(*UpdateSyncLimitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SyncService_DeleteSyncLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteSyncLimitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SyncServiceServer).DeleteSyncLimit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SyncService_DeleteSyncLimit_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SyncServiceServer).DeleteSyncLimit(ctx, req.(*DeleteSyncLimitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SyncService_ServiceDesc is the grpc.ServiceDesc for SyncService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SyncService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "sync.SyncService", + HandlerType: (*SyncServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateSyncLimit", + Handler: _SyncService_CreateSyncLimit_Handler, + }, + { + MethodName: "GetSyncLimit", + Handler: _SyncService_GetSyncLimit_Handler, + }, + { + MethodName: "UpdateSyncLimit", + Handler: _SyncService_UpdateSyncLimit_Handler, + }, + { + MethodName: "DeleteSyncLimit", + Handler: _SyncService_DeleteSyncLimit_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/apiclient/sync/sync.proto", +} diff --git a/pkg/apiclient/watch-intermediary.go b/pkg/apiclient/watch-intermediary.go index be801572324d..f924d7c11894 100644 --- a/pkg/apiclient/watch-intermediary.go +++ b/pkg/apiclient/watch-intermediary.go @@ -4,7 +4,6 @@ import ( "context" "google.golang.org/grpc/metadata" - v1 "k8s.io/api/core/v1" workflowpkg "github.com/argoproj/argo-workflows/v4/pkg/apiclient/workflow" ) @@ -41,15 +40,15 @@ func newWorkflowWatchIntermediary(ctx context.Context) *workflowWatchIntermediar type eventWatchIntermediary struct { abstractIntermediary - events chan *v1.Event + events chan *workflowpkg.EventWatchEvent } -func (w eventWatchIntermediary) Send(e *v1.Event) error { +func (w eventWatchIntermediary) Send(e *workflowpkg.EventWatchEvent) error { w.events <- e return nil } -func (w eventWatchIntermediary) Recv() (*v1.Event, error) { +func (w eventWatchIntermediary) Recv() (*workflowpkg.EventWatchEvent, error) { select { case e := <-w.error: return nil, e @@ -66,5 +65,5 @@ func (w *eventWatchIntermediary) SendHeader(metadata.MD) error { } func newEventWatchIntermediary(ctx context.Context) *eventWatchIntermediary { - return &eventWatchIntermediary{newAbstractIntermediary(ctx), make(chan *v1.Event)} + return &eventWatchIntermediary{newAbstractIntermediary(ctx), make(chan *workflowpkg.EventWatchEvent)} } diff --git a/pkg/apiclient/workflow/event_proto_adapter.go b/pkg/apiclient/workflow/event_proto_adapter.go deleted file mode 100644 index 0c32980042ac..000000000000 --- a/pkg/apiclient/workflow/event_proto_adapter.go +++ /dev/null @@ -1,32 +0,0 @@ -package workflow - -import ( - "encoding/json" - "fmt" - - "github.com/golang/protobuf/jsonpb" //nolint:staticcheck // grpc-gateway v1 JSONPBMarshaler requires this package - corev1 "k8s.io/api/core/v1" -) - -// eventProtoAdapter wraps corev1.Event to satisfy the proto.Message interface. -// k8s v0.35+ removed ProtoMessage() from core types, but grpc-gateway v1 -// generated code requires all streamed response types to implement proto.Message. -// It also implements jsonpb.JSONPBMarshaler so the grpc-gateway jsonpb marshaler -// serializes the underlying Event as standard JSON rather than using proto reflection. -type eventProtoAdapter struct { - *corev1.Event -} - -func (e *eventProtoAdapter) ProtoMessage() {} -func (e *eventProtoAdapter) Reset() { *e.Event = corev1.Event{} } -func (e *eventProtoAdapter) String() string { return fmt.Sprintf("%v", e.Event) } -func (e *eventProtoAdapter) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error) { - return json.Marshal(e.Event) -} - -func wrapEventAsProtoMessage(event *corev1.Event, err error) (*eventProtoAdapter, error) { - if err != nil { - return nil, err - } - return &eventProtoAdapter{Event: event}, nil -} diff --git a/pkg/apiclient/workflow/forwarder_overwrite.go b/pkg/apiclient/workflow/forwarder_overwrite.go index 186ebae8a7f3..9232eaca477a 100644 --- a/pkg/apiclient/workflow/forwarder_overwrite.go +++ b/pkg/apiclient/workflow/forwarder_overwrite.go @@ -1,12 +1,12 @@ package workflow import ( - "github.com/argoproj/pkg/grpc/http" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" ) func init() { - forward_WorkflowService_WatchWorkflows_0 = http.StreamForwarder - forward_WorkflowService_WatchEvents_0 = http.StreamForwarder - forward_WorkflowService_PodLogs_0 = http.StreamForwarder - forward_WorkflowService_WorkflowLogs_0 = http.StreamForwarder + forward_WorkflowService_WatchWorkflows_0 = gateway.StreamForwarder + forward_WorkflowService_WatchEvents_0 = gateway.StreamForwarder + forward_WorkflowService_PodLogs_0 = gateway.StreamForwarder + forward_WorkflowService_WorkflowLogs_0 = gateway.StreamForwarder } diff --git a/pkg/apiclient/workflow/mocks/WorkflowServiceClient.go b/pkg/apiclient/workflow/mocks/WorkflowServiceClient.go index 91c0218518da..192091f4d24d 100644 --- a/pkg/apiclient/workflow/mocks/WorkflowServiceClient.go +++ b/pkg/apiclient/workflow/mocks/WorkflowServiceClient.go @@ -476,7 +476,7 @@ func (_c *WorkflowServiceClient_ListWorkflows_Call) RunAndReturn(run func(ctx co } // PodLogs provides a mock function for the type WorkflowServiceClient -func (_mock *WorkflowServiceClient) PodLogs(ctx context.Context, in *workflow.WorkflowLogRequest, opts ...grpc.CallOption) (workflow.WorkflowService_PodLogsClient, error) { +func (_mock *WorkflowServiceClient) PodLogs(ctx context.Context, in *workflow.WorkflowLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.LogEntry], error) { // grpc.CallOption _va := make([]interface{}, len(opts)) for _i := range opts { @@ -491,16 +491,16 @@ func (_mock *WorkflowServiceClient) PodLogs(ctx context.Context, in *workflow.Wo panic("no return value specified for PodLogs") } - var r0 workflow.WorkflowService_PodLogsClient + var r0 grpc.ServerStreamingClient[workflow.LogEntry] var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) (workflow.WorkflowService_PodLogsClient, error)); ok { + if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.LogEntry], error)); ok { return returnFunc(ctx, in, opts...) } - if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) workflow.WorkflowService_PodLogsClient); ok { + if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) grpc.ServerStreamingClient[workflow.LogEntry]); ok { r0 = returnFunc(ctx, in, opts...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(workflow.WorkflowService_PodLogsClient) + r0 = ret.Get(0).(grpc.ServerStreamingClient[workflow.LogEntry]) } } if returnFunc, ok := ret.Get(1).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) error); ok { @@ -552,12 +552,12 @@ func (_c *WorkflowServiceClient_PodLogs_Call) Run(run func(ctx context.Context, return _c } -func (_c *WorkflowServiceClient_PodLogs_Call) Return(workflowService_PodLogsClient workflow.WorkflowService_PodLogsClient, err error) *WorkflowServiceClient_PodLogs_Call { - _c.Call.Return(workflowService_PodLogsClient, err) +func (_c *WorkflowServiceClient_PodLogs_Call) Return(serverStreamingClient grpc.ServerStreamingClient[workflow.LogEntry], err error) *WorkflowServiceClient_PodLogs_Call { + _c.Call.Return(serverStreamingClient, err) return _c } -func (_c *WorkflowServiceClient_PodLogs_Call) RunAndReturn(run func(ctx context.Context, in *workflow.WorkflowLogRequest, opts ...grpc.CallOption) (workflow.WorkflowService_PodLogsClient, error)) *WorkflowServiceClient_PodLogs_Call { +func (_c *WorkflowServiceClient_PodLogs_Call) RunAndReturn(run func(ctx context.Context, in *workflow.WorkflowLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.LogEntry], error)) *WorkflowServiceClient_PodLogs_Call { _c.Call.Return(run) return _c } @@ -1259,7 +1259,7 @@ func (_c *WorkflowServiceClient_TerminateWorkflow_Call) RunAndReturn(run func(ct } // WatchEvents provides a mock function for the type WorkflowServiceClient -func (_mock *WorkflowServiceClient) WatchEvents(ctx context.Context, in *workflow.WatchEventsRequest, opts ...grpc.CallOption) (workflow.WorkflowService_WatchEventsClient, error) { +func (_mock *WorkflowServiceClient) WatchEvents(ctx context.Context, in *workflow.WatchEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.EventWatchEvent], error) { // grpc.CallOption _va := make([]interface{}, len(opts)) for _i := range opts { @@ -1274,16 +1274,16 @@ func (_mock *WorkflowServiceClient) WatchEvents(ctx context.Context, in *workflo panic("no return value specified for WatchEvents") } - var r0 workflow.WorkflowService_WatchEventsClient + var r0 grpc.ServerStreamingClient[workflow.EventWatchEvent] var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WatchEventsRequest, ...grpc.CallOption) (workflow.WorkflowService_WatchEventsClient, error)); ok { + if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WatchEventsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.EventWatchEvent], error)); ok { return returnFunc(ctx, in, opts...) } - if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WatchEventsRequest, ...grpc.CallOption) workflow.WorkflowService_WatchEventsClient); ok { + if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WatchEventsRequest, ...grpc.CallOption) grpc.ServerStreamingClient[workflow.EventWatchEvent]); ok { r0 = returnFunc(ctx, in, opts...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(workflow.WorkflowService_WatchEventsClient) + r0 = ret.Get(0).(grpc.ServerStreamingClient[workflow.EventWatchEvent]) } } if returnFunc, ok := ret.Get(1).(func(context.Context, *workflow.WatchEventsRequest, ...grpc.CallOption) error); ok { @@ -1335,18 +1335,18 @@ func (_c *WorkflowServiceClient_WatchEvents_Call) Run(run func(ctx context.Conte return _c } -func (_c *WorkflowServiceClient_WatchEvents_Call) Return(workflowService_WatchEventsClient workflow.WorkflowService_WatchEventsClient, err error) *WorkflowServiceClient_WatchEvents_Call { - _c.Call.Return(workflowService_WatchEventsClient, err) +func (_c *WorkflowServiceClient_WatchEvents_Call) Return(serverStreamingClient grpc.ServerStreamingClient[workflow.EventWatchEvent], err error) *WorkflowServiceClient_WatchEvents_Call { + _c.Call.Return(serverStreamingClient, err) return _c } -func (_c *WorkflowServiceClient_WatchEvents_Call) RunAndReturn(run func(ctx context.Context, in *workflow.WatchEventsRequest, opts ...grpc.CallOption) (workflow.WorkflowService_WatchEventsClient, error)) *WorkflowServiceClient_WatchEvents_Call { +func (_c *WorkflowServiceClient_WatchEvents_Call) RunAndReturn(run func(ctx context.Context, in *workflow.WatchEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.EventWatchEvent], error)) *WorkflowServiceClient_WatchEvents_Call { _c.Call.Return(run) return _c } // WatchWorkflows provides a mock function for the type WorkflowServiceClient -func (_mock *WorkflowServiceClient) WatchWorkflows(ctx context.Context, in *workflow.WatchWorkflowsRequest, opts ...grpc.CallOption) (workflow.WorkflowService_WatchWorkflowsClient, error) { +func (_mock *WorkflowServiceClient) WatchWorkflows(ctx context.Context, in *workflow.WatchWorkflowsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.WorkflowWatchEvent], error) { // grpc.CallOption _va := make([]interface{}, len(opts)) for _i := range opts { @@ -1361,16 +1361,16 @@ func (_mock *WorkflowServiceClient) WatchWorkflows(ctx context.Context, in *work panic("no return value specified for WatchWorkflows") } - var r0 workflow.WorkflowService_WatchWorkflowsClient + var r0 grpc.ServerStreamingClient[workflow.WorkflowWatchEvent] var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WatchWorkflowsRequest, ...grpc.CallOption) (workflow.WorkflowService_WatchWorkflowsClient, error)); ok { + if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WatchWorkflowsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.WorkflowWatchEvent], error)); ok { return returnFunc(ctx, in, opts...) } - if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WatchWorkflowsRequest, ...grpc.CallOption) workflow.WorkflowService_WatchWorkflowsClient); ok { + if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WatchWorkflowsRequest, ...grpc.CallOption) grpc.ServerStreamingClient[workflow.WorkflowWatchEvent]); ok { r0 = returnFunc(ctx, in, opts...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(workflow.WorkflowService_WatchWorkflowsClient) + r0 = ret.Get(0).(grpc.ServerStreamingClient[workflow.WorkflowWatchEvent]) } } if returnFunc, ok := ret.Get(1).(func(context.Context, *workflow.WatchWorkflowsRequest, ...grpc.CallOption) error); ok { @@ -1422,18 +1422,18 @@ func (_c *WorkflowServiceClient_WatchWorkflows_Call) Run(run func(ctx context.Co return _c } -func (_c *WorkflowServiceClient_WatchWorkflows_Call) Return(workflowService_WatchWorkflowsClient workflow.WorkflowService_WatchWorkflowsClient, err error) *WorkflowServiceClient_WatchWorkflows_Call { - _c.Call.Return(workflowService_WatchWorkflowsClient, err) +func (_c *WorkflowServiceClient_WatchWorkflows_Call) Return(serverStreamingClient grpc.ServerStreamingClient[workflow.WorkflowWatchEvent], err error) *WorkflowServiceClient_WatchWorkflows_Call { + _c.Call.Return(serverStreamingClient, err) return _c } -func (_c *WorkflowServiceClient_WatchWorkflows_Call) RunAndReturn(run func(ctx context.Context, in *workflow.WatchWorkflowsRequest, opts ...grpc.CallOption) (workflow.WorkflowService_WatchWorkflowsClient, error)) *WorkflowServiceClient_WatchWorkflows_Call { +func (_c *WorkflowServiceClient_WatchWorkflows_Call) RunAndReturn(run func(ctx context.Context, in *workflow.WatchWorkflowsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.WorkflowWatchEvent], error)) *WorkflowServiceClient_WatchWorkflows_Call { _c.Call.Return(run) return _c } // WorkflowLogs provides a mock function for the type WorkflowServiceClient -func (_mock *WorkflowServiceClient) WorkflowLogs(ctx context.Context, in *workflow.WorkflowLogRequest, opts ...grpc.CallOption) (workflow.WorkflowService_WorkflowLogsClient, error) { +func (_mock *WorkflowServiceClient) WorkflowLogs(ctx context.Context, in *workflow.WorkflowLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.LogEntry], error) { // grpc.CallOption _va := make([]interface{}, len(opts)) for _i := range opts { @@ -1448,16 +1448,16 @@ func (_mock *WorkflowServiceClient) WorkflowLogs(ctx context.Context, in *workfl panic("no return value specified for WorkflowLogs") } - var r0 workflow.WorkflowService_WorkflowLogsClient + var r0 grpc.ServerStreamingClient[workflow.LogEntry] var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) (workflow.WorkflowService_WorkflowLogsClient, error)); ok { + if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.LogEntry], error)); ok { return returnFunc(ctx, in, opts...) } - if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) workflow.WorkflowService_WorkflowLogsClient); ok { + if returnFunc, ok := ret.Get(0).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) grpc.ServerStreamingClient[workflow.LogEntry]); ok { r0 = returnFunc(ctx, in, opts...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(workflow.WorkflowService_WorkflowLogsClient) + r0 = ret.Get(0).(grpc.ServerStreamingClient[workflow.LogEntry]) } } if returnFunc, ok := ret.Get(1).(func(context.Context, *workflow.WorkflowLogRequest, ...grpc.CallOption) error); ok { @@ -1509,12 +1509,12 @@ func (_c *WorkflowServiceClient_WorkflowLogs_Call) Run(run func(ctx context.Cont return _c } -func (_c *WorkflowServiceClient_WorkflowLogs_Call) Return(workflowService_WorkflowLogsClient workflow.WorkflowService_WorkflowLogsClient, err error) *WorkflowServiceClient_WorkflowLogs_Call { - _c.Call.Return(workflowService_WorkflowLogsClient, err) +func (_c *WorkflowServiceClient_WorkflowLogs_Call) Return(serverStreamingClient grpc.ServerStreamingClient[workflow.LogEntry], err error) *WorkflowServiceClient_WorkflowLogs_Call { + _c.Call.Return(serverStreamingClient, err) return _c } -func (_c *WorkflowServiceClient_WorkflowLogs_Call) RunAndReturn(run func(ctx context.Context, in *workflow.WorkflowLogRequest, opts ...grpc.CallOption) (workflow.WorkflowService_WorkflowLogsClient, error)) *WorkflowServiceClient_WorkflowLogs_Call { +func (_c *WorkflowServiceClient_WorkflowLogs_Call) RunAndReturn(run func(ctx context.Context, in *workflow.WorkflowLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[workflow.LogEntry], error)) *WorkflowServiceClient_WorkflowLogs_Call { _c.Call.Return(run) return _c } diff --git a/pkg/apiclient/workflow/workflow.pb.go b/pkg/apiclient/workflow/workflow.pb.go index 58f1ad360ae1..36b58ae63726 100644 --- a/pkg/apiclient/workflow/workflow.pb.go +++ b/pkg/apiclient/workflow/workflow.pb.go @@ -1,4 +1,7 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/workflow/workflow.proto // Workflow Service @@ -8,6965 +11,1551 @@ package workflow import ( - context "context" - fmt "fmt" v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" v11 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type WorkflowCreateRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - Workflow *v1alpha1.Workflow `protobuf:"bytes,2,opt,name=workflow,proto3" json:"workflow,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + Workflow *v1alpha1.Workflow `protobuf:"bytes,2,opt,name=workflow,proto3" json:"workflow,omitempty"` // This field is no longer used. - InstanceID string `protobuf:"bytes,3,opt,name=instanceID,proto3" json:"instanceID,omitempty"` // Deprecated: Do not use. - ServerDryRun bool `protobuf:"varint,4,opt,name=serverDryRun,proto3" json:"serverDryRun,omitempty"` - CreateOptions *v1.CreateOptions `protobuf:"bytes,5,opt,name=createOptions,proto3" json:"createOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // + // Deprecated: Marked as deprecated in pkg/apiclient/workflow/workflow.proto. + InstanceID string `protobuf:"bytes,3,opt,name=instanceID,proto3" json:"instanceID,omitempty"` + ServerDryRun bool `protobuf:"varint,4,opt,name=serverDryRun,proto3" json:"serverDryRun,omitempty"` + CreateOptions *v1.CreateOptions `protobuf:"bytes,5,opt,name=createOptions,proto3" json:"createOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowCreateRequest) Reset() { *m = WorkflowCreateRequest{} } -func (m *WorkflowCreateRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowCreateRequest) ProtoMessage() {} -func (*WorkflowCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{0} -} -func (m *WorkflowCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowCreateRequest.Merge(m, src) +func (x *WorkflowCreateRequest) Reset() { + *x = WorkflowCreateRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowCreateRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowCreateRequest.DiscardUnknown(m) + +func (*WorkflowCreateRequest) ProtoMessage() {} + +func (x *WorkflowCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowCreateRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowCreateRequest.ProtoReflect.Descriptor instead. +func (*WorkflowCreateRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{0} +} -func (m *WorkflowCreateRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowCreateRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowCreateRequest) GetWorkflow() *v1alpha1.Workflow { - if m != nil { - return m.Workflow +func (x *WorkflowCreateRequest) GetWorkflow() *v1alpha1.Workflow { + if x != nil { + return x.Workflow } return nil } -// Deprecated: Do not use. -func (m *WorkflowCreateRequest) GetInstanceID() string { - if m != nil { - return m.InstanceID +// Deprecated: Marked as deprecated in pkg/apiclient/workflow/workflow.proto. +func (x *WorkflowCreateRequest) GetInstanceID() string { + if x != nil { + return x.InstanceID } return "" } -func (m *WorkflowCreateRequest) GetServerDryRun() bool { - if m != nil { - return m.ServerDryRun +func (x *WorkflowCreateRequest) GetServerDryRun() bool { + if x != nil { + return x.ServerDryRun } return false } -func (m *WorkflowCreateRequest) GetCreateOptions() *v1.CreateOptions { - if m != nil { - return m.CreateOptions +func (x *WorkflowCreateRequest) GetCreateOptions() *v1.CreateOptions { + if x != nil { + return x.CreateOptions } return nil } type WorkflowGetRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - GetOptions *v1.GetOptions `protobuf:"bytes,3,opt,name=getOptions,proto3" json:"getOptions,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + GetOptions *v1.GetOptions `protobuf:"bytes,3,opt,name=getOptions,proto3" json:"getOptions,omitempty"` // Fields to be included or excluded in the response. e.g. "spec,status.phase", "-status.nodes" Fields string `protobuf:"bytes,4,opt,name=fields,proto3" json:"fields,omitempty"` // Optional UID to retrieve a specific workflow (useful for archived workflows with the same name) - Uid string `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Uid string `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowGetRequest) Reset() { *m = WorkflowGetRequest{} } -func (m *WorkflowGetRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowGetRequest) ProtoMessage() {} -func (*WorkflowGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{1} -} -func (m *WorkflowGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowGetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *WorkflowGetRequest) Reset() { + *x = WorkflowGetRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowGetRequest.Merge(m, src) -} -func (m *WorkflowGetRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowGetRequest.DiscardUnknown(m) + +func (*WorkflowGetRequest) ProtoMessage() {} + +func (x *WorkflowGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowGetRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowGetRequest.ProtoReflect.Descriptor instead. +func (*WorkflowGetRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{1} +} -func (m *WorkflowGetRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowGetRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowGetRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowGetRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowGetRequest) GetGetOptions() *v1.GetOptions { - if m != nil { - return m.GetOptions +func (x *WorkflowGetRequest) GetGetOptions() *v1.GetOptions { + if x != nil { + return x.GetOptions } return nil } -func (m *WorkflowGetRequest) GetFields() string { - if m != nil { - return m.Fields +func (x *WorkflowGetRequest) GetFields() string { + if x != nil { + return x.Fields } return "" } -func (m *WorkflowGetRequest) GetUid() string { - if m != nil { - return m.Uid +func (x *WorkflowGetRequest) GetUid() string { + if x != nil { + return x.Uid } return "" } type WorkflowListRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` // Fields to be included or excluded in the response. e.g. "items.spec,items.status.phase", "-items.status.nodes" Fields string `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` // Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact - NameFilter string `protobuf:"bytes,4,opt,name=nameFilter,proto3" json:"nameFilter,omitempty"` - CreatedAfter string `protobuf:"bytes,5,opt,name=createdAfter,proto3" json:"createdAfter,omitempty"` - FinishedBefore string `protobuf:"bytes,6,opt,name=finishedBefore,proto3" json:"finishedBefore,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + NameFilter string `protobuf:"bytes,4,opt,name=nameFilter,proto3" json:"nameFilter,omitempty"` + CreatedAfter string `protobuf:"bytes,5,opt,name=createdAfter,proto3" json:"createdAfter,omitempty"` + FinishedBefore string `protobuf:"bytes,6,opt,name=finishedBefore,proto3" json:"finishedBefore,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowListRequest) Reset() { *m = WorkflowListRequest{} } -func (m *WorkflowListRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowListRequest) ProtoMessage() {} -func (*WorkflowListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{2} -} -func (m *WorkflowListRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowListRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowListRequest.Merge(m, src) +func (x *WorkflowListRequest) Reset() { + *x = WorkflowListRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowListRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowListRequest.DiscardUnknown(m) + +func (*WorkflowListRequest) ProtoMessage() {} + +func (x *WorkflowListRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowListRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowListRequest.ProtoReflect.Descriptor instead. +func (*WorkflowListRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{2} +} -func (m *WorkflowListRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowListRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowListRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions +func (x *WorkflowListRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } return nil } -func (m *WorkflowListRequest) GetFields() string { - if m != nil { - return m.Fields +func (x *WorkflowListRequest) GetFields() string { + if x != nil { + return x.Fields } return "" } -func (m *WorkflowListRequest) GetNameFilter() string { - if m != nil { - return m.NameFilter +func (x *WorkflowListRequest) GetNameFilter() string { + if x != nil { + return x.NameFilter } return "" } -func (m *WorkflowListRequest) GetCreatedAfter() string { - if m != nil { - return m.CreatedAfter +func (x *WorkflowListRequest) GetCreatedAfter() string { + if x != nil { + return x.CreatedAfter } return "" } -func (m *WorkflowListRequest) GetFinishedBefore() string { - if m != nil { - return m.FinishedBefore +func (x *WorkflowListRequest) GetFinishedBefore() string { + if x != nil { + return x.FinishedBefore } return "" } type WorkflowResubmitRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - Memoized bool `protobuf:"varint,3,opt,name=memoized,proto3" json:"memoized,omitempty"` - Parameters []string `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowResubmitRequest) Reset() { *m = WorkflowResubmitRequest{} } -func (m *WorkflowResubmitRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowResubmitRequest) ProtoMessage() {} -func (*WorkflowResubmitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{3} -} -func (m *WorkflowResubmitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowResubmitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowResubmitRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + Memoized bool `protobuf:"varint,3,opt,name=memoized,proto3" json:"memoized,omitempty"` + Parameters []string `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowResubmitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowResubmitRequest.Merge(m, src) + +func (x *WorkflowResubmitRequest) Reset() { + *x = WorkflowResubmitRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowResubmitRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowResubmitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowResubmitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowResubmitRequest.DiscardUnknown(m) + +func (*WorkflowResubmitRequest) ProtoMessage() {} + +func (x *WorkflowResubmitRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowResubmitRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowResubmitRequest.ProtoReflect.Descriptor instead. +func (*WorkflowResubmitRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{3} +} -func (m *WorkflowResubmitRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowResubmitRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowResubmitRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowResubmitRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowResubmitRequest) GetMemoized() bool { - if m != nil { - return m.Memoized +func (x *WorkflowResubmitRequest) GetMemoized() bool { + if x != nil { + return x.Memoized } return false } -func (m *WorkflowResubmitRequest) GetParameters() []string { - if m != nil { - return m.Parameters +func (x *WorkflowResubmitRequest) GetParameters() []string { + if x != nil { + return x.Parameters } return nil } type WorkflowRetryRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - RestartSuccessful bool `protobuf:"varint,3,opt,name=restartSuccessful,proto3" json:"restartSuccessful,omitempty"` - NodeFieldSelector string `protobuf:"bytes,4,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` - Parameters []string `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowRetryRequest) Reset() { *m = WorkflowRetryRequest{} } -func (m *WorkflowRetryRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowRetryRequest) ProtoMessage() {} -func (*WorkflowRetryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{4} -} -func (m *WorkflowRetryRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowRetryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowRetryRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + RestartSuccessful bool `protobuf:"varint,3,opt,name=restartSuccessful,proto3" json:"restartSuccessful,omitempty"` + NodeFieldSelector string `protobuf:"bytes,4,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` + Parameters []string `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowRetryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowRetryRequest.Merge(m, src) + +func (x *WorkflowRetryRequest) Reset() { + *x = WorkflowRetryRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowRetryRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowRetryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowRetryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowRetryRequest.DiscardUnknown(m) + +func (*WorkflowRetryRequest) ProtoMessage() {} + +func (x *WorkflowRetryRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowRetryRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowRetryRequest.ProtoReflect.Descriptor instead. +func (*WorkflowRetryRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{4} +} -func (m *WorkflowRetryRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowRetryRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowRetryRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowRetryRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowRetryRequest) GetRestartSuccessful() bool { - if m != nil { - return m.RestartSuccessful +func (x *WorkflowRetryRequest) GetRestartSuccessful() bool { + if x != nil { + return x.RestartSuccessful } return false } -func (m *WorkflowRetryRequest) GetNodeFieldSelector() string { - if m != nil { - return m.NodeFieldSelector +func (x *WorkflowRetryRequest) GetNodeFieldSelector() string { + if x != nil { + return x.NodeFieldSelector } return "" } -func (m *WorkflowRetryRequest) GetParameters() []string { - if m != nil { - return m.Parameters +func (x *WorkflowRetryRequest) GetParameters() []string { + if x != nil { + return x.Parameters } return nil } type WorkflowResumeRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NodeFieldSelector string `protobuf:"bytes,3,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NodeFieldSelector string `protobuf:"bytes,3,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowResumeRequest) Reset() { *m = WorkflowResumeRequest{} } -func (m *WorkflowResumeRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowResumeRequest) ProtoMessage() {} -func (*WorkflowResumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{5} -} -func (m *WorkflowResumeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowResumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowResumeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *WorkflowResumeRequest) Reset() { + *x = WorkflowResumeRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowResumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowResumeRequest.Merge(m, src) -} -func (m *WorkflowResumeRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowResumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowResumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowResumeRequest.DiscardUnknown(m) + +func (*WorkflowResumeRequest) ProtoMessage() {} + +func (x *WorkflowResumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowResumeRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowResumeRequest.ProtoReflect.Descriptor instead. +func (*WorkflowResumeRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{5} +} -func (m *WorkflowResumeRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowResumeRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowResumeRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowResumeRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowResumeRequest) GetNodeFieldSelector() string { - if m != nil { - return m.NodeFieldSelector +func (x *WorkflowResumeRequest) GetNodeFieldSelector() string { + if x != nil { + return x.NodeFieldSelector } return "" } type WorkflowTerminateRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowTerminateRequest) Reset() { *m = WorkflowTerminateRequest{} } -func (m *WorkflowTerminateRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowTerminateRequest) ProtoMessage() {} -func (*WorkflowTerminateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{6} -} -func (m *WorkflowTerminateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowTerminateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowTerminateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowTerminateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTerminateRequest.Merge(m, src) +func (x *WorkflowTerminateRequest) Reset() { + *x = WorkflowTerminateRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowTerminateRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowTerminateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowTerminateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTerminateRequest.DiscardUnknown(m) + +func (*WorkflowTerminateRequest) ProtoMessage() {} + +func (x *WorkflowTerminateRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowTerminateRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowTerminateRequest.ProtoReflect.Descriptor instead. +func (*WorkflowTerminateRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{6} +} -func (m *WorkflowTerminateRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowTerminateRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowTerminateRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowTerminateRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } type WorkflowStopRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NodeFieldSelector string `protobuf:"bytes,3,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` - Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowStopRequest) Reset() { *m = WorkflowStopRequest{} } -func (m *WorkflowStopRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowStopRequest) ProtoMessage() {} -func (*WorkflowStopRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{7} -} -func (m *WorkflowStopRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowStopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowStopRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NodeFieldSelector string `protobuf:"bytes,3,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` + Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowStopRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowStopRequest.Merge(m, src) + +func (x *WorkflowStopRequest) Reset() { + *x = WorkflowStopRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowStopRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowStopRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowStopRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowStopRequest.DiscardUnknown(m) + +func (*WorkflowStopRequest) ProtoMessage() {} + +func (x *WorkflowStopRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowStopRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowStopRequest.ProtoReflect.Descriptor instead. +func (*WorkflowStopRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{7} +} -func (m *WorkflowStopRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowStopRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowStopRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowStopRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowStopRequest) GetNodeFieldSelector() string { - if m != nil { - return m.NodeFieldSelector +func (x *WorkflowStopRequest) GetNodeFieldSelector() string { + if x != nil { + return x.NodeFieldSelector } return "" } -func (m *WorkflowStopRequest) GetMessage() string { - if m != nil { - return m.Message +func (x *WorkflowStopRequest) GetMessage() string { + if x != nil { + return x.Message } return "" } type WorkflowSetRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NodeFieldSelector string `protobuf:"bytes,3,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` - Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` - Phase string `protobuf:"bytes,5,opt,name=phase,proto3" json:"phase,omitempty"` - OutputParameters string `protobuf:"bytes,6,opt,name=outputParameters,proto3" json:"outputParameters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowSetRequest) Reset() { *m = WorkflowSetRequest{} } -func (m *WorkflowSetRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowSetRequest) ProtoMessage() {} -func (*WorkflowSetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{8} -} -func (m *WorkflowSetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowSetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NodeFieldSelector string `protobuf:"bytes,3,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` + Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + Phase string `protobuf:"bytes,5,opt,name=phase,proto3" json:"phase,omitempty"` + OutputParameters string `protobuf:"bytes,6,opt,name=outputParameters,proto3" json:"outputParameters,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowSetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowSetRequest.Merge(m, src) + +func (x *WorkflowSetRequest) Reset() { + *x = WorkflowSetRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowSetRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowSetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowSetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowSetRequest.DiscardUnknown(m) + +func (*WorkflowSetRequest) ProtoMessage() {} + +func (x *WorkflowSetRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowSetRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowSetRequest.ProtoReflect.Descriptor instead. +func (*WorkflowSetRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{8} +} -func (m *WorkflowSetRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowSetRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowSetRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowSetRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowSetRequest) GetNodeFieldSelector() string { - if m != nil { - return m.NodeFieldSelector +func (x *WorkflowSetRequest) GetNodeFieldSelector() string { + if x != nil { + return x.NodeFieldSelector } return "" } -func (m *WorkflowSetRequest) GetMessage() string { - if m != nil { - return m.Message +func (x *WorkflowSetRequest) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *WorkflowSetRequest) GetPhase() string { - if m != nil { - return m.Phase +func (x *WorkflowSetRequest) GetPhase() string { + if x != nil { + return x.Phase } return "" } -func (m *WorkflowSetRequest) GetOutputParameters() string { - if m != nil { - return m.OutputParameters +func (x *WorkflowSetRequest) GetOutputParameters() string { + if x != nil { + return x.OutputParameters } return "" } type WorkflowSuspendRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowSuspendRequest) Reset() { *m = WorkflowSuspendRequest{} } -func (m *WorkflowSuspendRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowSuspendRequest) ProtoMessage() {} -func (*WorkflowSuspendRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{9} -} -func (m *WorkflowSuspendRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowSuspendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowSuspendRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +func (x *WorkflowSuspendRequest) Reset() { + *x = WorkflowSuspendRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowSuspendRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowSuspendRequest.Merge(m, src) -} -func (m *WorkflowSuspendRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowSuspendRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowSuspendRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowSuspendRequest.DiscardUnknown(m) + +func (*WorkflowSuspendRequest) ProtoMessage() {} + +func (x *WorkflowSuspendRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowSuspendRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowSuspendRequest.ProtoReflect.Descriptor instead. +func (*WorkflowSuspendRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{9} +} -func (m *WorkflowSuspendRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowSuspendRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowSuspendRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowSuspendRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } type WorkflowLogRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - PodName string `protobuf:"bytes,3,opt,name=podName,proto3" json:"podName,omitempty"` - LogOptions *v11.PodLogOptions `protobuf:"bytes,4,opt,name=logOptions,proto3" json:"logOptions,omitempty"` - Grep string `protobuf:"bytes,5,opt,name=grep,proto3" json:"grep,omitempty"` - Selector string `protobuf:"bytes,6,opt,name=selector,proto3" json:"selector,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowLogRequest) Reset() { *m = WorkflowLogRequest{} } -func (m *WorkflowLogRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowLogRequest) ProtoMessage() {} -func (*WorkflowLogRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{10} -} -func (m *WorkflowLogRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowLogRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + PodName string `protobuf:"bytes,3,opt,name=podName,proto3" json:"podName,omitempty"` + LogOptions *v11.PodLogOptions `protobuf:"bytes,4,opt,name=logOptions,proto3" json:"logOptions,omitempty"` + Grep string `protobuf:"bytes,5,opt,name=grep,proto3" json:"grep,omitempty"` + Selector string `protobuf:"bytes,6,opt,name=selector,proto3" json:"selector,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowLogRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowLogRequest.Merge(m, src) + +func (x *WorkflowLogRequest) Reset() { + *x = WorkflowLogRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowLogRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowLogRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowLogRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowLogRequest.DiscardUnknown(m) + +func (*WorkflowLogRequest) ProtoMessage() {} + +func (x *WorkflowLogRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowLogRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowLogRequest.ProtoReflect.Descriptor instead. +func (*WorkflowLogRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{10} +} -func (m *WorkflowLogRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowLogRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowLogRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowLogRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowLogRequest) GetPodName() string { - if m != nil { - return m.PodName +func (x *WorkflowLogRequest) GetPodName() string { + if x != nil { + return x.PodName } return "" } -func (m *WorkflowLogRequest) GetLogOptions() *v11.PodLogOptions { - if m != nil { - return m.LogOptions +func (x *WorkflowLogRequest) GetLogOptions() *v11.PodLogOptions { + if x != nil { + return x.LogOptions } return nil } -func (m *WorkflowLogRequest) GetGrep() string { - if m != nil { - return m.Grep +func (x *WorkflowLogRequest) GetGrep() string { + if x != nil { + return x.Grep } return "" } -func (m *WorkflowLogRequest) GetSelector() string { - if m != nil { - return m.Selector +func (x *WorkflowLogRequest) GetSelector() string { + if x != nil { + return x.Selector } return "" } type WorkflowDeleteRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` - Force bool `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowDeleteRequest) Reset() { *m = WorkflowDeleteRequest{} } -func (m *WorkflowDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowDeleteRequest) ProtoMessage() {} -func (*WorkflowDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{11} -} -func (m *WorkflowDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` + Force bool `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowDeleteRequest.Merge(m, src) + +func (x *WorkflowDeleteRequest) Reset() { + *x = WorkflowDeleteRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowDeleteRequest) XXX_Size() int { - return m.Size() + +func (x *WorkflowDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowDeleteRequest.DiscardUnknown(m) + +func (*WorkflowDeleteRequest) ProtoMessage() {} + +func (x *WorkflowDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowDeleteRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowDeleteRequest.ProtoReflect.Descriptor instead. +func (*WorkflowDeleteRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{11} +} -func (m *WorkflowDeleteRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowDeleteRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowDeleteRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowDeleteRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowDeleteRequest) GetDeleteOptions() *v1.DeleteOptions { - if m != nil { - return m.DeleteOptions +func (x *WorkflowDeleteRequest) GetDeleteOptions() *v1.DeleteOptions { + if x != nil { + return x.DeleteOptions } return nil } -func (m *WorkflowDeleteRequest) GetForce() bool { - if m != nil { - return m.Force +func (x *WorkflowDeleteRequest) GetForce() bool { + if x != nil { + return x.Force } return false } type WorkflowDeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowDeleteResponse) Reset() { *m = WorkflowDeleteResponse{} } -func (m *WorkflowDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*WorkflowDeleteResponse) ProtoMessage() {} -func (*WorkflowDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{12} -} -func (m *WorkflowDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *WorkflowDeleteResponse) Reset() { + *x = WorkflowDeleteResponse{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowDeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowDeleteResponse) ProtoMessage() {} + +func (x *WorkflowDeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *WorkflowDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowDeleteResponse.Merge(m, src) -} -func (m *WorkflowDeleteResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use WorkflowDeleteResponse.ProtoReflect.Descriptor instead. +func (*WorkflowDeleteResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{12} } -func (m *WorkflowDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowDeleteResponse.DiscardUnknown(m) + +type WatchWorkflowsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + Fields string `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_WorkflowDeleteResponse proto.InternalMessageInfo +func (x *WatchWorkflowsRequest) Reset() { + *x = WatchWorkflowsRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -type WatchWorkflowsRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - Fields string `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *WatchWorkflowsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WatchWorkflowsRequest) Reset() { *m = WatchWorkflowsRequest{} } -func (m *WatchWorkflowsRequest) String() string { return proto.CompactTextString(m) } -func (*WatchWorkflowsRequest) ProtoMessage() {} -func (*WatchWorkflowsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{13} -} -func (m *WatchWorkflowsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchWorkflowsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchWorkflowsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*WatchWorkflowsRequest) ProtoMessage() {} + +func (x *WatchWorkflowsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *WatchWorkflowsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchWorkflowsRequest.Merge(m, src) -} -func (m *WatchWorkflowsRequest) XXX_Size() int { - return m.Size() -} -func (m *WatchWorkflowsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WatchWorkflowsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_WatchWorkflowsRequest proto.InternalMessageInfo +// Deprecated: Use WatchWorkflowsRequest.ProtoReflect.Descriptor instead. +func (*WatchWorkflowsRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{13} +} -func (m *WatchWorkflowsRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WatchWorkflowsRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WatchWorkflowsRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions +func (x *WatchWorkflowsRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } return nil } -func (m *WatchWorkflowsRequest) GetFields() string { - if m != nil { - return m.Fields +func (x *WatchWorkflowsRequest) GetFields() string { + if x != nil { + return x.Fields } return "" } type WorkflowWatchEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` // the type of change Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // the workflow - Object *v1alpha1.Workflow `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowWatchEvent) Reset() { *m = WorkflowWatchEvent{} } -func (m *WorkflowWatchEvent) String() string { return proto.CompactTextString(m) } -func (*WorkflowWatchEvent) ProtoMessage() {} -func (*WorkflowWatchEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{14} -} -func (m *WorkflowWatchEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowWatchEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowWatchEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowWatchEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowWatchEvent.Merge(m, src) -} -func (m *WorkflowWatchEvent) XXX_Size() int { - return m.Size() -} -func (m *WorkflowWatchEvent) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowWatchEvent.DiscardUnknown(m) + Object *v1alpha1.Workflow `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_WorkflowWatchEvent proto.InternalMessageInfo - -func (m *WorkflowWatchEvent) GetType() string { - if m != nil { - return m.Type - } - return "" +func (x *WorkflowWatchEvent) Reset() { + *x = WorkflowWatchEvent{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowWatchEvent) GetObject() *v1alpha1.Workflow { - if m != nil { - return m.Object - } - return nil +func (x *WorkflowWatchEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -type WatchEventsRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*WorkflowWatchEvent) ProtoMessage() {} -func (m *WatchEventsRequest) Reset() { *m = WatchEventsRequest{} } -func (m *WatchEventsRequest) String() string { return proto.CompactTextString(m) } -func (*WatchEventsRequest) ProtoMessage() {} -func (*WatchEventsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{15} -} -func (m *WatchEventsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchEventsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *WorkflowWatchEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *WatchEventsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchEventsRequest.Merge(m, src) -} -func (m *WatchEventsRequest) XXX_Size() int { - return m.Size() -} -func (m *WatchEventsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WatchEventsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_WatchEventsRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowWatchEvent.ProtoReflect.Descriptor instead. +func (*WorkflowWatchEvent) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{14} +} -func (m *WatchEventsRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowWatchEvent) GetType() string { + if x != nil { + return x.Type } return "" } -func (m *WatchEventsRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions +func (x *WorkflowWatchEvent) GetObject() *v1alpha1.Workflow { + if x != nil { + return x.Object } return nil } -type LogEntry struct { - Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - PodName string `protobuf:"bytes,2,opt,name=podName,proto3" json:"podName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogEntry) Reset() { *m = LogEntry{} } -func (m *LogEntry) String() string { return proto.CompactTextString(m) } -func (*LogEntry) ProtoMessage() {} -func (*LogEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{16} -} -func (m *LogEntry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogEntry.Merge(m, src) -} -func (m *LogEntry) XXX_Size() int { - return m.Size() -} -func (m *LogEntry) XXX_DiscardUnknown() { - xxx_messageInfo_LogEntry.DiscardUnknown(m) +type WatchEventsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + ListOptions *v1.ListOptions `protobuf:"bytes,2,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var xxx_messageInfo_LogEntry proto.InternalMessageInfo - -func (m *LogEntry) GetContent() string { - if m != nil { - return m.Content - } - return "" +func (x *WatchEventsRequest) Reset() { + *x = WatchEventsRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *LogEntry) GetPodName() string { - if m != nil { - return m.PodName - } - return "" +func (x *WatchEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type WorkflowLintRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - Workflow *v1alpha1.Workflow `protobuf:"bytes,2,opt,name=workflow,proto3" json:"workflow,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*WatchEventsRequest) ProtoMessage() {} -func (m *WorkflowLintRequest) Reset() { *m = WorkflowLintRequest{} } -func (m *WorkflowLintRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowLintRequest) ProtoMessage() {} -func (*WorkflowLintRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{17} -} -func (m *WorkflowLintRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowLintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowLintRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *WatchEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *WorkflowLintRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowLintRequest.Merge(m, src) -} -func (m *WorkflowLintRequest) XXX_Size() int { - return m.Size() -} -func (m *WorkflowLintRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowLintRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowLintRequest proto.InternalMessageInfo +// Deprecated: Use WatchEventsRequest.ProtoReflect.Descriptor instead. +func (*WatchEventsRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{15} +} -func (m *WorkflowLintRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WatchEventsRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowLintRequest) GetWorkflow() *v1alpha1.Workflow { - if m != nil { - return m.Workflow +func (x *WatchEventsRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } return nil } -type WorkflowSubmitRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - ResourceKind string `protobuf:"bytes,2,opt,name=resourceKind,proto3" json:"resourceKind,omitempty"` - ResourceName string `protobuf:"bytes,3,opt,name=resourceName,proto3" json:"resourceName,omitempty"` - SubmitOptions *v1alpha1.SubmitOpts `protobuf:"bytes,4,opt,name=submitOptions,proto3" json:"submitOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowSubmitRequest) Reset() { *m = WorkflowSubmitRequest{} } -func (m *WorkflowSubmitRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowSubmitRequest) ProtoMessage() {} -func (*WorkflowSubmitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1f6bb75f9e833cb6, []int{18} -} -func (m *WorkflowSubmitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowSubmitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowSubmitRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowSubmitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowSubmitRequest.Merge(m, src) +type EventWatchEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + // the type of change + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // the event + Object *v11.Event `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowSubmitRequest) XXX_Size() int { - return m.Size() + +func (x *EventWatchEvent) Reset() { + *x = EventWatchEvent{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowSubmitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowSubmitRequest.DiscardUnknown(m) + +func (x *EventWatchEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_WorkflowSubmitRequest proto.InternalMessageInfo +func (*EventWatchEvent) ProtoMessage() {} -func (m *WorkflowSubmitRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *EventWatchEvent) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *WorkflowSubmitRequest) GetResourceKind() string { - if m != nil { - return m.ResourceKind - } - return "" +// Deprecated: Use EventWatchEvent.ProtoReflect.Descriptor instead. +func (*EventWatchEvent) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{16} } -func (m *WorkflowSubmitRequest) GetResourceName() string { - if m != nil { - return m.ResourceName +func (x *EventWatchEvent) GetType() string { + if x != nil { + return x.Type } return "" } -func (m *WorkflowSubmitRequest) GetSubmitOptions() *v1alpha1.SubmitOpts { - if m != nil { - return m.SubmitOptions +func (x *EventWatchEvent) GetObject() *v11.Event { + if x != nil { + return x.Object } return nil } -func init() { - proto.RegisterType((*WorkflowCreateRequest)(nil), "workflow.WorkflowCreateRequest") - proto.RegisterType((*WorkflowGetRequest)(nil), "workflow.WorkflowGetRequest") - proto.RegisterType((*WorkflowListRequest)(nil), "workflow.WorkflowListRequest") - proto.RegisterType((*WorkflowResubmitRequest)(nil), "workflow.WorkflowResubmitRequest") - proto.RegisterType((*WorkflowRetryRequest)(nil), "workflow.WorkflowRetryRequest") - proto.RegisterType((*WorkflowResumeRequest)(nil), "workflow.WorkflowResumeRequest") - proto.RegisterType((*WorkflowTerminateRequest)(nil), "workflow.WorkflowTerminateRequest") - proto.RegisterType((*WorkflowStopRequest)(nil), "workflow.WorkflowStopRequest") - proto.RegisterType((*WorkflowSetRequest)(nil), "workflow.WorkflowSetRequest") - proto.RegisterType((*WorkflowSuspendRequest)(nil), "workflow.WorkflowSuspendRequest") - proto.RegisterType((*WorkflowLogRequest)(nil), "workflow.WorkflowLogRequest") - proto.RegisterType((*WorkflowDeleteRequest)(nil), "workflow.WorkflowDeleteRequest") - proto.RegisterType((*WorkflowDeleteResponse)(nil), "workflow.WorkflowDeleteResponse") - proto.RegisterType((*WatchWorkflowsRequest)(nil), "workflow.WatchWorkflowsRequest") - proto.RegisterType((*WorkflowWatchEvent)(nil), "workflow.WorkflowWatchEvent") - proto.RegisterType((*WatchEventsRequest)(nil), "workflow.WatchEventsRequest") - proto.RegisterType((*LogEntry)(nil), "workflow.LogEntry") - proto.RegisterType((*WorkflowLintRequest)(nil), "workflow.WorkflowLintRequest") - proto.RegisterType((*WorkflowSubmitRequest)(nil), "workflow.WorkflowSubmitRequest") -} - -func init() { - proto.RegisterFile("pkg/apiclient/workflow/workflow.proto", fileDescriptor_1f6bb75f9e833cb6) -} - -var fileDescriptor_1f6bb75f9e833cb6 = []byte{ - // 1500 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x99, 0xcf, 0x8f, 0x14, 0x45, - 0x1b, 0xc7, 0x53, 0xb3, 0xb0, 0xec, 0xd6, 0xfe, 0x00, 0xea, 0x05, 0xde, 0x79, 0x3b, 0xb0, 0x2c, - 0xc5, 0x0b, 0x2e, 0x0b, 0xdb, 0xb3, 0xbf, 0x54, 0x34, 0x6a, 0x02, 0x2c, 0x10, 0x71, 0x83, 0x9b, - 0x1e, 0x13, 0xa3, 0x17, 0xd3, 0xdb, 0xf3, 0x4c, 0x6f, 0xb3, 0x3d, 0x5d, 0x6d, 0x55, 0xcd, 0x90, - 0x15, 0x31, 0xd1, 0x8b, 0x1e, 0x48, 0x3c, 0x78, 0xf4, 0x66, 0x62, 0xf4, 0x60, 0x34, 0x31, 0x31, - 0x31, 0x9a, 0x18, 0x63, 0x3c, 0x78, 0x24, 0xe1, 0xea, 0xc1, 0x10, 0xff, 0x01, 0xff, 0x03, 0x53, - 0xd5, 0xbf, 0x77, 0x86, 0xa1, 0xd9, 0x1d, 0x94, 0x5b, 0x57, 0x75, 0x75, 0x3d, 0x9f, 0xe7, 0x5b, - 0x55, 0xcf, 0xf3, 0xd4, 0x0c, 0x3e, 0x15, 0x6e, 0xba, 0x35, 0x3b, 0xf4, 0x1c, 0xdf, 0x83, 0x40, - 0xd6, 0x6e, 0x32, 0xbe, 0xd9, 0xf4, 0xd9, 0xcd, 0xf4, 0xc1, 0x0c, 0x39, 0x93, 0x8c, 0x8c, 0x24, - 0x6d, 0x63, 0xcd, 0xf5, 0xe4, 0x46, 0x7b, 0xdd, 0x74, 0x58, 0xab, 0x66, 0x73, 0x97, 0x85, 0x9c, - 0xdd, 0xd0, 0x0f, 0x73, 0xc9, 0x10, 0x51, 0xeb, 0x2c, 0xd7, 0xe2, 0x69, 0x45, 0x36, 0x63, 0x67, - 0xc1, 0xf6, 0xc3, 0x0d, 0x7b, 0xa1, 0xe6, 0x42, 0x00, 0xdc, 0x96, 0xd0, 0x88, 0xe6, 0x36, 0x8e, - 0xba, 0x8c, 0xb9, 0x3e, 0xa8, 0xe1, 0x35, 0x3b, 0x08, 0x98, 0xb4, 0xa5, 0xc7, 0x02, 0x11, 0xbf, - 0xa5, 0x9b, 0xe7, 0x85, 0xe9, 0x31, 0xfd, 0xd6, 0x61, 0x1c, 0x6a, 0x9d, 0xee, 0x19, 0x96, 0xb3, - 0x31, 0x2d, 0xdb, 0xd9, 0xf0, 0x02, 0xe0, 0x5b, 0x19, 0x41, 0x0b, 0xa4, 0xdd, 0xe3, 0x2b, 0xfa, - 0x73, 0x05, 0x1f, 0x7e, 0x3d, 0xa6, 0xbb, 0xc4, 0xc1, 0x96, 0x60, 0xc1, 0xdb, 0x6d, 0x10, 0x92, - 0x1c, 0xc5, 0xa3, 0x81, 0xdd, 0x02, 0x11, 0xda, 0x0e, 0x54, 0xd1, 0x34, 0x9a, 0x19, 0xb5, 0xb2, - 0x0e, 0xd2, 0xc4, 0xa9, 0x1a, 0xd5, 0xca, 0x34, 0x9a, 0x19, 0x5b, 0xbc, 0x66, 0x66, 0xa2, 0x98, - 0x89, 0x28, 0xfa, 0xe1, 0xad, 0x54, 0x14, 0xb3, 0xb3, 0x6c, 0x86, 0x9b, 0xae, 0xa9, 0x90, 0xcc, - 0x54, 0xdd, 0x44, 0x14, 0x33, 0x01, 0xb1, 0xd2, 0xb9, 0x09, 0xc5, 0xd8, 0x0b, 0x84, 0xb4, 0x03, - 0x07, 0x5e, 0x5e, 0xa9, 0x0e, 0x29, 0x8c, 0x8b, 0x95, 0x2a, 0xb2, 0x72, 0xbd, 0x84, 0xe2, 0x71, - 0x01, 0xbc, 0x03, 0x7c, 0x85, 0x6f, 0x59, 0xed, 0xa0, 0xba, 0x67, 0x1a, 0xcd, 0x8c, 0x58, 0x85, - 0x3e, 0xf2, 0x06, 0x9e, 0x70, 0xb4, 0x7b, 0xaf, 0x86, 0x5a, 0xd8, 0xea, 0x5e, 0x0d, 0xbd, 0x64, - 0x46, 0xaa, 0x99, 0x79, 0xd5, 0x32, 0x44, 0xa5, 0x9a, 0xd9, 0x59, 0x30, 0x2f, 0xe5, 0x3f, 0xb5, - 0x8a, 0x33, 0xd1, 0x5f, 0x10, 0x26, 0x09, 0xf9, 0x55, 0x90, 0x89, 0x7e, 0x04, 0xef, 0x51, 0x72, - 0xc5, 0xd2, 0xe9, 0xe7, 0xa2, 0xa6, 0x95, 0xed, 0x9a, 0xae, 0x61, 0xec, 0x82, 0x4c, 0x00, 0x87, - 0x34, 0xe0, 0x7c, 0x39, 0xc0, 0xab, 0xe9, 0x77, 0x56, 0x6e, 0x0e, 0x72, 0x04, 0x0f, 0x37, 0x3d, - 0xf0, 0x1b, 0x42, 0x6b, 0x32, 0x6a, 0xc5, 0x2d, 0x72, 0x00, 0x0f, 0xb5, 0xbd, 0x86, 0xd6, 0x60, - 0xd4, 0x52, 0x8f, 0xf4, 0x4e, 0x05, 0xff, 0x27, 0x71, 0x62, 0xd5, 0x13, 0xb2, 0xdc, 0x2e, 0xa8, - 0xe3, 0x31, 0xdf, 0x13, 0x29, 0x72, 0xb4, 0x11, 0x16, 0xca, 0x21, 0xaf, 0x66, 0x1f, 0x5a, 0xf9, - 0x59, 0x72, 0xd0, 0x43, 0x05, 0xe8, 0x29, 0x8c, 0x95, 0xe5, 0x2b, 0x9e, 0x2f, 0x81, 0xc7, 0x0e, - 0xe5, 0x7a, 0xd4, 0x36, 0x88, 0x16, 0xa6, 0x71, 0xa1, 0xa9, 0x46, 0x44, 0xde, 0x15, 0xfa, 0xc8, - 0x69, 0x3c, 0xd9, 0xf4, 0x02, 0x4f, 0x6c, 0x40, 0xe3, 0x22, 0x34, 0x19, 0x87, 0xea, 0xb0, 0x1e, - 0xb5, 0xad, 0x97, 0x7e, 0x88, 0xf0, 0x7f, 0xd3, 0xdd, 0x08, 0xa2, 0xbd, 0xde, 0xf2, 0x76, 0xb1, - 0xb0, 0x06, 0x1e, 0x69, 0x41, 0x8b, 0x79, 0xef, 0x40, 0x43, 0xfb, 0x34, 0x62, 0xa5, 0x6d, 0xe5, - 0x55, 0x68, 0x73, 0xbb, 0x05, 0x12, 0xb8, 0xda, 0x95, 0x43, 0xca, 0xab, 0xac, 0x87, 0xfe, 0x8a, - 0xf0, 0xa1, 0x8c, 0x44, 0xf2, 0xad, 0x9d, 0x63, 0x9c, 0xc3, 0x07, 0x39, 0x08, 0x69, 0x73, 0x59, - 0x6f, 0x3b, 0x0e, 0x08, 0xd1, 0x6c, 0xfb, 0x31, 0x4f, 0xf7, 0x0b, 0x35, 0x3a, 0x60, 0x0d, 0xb8, - 0xa2, 0xc4, 0xaf, 0x83, 0x0f, 0x8e, 0x64, 0x89, 0xea, 0xdd, 0x2f, 0x1e, 0xea, 0xc6, 0xcd, 0x2c, - 0xcc, 0x28, 0x3d, 0x5b, 0xb0, 0x2b, 0x37, 0xba, 0xc1, 0x86, 0x1e, 0x00, 0x46, 0x57, 0x71, 0x35, - 0x31, 0xfc, 0x1a, 0xf0, 0x96, 0x17, 0xe4, 0x42, 0xdc, 0x23, 0xdb, 0xa6, 0x1f, 0xa3, 0xec, 0x98, - 0xd4, 0x25, 0x0b, 0xff, 0x21, 0x2f, 0x48, 0x15, 0xef, 0x6b, 0x81, 0x10, 0xb6, 0x0b, 0xf1, 0x12, - 0x24, 0x4d, 0x7a, 0x37, 0x17, 0x7d, 0xea, 0xbb, 0x89, 0x3e, 0x03, 0x02, 0x22, 0x87, 0xf0, 0xde, - 0x70, 0xc3, 0x16, 0x10, 0x9f, 0xbf, 0xa8, 0x41, 0x66, 0xf1, 0x01, 0xd6, 0x96, 0x61, 0x5b, 0xae, - 0x65, 0xbb, 0x24, 0x3a, 0x7a, 0x5d, 0xfd, 0xf4, 0x1a, 0x3e, 0x92, 0x7a, 0xd4, 0x16, 0x21, 0x04, - 0x8d, 0x9d, 0x2f, 0xd8, 0xbd, 0x9c, 0x3c, 0xab, 0xcc, 0xdd, 0xb9, 0x3c, 0x55, 0xbc, 0x2f, 0x64, - 0x8d, 0xeb, 0xea, 0xa3, 0x48, 0x94, 0xa4, 0x49, 0x2e, 0x60, 0xec, 0x33, 0x37, 0x89, 0x81, 0x7b, - 0x74, 0x0c, 0x3c, 0x91, 0x8b, 0x81, 0xa6, 0xca, 0xd8, 0x2a, 0xe2, 0xad, 0xb1, 0xc6, 0x6a, 0x3a, - 0xd0, 0xca, 0x7d, 0xa4, 0x70, 0x5c, 0x0e, 0x61, 0x2c, 0x99, 0x7e, 0x56, 0x41, 0x43, 0x24, 0xcb, - 0x10, 0x29, 0x95, 0xb6, 0xe9, 0x0f, 0x28, 0x3b, 0x4e, 0x2b, 0xe0, 0xc3, 0x2e, 0xb6, 0xb4, 0xca, - 0x8c, 0x0d, 0x3d, 0x45, 0x31, 0xf1, 0x94, 0xcc, 0x8c, 0x2b, 0xf9, 0x4f, 0xad, 0xe2, 0x4c, 0x6a, - 0x2b, 0x34, 0x19, 0x77, 0x20, 0xce, 0xc8, 0x51, 0x83, 0x56, 0xb3, 0xe5, 0x4d, 0xd8, 0x45, 0xc8, - 0x02, 0x01, 0xf4, 0x33, 0xe5, 0x96, 0x2d, 0x9d, 0x8d, 0xe4, 0xbd, 0x78, 0xf2, 0xd2, 0x10, 0xbd, - 0x93, 0xdb, 0x51, 0x1a, 0xf6, 0x72, 0x07, 0x02, 0x2d, 0xbc, 0xdc, 0x0a, 0x53, 0xe1, 0xd5, 0x33, - 0x59, 0xc7, 0xc3, 0x6c, 0xfd, 0x06, 0x38, 0xf2, 0x31, 0x94, 0x48, 0xf1, 0xcc, 0x2a, 0x53, 0x91, - 0x0c, 0xe3, 0x5f, 0x14, 0x8c, 0xbe, 0x84, 0x47, 0x56, 0x99, 0x7b, 0x39, 0x90, 0x7c, 0x4b, 0x9d, - 0x16, 0x87, 0x05, 0x12, 0x02, 0x19, 0x1b, 0x4f, 0x9a, 0xf9, 0x73, 0x54, 0x29, 0x9c, 0x23, 0xfa, - 0x29, 0xca, 0x97, 0x20, 0x81, 0x7c, 0xa2, 0x0a, 0x51, 0xfa, 0x57, 0xee, 0xc8, 0xd5, 0x0b, 0xf5, - 0x40, 0x7f, 0x3e, 0x8a, 0xc7, 0x39, 0x08, 0xd6, 0xe6, 0x0e, 0xbc, 0xe2, 0x05, 0x8d, 0xd8, 0xe9, - 0x42, 0x5f, 0x7e, 0x4c, 0x2e, 0xc0, 0x14, 0xfa, 0x08, 0xc7, 0x13, 0x51, 0x19, 0x52, 0x0c, 0x34, - 0xab, 0xbb, 0x77, 0xb6, 0x9e, 0x4c, 0x2b, 0xac, 0xa2, 0x89, 0xc5, 0xdf, 0x0f, 0xe3, 0xfd, 0x59, - 0x6e, 0xe1, 0x1d, 0xcf, 0x01, 0xf2, 0x05, 0xc2, 0x93, 0x51, 0x39, 0x9c, 0xbc, 0x21, 0xc7, 0xb3, - 0x49, 0x7b, 0x5e, 0x25, 0x8c, 0x01, 0xae, 0x08, 0x9d, 0xf9, 0xe0, 0xde, 0x9f, 0x9f, 0x54, 0x28, - 0x3d, 0xa6, 0x2f, 0x43, 0x9d, 0x85, 0x5a, 0x76, 0xe3, 0xba, 0x95, 0xaa, 0x7e, 0xfb, 0x79, 0x34, - 0x4b, 0x3e, 0x47, 0x78, 0xec, 0x2a, 0xc8, 0x14, 0xf3, 0x68, 0x37, 0x66, 0x56, 0xae, 0x0f, 0x94, - 0xf1, 0x9c, 0x66, 0x3c, 0x4d, 0xfe, 0xdf, 0x97, 0x31, 0x7a, 0xbe, 0xad, 0x38, 0x27, 0xd4, 0xa1, - 0x4a, 0x83, 0x1e, 0x39, 0xd6, 0x4d, 0x9a, 0xab, 0xc9, 0x8d, 0xeb, 0x83, 0x43, 0x55, 0xd3, 0xd2, - 0x53, 0x1a, 0xf7, 0x38, 0xe9, 0x2f, 0x29, 0x79, 0x0f, 0x4f, 0x16, 0x83, 0x73, 0x61, 0xe1, 0x7b, - 0x85, 0x6d, 0xa3, 0x87, 0xe4, 0x59, 0xac, 0xa2, 0x67, 0xb5, 0xdd, 0x53, 0xe4, 0xe4, 0x76, 0xbb, - 0x73, 0xa0, 0x63, 0x59, 0xde, 0xfa, 0x3c, 0x22, 0x02, 0x8f, 0xe5, 0x02, 0x5d, 0x61, 0x39, 0xbb, - 0xe2, 0x9f, 0xf1, 0xbf, 0x5e, 0x09, 0x38, 0x32, 0x7b, 0x46, 0x9b, 0x3d, 0x49, 0x4e, 0x24, 0x66, - 0x85, 0xe4, 0x60, 0xb7, 0x6a, 0x3d, 0x8d, 0xbe, 0x8f, 0xf0, 0x64, 0x94, 0xa5, 0xfa, 0x6d, 0xf7, - 0x42, 0x0e, 0x36, 0xa6, 0x1f, 0x3c, 0x20, 0x4e, 0x74, 0xf1, 0x06, 0x99, 0x2d, 0xb7, 0x41, 0xbe, - 0x45, 0x78, 0x42, 0x97, 0xfe, 0x29, 0xc2, 0x54, 0xb7, 0x85, 0xfc, 0xdd, 0x60, 0xa0, 0x9b, 0xf9, - 0x69, 0xcd, 0x5a, 0x33, 0x66, 0xcb, 0xb0, 0xd6, 0xb8, 0xc2, 0x50, 0xa7, 0xef, 0x47, 0x84, 0x0f, - 0x24, 0x37, 0xa7, 0x94, 0xfb, 0x44, 0x2f, 0xee, 0xc2, 0xed, 0x6a, 0xa0, 0xe8, 0xe7, 0x35, 0xfa, - 0xa2, 0x31, 0x57, 0x12, 0x3d, 0x22, 0x51, 0xf4, 0xdf, 0x21, 0x3c, 0x19, 0xdd, 0x53, 0xfa, 0x2d, - 0x7b, 0xe1, 0x26, 0x33, 0x50, 0xf2, 0x67, 0x34, 0xf9, 0xbc, 0x71, 0xb6, 0x34, 0x79, 0x0b, 0x14, - 0xf7, 0xf7, 0x08, 0xef, 0x8f, 0x6b, 0xe6, 0x14, 0xbc, 0xc7, 0x76, 0x2c, 0x96, 0xd5, 0x03, 0x25, - 0x7f, 0x56, 0x93, 0x2f, 0x18, 0xe7, 0x4a, 0x91, 0x8b, 0x08, 0x44, 0xa1, 0xff, 0x84, 0xf0, 0xc1, - 0xf4, 0x86, 0x96, 0xc2, 0xd3, 0x6e, 0xf8, 0xed, 0xd7, 0xb8, 0x81, 0xe2, 0x3f, 0xa7, 0xf1, 0x97, - 0x0c, 0xb3, 0x14, 0xbe, 0x4c, 0x50, 0x94, 0x03, 0xdf, 0x20, 0x3c, 0xae, 0xee, 0x84, 0x29, 0x7b, - 0x8f, 0x30, 0x9e, 0xbb, 0x33, 0x0e, 0x14, 0x7b, 0x59, 0x63, 0x9b, 0xc6, 0x99, 0x72, 0xaa, 0x4b, - 0x16, 0x2a, 0xe2, 0xaf, 0x10, 0x1e, 0xab, 0xf7, 0xcf, 0x90, 0xf5, 0xc7, 0x93, 0x21, 0x97, 0x34, - 0xef, 0x9c, 0x31, 0x53, 0x8e, 0x17, 0xf4, 0xa1, 0xfc, 0x12, 0xe1, 0x71, 0x55, 0x18, 0xf6, 0x13, - 0x38, 0x57, 0x38, 0x0e, 0x14, 0x78, 0x4e, 0x03, 0x3f, 0x45, 0x69, 0x7f, 0x60, 0xdf, 0x0b, 0x34, - 0xea, 0xbb, 0x78, 0x5f, 0x74, 0xdb, 0x13, 0xbd, 0x44, 0xcd, 0x2e, 0xa2, 0x06, 0xc9, 0xde, 0x26, - 0xc5, 0x33, 0x7d, 0x51, 0xdb, 0x5a, 0x26, 0x8b, 0xa5, 0xc4, 0xb9, 0x15, 0xd7, 0xcf, 0xb7, 0x6b, - 0x3e, 0x73, 0x3f, 0xaa, 0xa0, 0x79, 0x44, 0x24, 0x1e, 0xcf, 0x99, 0xda, 0x09, 0xc2, 0xbc, 0x46, - 0x98, 0x25, 0xe5, 0xd6, 0xc7, 0x67, 0xee, 0x3c, 0x22, 0x5f, 0x23, 0x3c, 0x59, 0x2f, 0xc6, 0xfb, - 0xe3, 0xbd, 0x42, 0xcf, 0xe3, 0x8a, 0xf6, 0x35, 0xcd, 0x7c, 0x86, 0x3e, 0x24, 0xa9, 0xa6, 0x41, - 0xfe, 0xe2, 0xb5, 0xdf, 0xee, 0x4f, 0xa1, 0xbb, 0xf7, 0xa7, 0xd0, 0x1f, 0xf7, 0xa7, 0xd0, 0x9b, - 0x2f, 0x3c, 0xd2, 0x6f, 0xfa, 0xdb, 0xfe, 0x2a, 0x58, 0x1f, 0xd6, 0x3f, 0xa7, 0x2f, 0xfd, 0x1d, - 0x00, 0x00, 0xff, 0xff, 0x97, 0x0d, 0x89, 0x4a, 0x4b, 0x18, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// WorkflowServiceClient is the client API for WorkflowService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type WorkflowServiceClient interface { - CreateWorkflow(ctx context.Context, in *WorkflowCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - GetWorkflow(ctx context.Context, in *WorkflowGetRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - ListWorkflows(ctx context.Context, in *WorkflowListRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowList, error) - WatchWorkflows(ctx context.Context, in *WatchWorkflowsRequest, opts ...grpc.CallOption) (WorkflowService_WatchWorkflowsClient, error) - WatchEvents(ctx context.Context, in *WatchEventsRequest, opts ...grpc.CallOption) (WorkflowService_WatchEventsClient, error) - DeleteWorkflow(ctx context.Context, in *WorkflowDeleteRequest, opts ...grpc.CallOption) (*WorkflowDeleteResponse, error) - RetryWorkflow(ctx context.Context, in *WorkflowRetryRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - ResubmitWorkflow(ctx context.Context, in *WorkflowResubmitRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - ResumeWorkflow(ctx context.Context, in *WorkflowResumeRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - SuspendWorkflow(ctx context.Context, in *WorkflowSuspendRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - TerminateWorkflow(ctx context.Context, in *WorkflowTerminateRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - StopWorkflow(ctx context.Context, in *WorkflowStopRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - SetWorkflow(ctx context.Context, in *WorkflowSetRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - LintWorkflow(ctx context.Context, in *WorkflowLintRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - // DEPRECATED: Cannot work via HTTP if podName is an empty string. Use WorkflowLogs. - PodLogs(ctx context.Context, in *WorkflowLogRequest, opts ...grpc.CallOption) (WorkflowService_PodLogsClient, error) - WorkflowLogs(ctx context.Context, in *WorkflowLogRequest, opts ...grpc.CallOption) (WorkflowService_WorkflowLogsClient, error) - SubmitWorkflow(ctx context.Context, in *WorkflowSubmitRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) -} - -type workflowServiceClient struct { - cc *grpc.ClientConn -} - -func NewWorkflowServiceClient(cc *grpc.ClientConn) WorkflowServiceClient { - return &workflowServiceClient{cc} -} - -func (c *workflowServiceClient) CreateWorkflow(ctx context.Context, in *WorkflowCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/CreateWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type LogEntry struct { + state protoimpl.MessageState `protogen:"open.v1"` + Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + PodName string `protobuf:"bytes,2,opt,name=podName,proto3" json:"podName,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (c *workflowServiceClient) GetWorkflow(ctx context.Context, in *WorkflowGetRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/GetWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *LogEntry) Reset() { + *x = LogEntry{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (c *workflowServiceClient) ListWorkflows(ctx context.Context, in *WorkflowListRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowList, error) { - out := new(v1alpha1.WorkflowList) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/ListWorkflows", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *LogEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *workflowServiceClient) WatchWorkflows(ctx context.Context, in *WatchWorkflowsRequest, opts ...grpc.CallOption) (WorkflowService_WatchWorkflowsClient, error) { - stream, err := c.cc.NewStream(ctx, &_WorkflowService_serviceDesc.Streams[0], "/workflow.WorkflowService/WatchWorkflows", opts...) - if err != nil { - return nil, err - } - x := &workflowServiceWatchWorkflowsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} +func (*LogEntry) ProtoMessage() {} -type WorkflowService_WatchWorkflowsClient interface { - Recv() (*WorkflowWatchEvent, error) - grpc.ClientStream +func (x *LogEntry) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type workflowServiceWatchWorkflowsClient struct { - grpc.ClientStream +// Deprecated: Use LogEntry.ProtoReflect.Descriptor instead. +func (*LogEntry) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{17} } -func (x *workflowServiceWatchWorkflowsClient) Recv() (*WorkflowWatchEvent, error) { - m := new(WorkflowWatchEvent) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *LogEntry) GetContent() string { + if x != nil { + return x.Content } - return m, nil + return "" } -func (c *workflowServiceClient) WatchEvents(ctx context.Context, in *WatchEventsRequest, opts ...grpc.CallOption) (WorkflowService_WatchEventsClient, error) { - stream, err := c.cc.NewStream(ctx, &_WorkflowService_serviceDesc.Streams[1], "/workflow.WorkflowService/WatchEvents", opts...) - if err != nil { - return nil, err +func (x *LogEntry) GetPodName() string { + if x != nil { + return x.PodName } - x := &workflowServiceWatchEventsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return "" } -type WorkflowService_WatchEventsClient interface { - Recv() (*v11.Event, error) - grpc.ClientStream +type WorkflowLintRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + Workflow *v1alpha1.Workflow `protobuf:"bytes,2,opt,name=workflow,proto3" json:"workflow,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type workflowServiceWatchEventsClient struct { - grpc.ClientStream +func (x *WorkflowLintRequest) Reset() { + *x = WorkflowLintRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *workflowServiceWatchEventsClient) Recv() (*v11.Event, error) { - m := new(v11.Event) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +func (x *WorkflowLintRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *workflowServiceClient) DeleteWorkflow(ctx context.Context, in *WorkflowDeleteRequest, opts ...grpc.CallOption) (*WorkflowDeleteResponse, error) { - out := new(WorkflowDeleteResponse) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/DeleteWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*WorkflowLintRequest) ProtoMessage() {} -func (c *workflowServiceClient) RetryWorkflow(ctx context.Context, in *WorkflowRetryRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/RetryWorkflow", in, out, opts...) - if err != nil { - return nil, err +func (x *WorkflowLintRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil + return mi.MessageOf(x) } -func (c *workflowServiceClient) ResubmitWorkflow(ctx context.Context, in *WorkflowResubmitRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/ResubmitWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use WorkflowLintRequest.ProtoReflect.Descriptor instead. +func (*WorkflowLintRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{18} } -func (c *workflowServiceClient) ResumeWorkflow(ctx context.Context, in *WorkflowResumeRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/ResumeWorkflow", in, out, opts...) - if err != nil { - return nil, err +func (x *WorkflowLintRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return out, nil + return "" } -func (c *workflowServiceClient) SuspendWorkflow(ctx context.Context, in *WorkflowSuspendRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/SuspendWorkflow", in, out, opts...) - if err != nil { - return nil, err +func (x *WorkflowLintRequest) GetWorkflow() *v1alpha1.Workflow { + if x != nil { + return x.Workflow } - return out, nil + return nil } -func (c *workflowServiceClient) TerminateWorkflow(ctx context.Context, in *WorkflowTerminateRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/TerminateWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type WorkflowSubmitRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + ResourceKind string `protobuf:"bytes,2,opt,name=resourceKind,proto3" json:"resourceKind,omitempty"` + ResourceName string `protobuf:"bytes,3,opt,name=resourceName,proto3" json:"resourceName,omitempty"` + SubmitOptions *v1alpha1.SubmitOpts `protobuf:"bytes,4,opt,name=submitOptions,proto3" json:"submitOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (c *workflowServiceClient) StopWorkflow(ctx context.Context, in *WorkflowStopRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/StopWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *WorkflowSubmitRequest) Reset() { + *x = WorkflowSubmitRequest{} + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (c *workflowServiceClient) SetWorkflow(ctx context.Context, in *WorkflowSetRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/SetWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *WorkflowSubmitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *workflowServiceClient) LintWorkflow(ctx context.Context, in *WorkflowLintRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflow.WorkflowService/LintWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*WorkflowSubmitRequest) ProtoMessage() {} -// Deprecated: Do not use. -func (c *workflowServiceClient) PodLogs(ctx context.Context, in *WorkflowLogRequest, opts ...grpc.CallOption) (WorkflowService_PodLogsClient, error) { - stream, err := c.cc.NewStream(ctx, &_WorkflowService_serviceDesc.Streams[2], "/workflow.WorkflowService/PodLogs", opts...) - if err != nil { - return nil, err - } - x := &workflowServicePodLogsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *WorkflowSubmitRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflow_workflow_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return x, nil + return mi.MessageOf(x) } -type WorkflowService_PodLogsClient interface { - Recv() (*LogEntry, error) - grpc.ClientStream +// Deprecated: Use WorkflowSubmitRequest.ProtoReflect.Descriptor instead. +func (*WorkflowSubmitRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflow_workflow_proto_rawDescGZIP(), []int{19} } -type workflowServicePodLogsClient struct { - grpc.ClientStream +func (x *WorkflowSubmitRequest) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" } -func (x *workflowServicePodLogsClient) Recv() (*LogEntry, error) { - m := new(LogEntry) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *WorkflowSubmitRequest) GetResourceKind() string { + if x != nil { + return x.ResourceKind } - return m, nil + return "" } -func (c *workflowServiceClient) WorkflowLogs(ctx context.Context, in *WorkflowLogRequest, opts ...grpc.CallOption) (WorkflowService_WorkflowLogsClient, error) { - stream, err := c.cc.NewStream(ctx, &_WorkflowService_serviceDesc.Streams[3], "/workflow.WorkflowService/WorkflowLogs", opts...) - if err != nil { - return nil, err - } - x := &workflowServiceWorkflowLogsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *WorkflowSubmitRequest) GetResourceName() string { + if x != nil { + return x.ResourceName } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil + return "" } -type WorkflowService_WorkflowLogsClient interface { - Recv() (*LogEntry, error) - grpc.ClientStream +func (x *WorkflowSubmitRequest) GetSubmitOptions() *v1alpha1.SubmitOpts { + if x != nil { + return x.SubmitOptions + } + return nil } -type workflowServiceWorkflowLogsClient struct { - grpc.ClientStream -} +var File_pkg_apiclient_workflow_workflow_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_workflow_workflow_proto_rawDesc = "" + + "\n" + + "%pkg/apiclient/workflow/workflow.proto\x12\bworkflow\x1aPgithub.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1/generated.proto\x1a\x1cgoogle/api/annotations.proto\x1a\"k8s.io/api/core/v1/generated.proto\x1a4k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto\"\xc0\x02\n" + + "\x15WorkflowCreateRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12f\n" + + "\bworkflow\x18\x02 \x01(\v2J.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowR\bworkflow\x12\"\n" + + "\n" + + "instanceID\x18\x03 \x01(\tB\x02\x18\x01R\n" + + "instanceID\x12\"\n" + + "\fserverDryRun\x18\x04 \x01(\bR\fserverDryRun\x12Y\n" + + "\rcreateOptions\x18\x05 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptionsR\rcreateOptions\"\xc2\x01\n" + + "\x12WorkflowGetRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12P\n" + + "\n" + + "getOptions\x18\x03 \x01(\v20.k8s.io.apimachinery.pkg.apis.meta.v1.GetOptionsR\n" + + "getOptions\x12\x16\n" + + "\x06fields\x18\x04 \x01(\tR\x06fields\x12\x10\n" + + "\x03uid\x18\x05 \x01(\tR\x03uid\"\x8c\x02\n" + + "\x13WorkflowListRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12S\n" + + "\vlistOptions\x18\x02 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\x12\x16\n" + + "\x06fields\x18\x03 \x01(\tR\x06fields\x12\x1e\n" + + "\n" + + "nameFilter\x18\x04 \x01(\tR\n" + + "nameFilter\x12\"\n" + + "\fcreatedAfter\x18\x05 \x01(\tR\fcreatedAfter\x12&\n" + + "\x0efinishedBefore\x18\x06 \x01(\tR\x0efinishedBefore\"\x87\x01\n" + + "\x17WorkflowResubmitRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x1a\n" + + "\bmemoized\x18\x03 \x01(\bR\bmemoized\x12\x1e\n" + + "\n" + + "parameters\x18\x05 \x03(\tR\n" + + "parameters\"\xc4\x01\n" + + "\x14WorkflowRetryRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12,\n" + + "\x11restartSuccessful\x18\x03 \x01(\bR\x11restartSuccessful\x12,\n" + + "\x11nodeFieldSelector\x18\x04 \x01(\tR\x11nodeFieldSelector\x12\x1e\n" + + "\n" + + "parameters\x18\x05 \x03(\tR\n" + + "parameters\"w\n" + + "\x15WorkflowResumeRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12,\n" + + "\x11nodeFieldSelector\x18\x03 \x01(\tR\x11nodeFieldSelector\"L\n" + + "\x18WorkflowTerminateRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\"\x8f\x01\n" + + "\x13WorkflowStopRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12,\n" + + "\x11nodeFieldSelector\x18\x03 \x01(\tR\x11nodeFieldSelector\x12\x18\n" + + "\amessage\x18\x04 \x01(\tR\amessage\"\xd0\x01\n" + + "\x12WorkflowSetRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12,\n" + + "\x11nodeFieldSelector\x18\x03 \x01(\tR\x11nodeFieldSelector\x12\x18\n" + + "\amessage\x18\x04 \x01(\tR\amessage\x12\x14\n" + + "\x05phase\x18\x05 \x01(\tR\x05phase\x12*\n" + + "\x10outputParameters\x18\x06 \x01(\tR\x10outputParameters\"J\n" + + "\x16WorkflowSuspendRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\"\xd3\x01\n" + + "\x12WorkflowLogRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x18\n" + + "\apodName\x18\x03 \x01(\tR\apodName\x12A\n" + + "\n" + + "logOptions\x18\x04 \x01(\v2!.k8s.io.api.core.v1.PodLogOptionsR\n" + + "logOptions\x12\x12\n" + + "\x04grep\x18\x05 \x01(\tR\x04grep\x12\x1a\n" + + "\bselector\x18\x06 \x01(\tR\bselector\"\xba\x01\n" + + "\x15WorkflowDeleteRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12Y\n" + + "\rdeleteOptions\x18\x03 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptionsR\rdeleteOptions\x12\x14\n" + + "\x05force\x18\x04 \x01(\bR\x05force\"\x18\n" + + "\x16WorkflowDeleteResponse\"\xa2\x01\n" + + "\x15WatchWorkflowsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12S\n" + + "\vlistOptions\x18\x02 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\x12\x16\n" + + "\x06fields\x18\x03 \x01(\tR\x06fields\"\x8c\x01\n" + + "\x12WorkflowWatchEvent\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12b\n" + + "\x06object\x18\x02 \x01(\v2J.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowR\x06object\"\x87\x01\n" + + "\x12WatchEventsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12S\n" + + "\vlistOptions\x18\x02 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\"X\n" + + "\x0fEventWatchEvent\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x121\n" + + "\x06object\x18\x02 \x01(\v2\x19.k8s.io.api.core.v1.EventR\x06object\">\n" + + "\bLogEntry\x12\x18\n" + + "\acontent\x18\x01 \x01(\tR\acontent\x12\x18\n" + + "\apodName\x18\x02 \x01(\tR\apodName\"\x9b\x01\n" + + "\x13WorkflowLintRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12f\n" + + "\bworkflow\x18\x02 \x01(\v2J.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowR\bworkflow\"\xf1\x01\n" + + "\x15WorkflowSubmitRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\"\n" + + "\fresourceKind\x18\x02 \x01(\tR\fresourceKind\x12\"\n" + + "\fresourceName\x18\x03 \x01(\tR\fresourceName\x12r\n" + + "\rsubmitOptions\x18\x04 \x01(\v2L.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.SubmitOptsR\rsubmitOptions2\xdc\x15\n" + + "\x0fWorkflowService\x12\xa7\x01\n" + + "\x0eCreateWorkflow\x12\x1f.workflow.WorkflowCreateRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"(\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/api/v1/workflows/{namespace}\x12\xa5\x01\n" + + "\vGetWorkflow\x12\x1c.workflow.WorkflowGetRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\",\x82\xd3\xe4\x93\x02&\x12$/api/v1/workflows/{namespace}/{name}\x12\xa5\x01\n" + + "\rListWorkflows\x12\x1d.workflow.WorkflowListRequest\x1aN.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowList\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/api/v1/workflows/{namespace}\x12~\n" + + "\x0eWatchWorkflows\x12\x1f.workflow.WatchWorkflowsRequest\x1a\x1c.workflow.WorkflowWatchEvent\"+\x82\xd3\xe4\x93\x02%\x12#/api/v1/workflow-events/{namespace}0\x01\x12s\n" + + "\vWatchEvents\x12\x1c.workflow.WatchEventsRequest\x1a\x19.workflow.EventWatchEvent\")\x82\xd3\xe4\x93\x02#\x12!/api/v1/stream/events/{namespace}0\x01\x12\x81\x01\n" + + "\x0eDeleteWorkflow\x12\x1f.workflow.WorkflowDeleteRequest\x1a .workflow.WorkflowDeleteResponse\",\x82\xd3\xe4\x93\x02&*$/api/v1/workflows/{namespace}/{name}\x12\xb2\x01\n" + + "\rRetryWorkflow\x12\x1e.workflow.WorkflowRetryRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"5\x82\xd3\xe4\x93\x02/:\x01*\x1a*/api/v1/workflows/{namespace}/{name}/retry\x12\xbb\x01\n" + + "\x10ResubmitWorkflow\x12!.workflow.WorkflowResubmitRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"8\x82\xd3\xe4\x93\x022:\x01*\x1a-/api/v1/workflows/{namespace}/{name}/resubmit\x12\xb5\x01\n" + + "\x0eResumeWorkflow\x12\x1f.workflow.WorkflowResumeRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"6\x82\xd3\xe4\x93\x020:\x01*\x1a+/api/v1/workflows/{namespace}/{name}/resume\x12\xb8\x01\n" + + "\x0fSuspendWorkflow\x12 .workflow.WorkflowSuspendRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"7\x82\xd3\xe4\x93\x021:\x01*\x1a,/api/v1/workflows/{namespace}/{name}/suspend\x12\xbe\x01\n" + + "\x11TerminateWorkflow\x12\".workflow.WorkflowTerminateRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"9\x82\xd3\xe4\x93\x023:\x01*\x1a./api/v1/workflows/{namespace}/{name}/terminate\x12\xaf\x01\n" + + "\fStopWorkflow\x12\x1d.workflow.WorkflowStopRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"4\x82\xd3\xe4\x93\x02.:\x01*\x1a)/api/v1/workflows/{namespace}/{name}/stop\x12\xac\x01\n" + + "\vSetWorkflow\x12\x1c.workflow.WorkflowSetRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"3\x82\xd3\xe4\x93\x02-:\x01*\x1a(/api/v1/workflows/{namespace}/{name}/set\x12\xa8\x01\n" + + "\fLintWorkflow\x12\x1d.workflow.WorkflowLintRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"-\x82\xd3\xe4\x93\x02':\x01*\"\"/api/v1/workflows/{namespace}/lint\x12|\n" + + "\aPodLogs\x12\x1c.workflow.WorkflowLogRequest\x1a\x12.workflow.LogEntry\"=\x82\xd3\xe4\x93\x024\x122/api/v1/workflows/{namespace}/{name}/{podName}/log\x88\x02\x010\x01\x12t\n" + + "\fWorkflowLogs\x12\x1c.workflow.WorkflowLogRequest\x1a\x12.workflow.LogEntry\"0\x82\xd3\xe4\x93\x02*\x12(/api/v1/workflows/{namespace}/{name}/log0\x01\x12\xae\x01\n" + + "\x0eSubmitWorkflow\x12\x1f.workflow.WorkflowSubmitRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"/\x82\xd3\xe4\x93\x02):\x01*\"$/api/v1/workflows/{namespace}/submitB>Z github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 21, // 1: workflow.WorkflowCreateRequest.createOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + 22, // 2: workflow.WorkflowGetRequest.getOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions + 23, // 3: workflow.WorkflowListRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 24, // 4: workflow.WorkflowLogRequest.logOptions:type_name -> k8s.io.api.core.v1.PodLogOptions + 25, // 5: workflow.WorkflowDeleteRequest.deleteOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + 23, // 6: workflow.WatchWorkflowsRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 20, // 7: workflow.WorkflowWatchEvent.object:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 23, // 8: workflow.WatchEventsRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 26, // 9: workflow.EventWatchEvent.object:type_name -> k8s.io.api.core.v1.Event + 20, // 10: workflow.WorkflowLintRequest.workflow:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 27, // 11: workflow.WorkflowSubmitRequest.submitOptions:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.SubmitOpts + 0, // 12: workflow.WorkflowService.CreateWorkflow:input_type -> workflow.WorkflowCreateRequest + 1, // 13: workflow.WorkflowService.GetWorkflow:input_type -> workflow.WorkflowGetRequest + 2, // 14: workflow.WorkflowService.ListWorkflows:input_type -> workflow.WorkflowListRequest + 13, // 15: workflow.WorkflowService.WatchWorkflows:input_type -> workflow.WatchWorkflowsRequest + 15, // 16: workflow.WorkflowService.WatchEvents:input_type -> workflow.WatchEventsRequest + 11, // 17: workflow.WorkflowService.DeleteWorkflow:input_type -> workflow.WorkflowDeleteRequest + 4, // 18: workflow.WorkflowService.RetryWorkflow:input_type -> workflow.WorkflowRetryRequest + 3, // 19: workflow.WorkflowService.ResubmitWorkflow:input_type -> workflow.WorkflowResubmitRequest + 5, // 20: workflow.WorkflowService.ResumeWorkflow:input_type -> workflow.WorkflowResumeRequest + 9, // 21: workflow.WorkflowService.SuspendWorkflow:input_type -> workflow.WorkflowSuspendRequest + 6, // 22: workflow.WorkflowService.TerminateWorkflow:input_type -> workflow.WorkflowTerminateRequest + 7, // 23: workflow.WorkflowService.StopWorkflow:input_type -> workflow.WorkflowStopRequest + 8, // 24: workflow.WorkflowService.SetWorkflow:input_type -> workflow.WorkflowSetRequest + 18, // 25: workflow.WorkflowService.LintWorkflow:input_type -> workflow.WorkflowLintRequest + 10, // 26: workflow.WorkflowService.PodLogs:input_type -> workflow.WorkflowLogRequest + 10, // 27: workflow.WorkflowService.WorkflowLogs:input_type -> workflow.WorkflowLogRequest + 19, // 28: workflow.WorkflowService.SubmitWorkflow:input_type -> workflow.WorkflowSubmitRequest + 20, // 29: workflow.WorkflowService.CreateWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 20, // 30: workflow.WorkflowService.GetWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 28, // 31: workflow.WorkflowService.ListWorkflows:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowList + 14, // 32: workflow.WorkflowService.WatchWorkflows:output_type -> workflow.WorkflowWatchEvent + 16, // 33: workflow.WorkflowService.WatchEvents:output_type -> workflow.EventWatchEvent + 12, // 34: workflow.WorkflowService.DeleteWorkflow:output_type -> workflow.WorkflowDeleteResponse + 20, // 35: workflow.WorkflowService.RetryWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 20, // 36: workflow.WorkflowService.ResubmitWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 20, // 37: workflow.WorkflowService.ResumeWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 20, // 38: workflow.WorkflowService.SuspendWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 20, // 39: workflow.WorkflowService.TerminateWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 20, // 40: workflow.WorkflowService.StopWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 20, // 41: workflow.WorkflowService.SetWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 20, // 42: workflow.WorkflowService.LintWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 17, // 43: workflow.WorkflowService.PodLogs:output_type -> workflow.LogEntry + 17, // 44: workflow.WorkflowService.WorkflowLogs:output_type -> workflow.LogEntry + 20, // 45: workflow.WorkflowService.SubmitWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 29, // [29:46] is the sub-list for method output_type + 12, // [12:29] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_workflow_workflow_proto_init() } +func file_pkg_apiclient_workflow_workflow_proto_init() { + if File_pkg_apiclient_workflow_workflow_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_workflow_workflow_proto_rawDesc), len(file_pkg_apiclient_workflow_workflow_proto_rawDesc)), + NumEnums: 0, + NumMessages: 20, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "pkg/apiclient/workflow/workflow.proto", -} - -func (m *WorkflowCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CreateOptions != nil { - { - size, err := m.CreateOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.ServerDryRun { - i-- - if m.ServerDryRun { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.InstanceID) > 0 { - i -= len(m.InstanceID) - copy(dAtA[i:], m.InstanceID) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.InstanceID))) - i-- - dAtA[i] = 0x1a - } - if m.Workflow != nil { - { - size, err := m.Workflow.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowGetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Uid) > 0 { - i -= len(m.Uid) - copy(dAtA[i:], m.Uid) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Uid))) - i-- - dAtA[i] = 0x2a - } - if len(m.Fields) > 0 { - i -= len(m.Fields) - copy(dAtA[i:], m.Fields) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Fields))) - i-- - dAtA[i] = 0x22 - } - if m.GetOptions != nil { - { - size, err := m.GetOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowListRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowListRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.FinishedBefore) > 0 { - i -= len(m.FinishedBefore) - copy(dAtA[i:], m.FinishedBefore) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.FinishedBefore))) - i-- - dAtA[i] = 0x32 - } - if len(m.CreatedAfter) > 0 { - i -= len(m.CreatedAfter) - copy(dAtA[i:], m.CreatedAfter) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.CreatedAfter))) - i-- - dAtA[i] = 0x2a - } - if len(m.NameFilter) > 0 { - i -= len(m.NameFilter) - copy(dAtA[i:], m.NameFilter) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.NameFilter))) - i-- - dAtA[i] = 0x22 - } - if len(m.Fields) > 0 { - i -= len(m.Fields) - copy(dAtA[i:], m.Fields) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Fields))) - i-- - dAtA[i] = 0x1a - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowResubmitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowResubmitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowResubmitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Parameters) > 0 { - for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Parameters[iNdEx]) - copy(dAtA[i:], m.Parameters[iNdEx]) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Parameters[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if m.Memoized { - i-- - if m.Memoized { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowRetryRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowRetryRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + GoTypes: file_pkg_apiclient_workflow_workflow_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_workflow_workflow_proto_depIdxs, + MessageInfos: file_pkg_apiclient_workflow_workflow_proto_msgTypes, + }.Build() + File_pkg_apiclient_workflow_workflow_proto = out.File + file_pkg_apiclient_workflow_workflow_proto_goTypes = nil + file_pkg_apiclient_workflow_workflow_proto_depIdxs = nil } - -func (m *WorkflowRetryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Parameters) > 0 { - for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Parameters[iNdEx]) - copy(dAtA[i:], m.Parameters[iNdEx]) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Parameters[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.NodeFieldSelector) > 0 { - i -= len(m.NodeFieldSelector) - copy(dAtA[i:], m.NodeFieldSelector) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.NodeFieldSelector))) - i-- - dAtA[i] = 0x22 - } - if m.RestartSuccessful { - i-- - if m.RestartSuccessful { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowResumeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowResumeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowResumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.NodeFieldSelector) > 0 { - i -= len(m.NodeFieldSelector) - copy(dAtA[i:], m.NodeFieldSelector) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.NodeFieldSelector))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowTerminateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowTerminateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowTerminateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowStopRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowStopRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowStopRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x22 - } - if len(m.NodeFieldSelector) > 0 { - i -= len(m.NodeFieldSelector) - copy(dAtA[i:], m.NodeFieldSelector) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.NodeFieldSelector))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowSetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowSetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.OutputParameters) > 0 { - i -= len(m.OutputParameters) - copy(dAtA[i:], m.OutputParameters) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.OutputParameters))) - i-- - dAtA[i] = 0x32 - } - if len(m.Phase) > 0 { - i -= len(m.Phase) - copy(dAtA[i:], m.Phase) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Phase))) - i-- - dAtA[i] = 0x2a - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x22 - } - if len(m.NodeFieldSelector) > 0 { - i -= len(m.NodeFieldSelector) - copy(dAtA[i:], m.NodeFieldSelector) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.NodeFieldSelector))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowSuspendRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowSuspendRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowSuspendRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowLogRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowLogRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Selector) > 0 { - i -= len(m.Selector) - copy(dAtA[i:], m.Selector) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Selector))) - i-- - dAtA[i] = 0x32 - } - if len(m.Grep) > 0 { - i -= len(m.Grep) - copy(dAtA[i:], m.Grep) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Grep))) - i-- - dAtA[i] = 0x2a - } - if m.LogOptions != nil { - { - size, err := m.LogOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Force { - i-- - if m.Force { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.DeleteOptions != nil { - { - size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *WatchWorkflowsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WatchWorkflowsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchWorkflowsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Fields) > 0 { - i -= len(m.Fields) - copy(dAtA[i:], m.Fields) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Fields))) - i-- - dAtA[i] = 0x1a - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowWatchEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowWatchEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowWatchEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Object != nil { - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Type) > 0 { - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WatchEventsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WatchEventsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *LogEntry) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LogEntry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PodName) > 0 { - i -= len(m.PodName) - copy(dAtA[i:], m.PodName) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.PodName))) - i-- - dAtA[i] = 0x12 - } - if len(m.Content) > 0 { - i -= len(m.Content) - copy(dAtA[i:], m.Content) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Content))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowLintRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowLintRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowLintRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Workflow != nil { - { - size, err := m.Workflow.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowSubmitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowSubmitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowSubmitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SubmitOptions != nil { - { - size, err := m.SubmitOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ResourceName) > 0 { - i -= len(m.ResourceName) - copy(dAtA[i:], m.ResourceName) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.ResourceName))) - i-- - dAtA[i] = 0x1a - } - if len(m.ResourceKind) > 0 { - i -= len(m.ResourceKind) - copy(dAtA[i:], m.ResourceKind) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.ResourceKind))) - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintWorkflow(dAtA []byte, offset int, v uint64) int { - offset -= sovWorkflow(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *WorkflowCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Workflow != nil { - l = m.Workflow.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.InstanceID) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ServerDryRun { - n += 2 - } - if m.CreateOptions != nil { - l = m.CreateOptions.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowGetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.GetOptions != nil { - l = m.GetOptions.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Fields) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowListRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Fields) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.NameFilter) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.CreatedAfter) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.FinishedBefore) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowResubmitRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Memoized { - n += 2 - } - if len(m.Parameters) > 0 { - for _, s := range m.Parameters { - l = len(s) - n += 1 + l + sovWorkflow(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowRetryRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.RestartSuccessful { - n += 2 - } - l = len(m.NodeFieldSelector) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if len(m.Parameters) > 0 { - for _, s := range m.Parameters { - l = len(s) - n += 1 + l + sovWorkflow(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowResumeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.NodeFieldSelector) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowTerminateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowStopRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.NodeFieldSelector) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowSetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.NodeFieldSelector) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Phase) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.OutputParameters) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowSuspendRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowLogRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.LogOptions != nil { - l = m.LogOptions.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Grep) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Selector) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.DeleteOptions != nil { - l = m.DeleteOptions.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Force { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowDeleteResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WatchWorkflowsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.Fields) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowWatchEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WatchEventsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *LogEntry) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Content) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.PodName) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowLintRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Workflow != nil { - l = m.Workflow.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowSubmitRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.ResourceKind) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.ResourceName) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.SubmitOptions != nil { - l = m.SubmitOptions.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovWorkflow(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozWorkflow(x uint64) (n int) { - return sovWorkflow(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *WorkflowCreateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Workflow == nil { - m.Workflow = &v1alpha1.Workflow{} - } - if err := m.Workflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InstanceID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InstanceID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ServerDryRun", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ServerDryRun = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreateOptions == nil { - m.CreateOptions = &v1.CreateOptions{} - } - if err := m.CreateOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowGetRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowGetRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GetOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GetOptions == nil { - m.GetOptions = &v1.GetOptions{} - } - if err := m.GetOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Fields = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowListRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowListRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowListRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Fields = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NameFilter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NameFilter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAfter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CreatedAfter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FinishedBefore", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FinishedBefore = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowResubmitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowResubmitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowResubmitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Memoized", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Memoized = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Parameters = append(m.Parameters, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowRetryRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowRetryRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowRetryRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartSuccessful", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RestartSuccessful = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeFieldSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeFieldSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Parameters = append(m.Parameters, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowResumeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowResumeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowResumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeFieldSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeFieldSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowTerminateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowTerminateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowTerminateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowStopRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowStopRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowStopRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeFieldSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeFieldSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowSetRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowSetRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowSetRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeFieldSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeFieldSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OutputParameters", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OutputParameters = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowSuspendRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowSuspendRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowSuspendRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowLogRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowLogRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowLogRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LogOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LogOptions == nil { - m.LogOptions = &v11.PodLogOptions{} - } - if err := m.LogOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Grep", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Grep = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowDeleteRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowDeleteRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteOptions == nil { - m.DeleteOptions = &v1.DeleteOptions{} - } - if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Force = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowDeleteResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowDeleteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WatchWorkflowsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WatchWorkflowsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WatchWorkflowsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Fields = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowWatchEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowWatchEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowWatchEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &v1alpha1.Workflow{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WatchEventsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WatchEventsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WatchEventsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LogEntry) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LogEntry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LogEntry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowLintRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowLintRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowLintRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Workflow == nil { - m.Workflow = &v1alpha1.Workflow{} - } - if err := m.Workflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowSubmitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowSubmitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowSubmitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceKind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceKind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubmitOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SubmitOptions == nil { - m.SubmitOptions = &v1alpha1.SubmitOpts{} - } - if err := m.SubmitOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipWorkflow(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthWorkflow - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupWorkflow - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthWorkflow - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthWorkflow = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowWorkflow = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupWorkflow = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/apiclient/workflow/workflow.pb.gw.go b/pkg/apiclient/workflow/workflow.pb.gw.go index 5f53f0a359ee..c903a27ce0a4 100644 --- a/pkg/apiclient/workflow/workflow.pb.gw.go +++ b/pkg/apiclient/workflow/workflow.pb.gw.go @@ -10,298 +10,224 @@ package workflow import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_WorkflowService_CreateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowCreateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.CreateWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_CreateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowCreateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.CreateWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_WorkflowService_GetWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_WorkflowService_GetWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_WorkflowService_GetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowGetRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowGetRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_GetWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_GetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowGetRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowGetRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_GetWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_WorkflowService_ListWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_WorkflowService_ListWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_WorkflowService_ListWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowListRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowListRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_ListWorkflows_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_ListWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowListRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowListRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_ListWorkflows_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListWorkflows(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_WorkflowService_WatchWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_WorkflowService_WatchWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_WorkflowService_WatchWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (WorkflowService_WatchWorkflowsClient, runtime.ServerMetadata, error) { - var protoReq WatchWorkflowsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WatchWorkflowsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_WatchWorkflows_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - stream, err := client.WatchWorkflows(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -312,42 +238,33 @@ func request_WorkflowService_WatchWorkflows_0(ctx context.Context, marshaler run } metadata.HeaderMD = header return stream, metadata, nil - } -var ( - filter_WorkflowService_WatchEvents_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_WorkflowService_WatchEvents_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_WorkflowService_WatchEvents_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (WorkflowService_WatchEventsClient, runtime.ServerMetadata, error) { - var protoReq WatchEventsRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WatchEventsRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_WatchEvents_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - stream, err := client.WatchEvents(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -358,872 +275,590 @@ func request_WorkflowService_WatchEvents_0(ctx context.Context, marshaler runtim } metadata.HeaderMD = header return stream, metadata, nil - } -var ( - filter_WorkflowService_DeleteWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_WorkflowService_DeleteWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_WorkflowService_DeleteWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowDeleteRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowDeleteRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_DeleteWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_DeleteWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowDeleteRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowDeleteRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_DeleteWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowService_RetryWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowRetryRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowRetryRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.RetryWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_RetryWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowRetryRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowRetryRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.RetryWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowService_ResubmitWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowResubmitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowResubmitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.ResubmitWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_ResubmitWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowResubmitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowResubmitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.ResubmitWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowService_ResumeWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowResumeRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowResumeRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.ResumeWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_ResumeWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowResumeRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowResumeRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.ResumeWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowService_SuspendWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowSuspendRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowSuspendRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.SuspendWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_SuspendWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowSuspendRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowSuspendRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.SuspendWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowService_TerminateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTerminateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTerminateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.TerminateWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_TerminateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTerminateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTerminateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.TerminateWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowService_StopWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowStopRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowStopRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.StopWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_StopWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowStopRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowStopRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.StopWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowService_SetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowSetRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowSetRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.SetWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_SetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowSetRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowSetRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.SetWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowService_LintWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowLintRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowLintRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.LintWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_LintWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowLintRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowLintRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.LintWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_WorkflowService_PodLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1, "podName": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} -) +var filter_WorkflowService_PodLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1, "podName": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} func request_WorkflowService_PodLogs_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (WorkflowService_PodLogsClient, runtime.ServerMetadata, error) { - var protoReq WorkflowLogRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowLogRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - val, ok = pathParams["podName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "podName") } - protoReq.PodName, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "podName", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_PodLogs_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - stream, err := client.PodLogs(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -1234,53 +869,41 @@ func request_WorkflowService_PodLogs_0(ctx context.Context, marshaler runtime.Ma } metadata.HeaderMD = header return stream, metadata, nil - } -var ( - filter_WorkflowService_WorkflowLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_WorkflowService_WorkflowLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_WorkflowService_WorkflowLogs_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (WorkflowService_WorkflowLogsClient, runtime.ServerMetadata, error) { - var protoReq WorkflowLogRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowLogRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowService_WorkflowLogs_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - stream, err := client.WorkflowLogs(ctx, &protoReq) if err != nil { return nil, metadata, err @@ -1291,410 +914,346 @@ func request_WorkflowService_WorkflowLogs_0(ctx context.Context, marshaler runti } metadata.HeaderMD = header return stream, metadata, nil - } func request_WorkflowService_SubmitWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowSubmitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowSubmitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.SubmitWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowService_SubmitWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowSubmitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowSubmitRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.SubmitWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterWorkflowServiceHandlerServer registers the http handlers for service WorkflowService to "mux". // UnaryRPC :call WorkflowServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWorkflowServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterWorkflowServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WorkflowServiceServer) error { - - mux.Handle("POST", pattern_WorkflowService_CreateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowService_CreateWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/CreateWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_CreateWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_CreateWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_CreateWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_CreateWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowService_GetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_GetWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/GetWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_GetWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_GetWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_GetWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_GetWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowService_ListWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_ListWorkflows_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_ListWorkflows_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_ListWorkflows_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_ListWorkflows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_ListWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_WorkflowService_WatchWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_WatchWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - mux.Handle("GET", pattern_WorkflowService_WatchEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_WatchEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - - mux.Handle("DELETE", pattern_WorkflowService_DeleteWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_WorkflowService_DeleteWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/DeleteWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_DeleteWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_DeleteWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_DeleteWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_DeleteWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_RetryWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_RetryWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/RetryWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/retry")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_RetryWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_RetryWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_RetryWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_RetryWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_ResubmitWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_ResubmitWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/ResubmitWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/resubmit")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_ResubmitWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_ResubmitWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_ResubmitWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_ResubmitWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_ResumeWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_ResumeWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/ResumeWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/resume")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_ResumeWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_ResumeWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_ResumeWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_ResumeWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_SuspendWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_SuspendWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/SuspendWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/suspend")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_SuspendWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_SuspendWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_SuspendWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_SuspendWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_TerminateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_TerminateWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/TerminateWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/terminate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_TerminateWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_TerminateWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_TerminateWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_TerminateWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_StopWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_StopWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/StopWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/stop")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_StopWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_StopWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_StopWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_StopWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_SetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_SetWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/SetWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/set")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_SetWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_SetWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_SetWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_SetWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_WorkflowService_LintWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowService_LintWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/LintWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/lint")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_LintWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_LintWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_LintWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_LintWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_WorkflowService_PodLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_PodLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - mux.Handle("GET", pattern_WorkflowService_WorkflowLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_WorkflowLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - - mux.Handle("POST", pattern_WorkflowService_SubmitWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowService_SubmitWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflow.WorkflowService/SubmitWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/submit")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowService_SubmitWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowService_SubmitWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_SubmitWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_SubmitWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -1703,25 +1262,24 @@ func RegisterWorkflowServiceHandlerServer(ctx context.Context, mux *runtime.Serv // RegisterWorkflowServiceHandlerFromEndpoint is same as RegisterWorkflowServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterWorkflowServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterWorkflowServiceHandler(ctx, mux, conn) } @@ -1735,420 +1293,336 @@ func RegisterWorkflowServiceHandler(ctx context.Context, mux *runtime.ServeMux, // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WorkflowServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WorkflowServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "WorkflowServiceClient" to call the correct interceptors. +// "WorkflowServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterWorkflowServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WorkflowServiceClient) error { - - mux.Handle("POST", pattern_WorkflowService_CreateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowService_CreateWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/CreateWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_CreateWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_CreateWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_CreateWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_CreateWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowService_GetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_GetWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/GetWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_GetWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_GetWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_GetWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_GetWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowService_ListWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_ListWorkflows_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_ListWorkflows_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_ListWorkflows_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_ListWorkflows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_ListWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowService_WatchWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_WatchWorkflows_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/WatchWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflow-events/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_WatchWorkflows_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_WatchWorkflows_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_WatchWorkflows_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_WatchWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowService_WatchEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_WatchEvents_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/WatchEvents", runtime.WithHTTPPathPattern("/api/v1/stream/events/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_WatchEvents_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_WatchEvents_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_WatchEvents_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return wrapEventAsProtoMessage(resp.Recv()) }, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_WatchEvents_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_WorkflowService_DeleteWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_WorkflowService_DeleteWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/DeleteWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_DeleteWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_DeleteWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_DeleteWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_DeleteWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_RetryWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_RetryWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/RetryWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/retry")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_RetryWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_RetryWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_RetryWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_RetryWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_ResubmitWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_ResubmitWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/ResubmitWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/resubmit")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_ResubmitWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_ResubmitWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_ResubmitWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_ResubmitWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_ResumeWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_ResumeWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/ResumeWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/resume")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_ResumeWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_ResumeWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_ResumeWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_ResumeWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_SuspendWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_SuspendWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/SuspendWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/suspend")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_SuspendWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_SuspendWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_SuspendWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_SuspendWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_TerminateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_TerminateWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/TerminateWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/terminate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_TerminateWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_TerminateWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_TerminateWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_TerminateWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_StopWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_StopWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/StopWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/stop")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_StopWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_StopWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_StopWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_StopWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowService_SetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowService_SetWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/SetWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/set")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_SetWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_SetWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_SetWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_SetWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_WorkflowService_LintWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowService_LintWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/LintWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/lint")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_LintWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_LintWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_LintWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_LintWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowService_PodLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_PodLogs_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/PodLogs", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/{podName}/log")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_PodLogs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_PodLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_PodLogs_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_PodLogs_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowService_WorkflowLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowService_WorkflowLogs_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/WorkflowLogs", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/{name}/log")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_WorkflowLogs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_WorkflowLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_WorkflowLogs_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_WorkflowLogs_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_WorkflowService_SubmitWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowService_SubmitWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflow.WorkflowService/SubmitWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{namespace}/submit")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowService_SubmitWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowService_SubmitWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowService_SubmitWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowService_SubmitWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_WorkflowService_CreateWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflows", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_GetWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflows", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_ListWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflows", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_WatchWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflow-events", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_WatchEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "stream", "events", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_DeleteWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflows", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_RetryWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "retry"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_ResubmitWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "resubmit"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_ResumeWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "resume"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_SuspendWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "suspend"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_TerminateWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "terminate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_StopWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "stop"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_SetWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "set"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_LintWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "workflows", "namespace", "lint"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_PodLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "workflows", "namespace", "name", "podName", "log"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_WorkflowLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "log"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowService_SubmitWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "workflows", "namespace", "submit"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_WorkflowService_CreateWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflows", "namespace"}, "")) + pattern_WorkflowService_GetWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflows", "namespace", "name"}, "")) + pattern_WorkflowService_ListWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflows", "namespace"}, "")) + pattern_WorkflowService_WatchWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflow-events", "namespace"}, "")) + pattern_WorkflowService_WatchEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "stream", "events", "namespace"}, "")) + pattern_WorkflowService_DeleteWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflows", "namespace", "name"}, "")) + pattern_WorkflowService_RetryWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "retry"}, "")) + pattern_WorkflowService_ResubmitWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "resubmit"}, "")) + pattern_WorkflowService_ResumeWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "resume"}, "")) + pattern_WorkflowService_SuspendWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "suspend"}, "")) + pattern_WorkflowService_TerminateWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "terminate"}, "")) + pattern_WorkflowService_StopWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "stop"}, "")) + pattern_WorkflowService_SetWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "set"}, "")) + pattern_WorkflowService_LintWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "workflows", "namespace", "lint"}, "")) + pattern_WorkflowService_PodLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "workflows", "namespace", "name", "podName", "log"}, "")) + pattern_WorkflowService_WorkflowLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "workflows", "namespace", "name", "log"}, "")) + pattern_WorkflowService_SubmitWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "workflows", "namespace", "submit"}, "")) ) var ( - forward_WorkflowService_CreateWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_GetWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_ListWorkflows_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_WatchWorkflows_0 = runtime.ForwardResponseStream - - forward_WorkflowService_WatchEvents_0 = runtime.ForwardResponseStream - - forward_WorkflowService_DeleteWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_RetryWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_ResubmitWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_ResumeWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_SuspendWorkflow_0 = runtime.ForwardResponseMessage - + forward_WorkflowService_CreateWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_GetWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_ListWorkflows_0 = runtime.ForwardResponseMessage + forward_WorkflowService_WatchWorkflows_0 = runtime.ForwardResponseStream + forward_WorkflowService_WatchEvents_0 = runtime.ForwardResponseStream + forward_WorkflowService_DeleteWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_RetryWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_ResubmitWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_ResumeWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_SuspendWorkflow_0 = runtime.ForwardResponseMessage forward_WorkflowService_TerminateWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_StopWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_SetWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_LintWorkflow_0 = runtime.ForwardResponseMessage - - forward_WorkflowService_PodLogs_0 = runtime.ForwardResponseStream - - forward_WorkflowService_WorkflowLogs_0 = runtime.ForwardResponseStream - - forward_WorkflowService_SubmitWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_StopWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_SetWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_LintWorkflow_0 = runtime.ForwardResponseMessage + forward_WorkflowService_PodLogs_0 = runtime.ForwardResponseStream + forward_WorkflowService_WorkflowLogs_0 = runtime.ForwardResponseStream + forward_WorkflowService_SubmitWorkflow_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/workflow/workflow.proto b/pkg/apiclient/workflow/workflow.proto index 7cfaa937f95f..c359c65610d9 100644 --- a/pkg/apiclient/workflow/workflow.proto +++ b/pkg/apiclient/workflow/workflow.proto @@ -124,6 +124,13 @@ message WatchEventsRequest { k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions listOptions = 2; } +message EventWatchEvent { + // the type of change + string type = 1; + // the event + k8s.io.api.core.v1.Event object = 2; +} + message LogEntry { string content = 1; string podName = 2; @@ -161,7 +168,7 @@ service WorkflowService { option (google.api.http).get = "/api/v1/workflow-events/{namespace}"; } - rpc WatchEvents(WatchEventsRequest) returns (stream k8s.io.api.core.v1.Event) { + rpc WatchEvents(WatchEventsRequest) returns (stream EventWatchEvent) { option (google.api.http).get = "/api/v1/stream/events/{namespace}"; } diff --git a/pkg/apiclient/workflow/workflow_grpc.pb.go b/pkg/apiclient/workflow/workflow_grpc.pb.go new file mode 100644 index 000000000000..e29900698eec --- /dev/null +++ b/pkg/apiclient/workflow/workflow_grpc.pb.go @@ -0,0 +1,750 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/workflow/workflow.proto + +// Workflow Service +// +// Workflow Service API performs CRUD actions against application resources + +package workflow + +import ( + context "context" + v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + WorkflowService_CreateWorkflow_FullMethodName = "/workflow.WorkflowService/CreateWorkflow" + WorkflowService_GetWorkflow_FullMethodName = "/workflow.WorkflowService/GetWorkflow" + WorkflowService_ListWorkflows_FullMethodName = "/workflow.WorkflowService/ListWorkflows" + WorkflowService_WatchWorkflows_FullMethodName = "/workflow.WorkflowService/WatchWorkflows" + WorkflowService_WatchEvents_FullMethodName = "/workflow.WorkflowService/WatchEvents" + WorkflowService_DeleteWorkflow_FullMethodName = "/workflow.WorkflowService/DeleteWorkflow" + WorkflowService_RetryWorkflow_FullMethodName = "/workflow.WorkflowService/RetryWorkflow" + WorkflowService_ResubmitWorkflow_FullMethodName = "/workflow.WorkflowService/ResubmitWorkflow" + WorkflowService_ResumeWorkflow_FullMethodName = "/workflow.WorkflowService/ResumeWorkflow" + WorkflowService_SuspendWorkflow_FullMethodName = "/workflow.WorkflowService/SuspendWorkflow" + WorkflowService_TerminateWorkflow_FullMethodName = "/workflow.WorkflowService/TerminateWorkflow" + WorkflowService_StopWorkflow_FullMethodName = "/workflow.WorkflowService/StopWorkflow" + WorkflowService_SetWorkflow_FullMethodName = "/workflow.WorkflowService/SetWorkflow" + WorkflowService_LintWorkflow_FullMethodName = "/workflow.WorkflowService/LintWorkflow" + WorkflowService_PodLogs_FullMethodName = "/workflow.WorkflowService/PodLogs" + WorkflowService_WorkflowLogs_FullMethodName = "/workflow.WorkflowService/WorkflowLogs" + WorkflowService_SubmitWorkflow_FullMethodName = "/workflow.WorkflowService/SubmitWorkflow" +) + +// WorkflowServiceClient is the client API for WorkflowService 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 WorkflowServiceClient interface { + CreateWorkflow(ctx context.Context, in *WorkflowCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + GetWorkflow(ctx context.Context, in *WorkflowGetRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + ListWorkflows(ctx context.Context, in *WorkflowListRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowList, error) + WatchWorkflows(ctx context.Context, in *WatchWorkflowsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[WorkflowWatchEvent], error) + WatchEvents(ctx context.Context, in *WatchEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventWatchEvent], error) + DeleteWorkflow(ctx context.Context, in *WorkflowDeleteRequest, opts ...grpc.CallOption) (*WorkflowDeleteResponse, error) + RetryWorkflow(ctx context.Context, in *WorkflowRetryRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + ResubmitWorkflow(ctx context.Context, in *WorkflowResubmitRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + ResumeWorkflow(ctx context.Context, in *WorkflowResumeRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + SuspendWorkflow(ctx context.Context, in *WorkflowSuspendRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + TerminateWorkflow(ctx context.Context, in *WorkflowTerminateRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + StopWorkflow(ctx context.Context, in *WorkflowStopRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + SetWorkflow(ctx context.Context, in *WorkflowSetRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + LintWorkflow(ctx context.Context, in *WorkflowLintRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + // Deprecated: Do not use. + // DEPRECATED: Cannot work via HTTP if podName is an empty string. Use WorkflowLogs. + PodLogs(ctx context.Context, in *WorkflowLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogEntry], error) + WorkflowLogs(ctx context.Context, in *WorkflowLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogEntry], error) + SubmitWorkflow(ctx context.Context, in *WorkflowSubmitRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) +} + +type workflowServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewWorkflowServiceClient(cc grpc.ClientConnInterface) WorkflowServiceClient { + return &workflowServiceClient{cc} +} + +func (c *workflowServiceClient) CreateWorkflow(ctx context.Context, in *WorkflowCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_CreateWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) GetWorkflow(ctx context.Context, in *WorkflowGetRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_GetWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) ListWorkflows(ctx context.Context, in *WorkflowListRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.WorkflowList) + err := c.cc.Invoke(ctx, WorkflowService_ListWorkflows_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) WatchWorkflows(ctx context.Context, in *WatchWorkflowsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[WorkflowWatchEvent], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WorkflowService_ServiceDesc.Streams[0], WorkflowService_WatchWorkflows_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[WatchWorkflowsRequest, WorkflowWatchEvent]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WorkflowService_WatchWorkflowsClient = grpc.ServerStreamingClient[WorkflowWatchEvent] + +func (c *workflowServiceClient) WatchEvents(ctx context.Context, in *WatchEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventWatchEvent], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WorkflowService_ServiceDesc.Streams[1], WorkflowService_WatchEvents_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[WatchEventsRequest, EventWatchEvent]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WorkflowService_WatchEventsClient = grpc.ServerStreamingClient[EventWatchEvent] + +func (c *workflowServiceClient) DeleteWorkflow(ctx context.Context, in *WorkflowDeleteRequest, opts ...grpc.CallOption) (*WorkflowDeleteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(WorkflowDeleteResponse) + err := c.cc.Invoke(ctx, WorkflowService_DeleteWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) RetryWorkflow(ctx context.Context, in *WorkflowRetryRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_RetryWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) ResubmitWorkflow(ctx context.Context, in *WorkflowResubmitRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_ResubmitWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) ResumeWorkflow(ctx context.Context, in *WorkflowResumeRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_ResumeWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) SuspendWorkflow(ctx context.Context, in *WorkflowSuspendRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_SuspendWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) TerminateWorkflow(ctx context.Context, in *WorkflowTerminateRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_TerminateWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) StopWorkflow(ctx context.Context, in *WorkflowStopRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_StopWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) SetWorkflow(ctx context.Context, in *WorkflowSetRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_SetWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowServiceClient) LintWorkflow(ctx context.Context, in *WorkflowLintRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_LintWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. +func (c *workflowServiceClient) PodLogs(ctx context.Context, in *WorkflowLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogEntry], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WorkflowService_ServiceDesc.Streams[2], WorkflowService_PodLogs_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[WorkflowLogRequest, LogEntry]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WorkflowService_PodLogsClient = grpc.ServerStreamingClient[LogEntry] + +func (c *workflowServiceClient) WorkflowLogs(ctx context.Context, in *WorkflowLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogEntry], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &WorkflowService_ServiceDesc.Streams[3], WorkflowService_WorkflowLogs_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[WorkflowLogRequest, LogEntry]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WorkflowService_WorkflowLogsClient = grpc.ServerStreamingClient[LogEntry] + +func (c *workflowServiceClient) SubmitWorkflow(ctx context.Context, in *WorkflowSubmitRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, WorkflowService_SubmitWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// WorkflowServiceServer is the server API for WorkflowService service. +// All implementations should embed UnimplementedWorkflowServiceServer +// for forward compatibility. +type WorkflowServiceServer interface { + CreateWorkflow(context.Context, *WorkflowCreateRequest) (*v1alpha1.Workflow, error) + GetWorkflow(context.Context, *WorkflowGetRequest) (*v1alpha1.Workflow, error) + ListWorkflows(context.Context, *WorkflowListRequest) (*v1alpha1.WorkflowList, error) + WatchWorkflows(*WatchWorkflowsRequest, grpc.ServerStreamingServer[WorkflowWatchEvent]) error + WatchEvents(*WatchEventsRequest, grpc.ServerStreamingServer[EventWatchEvent]) error + DeleteWorkflow(context.Context, *WorkflowDeleteRequest) (*WorkflowDeleteResponse, error) + RetryWorkflow(context.Context, *WorkflowRetryRequest) (*v1alpha1.Workflow, error) + ResubmitWorkflow(context.Context, *WorkflowResubmitRequest) (*v1alpha1.Workflow, error) + ResumeWorkflow(context.Context, *WorkflowResumeRequest) (*v1alpha1.Workflow, error) + SuspendWorkflow(context.Context, *WorkflowSuspendRequest) (*v1alpha1.Workflow, error) + TerminateWorkflow(context.Context, *WorkflowTerminateRequest) (*v1alpha1.Workflow, error) + StopWorkflow(context.Context, *WorkflowStopRequest) (*v1alpha1.Workflow, error) + SetWorkflow(context.Context, *WorkflowSetRequest) (*v1alpha1.Workflow, error) + LintWorkflow(context.Context, *WorkflowLintRequest) (*v1alpha1.Workflow, error) + // Deprecated: Do not use. + // DEPRECATED: Cannot work via HTTP if podName is an empty string. Use WorkflowLogs. + PodLogs(*WorkflowLogRequest, grpc.ServerStreamingServer[LogEntry]) error + WorkflowLogs(*WorkflowLogRequest, grpc.ServerStreamingServer[LogEntry]) error + SubmitWorkflow(context.Context, *WorkflowSubmitRequest) (*v1alpha1.Workflow, error) +} + +// UnimplementedWorkflowServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedWorkflowServiceServer struct{} + +func (UnimplementedWorkflowServiceServer) CreateWorkflow(context.Context, *WorkflowCreateRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) GetWorkflow(context.Context, *WorkflowGetRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) ListWorkflows(context.Context, *WorkflowListRequest) (*v1alpha1.WorkflowList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListWorkflows not implemented") +} +func (UnimplementedWorkflowServiceServer) WatchWorkflows(*WatchWorkflowsRequest, grpc.ServerStreamingServer[WorkflowWatchEvent]) error { + return status.Errorf(codes.Unimplemented, "method WatchWorkflows not implemented") +} +func (UnimplementedWorkflowServiceServer) WatchEvents(*WatchEventsRequest, grpc.ServerStreamingServer[EventWatchEvent]) error { + return status.Errorf(codes.Unimplemented, "method WatchEvents not implemented") +} +func (UnimplementedWorkflowServiceServer) DeleteWorkflow(context.Context, *WorkflowDeleteRequest) (*WorkflowDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) RetryWorkflow(context.Context, *WorkflowRetryRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method RetryWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) ResubmitWorkflow(context.Context, *WorkflowResubmitRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResubmitWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) ResumeWorkflow(context.Context, *WorkflowResumeRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResumeWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) SuspendWorkflow(context.Context, *WorkflowSuspendRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method SuspendWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) TerminateWorkflow(context.Context, *WorkflowTerminateRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method TerminateWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) StopWorkflow(context.Context, *WorkflowStopRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method StopWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) SetWorkflow(context.Context, *WorkflowSetRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) LintWorkflow(context.Context, *WorkflowLintRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method LintWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) PodLogs(*WorkflowLogRequest, grpc.ServerStreamingServer[LogEntry]) error { + return status.Errorf(codes.Unimplemented, "method PodLogs not implemented") +} +func (UnimplementedWorkflowServiceServer) WorkflowLogs(*WorkflowLogRequest, grpc.ServerStreamingServer[LogEntry]) error { + return status.Errorf(codes.Unimplemented, "method WorkflowLogs not implemented") +} +func (UnimplementedWorkflowServiceServer) SubmitWorkflow(context.Context, *WorkflowSubmitRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitWorkflow not implemented") +} +func (UnimplementedWorkflowServiceServer) testEmbeddedByValue() {} + +// UnsafeWorkflowServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to WorkflowServiceServer will +// result in compilation errors. +type UnsafeWorkflowServiceServer interface { + mustEmbedUnimplementedWorkflowServiceServer() +} + +func RegisterWorkflowServiceServer(s grpc.ServiceRegistrar, srv WorkflowServiceServer) { + // If the following call pancis, it indicates UnimplementedWorkflowServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&WorkflowService_ServiceDesc, srv) +} + +func _WorkflowService_CreateWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).CreateWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_CreateWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).CreateWorkflow(ctx, req.(*WorkflowCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_GetWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).GetWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_GetWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).GetWorkflow(ctx, req.(*WorkflowGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_ListWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).ListWorkflows(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_ListWorkflows_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).ListWorkflows(ctx, req.(*WorkflowListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_WatchWorkflows_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchWorkflowsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WorkflowServiceServer).WatchWorkflows(m, &grpc.GenericServerStream[WatchWorkflowsRequest, WorkflowWatchEvent]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WorkflowService_WatchWorkflowsServer = grpc.ServerStreamingServer[WorkflowWatchEvent] + +func _WorkflowService_WatchEvents_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchEventsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WorkflowServiceServer).WatchEvents(m, &grpc.GenericServerStream[WatchEventsRequest, EventWatchEvent]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WorkflowService_WatchEventsServer = grpc.ServerStreamingServer[EventWatchEvent] + +func _WorkflowService_DeleteWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).DeleteWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_DeleteWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).DeleteWorkflow(ctx, req.(*WorkflowDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_RetryWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowRetryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).RetryWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_RetryWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).RetryWorkflow(ctx, req.(*WorkflowRetryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_ResubmitWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowResubmitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).ResubmitWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_ResubmitWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).ResubmitWorkflow(ctx, req.(*WorkflowResubmitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_ResumeWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowResumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).ResumeWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_ResumeWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).ResumeWorkflow(ctx, req.(*WorkflowResumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_SuspendWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowSuspendRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).SuspendWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_SuspendWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).SuspendWorkflow(ctx, req.(*WorkflowSuspendRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_TerminateWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowTerminateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).TerminateWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_TerminateWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).TerminateWorkflow(ctx, req.(*WorkflowTerminateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_StopWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowStopRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).StopWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_StopWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).StopWorkflow(ctx, req.(*WorkflowStopRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_SetWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowSetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).SetWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_SetWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).SetWorkflow(ctx, req.(*WorkflowSetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_LintWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowLintRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).LintWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_LintWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).LintWorkflow(ctx, req.(*WorkflowLintRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowService_PodLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WorkflowLogRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WorkflowServiceServer).PodLogs(m, &grpc.GenericServerStream[WorkflowLogRequest, LogEntry]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WorkflowService_PodLogsServer = grpc.ServerStreamingServer[LogEntry] + +func _WorkflowService_WorkflowLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WorkflowLogRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WorkflowServiceServer).WorkflowLogs(m, &grpc.GenericServerStream[WorkflowLogRequest, LogEntry]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type WorkflowService_WorkflowLogsServer = grpc.ServerStreamingServer[LogEntry] + +func _WorkflowService_SubmitWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowSubmitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowServiceServer).SubmitWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowService_SubmitWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowServiceServer).SubmitWorkflow(ctx, req.(*WorkflowSubmitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// WorkflowService_ServiceDesc is the grpc.ServiceDesc for WorkflowService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var WorkflowService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "workflow.WorkflowService", + HandlerType: (*WorkflowServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateWorkflow", + Handler: _WorkflowService_CreateWorkflow_Handler, + }, + { + MethodName: "GetWorkflow", + Handler: _WorkflowService_GetWorkflow_Handler, + }, + { + MethodName: "ListWorkflows", + Handler: _WorkflowService_ListWorkflows_Handler, + }, + { + MethodName: "DeleteWorkflow", + Handler: _WorkflowService_DeleteWorkflow_Handler, + }, + { + MethodName: "RetryWorkflow", + Handler: _WorkflowService_RetryWorkflow_Handler, + }, + { + MethodName: "ResubmitWorkflow", + Handler: _WorkflowService_ResubmitWorkflow_Handler, + }, + { + MethodName: "ResumeWorkflow", + Handler: _WorkflowService_ResumeWorkflow_Handler, + }, + { + MethodName: "SuspendWorkflow", + Handler: _WorkflowService_SuspendWorkflow_Handler, + }, + { + MethodName: "TerminateWorkflow", + Handler: _WorkflowService_TerminateWorkflow_Handler, + }, + { + MethodName: "StopWorkflow", + Handler: _WorkflowService_StopWorkflow_Handler, + }, + { + MethodName: "SetWorkflow", + Handler: _WorkflowService_SetWorkflow_Handler, + }, + { + MethodName: "LintWorkflow", + Handler: _WorkflowService_LintWorkflow_Handler, + }, + { + MethodName: "SubmitWorkflow", + Handler: _WorkflowService_SubmitWorkflow_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "WatchWorkflows", + Handler: _WorkflowService_WatchWorkflows_Handler, + ServerStreams: true, + }, + { + StreamName: "WatchEvents", + Handler: _WorkflowService_WatchEvents_Handler, + ServerStreams: true, + }, + { + StreamName: "PodLogs", + Handler: _WorkflowService_PodLogs_Handler, + ServerStreams: true, + }, + { + StreamName: "WorkflowLogs", + Handler: _WorkflowService_WorkflowLogs_Handler, + ServerStreams: true, + }, + }, + Metadata: "pkg/apiclient/workflow/workflow.proto", +} diff --git a/pkg/apiclient/workflowarchive/workflow-archive.pb.go b/pkg/apiclient/workflowarchive/workflow-archive.pb.go index bca500086d9b..1267c2e6d638 100644 --- a/pkg/apiclient/workflowarchive/workflow-archive.pb.go +++ b/pkg/apiclient/workflowarchive/workflow-archive.pb.go @@ -1,2763 +1,636 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/workflowarchive/workflow-archive.proto package workflowarchive import ( - context "context" - fmt "fmt" v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ListArchivedWorkflowsRequest struct { - ListOptions *v1.ListOptions `protobuf:"bytes,1,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - NamePrefix string `protobuf:"bytes,2,opt,name=namePrefix,proto3" json:"namePrefix,omitempty"` - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ListOptions *v1.ListOptions `protobuf:"bytes,1,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + NamePrefix string `protobuf:"bytes,2,opt,name=namePrefix,proto3" json:"namePrefix,omitempty"` + Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact - NameFilter string `protobuf:"bytes,4,opt,name=nameFilter,proto3" json:"nameFilter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + NameFilter string `protobuf:"bytes,4,opt,name=nameFilter,proto3" json:"nameFilter,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ListArchivedWorkflowsRequest) Reset() { *m = ListArchivedWorkflowsRequest{} } -func (m *ListArchivedWorkflowsRequest) String() string { return proto.CompactTextString(m) } -func (*ListArchivedWorkflowsRequest) ProtoMessage() {} -func (*ListArchivedWorkflowsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_95ca9a2d33e8bb19, []int{0} -} -func (m *ListArchivedWorkflowsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListArchivedWorkflowsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListArchivedWorkflowsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ListArchivedWorkflowsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArchivedWorkflowsRequest.Merge(m, src) +func (x *ListArchivedWorkflowsRequest) Reset() { + *x = ListArchivedWorkflowsRequest{} + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListArchivedWorkflowsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListArchivedWorkflowsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListArchivedWorkflowsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListArchivedWorkflowsRequest proto.InternalMessageInfo -func (m *ListArchivedWorkflowsRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions - } - return nil +func (x *ListArchivedWorkflowsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListArchivedWorkflowsRequest) GetNamePrefix() string { - if m != nil { - return m.NamePrefix - } - return "" -} - -func (m *ListArchivedWorkflowsRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} +func (*ListArchivedWorkflowsRequest) ProtoMessage() {} -func (m *ListArchivedWorkflowsRequest) GetNameFilter() string { - if m != nil { - return m.NameFilter - } - return "" -} - -type GetArchivedWorkflowRequest struct { - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetArchivedWorkflowRequest) Reset() { *m = GetArchivedWorkflowRequest{} } -func (m *GetArchivedWorkflowRequest) String() string { return proto.CompactTextString(m) } -func (*GetArchivedWorkflowRequest) ProtoMessage() {} -func (*GetArchivedWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_95ca9a2d33e8bb19, []int{1} -} -func (m *GetArchivedWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetArchivedWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetArchivedWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ListArchivedWorkflowsRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *GetArchivedWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetArchivedWorkflowRequest.Merge(m, src) -} -func (m *GetArchivedWorkflowRequest) XXX_Size() int { - return m.Size() -} -func (m *GetArchivedWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetArchivedWorkflowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetArchivedWorkflowRequest proto.InternalMessageInfo - -func (m *GetArchivedWorkflowRequest) GetUid() string { - if m != nil { - return m.Uid - } - return "" -} - -func (m *GetArchivedWorkflowRequest) GetNamespace() string { - if m != nil { - return m.Namespace + return ms } - return "" + return mi.MessageOf(x) } -func (m *GetArchivedWorkflowRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type DeleteArchivedWorkflowRequest struct { - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ListArchivedWorkflowsRequest.ProtoReflect.Descriptor instead. +func (*ListArchivedWorkflowsRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescGZIP(), []int{0} } -func (m *DeleteArchivedWorkflowRequest) Reset() { *m = DeleteArchivedWorkflowRequest{} } -func (m *DeleteArchivedWorkflowRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteArchivedWorkflowRequest) ProtoMessage() {} -func (*DeleteArchivedWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_95ca9a2d33e8bb19, []int{2} -} -func (m *DeleteArchivedWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteArchivedWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteArchivedWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ListArchivedWorkflowsRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } + return nil } -func (m *DeleteArchivedWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteArchivedWorkflowRequest.Merge(m, src) -} -func (m *DeleteArchivedWorkflowRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteArchivedWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteArchivedWorkflowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteArchivedWorkflowRequest proto.InternalMessageInfo -func (m *DeleteArchivedWorkflowRequest) GetUid() string { - if m != nil { - return m.Uid +func (x *ListArchivedWorkflowsRequest) GetNamePrefix() string { + if x != nil { + return x.NamePrefix } return "" } -func (m *DeleteArchivedWorkflowRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *ListArchivedWorkflowsRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *DeleteArchivedWorkflowRequest) GetName() string { - if m != nil { - return m.Name +func (x *ListArchivedWorkflowsRequest) GetNameFilter() string { + if x != nil { + return x.NameFilter } return "" } -type ArchivedWorkflowDeletedResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type GetArchivedWorkflowRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ArchivedWorkflowDeletedResponse) Reset() { *m = ArchivedWorkflowDeletedResponse{} } -func (m *ArchivedWorkflowDeletedResponse) String() string { return proto.CompactTextString(m) } -func (*ArchivedWorkflowDeletedResponse) ProtoMessage() {} -func (*ArchivedWorkflowDeletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_95ca9a2d33e8bb19, []int{3} -} -func (m *ArchivedWorkflowDeletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ArchivedWorkflowDeletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ArchivedWorkflowDeletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ArchivedWorkflowDeletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArchivedWorkflowDeletedResponse.Merge(m, src) +func (x *GetArchivedWorkflowRequest) Reset() { + *x = GetArchivedWorkflowRequest{} + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ArchivedWorkflowDeletedResponse) XXX_Size() int { - return m.Size() -} -func (m *ArchivedWorkflowDeletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ArchivedWorkflowDeletedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ArchivedWorkflowDeletedResponse proto.InternalMessageInfo -type ListArchivedWorkflowLabelKeysRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GetArchivedWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListArchivedWorkflowLabelKeysRequest) Reset() { *m = ListArchivedWorkflowLabelKeysRequest{} } -func (m *ListArchivedWorkflowLabelKeysRequest) String() string { return proto.CompactTextString(m) } -func (*ListArchivedWorkflowLabelKeysRequest) ProtoMessage() {} -func (*ListArchivedWorkflowLabelKeysRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_95ca9a2d33e8bb19, []int{4} -} -func (m *ListArchivedWorkflowLabelKeysRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListArchivedWorkflowLabelKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListArchivedWorkflowLabelKeysRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ListArchivedWorkflowLabelKeysRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArchivedWorkflowLabelKeysRequest.Merge(m, src) -} -func (m *ListArchivedWorkflowLabelKeysRequest) XXX_Size() int { - return m.Size() -} -func (m *ListArchivedWorkflowLabelKeysRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListArchivedWorkflowLabelKeysRequest.DiscardUnknown(m) -} +func (*GetArchivedWorkflowRequest) ProtoMessage() {} -var xxx_messageInfo_ListArchivedWorkflowLabelKeysRequest proto.InternalMessageInfo - -func (m *ListArchivedWorkflowLabelKeysRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -type ListArchivedWorkflowLabelValuesRequest struct { - ListOptions *v1.ListOptions `protobuf:"bytes,1,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListArchivedWorkflowLabelValuesRequest) Reset() { - *m = ListArchivedWorkflowLabelValuesRequest{} -} -func (m *ListArchivedWorkflowLabelValuesRequest) String() string { return proto.CompactTextString(m) } -func (*ListArchivedWorkflowLabelValuesRequest) ProtoMessage() {} -func (*ListArchivedWorkflowLabelValuesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_95ca9a2d33e8bb19, []int{5} -} -func (m *ListArchivedWorkflowLabelValuesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListArchivedWorkflowLabelValuesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListArchivedWorkflowLabelValuesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *GetArchivedWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ListArchivedWorkflowLabelValuesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArchivedWorkflowLabelValuesRequest.Merge(m, src) -} -func (m *ListArchivedWorkflowLabelValuesRequest) XXX_Size() int { - return m.Size() -} -func (m *ListArchivedWorkflowLabelValuesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListArchivedWorkflowLabelValuesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListArchivedWorkflowLabelValuesRequest proto.InternalMessageInfo -func (m *ListArchivedWorkflowLabelValuesRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions - } - return nil +// Deprecated: Use GetArchivedWorkflowRequest.ProtoReflect.Descriptor instead. +func (*GetArchivedWorkflowRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescGZIP(), []int{1} } -func (m *ListArchivedWorkflowLabelValuesRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *GetArchivedWorkflowRequest) GetUid() string { + if x != nil { + return x.Uid } return "" } -type RetryArchivedWorkflowRequest struct { - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` - RestartSuccessful bool `protobuf:"varint,4,opt,name=restartSuccessful,proto3" json:"restartSuccessful,omitempty"` - NodeFieldSelector string `protobuf:"bytes,5,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` - Parameters []string `protobuf:"bytes,6,rep,name=parameters,proto3" json:"parameters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RetryArchivedWorkflowRequest) Reset() { *m = RetryArchivedWorkflowRequest{} } -func (m *RetryArchivedWorkflowRequest) String() string { return proto.CompactTextString(m) } -func (*RetryArchivedWorkflowRequest) ProtoMessage() {} -func (*RetryArchivedWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_95ca9a2d33e8bb19, []int{6} -} -func (m *RetryArchivedWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RetryArchivedWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RetryArchivedWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RetryArchivedWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RetryArchivedWorkflowRequest.Merge(m, src) -} -func (m *RetryArchivedWorkflowRequest) XXX_Size() int { - return m.Size() -} -func (m *RetryArchivedWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RetryArchivedWorkflowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RetryArchivedWorkflowRequest proto.InternalMessageInfo - -func (m *RetryArchivedWorkflowRequest) GetUid() string { - if m != nil { - return m.Uid +func (x *GetArchivedWorkflowRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *RetryArchivedWorkflowRequest) GetName() string { - if m != nil { - return m.Name +func (x *GetArchivedWorkflowRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *RetryArchivedWorkflowRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +type DeleteArchivedWorkflowRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *RetryArchivedWorkflowRequest) GetRestartSuccessful() bool { - if m != nil { - return m.RestartSuccessful - } - return false +func (x *DeleteArchivedWorkflowRequest) Reset() { + *x = DeleteArchivedWorkflowRequest{} + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *RetryArchivedWorkflowRequest) GetNodeFieldSelector() string { - if m != nil { - return m.NodeFieldSelector - } - return "" +func (x *DeleteArchivedWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RetryArchivedWorkflowRequest) GetParameters() []string { - if m != nil { - return m.Parameters - } - return nil -} +func (*DeleteArchivedWorkflowRequest) ProtoMessage() {} -type ResubmitArchivedWorkflowRequest struct { - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` - Memoized bool `protobuf:"varint,4,opt,name=memoized,proto3" json:"memoized,omitempty"` - Parameters []string `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResubmitArchivedWorkflowRequest) Reset() { *m = ResubmitArchivedWorkflowRequest{} } -func (m *ResubmitArchivedWorkflowRequest) String() string { return proto.CompactTextString(m) } -func (*ResubmitArchivedWorkflowRequest) ProtoMessage() {} -func (*ResubmitArchivedWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_95ca9a2d33e8bb19, []int{7} -} -func (m *ResubmitArchivedWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResubmitArchivedWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResubmitArchivedWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *DeleteArchivedWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ResubmitArchivedWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResubmitArchivedWorkflowRequest.Merge(m, src) -} -func (m *ResubmitArchivedWorkflowRequest) XXX_Size() int { - return m.Size() -} -func (m *ResubmitArchivedWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResubmitArchivedWorkflowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ResubmitArchivedWorkflowRequest proto.InternalMessageInfo -func (m *ResubmitArchivedWorkflowRequest) GetUid() string { - if m != nil { - return m.Uid - } - return "" +// Deprecated: Use DeleteArchivedWorkflowRequest.ProtoReflect.Descriptor instead. +func (*DeleteArchivedWorkflowRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescGZIP(), []int{2} } -func (m *ResubmitArchivedWorkflowRequest) GetName() string { - if m != nil { - return m.Name +func (x *DeleteArchivedWorkflowRequest) GetUid() string { + if x != nil { + return x.Uid } return "" } -func (m *ResubmitArchivedWorkflowRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *DeleteArchivedWorkflowRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *ResubmitArchivedWorkflowRequest) GetMemoized() bool { - if m != nil { - return m.Memoized - } - return false -} - -func (m *ResubmitArchivedWorkflowRequest) GetParameters() []string { - if m != nil { - return m.Parameters - } - return nil -} - -func init() { - proto.RegisterType((*ListArchivedWorkflowsRequest)(nil), "workflowarchive.ListArchivedWorkflowsRequest") - proto.RegisterType((*GetArchivedWorkflowRequest)(nil), "workflowarchive.GetArchivedWorkflowRequest") - proto.RegisterType((*DeleteArchivedWorkflowRequest)(nil), "workflowarchive.DeleteArchivedWorkflowRequest") - proto.RegisterType((*ArchivedWorkflowDeletedResponse)(nil), "workflowarchive.ArchivedWorkflowDeletedResponse") - proto.RegisterType((*ListArchivedWorkflowLabelKeysRequest)(nil), "workflowarchive.ListArchivedWorkflowLabelKeysRequest") - proto.RegisterType((*ListArchivedWorkflowLabelValuesRequest)(nil), "workflowarchive.ListArchivedWorkflowLabelValuesRequest") - proto.RegisterType((*RetryArchivedWorkflowRequest)(nil), "workflowarchive.RetryArchivedWorkflowRequest") - proto.RegisterType((*ResubmitArchivedWorkflowRequest)(nil), "workflowarchive.ResubmitArchivedWorkflowRequest") -} - -func init() { - proto.RegisterFile("pkg/apiclient/workflowarchive/workflow-archive.proto", fileDescriptor_95ca9a2d33e8bb19) -} - -var fileDescriptor_95ca9a2d33e8bb19 = []byte{ - // 802 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4d, 0x6f, 0xeb, 0x44, - 0x14, 0xd5, 0xa4, 0xef, 0x3d, 0xbd, 0x4e, 0x17, 0xc0, 0xa0, 0x07, 0x91, 0x95, 0x97, 0x06, 0x0b, - 0xfa, 0x49, 0xc6, 0x4d, 0x09, 0x02, 0x75, 0x07, 0x54, 0x45, 0xa2, 0x05, 0x8a, 0x23, 0x81, 0xc4, - 0x06, 0x26, 0xf6, 0x6d, 0x32, 0xc4, 0xf6, 0x98, 0x99, 0xb1, 0x4b, 0x41, 0x6c, 0xe0, 0x27, 0xb0, - 0x64, 0x85, 0xc4, 0x8f, 0x40, 0xec, 0x91, 0x58, 0x21, 0x3e, 0x76, 0x2c, 0x10, 0xaa, 0xf8, 0x21, - 0xc8, 0x76, 0x1c, 0xb7, 0x8e, 0xf3, 0x81, 0x48, 0x77, 0x33, 0x77, 0xee, 0xdc, 0x73, 0xce, 0xf5, - 0xf5, 0xd1, 0xe0, 0x6e, 0x38, 0x1a, 0x58, 0x2c, 0xe4, 0x8e, 0xc7, 0x21, 0xd0, 0xd6, 0xa5, 0x90, - 0xa3, 0x0b, 0x4f, 0x5c, 0x32, 0xe9, 0x0c, 0x79, 0x0c, 0x93, 0x7d, 0x7b, 0x1c, 0xa0, 0xa1, 0x14, - 0x5a, 0x90, 0x27, 0x4a, 0x79, 0xc6, 0xf9, 0x80, 0xeb, 0x61, 0xd4, 0xa7, 0x8e, 0xf0, 0x2d, 0x26, - 0x07, 0x22, 0x94, 0xe2, 0x93, 0x74, 0xd1, 0xce, 0x33, 0x95, 0x15, 0x77, 0xad, 0x31, 0x98, 0x9a, - 0xd4, 0xb5, 0xe2, 0x0e, 0xf3, 0xc2, 0x21, 0xeb, 0x58, 0x03, 0x08, 0x40, 0x32, 0x0d, 0x6e, 0x06, - 0x61, 0x34, 0x06, 0x42, 0x0c, 0x3c, 0x48, 0xd2, 0x2d, 0x16, 0x04, 0x42, 0x33, 0xcd, 0x45, 0xa0, - 0xc6, 0xa7, 0xdd, 0xd1, 0xab, 0x8a, 0x72, 0x91, 0x9c, 0xfa, 0xcc, 0x19, 0xf2, 0x00, 0xe4, 0x55, - 0x51, 0xdd, 0x07, 0xcd, 0xac, 0x78, 0xaa, 0xa6, 0xf9, 0x1b, 0xc2, 0x8d, 0x33, 0xae, 0xf4, 0x6b, - 0x19, 0x6b, 0xf7, 0x83, 0x9c, 0x9b, 0x0d, 0x9f, 0x46, 0xa0, 0x34, 0xe9, 0xe1, 0x0d, 0x8f, 0x2b, - 0xfd, 0x6e, 0x98, 0x62, 0xd5, 0x51, 0x0b, 0xed, 0x6c, 0x1c, 0x76, 0x68, 0x06, 0x46, 0x6f, 0x82, - 0xd1, 0x70, 0x34, 0x48, 0x02, 0x8a, 0x26, 0x60, 0x34, 0xee, 0xd0, 0xb3, 0xe2, 0xa2, 0x7d, 0xb3, - 0x0a, 0x69, 0x62, 0x1c, 0x30, 0x1f, 0xce, 0x25, 0x5c, 0xf0, 0xcf, 0xea, 0xb5, 0x16, 0xda, 0x59, - 0xb7, 0x6f, 0x44, 0x48, 0x03, 0xaf, 0x27, 0x3b, 0x15, 0x32, 0x07, 0xea, 0x6b, 0xe9, 0x71, 0x11, - 0xc8, 0x6f, 0x9f, 0x70, 0x4f, 0x83, 0xac, 0xdf, 0x2b, 0x6e, 0x67, 0x11, 0xf3, 0x63, 0x6c, 0xbc, - 0x09, 0x53, 0x8a, 0x72, 0x41, 0x4f, 0xe2, 0xb5, 0x88, 0xbb, 0xa9, 0x90, 0x75, 0x3b, 0x59, 0xde, - 0x46, 0xab, 0x95, 0xd1, 0x08, 0xbe, 0x97, 0x6c, 0xc6, 0x34, 0xd2, 0xb5, 0xe9, 0xe0, 0xc7, 0xc7, - 0xe0, 0x81, 0x86, 0xbb, 0x04, 0x79, 0x0e, 0x6f, 0x96, 0xcb, 0x67, 0xa0, 0xae, 0x0d, 0x2a, 0x14, - 0x81, 0x02, 0xf3, 0x18, 0x3f, 0x5f, 0xf5, 0xf1, 0xce, 0x58, 0x1f, 0xbc, 0x53, 0xb8, 0x9a, 0x7c, - 0xc4, 0x5b, 0xe0, 0xa8, 0x04, 0x6e, 0x7e, 0x8b, 0xf0, 0xd6, 0xcc, 0x32, 0xef, 0x33, 0x2f, 0x82, - 0xbb, 0x9d, 0x86, 0xb9, 0xad, 0x31, 0xff, 0x42, 0xb8, 0x61, 0x83, 0x96, 0x57, 0xcb, 0xf7, 0x3a, - 0xef, 0x66, 0xad, 0xe8, 0xe6, 0x82, 0x91, 0x7a, 0x11, 0x3f, 0x25, 0x41, 0x69, 0x26, 0x75, 0x2f, - 0x72, 0x1c, 0x50, 0xea, 0x22, 0xf2, 0xd2, 0xc9, 0x7a, 0x68, 0x4f, 0x1f, 0x24, 0xd9, 0x81, 0x70, - 0xe1, 0x84, 0x83, 0xe7, 0xf6, 0xc0, 0x03, 0x47, 0x0b, 0x59, 0xbf, 0x9f, 0xd6, 0x9c, 0x3e, 0x48, - 0xc6, 0x35, 0x64, 0x92, 0xf9, 0xa0, 0x41, 0xaa, 0xfa, 0x83, 0xd6, 0x5a, 0x32, 0xae, 0x45, 0xc4, - 0xfc, 0x0e, 0xe1, 0x4d, 0x1b, 0x54, 0xd4, 0xf7, 0xb9, 0xbe, 0x4b, 0x8d, 0x06, 0x7e, 0xe8, 0x83, - 0x2f, 0xf8, 0xe7, 0xe0, 0x8e, 0xa5, 0x4d, 0xf6, 0x25, 0x8e, 0xf7, 0xcb, 0x1c, 0x0f, 0xbf, 0xde, - 0xc0, 0xcf, 0x96, 0xb9, 0xf5, 0x40, 0xc6, 0xdc, 0x01, 0xf2, 0x23, 0xc2, 0x8f, 0x2a, 0x2d, 0x84, - 0xb4, 0x69, 0xc9, 0x14, 0xe9, 0x3c, 0xab, 0x31, 0xde, 0xa1, 0x85, 0x65, 0xd2, 0xdc, 0x32, 0xd3, - 0xc5, 0x47, 0x13, 0xcb, 0xa4, 0x71, 0xb7, 0x98, 0xac, 0x3c, 0x4a, 0x73, 0xcb, 0xa4, 0x93, 0xd1, - 0xe5, 0x4a, 0x9b, 0xe6, 0x57, 0x7f, 0xfc, 0xf3, 0x4d, 0xad, 0x41, 0x8c, 0xd4, 0x31, 0xe3, 0x8e, - 0x35, 0x66, 0xe1, 0x16, 0x0e, 0x4c, 0x7e, 0x40, 0xf8, 0xe9, 0x0a, 0xb3, 0x20, 0xfb, 0x53, 0xd4, - 0x67, 0x5b, 0x8a, 0xf1, 0xd6, 0xea, 0x88, 0x9b, 0x3b, 0x29, 0x69, 0x93, 0xb4, 0x66, 0x93, 0xb6, - 0xbe, 0x88, 0xb8, 0xfb, 0x25, 0xf9, 0x1e, 0xe1, 0x67, 0xaa, 0x5d, 0x88, 0xd0, 0x29, 0xf6, 0x73, - 0xed, 0xca, 0x38, 0x98, 0xca, 0x5f, 0xe4, 0x3c, 0x63, 0x9a, 0x7b, 0x8b, 0x69, 0xfe, 0x8e, 0xf0, - 0xe3, 0xb9, 0x26, 0x45, 0x5e, 0x5e, 0x6a, 0x4c, 0xca, 0xa6, 0x66, 0x9c, 0xfe, 0xff, 0xae, 0x4f, - 0x6a, 0x9a, 0xed, 0x54, 0xcf, 0x36, 0x79, 0x61, 0xb6, 0x9e, 0xb6, 0x97, 0x64, 0xb7, 0x47, 0x09, - 0xe5, 0x3f, 0x11, 0xde, 0x5c, 0x60, 0x99, 0xe4, 0x95, 0xe5, 0x65, 0xdd, 0x32, 0x59, 0xe3, 0xed, - 0x15, 0x09, 0xcb, 0xaa, 0x9a, 0x56, 0x2a, 0x6d, 0x97, 0x6c, 0x2f, 0x94, 0x16, 0x67, 0xc4, 0x7f, - 0x42, 0xf8, 0x51, 0xa5, 0xe3, 0x56, 0xfc, 0xd0, 0xf3, 0x9c, 0x79, 0xa5, 0xff, 0x45, 0x27, 0x55, - 0xb1, 0x6f, 0x6c, 0x2d, 0x1a, 0x38, 0x4b, 0x26, 0x94, 0x8e, 0xd0, 0x1e, 0xf9, 0x05, 0xe1, 0xfa, - 0x2c, 0x63, 0x25, 0x07, 0x15, 0x52, 0xe6, 0x7a, 0xf0, 0x4a, 0xd5, 0x74, 0x53, 0x35, 0xd4, 0xd8, - 0x5d, 0x42, 0x4d, 0xc6, 0xea, 0x08, 0xed, 0xbd, 0xfe, 0xde, 0xcf, 0xd7, 0x4d, 0xf4, 0xeb, 0x75, - 0x13, 0xfd, 0x7d, 0xdd, 0x44, 0x1f, 0xbe, 0xf1, 0x9f, 0x1e, 0x98, 0xd5, 0xaf, 0xd9, 0xfe, 0x83, - 0xf4, 0x19, 0xf8, 0xd2, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc8, 0xef, 0x9d, 0xd7, 0xf5, 0x0a, - 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ArchivedWorkflowServiceClient is the client API for ArchivedWorkflowService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ArchivedWorkflowServiceClient interface { - ListArchivedWorkflows(ctx context.Context, in *ListArchivedWorkflowsRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowList, error) - GetArchivedWorkflow(ctx context.Context, in *GetArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - DeleteArchivedWorkflow(ctx context.Context, in *DeleteArchivedWorkflowRequest, opts ...grpc.CallOption) (*ArchivedWorkflowDeletedResponse, error) - ListArchivedWorkflowLabelKeys(ctx context.Context, in *ListArchivedWorkflowLabelKeysRequest, opts ...grpc.CallOption) (*v1alpha1.LabelKeys, error) - ListArchivedWorkflowLabelValues(ctx context.Context, in *ListArchivedWorkflowLabelValuesRequest, opts ...grpc.CallOption) (*v1alpha1.LabelValues, error) - RetryArchivedWorkflow(ctx context.Context, in *RetryArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) - ResubmitArchivedWorkflow(ctx context.Context, in *ResubmitArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) -} - -type archivedWorkflowServiceClient struct { - cc *grpc.ClientConn -} - -func NewArchivedWorkflowServiceClient(cc *grpc.ClientConn) ArchivedWorkflowServiceClient { - return &archivedWorkflowServiceClient{cc} -} - -func (c *archivedWorkflowServiceClient) ListArchivedWorkflows(ctx context.Context, in *ListArchivedWorkflowsRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowList, error) { - out := new(v1alpha1.WorkflowList) - err := c.cc.Invoke(ctx, "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflows", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *archivedWorkflowServiceClient) GetArchivedWorkflow(ctx context.Context, in *GetArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflowarchive.ArchivedWorkflowService/GetArchivedWorkflow", in, out, opts...) - if err != nil { - return nil, err +func (x *DeleteArchivedWorkflowRequest) GetName() string { + if x != nil { + return x.Name } - return out, nil + return "" } -func (c *archivedWorkflowServiceClient) DeleteArchivedWorkflow(ctx context.Context, in *DeleteArchivedWorkflowRequest, opts ...grpc.CallOption) (*ArchivedWorkflowDeletedResponse, error) { - out := new(ArchivedWorkflowDeletedResponse) - err := c.cc.Invoke(ctx, "/workflowarchive.ArchivedWorkflowService/DeleteArchivedWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type ArchivedWorkflowDeletedResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (c *archivedWorkflowServiceClient) ListArchivedWorkflowLabelKeys(ctx context.Context, in *ListArchivedWorkflowLabelKeysRequest, opts ...grpc.CallOption) (*v1alpha1.LabelKeys, error) { - out := new(v1alpha1.LabelKeys) - err := c.cc.Invoke(ctx, "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelKeys", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *ArchivedWorkflowDeletedResponse) Reset() { + *x = ArchivedWorkflowDeletedResponse{} + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (c *archivedWorkflowServiceClient) ListArchivedWorkflowLabelValues(ctx context.Context, in *ListArchivedWorkflowLabelValuesRequest, opts ...grpc.CallOption) (*v1alpha1.LabelValues, error) { - out := new(v1alpha1.LabelValues) - err := c.cc.Invoke(ctx, "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelValues", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *ArchivedWorkflowDeletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *archivedWorkflowServiceClient) RetryArchivedWorkflow(ctx context.Context, in *RetryArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflowarchive.ArchivedWorkflowService/RetryArchivedWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*ArchivedWorkflowDeletedResponse) ProtoMessage() {} -func (c *archivedWorkflowServiceClient) ResubmitArchivedWorkflow(ctx context.Context, in *ResubmitArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { - out := new(v1alpha1.Workflow) - err := c.cc.Invoke(ctx, "/workflowarchive.ArchivedWorkflowService/ResubmitArchivedWorkflow", in, out, opts...) - if err != nil { - return nil, err +func (x *ArchivedWorkflowDeletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil -} - -// ArchivedWorkflowServiceServer is the server API for ArchivedWorkflowService service. -type ArchivedWorkflowServiceServer interface { - ListArchivedWorkflows(context.Context, *ListArchivedWorkflowsRequest) (*v1alpha1.WorkflowList, error) - GetArchivedWorkflow(context.Context, *GetArchivedWorkflowRequest) (*v1alpha1.Workflow, error) - DeleteArchivedWorkflow(context.Context, *DeleteArchivedWorkflowRequest) (*ArchivedWorkflowDeletedResponse, error) - ListArchivedWorkflowLabelKeys(context.Context, *ListArchivedWorkflowLabelKeysRequest) (*v1alpha1.LabelKeys, error) - ListArchivedWorkflowLabelValues(context.Context, *ListArchivedWorkflowLabelValuesRequest) (*v1alpha1.LabelValues, error) - RetryArchivedWorkflow(context.Context, *RetryArchivedWorkflowRequest) (*v1alpha1.Workflow, error) - ResubmitArchivedWorkflow(context.Context, *ResubmitArchivedWorkflowRequest) (*v1alpha1.Workflow, error) + return mi.MessageOf(x) } -// UnimplementedArchivedWorkflowServiceServer can be embedded to have forward compatible implementations. -type UnimplementedArchivedWorkflowServiceServer struct { -} - -func (*UnimplementedArchivedWorkflowServiceServer) ListArchivedWorkflows(ctx context.Context, req *ListArchivedWorkflowsRequest) (*v1alpha1.WorkflowList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListArchivedWorkflows not implemented") -} -func (*UnimplementedArchivedWorkflowServiceServer) GetArchivedWorkflow(ctx context.Context, req *GetArchivedWorkflowRequest) (*v1alpha1.Workflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetArchivedWorkflow not implemented") -} -func (*UnimplementedArchivedWorkflowServiceServer) DeleteArchivedWorkflow(ctx context.Context, req *DeleteArchivedWorkflowRequest) (*ArchivedWorkflowDeletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteArchivedWorkflow not implemented") -} -func (*UnimplementedArchivedWorkflowServiceServer) ListArchivedWorkflowLabelKeys(ctx context.Context, req *ListArchivedWorkflowLabelKeysRequest) (*v1alpha1.LabelKeys, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListArchivedWorkflowLabelKeys not implemented") -} -func (*UnimplementedArchivedWorkflowServiceServer) ListArchivedWorkflowLabelValues(ctx context.Context, req *ListArchivedWorkflowLabelValuesRequest) (*v1alpha1.LabelValues, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListArchivedWorkflowLabelValues not implemented") -} -func (*UnimplementedArchivedWorkflowServiceServer) RetryArchivedWorkflow(ctx context.Context, req *RetryArchivedWorkflowRequest) (*v1alpha1.Workflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method RetryArchivedWorkflow not implemented") -} -func (*UnimplementedArchivedWorkflowServiceServer) ResubmitArchivedWorkflow(ctx context.Context, req *ResubmitArchivedWorkflowRequest) (*v1alpha1.Workflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResubmitArchivedWorkflow not implemented") +// Deprecated: Use ArchivedWorkflowDeletedResponse.ProtoReflect.Descriptor instead. +func (*ArchivedWorkflowDeletedResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescGZIP(), []int{3} } -func RegisterArchivedWorkflowServiceServer(s *grpc.Server, srv ArchivedWorkflowServiceServer) { - s.RegisterService(&_ArchivedWorkflowService_serviceDesc, srv) +type ListArchivedWorkflowLabelKeysRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func _ArchivedWorkflowService_ListArchivedWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListArchivedWorkflowsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflows(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflows", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflows(ctx, req.(*ListArchivedWorkflowsRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *ListArchivedWorkflowLabelKeysRequest) Reset() { + *x = ListArchivedWorkflowLabelKeysRequest{} + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func _ArchivedWorkflowService_GetArchivedWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetArchivedWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArchivedWorkflowServiceServer).GetArchivedWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowarchive.ArchivedWorkflowService/GetArchivedWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArchivedWorkflowServiceServer).GetArchivedWorkflow(ctx, req.(*GetArchivedWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *ListArchivedWorkflowLabelKeysRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func _ArchivedWorkflowService_DeleteArchivedWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteArchivedWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArchivedWorkflowServiceServer).DeleteArchivedWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowarchive.ArchivedWorkflowService/DeleteArchivedWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArchivedWorkflowServiceServer).DeleteArchivedWorkflow(ctx, req.(*DeleteArchivedWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*ListArchivedWorkflowLabelKeysRequest) ProtoMessage() {} -func _ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListArchivedWorkflowLabelKeysRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflowLabelKeys(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelKeys", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflowLabelKeys(ctx, req.(*ListArchivedWorkflowLabelKeysRequest)) +func (x *ListArchivedWorkflowLabelKeysRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _ArchivedWorkflowService_ListArchivedWorkflowLabelValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListArchivedWorkflowLabelValuesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflowLabelValues(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelValues", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflowLabelValues(ctx, req.(*ListArchivedWorkflowLabelValuesRequest)) - } - return interceptor(ctx, in, info, handler) +// Deprecated: Use ListArchivedWorkflowLabelKeysRequest.ProtoReflect.Descriptor instead. +func (*ListArchivedWorkflowLabelKeysRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescGZIP(), []int{4} } -func _ArchivedWorkflowService_RetryArchivedWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RetryArchivedWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArchivedWorkflowServiceServer).RetryArchivedWorkflow(ctx, in) +func (x *ListArchivedWorkflowLabelKeysRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowarchive.ArchivedWorkflowService/RetryArchivedWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArchivedWorkflowServiceServer).RetryArchivedWorkflow(ctx, req.(*RetryArchivedWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _ArchivedWorkflowService_ResubmitArchivedWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResubmitArchivedWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArchivedWorkflowServiceServer).ResubmitArchivedWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowarchive.ArchivedWorkflowService/ResubmitArchivedWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArchivedWorkflowServiceServer).ResubmitArchivedWorkflow(ctx, req.(*ResubmitArchivedWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) +type ListArchivedWorkflowLabelValuesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ListOptions *v1.ListOptions `protobuf:"bytes,1,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -var _ArchivedWorkflowService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "workflowarchive.ArchivedWorkflowService", - HandlerType: (*ArchivedWorkflowServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListArchivedWorkflows", - Handler: _ArchivedWorkflowService_ListArchivedWorkflows_Handler, - }, - { - MethodName: "GetArchivedWorkflow", - Handler: _ArchivedWorkflowService_GetArchivedWorkflow_Handler, - }, - { - MethodName: "DeleteArchivedWorkflow", - Handler: _ArchivedWorkflowService_DeleteArchivedWorkflow_Handler, - }, - { - MethodName: "ListArchivedWorkflowLabelKeys", - Handler: _ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_Handler, - }, - { - MethodName: "ListArchivedWorkflowLabelValues", - Handler: _ArchivedWorkflowService_ListArchivedWorkflowLabelValues_Handler, - }, - { - MethodName: "RetryArchivedWorkflow", - Handler: _ArchivedWorkflowService_RetryArchivedWorkflow_Handler, - }, - { - MethodName: "ResubmitArchivedWorkflow", - Handler: _ArchivedWorkflowService_ResubmitArchivedWorkflow_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/apiclient/workflowarchive/workflow-archive.proto", +func (x *ListArchivedWorkflowLabelValuesRequest) Reset() { + *x = ListArchivedWorkflowLabelValuesRequest{} + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListArchivedWorkflowsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *ListArchivedWorkflowLabelValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListArchivedWorkflowsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ListArchivedWorkflowLabelValuesRequest) ProtoMessage() {} -func (m *ListArchivedWorkflowsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.NameFilter) > 0 { - i -= len(m.NameFilter) - copy(dAtA[i:], m.NameFilter) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.NameFilter))) - i-- - dAtA[i] = 0x22 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x1a - } - if len(m.NamePrefix) > 0 { - i -= len(m.NamePrefix) - copy(dAtA[i:], m.NamePrefix) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.NamePrefix))) - i-- - dAtA[i] = 0x12 - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowArchive(dAtA, i, uint64(size)) +func (x *ListArchivedWorkflowLabelValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *GetArchivedWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetArchivedWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetArchivedWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Uid) > 0 { - i -= len(m.Uid) - copy(dAtA[i:], m.Uid) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Uid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeleteArchivedWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteArchivedWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteArchivedWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Uid) > 0 { - i -= len(m.Uid) - copy(dAtA[i:], m.Uid) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Uid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ArchivedWorkflowDeletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ArchivedWorkflowDeletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ListArchivedWorkflowLabelValuesRequest.ProtoReflect.Descriptor instead. +func (*ListArchivedWorkflowLabelValuesRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescGZIP(), []int{5} } -func (m *ArchivedWorkflowDeletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *ListArchivedWorkflowLabelValuesRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } - return len(dAtA) - i, nil + return nil } -func (m *ListArchivedWorkflowLabelKeysRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ListArchivedWorkflowLabelValuesRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return dAtA[:n], nil + return "" } -func (m *ListArchivedWorkflowLabelKeysRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type RetryArchivedWorkflowRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` + RestartSuccessful bool `protobuf:"varint,4,opt,name=restartSuccessful,proto3" json:"restartSuccessful,omitempty"` + NodeFieldSelector string `protobuf:"bytes,5,opt,name=nodeFieldSelector,proto3" json:"nodeFieldSelector,omitempty"` + Parameters []string `protobuf:"bytes,6,rep,name=parameters,proto3" json:"parameters,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ListArchivedWorkflowLabelKeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *RetryArchivedWorkflowRequest) Reset() { + *x = RetryArchivedWorkflowRequest{} + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListArchivedWorkflowLabelValuesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *RetryArchivedWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListArchivedWorkflowLabelValuesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*RetryArchivedWorkflowRequest) ProtoMessage() {} -func (m *ListArchivedWorkflowLabelValuesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowArchive(dAtA, i, uint64(size)) +func (x *RetryArchivedWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *RetryArchivedWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RetryArchivedWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use RetryArchivedWorkflowRequest.ProtoReflect.Descriptor instead. +func (*RetryArchivedWorkflowRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescGZIP(), []int{6} } -func (m *RetryArchivedWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Parameters) > 0 { - for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Parameters[iNdEx]) - copy(dAtA[i:], m.Parameters[iNdEx]) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Parameters[iNdEx]))) - i-- - dAtA[i] = 0x32 - } - } - if len(m.NodeFieldSelector) > 0 { - i -= len(m.NodeFieldSelector) - copy(dAtA[i:], m.NodeFieldSelector) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.NodeFieldSelector))) - i-- - dAtA[i] = 0x2a - } - if m.RestartSuccessful { - i-- - if m.RestartSuccessful { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Uid) > 0 { - i -= len(m.Uid) - copy(dAtA[i:], m.Uid) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Uid))) - i-- - dAtA[i] = 0xa +func (x *RetryArchivedWorkflowRequest) GetUid() string { + if x != nil { + return x.Uid } - return len(dAtA) - i, nil + return "" } -func (m *ResubmitArchivedWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RetryArchivedWorkflowRequest) GetName() string { + if x != nil { + return x.Name } - return dAtA[:n], nil -} - -func (m *ResubmitArchivedWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *ResubmitArchivedWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Parameters) > 0 { - for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Parameters[iNdEx]) - copy(dAtA[i:], m.Parameters[iNdEx]) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Parameters[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if m.Memoized { - i-- - if m.Memoized { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Uid) > 0 { - i -= len(m.Uid) - copy(dAtA[i:], m.Uid) - i = encodeVarintWorkflowArchive(dAtA, i, uint64(len(m.Uid))) - i-- - dAtA[i] = 0xa +func (x *RetryArchivedWorkflowRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return len(dAtA) - i, nil + return "" } -func encodeVarintWorkflowArchive(dAtA []byte, offset int, v uint64) int { - offset -= sovWorkflowArchive(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ListArchivedWorkflowsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.NamePrefix) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) +func (x *RetryArchivedWorkflowRequest) GetRestartSuccessful() bool { + if x != nil { + return x.RestartSuccessful } - l = len(m.NameFilter) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return false } -func (m *GetArchivedWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) +func (x *RetryArchivedWorkflowRequest) GetNodeFieldSelector() string { + if x != nil { + return x.NodeFieldSelector } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *DeleteArchivedWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) +func (x *RetryArchivedWorkflowRequest) GetParameters() []string { + if x != nil { + return x.Parameters } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return nil } -func (m *ArchivedWorkflowDeletedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type ResubmitArchivedWorkflowRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` + Memoized bool `protobuf:"varint,4,opt,name=memoized,proto3" json:"memoized,omitempty"` + Parameters []string `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *ListArchivedWorkflowLabelKeysRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *ResubmitArchivedWorkflowRequest) Reset() { + *x = ResubmitArchivedWorkflowRequest{} + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *ListArchivedWorkflowLabelValuesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *ResubmitArchivedWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RetryArchivedWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - if m.RestartSuccessful { - n += 2 - } - l = len(m.NodeFieldSelector) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - if len(m.Parameters) > 0 { - for _, s := range m.Parameters { - l = len(s) - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*ResubmitArchivedWorkflowRequest) ProtoMessage() {} -func (m *ResubmitArchivedWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowArchive(uint64(l)) - } - if m.Memoized { - n += 2 - } - if len(m.Parameters) > 0 { - for _, s := range m.Parameters { - l = len(s) - n += 1 + l + sovWorkflowArchive(uint64(l)) +func (x *ResubmitArchivedWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovWorkflowArchive(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozWorkflowArchive(x uint64) (n int) { - return sovWorkflowArchive(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ListArchivedWorkflowsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListArchivedWorkflowsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListArchivedWorkflowsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NamePrefix", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NamePrefix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NameFilter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NameFilter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowArchive(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowArchive - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *GetArchivedWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetArchivedWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetArchivedWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowArchive(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowArchive - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use ResubmitArchivedWorkflowRequest.ProtoReflect.Descriptor instead. +func (*ResubmitArchivedWorkflowRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescGZIP(), []int{7} } -func (m *DeleteArchivedWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteArchivedWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteArchivedWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowArchive(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowArchive - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ResubmitArchivedWorkflowRequest) GetUid() string { + if x != nil { + return x.Uid } - return nil + return "" } -func (m *ArchivedWorkflowDeletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ArchivedWorkflowDeletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ArchivedWorkflowDeletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipWorkflowArchive(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowArchive - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ResubmitArchivedWorkflowRequest) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *ListArchivedWorkflowLabelKeysRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListArchivedWorkflowLabelKeysRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListArchivedWorkflowLabelKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowArchive(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowArchive - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ResubmitArchivedWorkflowRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return nil + return "" } -func (m *ListArchivedWorkflowLabelValuesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListArchivedWorkflowLabelValuesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListArchivedWorkflowLabelValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowArchive(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowArchive - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ResubmitArchivedWorkflowRequest) GetMemoized() bool { + if x != nil { + return x.Memoized } - return nil + return false } -func (m *RetryArchivedWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RetryArchivedWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RetryArchivedWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartSuccessful", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RestartSuccessful = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeFieldSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeFieldSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Parameters = append(m.Parameters, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowArchive(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowArchive - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ResubmitArchivedWorkflowRequest) GetParameters() []string { + if x != nil { + return x.Parameters } return nil } -func (m *ResubmitArchivedWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResubmitArchivedWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResubmitArchivedWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Memoized", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Memoized = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowArchive - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowArchive - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Parameters = append(m.Parameters, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowArchive(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowArchive - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipWorkflowArchive(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflowArchive - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthWorkflowArchive - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupWorkflowArchive - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthWorkflowArchive - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_apiclient_workflowarchive_workflow_archive_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDesc = "" + + "\n" + + "4pkg/apiclient/workflowarchive/workflow-archive.proto\x12\x0fworkflowarchive\x1aPgithub.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1/generated.proto\x1a\x1cgoogle/api/annotations.proto\x1a4k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto\"\xd1\x01\n" + + "\x1cListArchivedWorkflowsRequest\x12S\n" + + "\vlistOptions\x18\x01 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\x12\x1e\n" + + "\n" + + "namePrefix\x18\x02 \x01(\tR\n" + + "namePrefix\x12\x1c\n" + + "\tnamespace\x18\x03 \x01(\tR\tnamespace\x12\x1e\n" + + "\n" + + "nameFilter\x18\x04 \x01(\tR\n" + + "nameFilter\"`\n" + + "\x1aGetArchivedWorkflowRequest\x12\x10\n" + + "\x03uid\x18\x01 \x01(\tR\x03uid\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\"c\n" + + "\x1dDeleteArchivedWorkflowRequest\x12\x10\n" + + "\x03uid\x18\x01 \x01(\tR\x03uid\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\"!\n" + + "\x1fArchivedWorkflowDeletedResponse\"D\n" + + "$ListArchivedWorkflowLabelKeysRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\"\x9b\x01\n" + + "&ListArchivedWorkflowLabelValuesRequest\x12S\n" + + "\vlistOptions\x18\x01 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\"\xde\x01\n" + + "\x1cRetryArchivedWorkflowRequest\x12\x10\n" + + "\x03uid\x18\x01 \x01(\tR\x03uid\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x03 \x01(\tR\tnamespace\x12,\n" + + "\x11restartSuccessful\x18\x04 \x01(\bR\x11restartSuccessful\x12,\n" + + "\x11nodeFieldSelector\x18\x05 \x01(\tR\x11nodeFieldSelector\x12\x1e\n" + + "\n" + + "parameters\x18\x06 \x03(\tR\n" + + "parameters\"\xa1\x01\n" + + "\x1fResubmitArchivedWorkflowRequest\x12\x10\n" + + "\x03uid\x18\x01 \x01(\tR\x03uid\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x03 \x01(\tR\tnamespace\x12\x1a\n" + + "\bmemoized\x18\x04 \x01(\bR\bmemoized\x12\x1e\n" + + "\n" + + "parameters\x18\x05 \x03(\tR\n" + + "parameters2\x83\v\n" + + "\x17ArchivedWorkflowService\x12\xba\x01\n" + + "\x15ListArchivedWorkflows\x12-.workflowarchive.ListArchivedWorkflowsRequest\x1aN.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowList\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/api/v1/archived-workflows\x12\xb8\x01\n" + + "\x13GetArchivedWorkflow\x12+.workflowarchive.GetArchivedWorkflowRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"(\x82\xd3\xe4\x93\x02\"\x12 /api/v1/archived-workflows/{uid}\x12\xa4\x01\n" + + "\x16DeleteArchivedWorkflow\x12..workflowarchive.DeleteArchivedWorkflowRequest\x1a0.workflowarchive.ArchivedWorkflowDeletedResponse\"(\x82\xd3\xe4\x93\x02\"* /api/v1/archived-workflows/{uid}\x12\xd2\x01\n" + + "\x1dListArchivedWorkflowLabelKeys\x125.workflowarchive.ListArchivedWorkflowLabelKeysRequest\x1aK.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.LabelKeys\"-\x82\xd3\xe4\x93\x02'\x12%/api/v1/archived-workflows-label-keys\x12\xda\x01\n" + + "\x1fListArchivedWorkflowLabelValues\x127.workflowarchive.ListArchivedWorkflowLabelValuesRequest\x1aM.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.LabelValues\"/\x82\xd3\xe4\x93\x02)\x12'/api/v1/archived-workflows-label-values\x12\xc5\x01\n" + + "\x15RetryArchivedWorkflow\x12-.workflowarchive.RetryArchivedWorkflowRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"1\x82\xd3\xe4\x93\x02+:\x01*\x1a&/api/v1/archived-workflows/{uid}/retry\x12\xce\x01\n" + + "\x18ResubmitArchivedWorkflow\x120.workflowarchive.ResubmitArchivedWorkflowRequest\x1aJ.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow\"4\x82\xd3\xe4\x93\x02.:\x01*\x1a)/api/v1/archived-workflows/{uid}/resubmitBEZCgithub.com/argoproj/argo-workflows/v4/pkg/apiclient/workflowarchiveb\x06proto3" var ( - ErrInvalidLengthWorkflowArchive = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowWorkflowArchive = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupWorkflowArchive = fmt.Errorf("proto: unexpected end of group") + file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescOnce sync.Once + file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescData []byte ) + +func file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescGZIP() []byte { + file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescOnce.Do(func() { + file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDesc), len(file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDesc))) + }) + return file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDescData +} + +var file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_pkg_apiclient_workflowarchive_workflow_archive_proto_goTypes = []any{ + (*ListArchivedWorkflowsRequest)(nil), // 0: workflowarchive.ListArchivedWorkflowsRequest + (*GetArchivedWorkflowRequest)(nil), // 1: workflowarchive.GetArchivedWorkflowRequest + (*DeleteArchivedWorkflowRequest)(nil), // 2: workflowarchive.DeleteArchivedWorkflowRequest + (*ArchivedWorkflowDeletedResponse)(nil), // 3: workflowarchive.ArchivedWorkflowDeletedResponse + (*ListArchivedWorkflowLabelKeysRequest)(nil), // 4: workflowarchive.ListArchivedWorkflowLabelKeysRequest + (*ListArchivedWorkflowLabelValuesRequest)(nil), // 5: workflowarchive.ListArchivedWorkflowLabelValuesRequest + (*RetryArchivedWorkflowRequest)(nil), // 6: workflowarchive.RetryArchivedWorkflowRequest + (*ResubmitArchivedWorkflowRequest)(nil), // 7: workflowarchive.ResubmitArchivedWorkflowRequest + (*v1.ListOptions)(nil), // 8: k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + (*v1alpha1.WorkflowList)(nil), // 9: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowList + (*v1alpha1.Workflow)(nil), // 10: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + (*v1alpha1.LabelKeys)(nil), // 11: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.LabelKeys + (*v1alpha1.LabelValues)(nil), // 12: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.LabelValues +} +var file_pkg_apiclient_workflowarchive_workflow_archive_proto_depIdxs = []int32{ + 8, // 0: workflowarchive.ListArchivedWorkflowsRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 8, // 1: workflowarchive.ListArchivedWorkflowLabelValuesRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 0, // 2: workflowarchive.ArchivedWorkflowService.ListArchivedWorkflows:input_type -> workflowarchive.ListArchivedWorkflowsRequest + 1, // 3: workflowarchive.ArchivedWorkflowService.GetArchivedWorkflow:input_type -> workflowarchive.GetArchivedWorkflowRequest + 2, // 4: workflowarchive.ArchivedWorkflowService.DeleteArchivedWorkflow:input_type -> workflowarchive.DeleteArchivedWorkflowRequest + 4, // 5: workflowarchive.ArchivedWorkflowService.ListArchivedWorkflowLabelKeys:input_type -> workflowarchive.ListArchivedWorkflowLabelKeysRequest + 5, // 6: workflowarchive.ArchivedWorkflowService.ListArchivedWorkflowLabelValues:input_type -> workflowarchive.ListArchivedWorkflowLabelValuesRequest + 6, // 7: workflowarchive.ArchivedWorkflowService.RetryArchivedWorkflow:input_type -> workflowarchive.RetryArchivedWorkflowRequest + 7, // 8: workflowarchive.ArchivedWorkflowService.ResubmitArchivedWorkflow:input_type -> workflowarchive.ResubmitArchivedWorkflowRequest + 9, // 9: workflowarchive.ArchivedWorkflowService.ListArchivedWorkflows:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowList + 10, // 10: workflowarchive.ArchivedWorkflowService.GetArchivedWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 3, // 11: workflowarchive.ArchivedWorkflowService.DeleteArchivedWorkflow:output_type -> workflowarchive.ArchivedWorkflowDeletedResponse + 11, // 12: workflowarchive.ArchivedWorkflowService.ListArchivedWorkflowLabelKeys:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.LabelKeys + 12, // 13: workflowarchive.ArchivedWorkflowService.ListArchivedWorkflowLabelValues:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.LabelValues + 10, // 14: workflowarchive.ArchivedWorkflowService.RetryArchivedWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 10, // 15: workflowarchive.ArchivedWorkflowService.ResubmitArchivedWorkflow:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.Workflow + 9, // [9:16] is the sub-list for method output_type + 2, // [2:9] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_workflowarchive_workflow_archive_proto_init() } +func file_pkg_apiclient_workflowarchive_workflow_archive_proto_init() { + if File_pkg_apiclient_workflowarchive_workflow_archive_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDesc), len(file_pkg_apiclient_workflowarchive_workflow_archive_proto_rawDesc)), + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_workflowarchive_workflow_archive_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_workflowarchive_workflow_archive_proto_depIdxs, + MessageInfos: file_pkg_apiclient_workflowarchive_workflow_archive_proto_msgTypes, + }.Build() + File_pkg_apiclient_workflowarchive_workflow_archive_proto = out.File + file_pkg_apiclient_workflowarchive_workflow_archive_proto_goTypes = nil + file_pkg_apiclient_workflowarchive_workflow_archive_proto_depIdxs = nil +} diff --git a/pkg/apiclient/workflowarchive/workflow-archive.pb.gw.go b/pkg/apiclient/workflowarchive/workflow-archive.pb.gw.go index b64e0c6af943..e1c4f2874a38 100644 --- a/pkg/apiclient/workflowarchive/workflow-archive.pb.gw.go +++ b/pkg/apiclient/workflowarchive/workflow-archive.pb.gw.go @@ -10,586 +10,478 @@ package workflowarchive import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - var ( - filter_ArchivedWorkflowService_ListArchivedWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join ) -func request_ArchivedWorkflowService_ListArchivedWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client ArchivedWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListArchivedWorkflowsRequest - var metadata runtime.ServerMetadata +var filter_ArchivedWorkflowService_ListArchivedWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +func request_ArchivedWorkflowService_ListArchivedWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client ArchivedWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq ListArchivedWorkflowsRequest + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArchivedWorkflowService_ListArchivedWorkflows_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListArchivedWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArchivedWorkflowService_ListArchivedWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, server ArchivedWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListArchivedWorkflowsRequest - var metadata runtime.ServerMetadata - + var ( + protoReq ListArchivedWorkflowsRequest + 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_ArchivedWorkflowService_ListArchivedWorkflows_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListArchivedWorkflows(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_ArchivedWorkflowService_GetArchivedWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"uid": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_ArchivedWorkflowService_GetArchivedWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"uid": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_ArchivedWorkflowService_GetArchivedWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client ArchivedWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetArchivedWorkflowRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetArchivedWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["uid"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["uid"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid") } - protoReq.Uid, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArchivedWorkflowService_GetArchivedWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetArchivedWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArchivedWorkflowService_GetArchivedWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server ArchivedWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetArchivedWorkflowRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq GetArchivedWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["uid"] + val, ok := pathParams["uid"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid") } - protoReq.Uid, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArchivedWorkflowService_GetArchivedWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetArchivedWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_ArchivedWorkflowService_DeleteArchivedWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"uid": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_ArchivedWorkflowService_DeleteArchivedWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"uid": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_ArchivedWorkflowService_DeleteArchivedWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client ArchivedWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteArchivedWorkflowRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteArchivedWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["uid"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["uid"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid") } - protoReq.Uid, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArchivedWorkflowService_DeleteArchivedWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteArchivedWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArchivedWorkflowService_DeleteArchivedWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server ArchivedWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteArchivedWorkflowRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq DeleteArchivedWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["uid"] + val, ok := pathParams["uid"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid") } - protoReq.Uid, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArchivedWorkflowService_DeleteArchivedWorkflow_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteArchivedWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) +var filter_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} func request_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(ctx context.Context, marshaler runtime.Marshaler, client ArchivedWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListArchivedWorkflowLabelKeysRequest - var metadata runtime.ServerMetadata - + var ( + protoReq ListArchivedWorkflowLabelKeysRequest + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListArchivedWorkflowLabelKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(ctx context.Context, marshaler runtime.Marshaler, server ArchivedWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListArchivedWorkflowLabelKeysRequest - var metadata runtime.ServerMetadata - + var ( + protoReq ListArchivedWorkflowLabelKeysRequest + 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_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListArchivedWorkflowLabelKeys(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) +var filter_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} func request_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(ctx context.Context, marshaler runtime.Marshaler, client ArchivedWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListArchivedWorkflowLabelValuesRequest - var metadata runtime.ServerMetadata - + var ( + protoReq ListArchivedWorkflowLabelValuesRequest + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListArchivedWorkflowLabelValues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(ctx context.Context, marshaler runtime.Marshaler, server ArchivedWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListArchivedWorkflowLabelValuesRequest - var metadata runtime.ServerMetadata - + var ( + protoReq ListArchivedWorkflowLabelValuesRequest + 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_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListArchivedWorkflowLabelValues(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_ArchivedWorkflowService_RetryArchivedWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client ArchivedWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RetryArchivedWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq RetryArchivedWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["uid"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["uid"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid") } - protoReq.Uid, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err) } - msg, err := client.RetryArchivedWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArchivedWorkflowService_RetryArchivedWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server ArchivedWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RetryArchivedWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq RetryArchivedWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["uid"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["uid"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid") } - protoReq.Uid, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err) } - msg, err := server.RetryArchivedWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client ArchivedWorkflowServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ResubmitArchivedWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq ResubmitArchivedWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["uid"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["uid"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid") } - protoReq.Uid, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err) } - msg, err := client.ResubmitArchivedWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server ArchivedWorkflowServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ResubmitArchivedWorkflowRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq ResubmitArchivedWorkflowRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["uid"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["uid"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid") } - protoReq.Uid, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err) } - msg, err := server.ResubmitArchivedWorkflow(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterArchivedWorkflowServiceHandlerServer registers the http handlers for service ArchivedWorkflowService to "mux". // UnaryRPC :call ArchivedWorkflowServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterArchivedWorkflowServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterArchivedWorkflowServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArchivedWorkflowServiceServer) error { - - mux.Handle("GET", pattern_ArchivedWorkflowService_ListArchivedWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ArchivedWorkflowService_ListArchivedWorkflows_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflows", runtime.WithHTTPPathPattern("/api/v1/archived-workflows")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArchivedWorkflowService_ListArchivedWorkflows_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArchivedWorkflowService_ListArchivedWorkflows_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_ListArchivedWorkflows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_ListArchivedWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ArchivedWorkflowService_GetArchivedWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ArchivedWorkflowService_GetArchivedWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/GetArchivedWorkflow", runtime.WithHTTPPathPattern("/api/v1/archived-workflows/{uid}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArchivedWorkflowService_GetArchivedWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArchivedWorkflowService_GetArchivedWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_GetArchivedWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_GetArchivedWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_ArchivedWorkflowService_DeleteArchivedWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_ArchivedWorkflowService_DeleteArchivedWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/DeleteArchivedWorkflow", runtime.WithHTTPPathPattern("/api/v1/archived-workflows/{uid}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArchivedWorkflowService_DeleteArchivedWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArchivedWorkflowService_DeleteArchivedWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_DeleteArchivedWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_DeleteArchivedWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelKeys", runtime.WithHTTPPathPattern("/api/v1/archived-workflows-label-keys")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelValues", runtime.WithHTTPPathPattern("/api/v1/archived-workflows-label-values")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_ArchivedWorkflowService_RetryArchivedWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_ArchivedWorkflowService_RetryArchivedWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/RetryArchivedWorkflow", runtime.WithHTTPPathPattern("/api/v1/archived-workflows/{uid}/retry")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArchivedWorkflowService_RetryArchivedWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArchivedWorkflowService_RetryArchivedWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_RetryArchivedWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_RetryArchivedWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_ArchivedWorkflowService_ResubmitArchivedWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_ArchivedWorkflowService_ResubmitArchivedWorkflow_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/ResubmitArchivedWorkflow", runtime.WithHTTPPathPattern("/api/v1/archived-workflows/{uid}/resubmit")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -598,25 +490,24 @@ func RegisterArchivedWorkflowServiceHandlerServer(ctx context.Context, mux *runt // RegisterArchivedWorkflowServiceHandlerFromEndpoint is same as RegisterArchivedWorkflowServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterArchivedWorkflowServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterArchivedWorkflowServiceHandler(ctx, mux, conn) } @@ -630,180 +521,146 @@ func RegisterArchivedWorkflowServiceHandler(ctx context.Context, mux *runtime.Se // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArchivedWorkflowServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArchivedWorkflowServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "ArchivedWorkflowServiceClient" to call the correct interceptors. +// "ArchivedWorkflowServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterArchivedWorkflowServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArchivedWorkflowServiceClient) error { - - mux.Handle("GET", pattern_ArchivedWorkflowService_ListArchivedWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ArchivedWorkflowService_ListArchivedWorkflows_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflows", runtime.WithHTTPPathPattern("/api/v1/archived-workflows")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArchivedWorkflowService_ListArchivedWorkflows_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArchivedWorkflowService_ListArchivedWorkflows_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_ListArchivedWorkflows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_ListArchivedWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ArchivedWorkflowService_GetArchivedWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ArchivedWorkflowService_GetArchivedWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/GetArchivedWorkflow", runtime.WithHTTPPathPattern("/api/v1/archived-workflows/{uid}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArchivedWorkflowService_GetArchivedWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArchivedWorkflowService_GetArchivedWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_GetArchivedWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_GetArchivedWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_ArchivedWorkflowService_DeleteArchivedWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_ArchivedWorkflowService_DeleteArchivedWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/DeleteArchivedWorkflow", runtime.WithHTTPPathPattern("/api/v1/archived-workflows/{uid}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArchivedWorkflowService_DeleteArchivedWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArchivedWorkflowService_DeleteArchivedWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_DeleteArchivedWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_DeleteArchivedWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelKeys", runtime.WithHTTPPathPattern("/api/v1/archived-workflows-label-keys")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelValues", runtime.WithHTTPPathPattern("/api/v1/archived-workflows-label-values")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_ArchivedWorkflowService_RetryArchivedWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_ArchivedWorkflowService_RetryArchivedWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/RetryArchivedWorkflow", runtime.WithHTTPPathPattern("/api/v1/archived-workflows/{uid}/retry")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArchivedWorkflowService_RetryArchivedWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArchivedWorkflowService_RetryArchivedWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_RetryArchivedWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_RetryArchivedWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_ArchivedWorkflowService_ResubmitArchivedWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_ArchivedWorkflowService_ResubmitArchivedWorkflow_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowarchive.ArchivedWorkflowService/ResubmitArchivedWorkflow", runtime.WithHTTPPathPattern("/api/v1/archived-workflows/{uid}/resubmit")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_ArchivedWorkflowService_ResubmitArchivedWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_ArchivedWorkflowService_ListArchivedWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "archived-workflows"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArchivedWorkflowService_GetArchivedWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "archived-workflows", "uid"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArchivedWorkflowService_DeleteArchivedWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "archived-workflows", "uid"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "archived-workflows-label-keys"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "archived-workflows-label-values"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArchivedWorkflowService_RetryArchivedWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "archived-workflows", "uid", "retry"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ArchivedWorkflowService_ResubmitArchivedWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "archived-workflows", "uid", "resubmit"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_ArchivedWorkflowService_ListArchivedWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "archived-workflows"}, "")) + pattern_ArchivedWorkflowService_GetArchivedWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "archived-workflows", "uid"}, "")) + pattern_ArchivedWorkflowService_DeleteArchivedWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "archived-workflows", "uid"}, "")) + pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "archived-workflows-label-keys"}, "")) + pattern_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "archived-workflows-label-values"}, "")) + pattern_ArchivedWorkflowService_RetryArchivedWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "archived-workflows", "uid", "retry"}, "")) + pattern_ArchivedWorkflowService_ResubmitArchivedWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "archived-workflows", "uid", "resubmit"}, "")) ) var ( - forward_ArchivedWorkflowService_ListArchivedWorkflows_0 = runtime.ForwardResponseMessage - - forward_ArchivedWorkflowService_GetArchivedWorkflow_0 = runtime.ForwardResponseMessage - - forward_ArchivedWorkflowService_DeleteArchivedWorkflow_0 = runtime.ForwardResponseMessage - - forward_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0 = runtime.ForwardResponseMessage - + forward_ArchivedWorkflowService_ListArchivedWorkflows_0 = runtime.ForwardResponseMessage + forward_ArchivedWorkflowService_GetArchivedWorkflow_0 = runtime.ForwardResponseMessage + forward_ArchivedWorkflowService_DeleteArchivedWorkflow_0 = runtime.ForwardResponseMessage + forward_ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_0 = runtime.ForwardResponseMessage forward_ArchivedWorkflowService_ListArchivedWorkflowLabelValues_0 = runtime.ForwardResponseMessage - - forward_ArchivedWorkflowService_RetryArchivedWorkflow_0 = runtime.ForwardResponseMessage - - forward_ArchivedWorkflowService_ResubmitArchivedWorkflow_0 = runtime.ForwardResponseMessage + forward_ArchivedWorkflowService_RetryArchivedWorkflow_0 = runtime.ForwardResponseMessage + forward_ArchivedWorkflowService_ResubmitArchivedWorkflow_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/workflowarchive/workflow-archive_grpc.pb.go b/pkg/apiclient/workflowarchive/workflow-archive_grpc.pb.go new file mode 100644 index 000000000000..70b225f9cedd --- /dev/null +++ b/pkg/apiclient/workflowarchive/workflow-archive_grpc.pb.go @@ -0,0 +1,348 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/workflowarchive/workflow-archive.proto + +package workflowarchive + +import ( + context "context" + v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + ArchivedWorkflowService_ListArchivedWorkflows_FullMethodName = "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflows" + ArchivedWorkflowService_GetArchivedWorkflow_FullMethodName = "/workflowarchive.ArchivedWorkflowService/GetArchivedWorkflow" + ArchivedWorkflowService_DeleteArchivedWorkflow_FullMethodName = "/workflowarchive.ArchivedWorkflowService/DeleteArchivedWorkflow" + ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_FullMethodName = "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelKeys" + ArchivedWorkflowService_ListArchivedWorkflowLabelValues_FullMethodName = "/workflowarchive.ArchivedWorkflowService/ListArchivedWorkflowLabelValues" + ArchivedWorkflowService_RetryArchivedWorkflow_FullMethodName = "/workflowarchive.ArchivedWorkflowService/RetryArchivedWorkflow" + ArchivedWorkflowService_ResubmitArchivedWorkflow_FullMethodName = "/workflowarchive.ArchivedWorkflowService/ResubmitArchivedWorkflow" +) + +// ArchivedWorkflowServiceClient is the client API for ArchivedWorkflowService 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 ArchivedWorkflowServiceClient interface { + ListArchivedWorkflows(ctx context.Context, in *ListArchivedWorkflowsRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowList, error) + GetArchivedWorkflow(ctx context.Context, in *GetArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + DeleteArchivedWorkflow(ctx context.Context, in *DeleteArchivedWorkflowRequest, opts ...grpc.CallOption) (*ArchivedWorkflowDeletedResponse, error) + ListArchivedWorkflowLabelKeys(ctx context.Context, in *ListArchivedWorkflowLabelKeysRequest, opts ...grpc.CallOption) (*v1alpha1.LabelKeys, error) + ListArchivedWorkflowLabelValues(ctx context.Context, in *ListArchivedWorkflowLabelValuesRequest, opts ...grpc.CallOption) (*v1alpha1.LabelValues, error) + RetryArchivedWorkflow(ctx context.Context, in *RetryArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) + ResubmitArchivedWorkflow(ctx context.Context, in *ResubmitArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) +} + +type archivedWorkflowServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewArchivedWorkflowServiceClient(cc grpc.ClientConnInterface) ArchivedWorkflowServiceClient { + return &archivedWorkflowServiceClient{cc} +} + +func (c *archivedWorkflowServiceClient) ListArchivedWorkflows(ctx context.Context, in *ListArchivedWorkflowsRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.WorkflowList) + err := c.cc.Invoke(ctx, ArchivedWorkflowService_ListArchivedWorkflows_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *archivedWorkflowServiceClient) GetArchivedWorkflow(ctx context.Context, in *GetArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, ArchivedWorkflowService_GetArchivedWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *archivedWorkflowServiceClient) DeleteArchivedWorkflow(ctx context.Context, in *DeleteArchivedWorkflowRequest, opts ...grpc.CallOption) (*ArchivedWorkflowDeletedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ArchivedWorkflowDeletedResponse) + err := c.cc.Invoke(ctx, ArchivedWorkflowService_DeleteArchivedWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *archivedWorkflowServiceClient) ListArchivedWorkflowLabelKeys(ctx context.Context, in *ListArchivedWorkflowLabelKeysRequest, opts ...grpc.CallOption) (*v1alpha1.LabelKeys, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.LabelKeys) + err := c.cc.Invoke(ctx, ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *archivedWorkflowServiceClient) ListArchivedWorkflowLabelValues(ctx context.Context, in *ListArchivedWorkflowLabelValuesRequest, opts ...grpc.CallOption) (*v1alpha1.LabelValues, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.LabelValues) + err := c.cc.Invoke(ctx, ArchivedWorkflowService_ListArchivedWorkflowLabelValues_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *archivedWorkflowServiceClient) RetryArchivedWorkflow(ctx context.Context, in *RetryArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, ArchivedWorkflowService_RetryArchivedWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *archivedWorkflowServiceClient) ResubmitArchivedWorkflow(ctx context.Context, in *ResubmitArchivedWorkflowRequest, opts ...grpc.CallOption) (*v1alpha1.Workflow, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.Workflow) + err := c.cc.Invoke(ctx, ArchivedWorkflowService_ResubmitArchivedWorkflow_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ArchivedWorkflowServiceServer is the server API for ArchivedWorkflowService service. +// All implementations should embed UnimplementedArchivedWorkflowServiceServer +// for forward compatibility. +type ArchivedWorkflowServiceServer interface { + ListArchivedWorkflows(context.Context, *ListArchivedWorkflowsRequest) (*v1alpha1.WorkflowList, error) + GetArchivedWorkflow(context.Context, *GetArchivedWorkflowRequest) (*v1alpha1.Workflow, error) + DeleteArchivedWorkflow(context.Context, *DeleteArchivedWorkflowRequest) (*ArchivedWorkflowDeletedResponse, error) + ListArchivedWorkflowLabelKeys(context.Context, *ListArchivedWorkflowLabelKeysRequest) (*v1alpha1.LabelKeys, error) + ListArchivedWorkflowLabelValues(context.Context, *ListArchivedWorkflowLabelValuesRequest) (*v1alpha1.LabelValues, error) + RetryArchivedWorkflow(context.Context, *RetryArchivedWorkflowRequest) (*v1alpha1.Workflow, error) + ResubmitArchivedWorkflow(context.Context, *ResubmitArchivedWorkflowRequest) (*v1alpha1.Workflow, error) +} + +// UnimplementedArchivedWorkflowServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedArchivedWorkflowServiceServer struct{} + +func (UnimplementedArchivedWorkflowServiceServer) ListArchivedWorkflows(context.Context, *ListArchivedWorkflowsRequest) (*v1alpha1.WorkflowList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListArchivedWorkflows not implemented") +} +func (UnimplementedArchivedWorkflowServiceServer) GetArchivedWorkflow(context.Context, *GetArchivedWorkflowRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetArchivedWorkflow not implemented") +} +func (UnimplementedArchivedWorkflowServiceServer) DeleteArchivedWorkflow(context.Context, *DeleteArchivedWorkflowRequest) (*ArchivedWorkflowDeletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteArchivedWorkflow not implemented") +} +func (UnimplementedArchivedWorkflowServiceServer) ListArchivedWorkflowLabelKeys(context.Context, *ListArchivedWorkflowLabelKeysRequest) (*v1alpha1.LabelKeys, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListArchivedWorkflowLabelKeys not implemented") +} +func (UnimplementedArchivedWorkflowServiceServer) ListArchivedWorkflowLabelValues(context.Context, *ListArchivedWorkflowLabelValuesRequest) (*v1alpha1.LabelValues, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListArchivedWorkflowLabelValues not implemented") +} +func (UnimplementedArchivedWorkflowServiceServer) RetryArchivedWorkflow(context.Context, *RetryArchivedWorkflowRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method RetryArchivedWorkflow not implemented") +} +func (UnimplementedArchivedWorkflowServiceServer) ResubmitArchivedWorkflow(context.Context, *ResubmitArchivedWorkflowRequest) (*v1alpha1.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResubmitArchivedWorkflow not implemented") +} +func (UnimplementedArchivedWorkflowServiceServer) testEmbeddedByValue() {} + +// UnsafeArchivedWorkflowServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ArchivedWorkflowServiceServer will +// result in compilation errors. +type UnsafeArchivedWorkflowServiceServer interface { + mustEmbedUnimplementedArchivedWorkflowServiceServer() +} + +func RegisterArchivedWorkflowServiceServer(s grpc.ServiceRegistrar, srv ArchivedWorkflowServiceServer) { + // If the following call pancis, it indicates UnimplementedArchivedWorkflowServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ArchivedWorkflowService_ServiceDesc, srv) +} + +func _ArchivedWorkflowService_ListArchivedWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListArchivedWorkflowsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflows(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArchivedWorkflowService_ListArchivedWorkflows_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflows(ctx, req.(*ListArchivedWorkflowsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArchivedWorkflowService_GetArchivedWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetArchivedWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArchivedWorkflowServiceServer).GetArchivedWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArchivedWorkflowService_GetArchivedWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArchivedWorkflowServiceServer).GetArchivedWorkflow(ctx, req.(*GetArchivedWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArchivedWorkflowService_DeleteArchivedWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteArchivedWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArchivedWorkflowServiceServer).DeleteArchivedWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArchivedWorkflowService_DeleteArchivedWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArchivedWorkflowServiceServer).DeleteArchivedWorkflow(ctx, req.(*DeleteArchivedWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListArchivedWorkflowLabelKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflowLabelKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflowLabelKeys(ctx, req.(*ListArchivedWorkflowLabelKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArchivedWorkflowService_ListArchivedWorkflowLabelValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListArchivedWorkflowLabelValuesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflowLabelValues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArchivedWorkflowService_ListArchivedWorkflowLabelValues_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArchivedWorkflowServiceServer).ListArchivedWorkflowLabelValues(ctx, req.(*ListArchivedWorkflowLabelValuesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArchivedWorkflowService_RetryArchivedWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RetryArchivedWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArchivedWorkflowServiceServer).RetryArchivedWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArchivedWorkflowService_RetryArchivedWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArchivedWorkflowServiceServer).RetryArchivedWorkflow(ctx, req.(*RetryArchivedWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ArchivedWorkflowService_ResubmitArchivedWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResubmitArchivedWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArchivedWorkflowServiceServer).ResubmitArchivedWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ArchivedWorkflowService_ResubmitArchivedWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArchivedWorkflowServiceServer).ResubmitArchivedWorkflow(ctx, req.(*ResubmitArchivedWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ArchivedWorkflowService_ServiceDesc is the grpc.ServiceDesc for ArchivedWorkflowService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ArchivedWorkflowService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "workflowarchive.ArchivedWorkflowService", + HandlerType: (*ArchivedWorkflowServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListArchivedWorkflows", + Handler: _ArchivedWorkflowService_ListArchivedWorkflows_Handler, + }, + { + MethodName: "GetArchivedWorkflow", + Handler: _ArchivedWorkflowService_GetArchivedWorkflow_Handler, + }, + { + MethodName: "DeleteArchivedWorkflow", + Handler: _ArchivedWorkflowService_DeleteArchivedWorkflow_Handler, + }, + { + MethodName: "ListArchivedWorkflowLabelKeys", + Handler: _ArchivedWorkflowService_ListArchivedWorkflowLabelKeys_Handler, + }, + { + MethodName: "ListArchivedWorkflowLabelValues", + Handler: _ArchivedWorkflowService_ListArchivedWorkflowLabelValues_Handler, + }, + { + MethodName: "RetryArchivedWorkflow", + Handler: _ArchivedWorkflowService_RetryArchivedWorkflow_Handler, + }, + { + MethodName: "ResubmitArchivedWorkflow", + Handler: _ArchivedWorkflowService_ResubmitArchivedWorkflow_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/apiclient/workflowarchive/workflow-archive.proto", +} diff --git a/pkg/apiclient/workflowtemplate/workflow-template.pb.go b/pkg/apiclient/workflowtemplate/workflow-template.pb.go index 388eddbb3654..af1a1d96ee52 100644 --- a/pkg/apiclient/workflowtemplate/workflow-template.pb.go +++ b/pkg/apiclient/workflowtemplate/workflow-template.pb.go @@ -1,4 +1,7 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.19.4 // source: pkg/apiclient/workflowtemplate/workflow-template.proto // Workflow Service @@ -8,2346 +11,539 @@ package workflowtemplate import ( - context "context" - fmt "fmt" v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" - proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type WorkflowTemplateCreateRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - Template *v1alpha1.WorkflowTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` - CreateOptions *v1.CreateOptions `protobuf:"bytes,3,opt,name=createOptions,proto3" json:"createOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowTemplateCreateRequest) Reset() { *m = WorkflowTemplateCreateRequest{} } -func (m *WorkflowTemplateCreateRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowTemplateCreateRequest) ProtoMessage() {} -func (*WorkflowTemplateCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_215375a0ab97a62a, []int{0} -} -func (m *WorkflowTemplateCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowTemplateCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowTemplateCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowTemplateCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTemplateCreateRequest.Merge(m, src) -} -func (m *WorkflowTemplateCreateRequest) XXX_Size() int { - return m.Size() + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + Template *v1alpha1.WorkflowTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + CreateOptions *v1.CreateOptions `protobuf:"bytes,3,opt,name=createOptions,proto3" json:"createOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowTemplateCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTemplateCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowTemplateCreateRequest proto.InternalMessageInfo -func (m *WorkflowTemplateCreateRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *WorkflowTemplateCreateRequest) Reset() { + *x = WorkflowTemplateCreateRequest{} + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowTemplateCreateRequest) GetTemplate() *v1alpha1.WorkflowTemplate { - if m != nil { - return m.Template - } - return nil +func (x *WorkflowTemplateCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowTemplateCreateRequest) GetCreateOptions() *v1.CreateOptions { - if m != nil { - return m.CreateOptions - } - return nil -} +func (*WorkflowTemplateCreateRequest) ProtoMessage() {} -type WorkflowTemplateGetRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - GetOptions *v1.GetOptions `protobuf:"bytes,3,opt,name=getOptions,proto3" json:"getOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowTemplateGetRequest) Reset() { *m = WorkflowTemplateGetRequest{} } -func (m *WorkflowTemplateGetRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowTemplateGetRequest) ProtoMessage() {} -func (*WorkflowTemplateGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_215375a0ab97a62a, []int{1} -} -func (m *WorkflowTemplateGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowTemplateGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowTemplateGetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *WorkflowTemplateCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *WorkflowTemplateGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTemplateGetRequest.Merge(m, src) -} -func (m *WorkflowTemplateGetRequest) XXX_Size() int { - return m.Size() -} -func (m *WorkflowTemplateGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTemplateGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowTemplateGetRequest proto.InternalMessageInfo -func (m *WorkflowTemplateGetRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +// Deprecated: Use WorkflowTemplateCreateRequest.ProtoReflect.Descriptor instead. +func (*WorkflowTemplateCreateRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescGZIP(), []int{0} } -func (m *WorkflowTemplateGetRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowTemplateCreateRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowTemplateGetRequest) GetGetOptions() *v1.GetOptions { - if m != nil { - return m.GetOptions +func (x *WorkflowTemplateCreateRequest) GetTemplate() *v1alpha1.WorkflowTemplate { + if x != nil { + return x.Template } return nil } -type WorkflowTemplateListRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamePattern string `protobuf:"bytes,2,opt,name=namePattern,proto3" json:"namePattern,omitempty"` - ListOptions *v1.ListOptions `protobuf:"bytes,3,opt,name=listOptions,proto3" json:"listOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowTemplateListRequest) Reset() { *m = WorkflowTemplateListRequest{} } -func (m *WorkflowTemplateListRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowTemplateListRequest) ProtoMessage() {} -func (*WorkflowTemplateListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_215375a0ab97a62a, []int{2} -} -func (m *WorkflowTemplateListRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowTemplateListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowTemplateListRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowTemplateCreateRequest) GetCreateOptions() *v1.CreateOptions { + if x != nil { + return x.CreateOptions } + return nil } -func (m *WorkflowTemplateListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTemplateListRequest.Merge(m, src) -} -func (m *WorkflowTemplateListRequest) XXX_Size() int { - return m.Size() -} -func (m *WorkflowTemplateListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTemplateListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowTemplateListRequest proto.InternalMessageInfo -func (m *WorkflowTemplateListRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +type WorkflowTemplateGetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + GetOptions *v1.GetOptions `protobuf:"bytes,3,opt,name=getOptions,proto3" json:"getOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowTemplateListRequest) GetNamePattern() string { - if m != nil { - return m.NamePattern - } - return "" +func (x *WorkflowTemplateGetRequest) Reset() { + *x = WorkflowTemplateGetRequest{} + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowTemplateListRequest) GetListOptions() *v1.ListOptions { - if m != nil { - return m.ListOptions - } - return nil +func (x *WorkflowTemplateGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type WorkflowTemplateUpdateRequest struct { - // DEPRECATED: This field is ignored. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - Template *v1alpha1.WorkflowTemplate `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*WorkflowTemplateGetRequest) ProtoMessage() {} -func (m *WorkflowTemplateUpdateRequest) Reset() { *m = WorkflowTemplateUpdateRequest{} } -func (m *WorkflowTemplateUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowTemplateUpdateRequest) ProtoMessage() {} -func (*WorkflowTemplateUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_215375a0ab97a62a, []int{3} -} -func (m *WorkflowTemplateUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowTemplateUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowTemplateUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *WorkflowTemplateGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *WorkflowTemplateUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTemplateUpdateRequest.Merge(m, src) -} -func (m *WorkflowTemplateUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *WorkflowTemplateUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTemplateUpdateRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowTemplateUpdateRequest proto.InternalMessageInfo +// Deprecated: Use WorkflowTemplateGetRequest.ProtoReflect.Descriptor instead. +func (*WorkflowTemplateGetRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescGZIP(), []int{1} +} -// Deprecated: Do not use. -func (m *WorkflowTemplateUpdateRequest) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowTemplateGetRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WorkflowTemplateUpdateRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowTemplateGetRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowTemplateUpdateRequest) GetTemplate() *v1alpha1.WorkflowTemplate { - if m != nil { - return m.Template +func (x *WorkflowTemplateGetRequest) GetGetOptions() *v1.GetOptions { + if x != nil { + return x.GetOptions } return nil } -type WorkflowTemplateDeleteRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowTemplateDeleteRequest) Reset() { *m = WorkflowTemplateDeleteRequest{} } -func (m *WorkflowTemplateDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowTemplateDeleteRequest) ProtoMessage() {} -func (*WorkflowTemplateDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_215375a0ab97a62a, []int{4} -} -func (m *WorkflowTemplateDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowTemplateDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowTemplateDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowTemplateDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTemplateDeleteRequest.Merge(m, src) -} -func (m *WorkflowTemplateDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *WorkflowTemplateDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTemplateDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowTemplateDeleteRequest proto.InternalMessageInfo - -func (m *WorkflowTemplateDeleteRequest) GetName() string { - if m != nil { - return m.Name - } - return "" +type WorkflowTemplateListRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamePattern string `protobuf:"bytes,2,opt,name=namePattern,proto3" json:"namePattern,omitempty"` + ListOptions *v1.ListOptions `protobuf:"bytes,3,opt,name=listOptions,proto3" json:"listOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowTemplateDeleteRequest) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" +func (x *WorkflowTemplateListRequest) Reset() { + *x = WorkflowTemplateListRequest{} + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowTemplateDeleteRequest) GetDeleteOptions() *v1.DeleteOptions { - if m != nil { - return m.DeleteOptions - } - return nil +func (x *WorkflowTemplateListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type WorkflowTemplateDeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*WorkflowTemplateListRequest) ProtoMessage() {} -func (m *WorkflowTemplateDeleteResponse) Reset() { *m = WorkflowTemplateDeleteResponse{} } -func (m *WorkflowTemplateDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*WorkflowTemplateDeleteResponse) ProtoMessage() {} -func (*WorkflowTemplateDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_215375a0ab97a62a, []int{5} -} -func (m *WorkflowTemplateDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowTemplateDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowTemplateDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *WorkflowTemplateListRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *WorkflowTemplateDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTemplateDeleteResponse.Merge(m, src) -} -func (m *WorkflowTemplateDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *WorkflowTemplateDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTemplateDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowTemplateDeleteResponse proto.InternalMessageInfo - -type WorkflowTemplateLintRequest struct { - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - Template *v1alpha1.WorkflowTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` - CreateOptions *v1.CreateOptions `protobuf:"bytes,3,opt,name=createOptions,proto3" json:"createOptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return mi.MessageOf(x) } -func (m *WorkflowTemplateLintRequest) Reset() { *m = WorkflowTemplateLintRequest{} } -func (m *WorkflowTemplateLintRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowTemplateLintRequest) ProtoMessage() {} -func (*WorkflowTemplateLintRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_215375a0ab97a62a, []int{6} -} -func (m *WorkflowTemplateLintRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowTemplateLintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowTemplateLintRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowTemplateLintRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTemplateLintRequest.Merge(m, src) -} -func (m *WorkflowTemplateLintRequest) XXX_Size() int { - return m.Size() -} -func (m *WorkflowTemplateLintRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTemplateLintRequest.DiscardUnknown(m) +// Deprecated: Use WorkflowTemplateListRequest.ProtoReflect.Descriptor instead. +func (*WorkflowTemplateListRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescGZIP(), []int{2} } -var xxx_messageInfo_WorkflowTemplateLintRequest proto.InternalMessageInfo - -func (m *WorkflowTemplateLintRequest) GetNamespace() string { - if m != nil { - return m.Namespace +func (x *WorkflowTemplateListRequest) GetNamespace() string { + if x != nil { + return x.Namespace } return "" } -func (m *WorkflowTemplateLintRequest) GetTemplate() *v1alpha1.WorkflowTemplate { - if m != nil { - return m.Template +func (x *WorkflowTemplateListRequest) GetNamePattern() string { + if x != nil { + return x.NamePattern } - return nil + return "" } -func (m *WorkflowTemplateLintRequest) GetCreateOptions() *v1.CreateOptions { - if m != nil { - return m.CreateOptions +func (x *WorkflowTemplateListRequest) GetListOptions() *v1.ListOptions { + if x != nil { + return x.ListOptions } return nil } -func init() { - proto.RegisterType((*WorkflowTemplateCreateRequest)(nil), "workflowtemplate.WorkflowTemplateCreateRequest") - proto.RegisterType((*WorkflowTemplateGetRequest)(nil), "workflowtemplate.WorkflowTemplateGetRequest") - proto.RegisterType((*WorkflowTemplateListRequest)(nil), "workflowtemplate.WorkflowTemplateListRequest") - proto.RegisterType((*WorkflowTemplateUpdateRequest)(nil), "workflowtemplate.WorkflowTemplateUpdateRequest") - proto.RegisterType((*WorkflowTemplateDeleteRequest)(nil), "workflowtemplate.WorkflowTemplateDeleteRequest") - proto.RegisterType((*WorkflowTemplateDeleteResponse)(nil), "workflowtemplate.WorkflowTemplateDeleteResponse") - proto.RegisterType((*WorkflowTemplateLintRequest)(nil), "workflowtemplate.WorkflowTemplateLintRequest") -} - -func init() { - proto.RegisterFile("pkg/apiclient/workflowtemplate/workflow-template.proto", fileDescriptor_215375a0ab97a62a) -} - -var fileDescriptor_215375a0ab97a62a = []byte{ - // 701 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x96, 0x4d, 0x4f, 0xd4, 0x40, - 0x18, 0xc7, 0x33, 0x8b, 0x31, 0x32, 0x84, 0xc4, 0x8c, 0xba, 0x6e, 0x2a, 0x6e, 0x36, 0x3d, 0x18, - 0x02, 0xee, 0x94, 0x05, 0x24, 0x84, 0x23, 0x90, 0x70, 0x21, 0x91, 0x14, 0x5f, 0x82, 0x17, 0x33, - 0x2c, 0x8f, 0xa5, 0x6e, 0x77, 0xa6, 0x76, 0x86, 0x12, 0x63, 0xb8, 0x78, 0x30, 0xde, 0xfd, 0x02, - 0x7e, 0x00, 0x4f, 0x7c, 0x07, 0x13, 0x4f, 0x06, 0xe3, 0xc1, 0xab, 0x21, 0x7e, 0x01, 0xbf, 0x81, - 0xe9, 0x6c, 0xbb, 0x7d, 0x59, 0x90, 0x2e, 0x71, 0x4f, 0xde, 0x66, 0x67, 0xe7, 0x79, 0x9e, 0xff, - 0xef, 0x99, 0x7f, 0x9f, 0x16, 0x2f, 0xf9, 0x1d, 0xc7, 0x62, 0xbe, 0xdb, 0xf6, 0x5c, 0xe0, 0xca, - 0x3a, 0x14, 0x41, 0xe7, 0x85, 0x27, 0x0e, 0x15, 0x74, 0x7d, 0x8f, 0x29, 0xe8, 0x6f, 0x34, 0x93, - 0x1d, 0xea, 0x07, 0x42, 0x09, 0x72, 0xbd, 0x78, 0xd2, 0xd8, 0x72, 0x5c, 0xb5, 0x7f, 0xb0, 0x4b, - 0xdb, 0xa2, 0x6b, 0xb1, 0xc0, 0x11, 0x7e, 0x20, 0x5e, 0xea, 0x45, 0x33, 0x39, 0x2a, 0xad, 0x70, - 0xd1, 0x8a, 0xeb, 0xc9, 0x7e, 0x66, 0x2b, 0x6c, 0x31, 0xcf, 0xdf, 0x67, 0x2d, 0xcb, 0x01, 0x0e, - 0x01, 0x53, 0xb0, 0xd7, 0xab, 0x61, 0x4c, 0x39, 0x42, 0x38, 0x1e, 0x44, 0xc7, 0x2d, 0xc6, 0xb9, - 0x50, 0x4c, 0xb9, 0x82, 0xcb, 0xf8, 0xdf, 0xc5, 0xce, 0xb2, 0xa4, 0xae, 0x88, 0xfe, 0xed, 0xb2, - 0xf6, 0xbe, 0xcb, 0x21, 0x78, 0x9d, 0x66, 0xef, 0x82, 0x62, 0x56, 0x38, 0x90, 0xd3, 0x7c, 0x5f, - 0xc1, 0x77, 0x9f, 0xc6, 0x95, 0x1f, 0xc5, 0xd2, 0xd7, 0x02, 0x60, 0x0a, 0x6c, 0x78, 0x75, 0x00, - 0x52, 0x91, 0x29, 0x3c, 0xce, 0x59, 0x17, 0xa4, 0xcf, 0xda, 0x50, 0x43, 0x0d, 0x34, 0x3d, 0x6e, - 0xa7, 0x1b, 0x84, 0xe3, 0x6b, 0x09, 0x71, 0xad, 0xd2, 0x40, 0xd3, 0x13, 0xf3, 0x36, 0x4d, 0xc1, - 0x69, 0x02, 0xae, 0x17, 0xcf, 0xfb, 0xe0, 0x34, 0x5c, 0xa4, 0x7e, 0xc7, 0xa1, 0x91, 0x34, 0x9a, - 0xec, 0xd2, 0x04, 0x9c, 0x16, 0x05, 0xd9, 0xfd, 0x1a, 0x64, 0x07, 0x4f, 0xb6, 0xb5, 0xbc, 0x87, - 0xbe, 0x86, 0xaf, 0x8d, 0xe9, 0xa2, 0x0b, 0xb4, 0x47, 0x4f, 0xb3, 0xf4, 0x69, 0x89, 0x88, 0x9e, - 0x86, 0x2d, 0xba, 0x96, 0x0d, 0xb5, 0xf3, 0x99, 0xcc, 0x8f, 0x08, 0x1b, 0xc5, 0xca, 0x1b, 0xa0, - 0x92, 0x3e, 0x10, 0x7c, 0x25, 0xc2, 0x8e, 0x5b, 0xa0, 0xd7, 0xf9, 0xde, 0x54, 0x8a, 0xbd, 0xd9, - 0xc2, 0xd8, 0x01, 0x95, 0x17, 0x3a, 0x57, 0x4e, 0xe8, 0x46, 0x3f, 0xce, 0xce, 0xe4, 0x30, 0x8f, - 0x11, 0xbe, 0x53, 0x94, 0xb8, 0xe9, 0x4a, 0x55, 0xee, 0xae, 0x1a, 0x78, 0x22, 0xfa, 0xb1, 0xc5, - 0x94, 0x82, 0x80, 0xc7, 0x7a, 0xb3, 0x5b, 0x64, 0x1b, 0x4f, 0x78, 0xae, 0x2c, 0x48, 0x6e, 0x95, - 0x93, 0xbc, 0x99, 0x06, 0xda, 0xd9, 0x2c, 0xe6, 0x67, 0x34, 0x68, 0xb1, 0xc7, 0xfe, 0x5e, 0xc6, - 0x62, 0xd5, 0x6c, 0x6b, 0x57, 0x2b, 0x35, 0x54, 0xaa, 0xbd, 0x59, 0xeb, 0x8d, 0x8d, 0xde, 0x7a, - 0xe6, 0xa7, 0x33, 0x38, 0xd6, 0xc1, 0x83, 0x94, 0x63, 0x78, 0x8b, 0xec, 0xe0, 0xc9, 0x3d, 0x9d, - 0xe2, 0x52, 0x76, 0x5e, 0xcf, 0x86, 0xda, 0xf9, 0x4c, 0x66, 0x03, 0xd7, 0xcf, 0x53, 0x2b, 0x7d, - 0xc1, 0x25, 0x98, 0xef, 0x2a, 0x67, 0xb9, 0x89, 0xab, 0xff, 0xed, 0xc9, 0x9f, 0xff, 0x3d, 0x8e, - 0x6f, 0x17, 0x2b, 0x6f, 0x43, 0x10, 0xba, 0x6d, 0x20, 0x27, 0x08, 0x57, 0x7b, 0xc1, 0xc5, 0x13, - 0xc4, 0xa2, 0xc5, 0xa1, 0x4f, 0xff, 0x3a, 0x4a, 0x8d, 0x11, 0x34, 0xc8, 0x6c, 0xbd, 0xfd, 0xfe, - 0xeb, 0x43, 0x65, 0xd6, 0xbc, 0xa7, 0x5f, 0x0b, 0x61, 0x6b, 0xf0, 0x0d, 0x25, 0xad, 0x37, 0xfd, - 0x5b, 0x3b, 0x5a, 0x41, 0x33, 0xe4, 0x2b, 0xc2, 0x37, 0x36, 0x40, 0x0d, 0xf0, 0xdc, 0xbf, 0x98, - 0x27, 0x9d, 0x87, 0x23, 0x81, 0x79, 0xa0, 0x61, 0x2c, 0xd2, 0x2c, 0x07, 0xd3, 0x5b, 0x1f, 0x45, - 0x40, 0xb7, 0xa2, 0xf1, 0x53, 0xcc, 0x27, 0x49, 0xf3, 0x62, 0xa4, 0xcc, 0xfc, 0x34, 0x9e, 0xfc, - 0x7b, 0xa6, 0x28, 0xbd, 0x49, 0x35, 0xd7, 0x34, 0x29, 0x79, 0x49, 0xe4, 0x07, 0xc2, 0xd5, 0xde, - 0x88, 0xbc, 0x8c, 0xe9, 0x72, 0xc3, 0x75, 0x24, 0xf7, 0xb4, 0xac, 0x79, 0xe6, 0x8d, 0xe1, 0xee, - 0x29, 0xf2, 0xde, 0x31, 0xc2, 0xd5, 0xde, 0x18, 0xba, 0x0c, 0x59, 0x6e, 0xdc, 0x1a, 0x73, 0xe5, - 0x03, 0xe2, 0x89, 0x17, 0xfb, 0x6b, 0x66, 0x48, 0x7f, 0x7d, 0x43, 0xf8, 0x66, 0x34, 0x18, 0x07, - 0x24, 0x97, 0xb2, 0x17, 0x1f, 0xe9, 0x23, 0xb3, 0xa4, 0x91, 0xe6, 0xcc, 0xd9, 0x92, 0x48, 0x9e, - 0xcb, 0xd5, 0x0a, 0x9a, 0x59, 0xb5, 0xbf, 0x9c, 0xd6, 0xd1, 0xc9, 0x69, 0x1d, 0xfd, 0x3c, 0xad, - 0xa3, 0x67, 0xeb, 0x43, 0x7d, 0xac, 0x9e, 0xf3, 0x71, 0xbc, 0x7b, 0x55, 0x7f, 0x53, 0x2e, 0xfc, - 0x09, 0x00, 0x00, 0xff, 0xff, 0x66, 0xe4, 0x1e, 0x1c, 0x45, 0x0b, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// WorkflowTemplateServiceClient is the client API for WorkflowTemplateService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type WorkflowTemplateServiceClient interface { - CreateWorkflowTemplate(ctx context.Context, in *WorkflowTemplateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) - GetWorkflowTemplate(ctx context.Context, in *WorkflowTemplateGetRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) - ListWorkflowTemplates(ctx context.Context, in *WorkflowTemplateListRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplateList, error) - UpdateWorkflowTemplate(ctx context.Context, in *WorkflowTemplateUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) - DeleteWorkflowTemplate(ctx context.Context, in *WorkflowTemplateDeleteRequest, opts ...grpc.CallOption) (*WorkflowTemplateDeleteResponse, error) - LintWorkflowTemplate(ctx context.Context, in *WorkflowTemplateLintRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) -} - -type workflowTemplateServiceClient struct { - cc *grpc.ClientConn -} - -func NewWorkflowTemplateServiceClient(cc *grpc.ClientConn) WorkflowTemplateServiceClient { - return &workflowTemplateServiceClient{cc} -} - -func (c *workflowTemplateServiceClient) CreateWorkflowTemplate(ctx context.Context, in *WorkflowTemplateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) { - out := new(v1alpha1.WorkflowTemplate) - err := c.cc.Invoke(ctx, "/workflowtemplate.WorkflowTemplateService/CreateWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowTemplateServiceClient) GetWorkflowTemplate(ctx context.Context, in *WorkflowTemplateGetRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) { - out := new(v1alpha1.WorkflowTemplate) - err := c.cc.Invoke(ctx, "/workflowtemplate.WorkflowTemplateService/GetWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowTemplateServiceClient) ListWorkflowTemplates(ctx context.Context, in *WorkflowTemplateListRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplateList, error) { - out := new(v1alpha1.WorkflowTemplateList) - err := c.cc.Invoke(ctx, "/workflowtemplate.WorkflowTemplateService/ListWorkflowTemplates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowTemplateServiceClient) UpdateWorkflowTemplate(ctx context.Context, in *WorkflowTemplateUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) { - out := new(v1alpha1.WorkflowTemplate) - err := c.cc.Invoke(ctx, "/workflowtemplate.WorkflowTemplateService/UpdateWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowTemplateServiceClient) DeleteWorkflowTemplate(ctx context.Context, in *WorkflowTemplateDeleteRequest, opts ...grpc.CallOption) (*WorkflowTemplateDeleteResponse, error) { - out := new(WorkflowTemplateDeleteResponse) - err := c.cc.Invoke(ctx, "/workflowtemplate.WorkflowTemplateService/DeleteWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowTemplateServiceClient) LintWorkflowTemplate(ctx context.Context, in *WorkflowTemplateLintRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) { - out := new(v1alpha1.WorkflowTemplate) - err := c.cc.Invoke(ctx, "/workflowtemplate.WorkflowTemplateService/LintWorkflowTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// WorkflowTemplateServiceServer is the server API for WorkflowTemplateService service. -type WorkflowTemplateServiceServer interface { - CreateWorkflowTemplate(context.Context, *WorkflowTemplateCreateRequest) (*v1alpha1.WorkflowTemplate, error) - GetWorkflowTemplate(context.Context, *WorkflowTemplateGetRequest) (*v1alpha1.WorkflowTemplate, error) - ListWorkflowTemplates(context.Context, *WorkflowTemplateListRequest) (*v1alpha1.WorkflowTemplateList, error) - UpdateWorkflowTemplate(context.Context, *WorkflowTemplateUpdateRequest) (*v1alpha1.WorkflowTemplate, error) - DeleteWorkflowTemplate(context.Context, *WorkflowTemplateDeleteRequest) (*WorkflowTemplateDeleteResponse, error) - LintWorkflowTemplate(context.Context, *WorkflowTemplateLintRequest) (*v1alpha1.WorkflowTemplate, error) -} - -// UnimplementedWorkflowTemplateServiceServer can be embedded to have forward compatible implementations. -type UnimplementedWorkflowTemplateServiceServer struct { -} - -func (*UnimplementedWorkflowTemplateServiceServer) CreateWorkflowTemplate(ctx context.Context, req *WorkflowTemplateCreateRequest) (*v1alpha1.WorkflowTemplate, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowTemplate not implemented") -} -func (*UnimplementedWorkflowTemplateServiceServer) GetWorkflowTemplate(ctx context.Context, req *WorkflowTemplateGetRequest) (*v1alpha1.WorkflowTemplate, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowTemplate not implemented") -} -func (*UnimplementedWorkflowTemplateServiceServer) ListWorkflowTemplates(ctx context.Context, req *WorkflowTemplateListRequest) (*v1alpha1.WorkflowTemplateList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowTemplates not implemented") -} -func (*UnimplementedWorkflowTemplateServiceServer) UpdateWorkflowTemplate(ctx context.Context, req *WorkflowTemplateUpdateRequest) (*v1alpha1.WorkflowTemplate, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkflowTemplate not implemented") -} -func (*UnimplementedWorkflowTemplateServiceServer) DeleteWorkflowTemplate(ctx context.Context, req *WorkflowTemplateDeleteRequest) (*WorkflowTemplateDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkflowTemplate not implemented") -} -func (*UnimplementedWorkflowTemplateServiceServer) LintWorkflowTemplate(ctx context.Context, req *WorkflowTemplateLintRequest) (*v1alpha1.WorkflowTemplate, error) { - return nil, status.Errorf(codes.Unimplemented, "method LintWorkflowTemplate not implemented") +type WorkflowTemplateUpdateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // DEPRECATED: This field is ignored. + // + // Deprecated: Marked as deprecated in pkg/apiclient/workflowtemplate/workflow-template.proto. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + Template *v1alpha1.WorkflowTemplate `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func RegisterWorkflowTemplateServiceServer(s *grpc.Server, srv WorkflowTemplateServiceServer) { - s.RegisterService(&_WorkflowTemplateService_serviceDesc, srv) +func (x *WorkflowTemplateUpdateRequest) Reset() { + *x = WorkflowTemplateUpdateRequest{} + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func _WorkflowTemplateService_CreateWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WorkflowTemplateCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowTemplateServiceServer).CreateWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowtemplate.WorkflowTemplateService/CreateWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowTemplateServiceServer).CreateWorkflowTemplate(ctx, req.(*WorkflowTemplateCreateRequest)) - } - return interceptor(ctx, in, info, handler) +func (x *WorkflowTemplateUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func _WorkflowTemplateService_GetWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WorkflowTemplateGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowTemplateServiceServer).GetWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowtemplate.WorkflowTemplateService/GetWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowTemplateServiceServer).GetWorkflowTemplate(ctx, req.(*WorkflowTemplateGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowTemplateService_ListWorkflowTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WorkflowTemplateListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowTemplateServiceServer).ListWorkflowTemplates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowtemplate.WorkflowTemplateService/ListWorkflowTemplates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowTemplateServiceServer).ListWorkflowTemplates(ctx, req.(*WorkflowTemplateListRequest)) - } - return interceptor(ctx, in, info, handler) -} +func (*WorkflowTemplateUpdateRequest) ProtoMessage() {} -func _WorkflowTemplateService_UpdateWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WorkflowTemplateUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowTemplateServiceServer).UpdateWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowtemplate.WorkflowTemplateService/UpdateWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowTemplateServiceServer).UpdateWorkflowTemplate(ctx, req.(*WorkflowTemplateUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowTemplateService_DeleteWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WorkflowTemplateDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowTemplateServiceServer).DeleteWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowtemplate.WorkflowTemplateService/DeleteWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowTemplateServiceServer).DeleteWorkflowTemplate(ctx, req.(*WorkflowTemplateDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowTemplateService_LintWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WorkflowTemplateLintRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowTemplateServiceServer).LintWorkflowTemplate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflowtemplate.WorkflowTemplateService/LintWorkflowTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowTemplateServiceServer).LintWorkflowTemplate(ctx, req.(*WorkflowTemplateLintRequest)) +func (x *WorkflowTemplateUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -var _WorkflowTemplateService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "workflowtemplate.WorkflowTemplateService", - HandlerType: (*WorkflowTemplateServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateWorkflowTemplate", - Handler: _WorkflowTemplateService_CreateWorkflowTemplate_Handler, - }, - { - MethodName: "GetWorkflowTemplate", - Handler: _WorkflowTemplateService_GetWorkflowTemplate_Handler, - }, - { - MethodName: "ListWorkflowTemplates", - Handler: _WorkflowTemplateService_ListWorkflowTemplates_Handler, - }, - { - MethodName: "UpdateWorkflowTemplate", - Handler: _WorkflowTemplateService_UpdateWorkflowTemplate_Handler, - }, - { - MethodName: "DeleteWorkflowTemplate", - Handler: _WorkflowTemplateService_DeleteWorkflowTemplate_Handler, - }, - { - MethodName: "LintWorkflowTemplate", - Handler: _WorkflowTemplateService_LintWorkflowTemplate_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pkg/apiclient/workflowtemplate/workflow-template.proto", +// Deprecated: Use WorkflowTemplateUpdateRequest.ProtoReflect.Descriptor instead. +func (*WorkflowTemplateUpdateRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescGZIP(), []int{3} } -func (m *WorkflowTemplateCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +// Deprecated: Marked as deprecated in pkg/apiclient/workflowtemplate/workflow-template.proto. +func (x *WorkflowTemplateUpdateRequest) GetName() string { + if x != nil { + return x.Name } - return dAtA[:n], nil -} - -func (m *WorkflowTemplateCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *WorkflowTemplateCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CreateOptions != nil { - { - size, err := m.CreateOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Template != nil { - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa +func (x *WorkflowTemplateUpdateRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return len(dAtA) - i, nil + return "" } -func (m *WorkflowTemplateGetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *WorkflowTemplateUpdateRequest) GetTemplate() *v1alpha1.WorkflowTemplate { + if x != nil { + return x.Template } - return dAtA[:n], nil + return nil } -func (m *WorkflowTemplateGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type WorkflowTemplateDeleteRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + DeleteOptions *v1.DeleteOptions `protobuf:"bytes,3,opt,name=deleteOptions,proto3" json:"deleteOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowTemplateGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.GetOptions != nil { - { - size, err := m.GetOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *WorkflowTemplateDeleteRequest) Reset() { + *x = WorkflowTemplateDeleteRequest{} + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowTemplateListRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *WorkflowTemplateDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowTemplateListRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*WorkflowTemplateDeleteRequest) ProtoMessage() {} -func (m *WorkflowTemplateListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ListOptions != nil { - { - size, err := m.ListOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(size)) +func (x *WorkflowTemplateDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x1a - } - if len(m.NamePattern) > 0 { - i -= len(m.NamePattern) - copy(dAtA[i:], m.NamePattern) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.NamePattern))) - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *WorkflowTemplateUpdateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowTemplateUpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowTemplateUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Template != nil { - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use WorkflowTemplateDeleteRequest.ProtoReflect.Descriptor instead. +func (*WorkflowTemplateDeleteRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescGZIP(), []int{4} } -func (m *WorkflowTemplateDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *WorkflowTemplateDeleteRequest) GetName() string { + if x != nil { + return x.Name } - return dAtA[:n], nil -} - -func (m *WorkflowTemplateDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *WorkflowTemplateDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.DeleteOptions != nil { - { - size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa +func (x *WorkflowTemplateDeleteRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return len(dAtA) - i, nil + return "" } -func (m *WorkflowTemplateDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *WorkflowTemplateDeleteRequest) GetDeleteOptions() *v1.DeleteOptions { + if x != nil { + return x.DeleteOptions } - return dAtA[:n], nil + return nil } -func (m *WorkflowTemplateDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type WorkflowTemplateDeleteResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowTemplateDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil +func (x *WorkflowTemplateDeleteResponse) Reset() { + *x = WorkflowTemplateDeleteResponse{} + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowTemplateLintRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *WorkflowTemplateDeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowTemplateLintRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*WorkflowTemplateDeleteResponse) ProtoMessage() {} -func (m *WorkflowTemplateLintRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CreateOptions != nil { - { - size, err := m.CreateOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Template != nil { - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(size)) +func (x *WorkflowTemplateDeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintWorkflowTemplate(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintWorkflowTemplate(dAtA []byte, offset int, v uint64) int { - offset -= sovWorkflowTemplate(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *WorkflowTemplateCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.Template != nil { - l = m.Template.Size() - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.CreateOptions != nil { - l = m.CreateOptions.Size() - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowTemplateGetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.GetOptions != nil { - l = m.GetOptions.Size() - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + return ms } - return n + return mi.MessageOf(x) } -func (m *WorkflowTemplateListRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - l = len(m.NamePattern) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.ListOptions != nil { - l = m.ListOptions.Size() - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WorkflowTemplateUpdateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.Template != nil { - l = m.Template.Size() - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use WorkflowTemplateDeleteResponse.ProtoReflect.Descriptor instead. +func (*WorkflowTemplateDeleteResponse) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescGZIP(), []int{5} } -func (m *WorkflowTemplateDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.DeleteOptions != nil { - l = m.DeleteOptions.Size() - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type WorkflowTemplateLintRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + Template *v1alpha1.WorkflowTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + CreateOptions *v1.CreateOptions `protobuf:"bytes,3,opt,name=createOptions,proto3" json:"createOptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (m *WorkflowTemplateDeleteResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *WorkflowTemplateLintRequest) Reset() { + *x = WorkflowTemplateLintRequest{} + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (m *WorkflowTemplateLintRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.Template != nil { - l = m.Template.Size() - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.CreateOptions != nil { - l = m.CreateOptions.Size() - n += 1 + l + sovWorkflowTemplate(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *WorkflowTemplateLintRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func sovWorkflowTemplate(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozWorkflowTemplate(x uint64) (n int) { - return sovWorkflowTemplate(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *WorkflowTemplateCreateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowTemplateCreateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowTemplateCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Template == nil { - m.Template = &v1alpha1.WorkflowTemplate{} - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreateOptions == nil { - m.CreateOptions = &v1.CreateOptions{} - } - if err := m.CreateOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*WorkflowTemplateLintRequest) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowTemplateGetRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowTemplateGetRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowTemplateGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GetOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GetOptions == nil { - m.GetOptions = &v1.GetOptions{} - } - if err := m.GetOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy +func (x *WorkflowTemplateLintRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *WorkflowTemplateListRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowTemplateListRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowTemplateListRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NamePattern", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NamePattern = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ListOptions == nil { - m.ListOptions = &v1.ListOptions{} - } - if err := m.ListOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use WorkflowTemplateLintRequest.ProtoReflect.Descriptor instead. +func (*WorkflowTemplateLintRequest) Descriptor() ([]byte, []int) { + return file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescGZIP(), []int{6} } -func (m *WorkflowTemplateUpdateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowTemplateUpdateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowTemplateUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Template == nil { - m.Template = &v1alpha1.WorkflowTemplate{} - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *WorkflowTemplateLintRequest) GetNamespace() string { + if x != nil { + return x.Namespace } - return nil + return "" } -func (m *WorkflowTemplateDeleteRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowTemplateDeleteRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowTemplateDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteOptions == nil { - m.DeleteOptions = &v1.DeleteOptions{} - } - if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *WorkflowTemplateLintRequest) GetTemplate() *v1alpha1.WorkflowTemplate { + if x != nil { + return x.Template } return nil } -func (m *WorkflowTemplateDeleteResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowTemplateDeleteResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowTemplateDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *WorkflowTemplateLintRequest) GetCreateOptions() *v1.CreateOptions { + if x != nil { + return x.CreateOptions } return nil } -func (m *WorkflowTemplateLintRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowTemplateLintRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowTemplateLintRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Template == nil { - m.Template = &v1alpha1.WorkflowTemplate{} - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflowTemplate - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreateOptions == nil { - m.CreateOptions = &v1.CreateOptions{} - } - if err := m.CreateOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflowTemplate(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthWorkflowTemplate - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipWorkflowTemplate(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflowTemplate - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthWorkflowTemplate - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupWorkflowTemplate - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthWorkflowTemplate - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} +var File_pkg_apiclient_workflowtemplate_workflow_template_proto protoreflect.FileDescriptor + +const file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDesc = "" + + "\n" + + "6pkg/apiclient/workflowtemplate/workflow-template.proto\x12\x10workflowtemplate\x1aPgithub.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1/generated.proto\x1a\x1cgoogle/api/annotations.proto\x1a4k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto\"\x88\x02\n" + + "\x1dWorkflowTemplateCreateRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12n\n" + + "\btemplate\x18\x02 \x01(\v2R.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplateR\btemplate\x12Y\n" + + "\rcreateOptions\x18\x03 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptionsR\rcreateOptions\"\xa0\x01\n" + + "\x1aWorkflowTemplateGetRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12P\n" + + "\n" + + "getOptions\x18\x03 \x01(\v20.k8s.io.apimachinery.pkg.apis.meta.v1.GetOptionsR\n" + + "getOptions\"\xb2\x01\n" + + "\x1bWorkflowTemplateListRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12 \n" + + "\vnamePattern\x18\x02 \x01(\tR\vnamePattern\x12S\n" + + "\vlistOptions\x18\x03 \x01(\v21.k8s.io.apimachinery.pkg.apis.meta.v1.ListOptionsR\vlistOptions\"\xc5\x01\n" + + "\x1dWorkflowTemplateUpdateRequest\x12\x16\n" + + "\x04name\x18\x01 \x01(\tB\x02\x18\x01R\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12n\n" + + "\btemplate\x18\x03 \x01(\v2R.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplateR\btemplate\"\xac\x01\n" + + "\x1dWorkflowTemplateDeleteRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12Y\n" + + "\rdeleteOptions\x18\x03 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptionsR\rdeleteOptions\" \n" + + "\x1eWorkflowTemplateDeleteResponse\"\x86\x02\n" + + "\x1bWorkflowTemplateLintRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12n\n" + + "\btemplate\x18\x02 \x01(\v2R.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplateR\btemplate\x12Y\n" + + "\rcreateOptions\x18\x03 \x01(\v23.k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptionsR\rcreateOptions2\xf1\t\n" + + "\x17WorkflowTemplateService\x12\xd0\x01\n" + + "\x16CreateWorkflowTemplate\x12/.workflowtemplate.WorkflowTemplateCreateRequest\x1aR.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate\"1\x82\xd3\xe4\x93\x02+:\x01*\"&/api/v1/workflow-templates/{namespace}\x12\xce\x01\n" + + "\x13GetWorkflowTemplate\x12,.workflowtemplate.WorkflowTemplateGetRequest\x1aR.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate\"5\x82\xd3\xe4\x93\x02/\x12-/api/v1/workflow-templates/{namespace}/{name}\x12\xce\x01\n" + + "\x15ListWorkflowTemplates\x12-.workflowtemplate.WorkflowTemplateListRequest\x1aV.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplateList\".\x82\xd3\xe4\x93\x02(\x12&/api/v1/workflow-templates/{namespace}\x12\xd7\x01\n" + + "\x16UpdateWorkflowTemplate\x12/.workflowtemplate.WorkflowTemplateUpdateRequest\x1aR.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate\"8\x82\xd3\xe4\x93\x022:\x01*\x1a-/api/v1/workflow-templates/{namespace}/{name}\x12\xb2\x01\n" + + "\x16DeleteWorkflowTemplate\x12/.workflowtemplate.WorkflowTemplateDeleteRequest\x1a0.workflowtemplate.WorkflowTemplateDeleteResponse\"5\x82\xd3\xe4\x93\x02/*-/api/v1/workflow-templates/{namespace}/{name}\x12\xd1\x01\n" + + "\x14LintWorkflowTemplate\x12-.workflowtemplate.WorkflowTemplateLintRequest\x1aR.github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate\"6\x82\xd3\xe4\x93\x020:\x01*\"+/api/v1/workflow-templates/{namespace}/lintBFZDgithub.com/argoproj/argo-workflows/v4/pkg/apiclient/workflowtemplateb\x06proto3" var ( - ErrInvalidLengthWorkflowTemplate = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowWorkflowTemplate = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupWorkflowTemplate = fmt.Errorf("proto: unexpected end of group") + file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescOnce sync.Once + file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescData []byte ) + +func file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescGZIP() []byte { + file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescOnce.Do(func() { + file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDesc), len(file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDesc))) + }) + return file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDescData +} + +var file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_pkg_apiclient_workflowtemplate_workflow_template_proto_goTypes = []any{ + (*WorkflowTemplateCreateRequest)(nil), // 0: workflowtemplate.WorkflowTemplateCreateRequest + (*WorkflowTemplateGetRequest)(nil), // 1: workflowtemplate.WorkflowTemplateGetRequest + (*WorkflowTemplateListRequest)(nil), // 2: workflowtemplate.WorkflowTemplateListRequest + (*WorkflowTemplateUpdateRequest)(nil), // 3: workflowtemplate.WorkflowTemplateUpdateRequest + (*WorkflowTemplateDeleteRequest)(nil), // 4: workflowtemplate.WorkflowTemplateDeleteRequest + (*WorkflowTemplateDeleteResponse)(nil), // 5: workflowtemplate.WorkflowTemplateDeleteResponse + (*WorkflowTemplateLintRequest)(nil), // 6: workflowtemplate.WorkflowTemplateLintRequest + (*v1alpha1.WorkflowTemplate)(nil), // 7: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate + (*v1.CreateOptions)(nil), // 8: k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + (*v1.GetOptions)(nil), // 9: k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions + (*v1.ListOptions)(nil), // 10: k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + (*v1.DeleteOptions)(nil), // 11: k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + (*v1alpha1.WorkflowTemplateList)(nil), // 12: github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplateList +} +var file_pkg_apiclient_workflowtemplate_workflow_template_proto_depIdxs = []int32{ + 7, // 0: workflowtemplate.WorkflowTemplateCreateRequest.template:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate + 8, // 1: workflowtemplate.WorkflowTemplateCreateRequest.createOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + 9, // 2: workflowtemplate.WorkflowTemplateGetRequest.getOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions + 10, // 3: workflowtemplate.WorkflowTemplateListRequest.listOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions + 7, // 4: workflowtemplate.WorkflowTemplateUpdateRequest.template:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate + 11, // 5: workflowtemplate.WorkflowTemplateDeleteRequest.deleteOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions + 7, // 6: workflowtemplate.WorkflowTemplateLintRequest.template:type_name -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate + 8, // 7: workflowtemplate.WorkflowTemplateLintRequest.createOptions:type_name -> k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions + 0, // 8: workflowtemplate.WorkflowTemplateService.CreateWorkflowTemplate:input_type -> workflowtemplate.WorkflowTemplateCreateRequest + 1, // 9: workflowtemplate.WorkflowTemplateService.GetWorkflowTemplate:input_type -> workflowtemplate.WorkflowTemplateGetRequest + 2, // 10: workflowtemplate.WorkflowTemplateService.ListWorkflowTemplates:input_type -> workflowtemplate.WorkflowTemplateListRequest + 3, // 11: workflowtemplate.WorkflowTemplateService.UpdateWorkflowTemplate:input_type -> workflowtemplate.WorkflowTemplateUpdateRequest + 4, // 12: workflowtemplate.WorkflowTemplateService.DeleteWorkflowTemplate:input_type -> workflowtemplate.WorkflowTemplateDeleteRequest + 6, // 13: workflowtemplate.WorkflowTemplateService.LintWorkflowTemplate:input_type -> workflowtemplate.WorkflowTemplateLintRequest + 7, // 14: workflowtemplate.WorkflowTemplateService.CreateWorkflowTemplate:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate + 7, // 15: workflowtemplate.WorkflowTemplateService.GetWorkflowTemplate:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate + 12, // 16: workflowtemplate.WorkflowTemplateService.ListWorkflowTemplates:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplateList + 7, // 17: workflowtemplate.WorkflowTemplateService.UpdateWorkflowTemplate:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate + 5, // 18: workflowtemplate.WorkflowTemplateService.DeleteWorkflowTemplate:output_type -> workflowtemplate.WorkflowTemplateDeleteResponse + 7, // 19: workflowtemplate.WorkflowTemplateService.LintWorkflowTemplate:output_type -> github.com.argoproj.argo_workflows.v4.pkg.apis.workflow.v1alpha1.WorkflowTemplate + 14, // [14:20] is the sub-list for method output_type + 8, // [8:14] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_pkg_apiclient_workflowtemplate_workflow_template_proto_init() } +func file_pkg_apiclient_workflowtemplate_workflow_template_proto_init() { + if File_pkg_apiclient_workflowtemplate_workflow_template_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDesc), len(file_pkg_apiclient_workflowtemplate_workflow_template_proto_rawDesc)), + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pkg_apiclient_workflowtemplate_workflow_template_proto_goTypes, + DependencyIndexes: file_pkg_apiclient_workflowtemplate_workflow_template_proto_depIdxs, + MessageInfos: file_pkg_apiclient_workflowtemplate_workflow_template_proto_msgTypes, + }.Build() + File_pkg_apiclient_workflowtemplate_workflow_template_proto = out.File + file_pkg_apiclient_workflowtemplate_workflow_template_proto_goTypes = nil + file_pkg_apiclient_workflowtemplate_workflow_template_proto_depIdxs = nil +} diff --git a/pkg/apiclient/workflowtemplate/workflow-template.pb.gw.go b/pkg/apiclient/workflowtemplate/workflow-template.pb.gw.go index 703520f36026..09ba2570ad5c 100644 --- a/pkg/apiclient/workflowtemplate/workflow-template.pb.gw.go +++ b/pkg/apiclient/workflowtemplate/workflow-template.pb.gw.go @@ -10,663 +10,499 @@ package workflowtemplate import ( "context" + "errors" "io" "net/http" - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/argoproj/argo-workflows/v4/util/grpc/gateway" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_WorkflowTemplateService_CreateWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateCreateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.CreateWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowTemplateService_CreateWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateCreateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.CreateWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_WorkflowTemplateService_GetWorkflowTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_WorkflowTemplateService_GetWorkflowTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_WorkflowTemplateService_GetWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateGetRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateGetRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowTemplateService_GetWorkflowTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowTemplateService_GetWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateGetRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateGetRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowTemplateService_GetWorkflowTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_WorkflowTemplateService_ListWorkflowTemplates_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) +var filter_WorkflowTemplateService_ListWorkflowTemplates_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_WorkflowTemplateService_ListWorkflowTemplates_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateListRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateListRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowTemplateService_ListWorkflowTemplates_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListWorkflowTemplates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowTemplateService_ListWorkflowTemplates_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateListRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateListRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowTemplateService_ListWorkflowTemplates_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListWorkflowTemplates(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowTemplateService_UpdateWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateUpdateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.UpdateWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowTemplateService_UpdateWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateUpdateRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.UpdateWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } -var ( - filter_WorkflowTemplateService_DeleteWorkflowTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) +var filter_WorkflowTemplateService_DeleteWorkflowTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_WorkflowTemplateService_DeleteWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateDeleteRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateDeleteRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowTemplateService_DeleteWorkflowTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowTemplateService_DeleteWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateDeleteRequest - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateDeleteRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorkflowTemplateService_DeleteWorkflowTemplate_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func request_WorkflowTemplateService_LintWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client WorkflowTemplateServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateLintRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateLintRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := client.LintWorkflowTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } func local_request_WorkflowTemplateService_LintWorkflowTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server WorkflowTemplateServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq WorkflowTemplateLintRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq WorkflowTemplateLintRequest + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["namespace"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["namespace"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) - if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } - msg, err := server.LintWorkflowTemplate(ctx, &protoReq) - return msg, metadata, err - + return gateway.MessageV2Of(msg), metadata, err } // RegisterWorkflowTemplateServiceHandlerServer registers the http handlers for service WorkflowTemplateService to "mux". // UnaryRPC :call WorkflowTemplateServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWorkflowTemplateServiceHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterWorkflowTemplateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WorkflowTemplateServiceServer) error { - - mux.Handle("POST", pattern_WorkflowTemplateService_CreateWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowTemplateService_CreateWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/CreateWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowTemplateService_CreateWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowTemplateService_CreateWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_CreateWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_CreateWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowTemplateService_GetWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowTemplateService_GetWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/GetWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowTemplateService_GetWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowTemplateService_GetWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_GetWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_GetWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowTemplateService_ListWorkflowTemplates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowTemplateService_ListWorkflowTemplates_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/ListWorkflowTemplates", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowTemplateService_ListWorkflowTemplates_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowTemplateService_ListWorkflowTemplates_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_ListWorkflowTemplates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_ListWorkflowTemplates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowTemplateService_UpdateWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowTemplateService_UpdateWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/UpdateWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowTemplateService_UpdateWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowTemplateService_UpdateWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_UpdateWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_UpdateWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_WorkflowTemplateService_DeleteWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_WorkflowTemplateService_DeleteWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/DeleteWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowTemplateService_DeleteWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowTemplateService_DeleteWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_DeleteWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_DeleteWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_WorkflowTemplateService_LintWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowTemplateService_LintWorkflowTemplate_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/LintWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}/lint")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_WorkflowTemplateService_LintWorkflowTemplate_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_WorkflowTemplateService_LintWorkflowTemplate_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_LintWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_LintWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -675,25 +511,24 @@ func RegisterWorkflowTemplateServiceHandlerServer(ctx context.Context, mux *runt // RegisterWorkflowTemplateServiceHandlerFromEndpoint is same as RegisterWorkflowTemplateServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterWorkflowTemplateServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterWorkflowTemplateServiceHandler(ctx, mux, conn) } @@ -707,156 +542,127 @@ func RegisterWorkflowTemplateServiceHandler(ctx context.Context, mux *runtime.Se // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WorkflowTemplateServiceClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WorkflowTemplateServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "WorkflowTemplateServiceClient" to call the correct interceptors. +// "WorkflowTemplateServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterWorkflowTemplateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WorkflowTemplateServiceClient) error { - - mux.Handle("POST", pattern_WorkflowTemplateService_CreateWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowTemplateService_CreateWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/CreateWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowTemplateService_CreateWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowTemplateService_CreateWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_CreateWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_CreateWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowTemplateService_GetWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowTemplateService_GetWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/GetWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowTemplateService_GetWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowTemplateService_GetWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_GetWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_GetWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("GET", pattern_WorkflowTemplateService_ListWorkflowTemplates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_WorkflowTemplateService_ListWorkflowTemplates_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/ListWorkflowTemplates", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowTemplateService_ListWorkflowTemplates_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowTemplateService_ListWorkflowTemplates_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_ListWorkflowTemplates_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_ListWorkflowTemplates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("PUT", pattern_WorkflowTemplateService_UpdateWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_WorkflowTemplateService_UpdateWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/UpdateWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowTemplateService_UpdateWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowTemplateService_UpdateWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_UpdateWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_UpdateWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("DELETE", pattern_WorkflowTemplateService_DeleteWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_WorkflowTemplateService_DeleteWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/DeleteWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowTemplateService_DeleteWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowTemplateService_DeleteWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_DeleteWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_DeleteWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - - mux.Handle("POST", pattern_WorkflowTemplateService_LintWorkflowTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_WorkflowTemplateService_LintWorkflowTemplate_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/workflowtemplate.WorkflowTemplateService/LintWorkflowTemplate", runtime.WithHTTPPathPattern("/api/v1/workflow-templates/{namespace}/lint")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_WorkflowTemplateService_LintWorkflowTemplate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_WorkflowTemplateService_LintWorkflowTemplate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - - forward_WorkflowTemplateService_LintWorkflowTemplate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - + forward_WorkflowTemplateService_LintWorkflowTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - return nil } var ( - pattern_WorkflowTemplateService_CreateWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflow-templates", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowTemplateService_GetWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow-templates", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowTemplateService_ListWorkflowTemplates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflow-templates", "namespace"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowTemplateService_UpdateWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow-templates", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowTemplateService_DeleteWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow-templates", "namespace", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_WorkflowTemplateService_LintWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "workflow-templates", "namespace", "lint"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_WorkflowTemplateService_CreateWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflow-templates", "namespace"}, "")) + pattern_WorkflowTemplateService_GetWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow-templates", "namespace", "name"}, "")) + pattern_WorkflowTemplateService_ListWorkflowTemplates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "workflow-templates", "namespace"}, "")) + pattern_WorkflowTemplateService_UpdateWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow-templates", "namespace", "name"}, "")) + pattern_WorkflowTemplateService_DeleteWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow-templates", "namespace", "name"}, "")) + pattern_WorkflowTemplateService_LintWorkflowTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "workflow-templates", "namespace", "lint"}, "")) ) var ( forward_WorkflowTemplateService_CreateWorkflowTemplate_0 = runtime.ForwardResponseMessage - - forward_WorkflowTemplateService_GetWorkflowTemplate_0 = runtime.ForwardResponseMessage - - forward_WorkflowTemplateService_ListWorkflowTemplates_0 = runtime.ForwardResponseMessage - + forward_WorkflowTemplateService_GetWorkflowTemplate_0 = runtime.ForwardResponseMessage + forward_WorkflowTemplateService_ListWorkflowTemplates_0 = runtime.ForwardResponseMessage forward_WorkflowTemplateService_UpdateWorkflowTemplate_0 = runtime.ForwardResponseMessage - forward_WorkflowTemplateService_DeleteWorkflowTemplate_0 = runtime.ForwardResponseMessage - - forward_WorkflowTemplateService_LintWorkflowTemplate_0 = runtime.ForwardResponseMessage + forward_WorkflowTemplateService_LintWorkflowTemplate_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/apiclient/workflowtemplate/workflow-template_grpc.pb.go b/pkg/apiclient/workflowtemplate/workflow-template_grpc.pb.go new file mode 100644 index 000000000000..dcf49a0fdb6c --- /dev/null +++ b/pkg/apiclient/workflowtemplate/workflow-template_grpc.pb.go @@ -0,0 +1,314 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.19.4 +// source: pkg/apiclient/workflowtemplate/workflow-template.proto + +// Workflow Service +// +// Workflow Service API performs CRUD actions against application resources + +package workflowtemplate + +import ( + context "context" + v1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + WorkflowTemplateService_CreateWorkflowTemplate_FullMethodName = "/workflowtemplate.WorkflowTemplateService/CreateWorkflowTemplate" + WorkflowTemplateService_GetWorkflowTemplate_FullMethodName = "/workflowtemplate.WorkflowTemplateService/GetWorkflowTemplate" + WorkflowTemplateService_ListWorkflowTemplates_FullMethodName = "/workflowtemplate.WorkflowTemplateService/ListWorkflowTemplates" + WorkflowTemplateService_UpdateWorkflowTemplate_FullMethodName = "/workflowtemplate.WorkflowTemplateService/UpdateWorkflowTemplate" + WorkflowTemplateService_DeleteWorkflowTemplate_FullMethodName = "/workflowtemplate.WorkflowTemplateService/DeleteWorkflowTemplate" + WorkflowTemplateService_LintWorkflowTemplate_FullMethodName = "/workflowtemplate.WorkflowTemplateService/LintWorkflowTemplate" +) + +// WorkflowTemplateServiceClient is the client API for WorkflowTemplateService 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 WorkflowTemplateServiceClient interface { + CreateWorkflowTemplate(ctx context.Context, in *WorkflowTemplateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) + GetWorkflowTemplate(ctx context.Context, in *WorkflowTemplateGetRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) + ListWorkflowTemplates(ctx context.Context, in *WorkflowTemplateListRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplateList, error) + UpdateWorkflowTemplate(ctx context.Context, in *WorkflowTemplateUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) + DeleteWorkflowTemplate(ctx context.Context, in *WorkflowTemplateDeleteRequest, opts ...grpc.CallOption) (*WorkflowTemplateDeleteResponse, error) + LintWorkflowTemplate(ctx context.Context, in *WorkflowTemplateLintRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) +} + +type workflowTemplateServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewWorkflowTemplateServiceClient(cc grpc.ClientConnInterface) WorkflowTemplateServiceClient { + return &workflowTemplateServiceClient{cc} +} + +func (c *workflowTemplateServiceClient) CreateWorkflowTemplate(ctx context.Context, in *WorkflowTemplateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.WorkflowTemplate) + err := c.cc.Invoke(ctx, WorkflowTemplateService_CreateWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowTemplateServiceClient) GetWorkflowTemplate(ctx context.Context, in *WorkflowTemplateGetRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.WorkflowTemplate) + err := c.cc.Invoke(ctx, WorkflowTemplateService_GetWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowTemplateServiceClient) ListWorkflowTemplates(ctx context.Context, in *WorkflowTemplateListRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplateList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.WorkflowTemplateList) + err := c.cc.Invoke(ctx, WorkflowTemplateService_ListWorkflowTemplates_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowTemplateServiceClient) UpdateWorkflowTemplate(ctx context.Context, in *WorkflowTemplateUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.WorkflowTemplate) + err := c.cc.Invoke(ctx, WorkflowTemplateService_UpdateWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowTemplateServiceClient) DeleteWorkflowTemplate(ctx context.Context, in *WorkflowTemplateDeleteRequest, opts ...grpc.CallOption) (*WorkflowTemplateDeleteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(WorkflowTemplateDeleteResponse) + err := c.cc.Invoke(ctx, WorkflowTemplateService_DeleteWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowTemplateServiceClient) LintWorkflowTemplate(ctx context.Context, in *WorkflowTemplateLintRequest, opts ...grpc.CallOption) (*v1alpha1.WorkflowTemplate, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(v1alpha1.WorkflowTemplate) + err := c.cc.Invoke(ctx, WorkflowTemplateService_LintWorkflowTemplate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// WorkflowTemplateServiceServer is the server API for WorkflowTemplateService service. +// All implementations should embed UnimplementedWorkflowTemplateServiceServer +// for forward compatibility. +type WorkflowTemplateServiceServer interface { + CreateWorkflowTemplate(context.Context, *WorkflowTemplateCreateRequest) (*v1alpha1.WorkflowTemplate, error) + GetWorkflowTemplate(context.Context, *WorkflowTemplateGetRequest) (*v1alpha1.WorkflowTemplate, error) + ListWorkflowTemplates(context.Context, *WorkflowTemplateListRequest) (*v1alpha1.WorkflowTemplateList, error) + UpdateWorkflowTemplate(context.Context, *WorkflowTemplateUpdateRequest) (*v1alpha1.WorkflowTemplate, error) + DeleteWorkflowTemplate(context.Context, *WorkflowTemplateDeleteRequest) (*WorkflowTemplateDeleteResponse, error) + LintWorkflowTemplate(context.Context, *WorkflowTemplateLintRequest) (*v1alpha1.WorkflowTemplate, error) +} + +// UnimplementedWorkflowTemplateServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedWorkflowTemplateServiceServer struct{} + +func (UnimplementedWorkflowTemplateServiceServer) CreateWorkflowTemplate(context.Context, *WorkflowTemplateCreateRequest) (*v1alpha1.WorkflowTemplate, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowTemplate not implemented") +} +func (UnimplementedWorkflowTemplateServiceServer) GetWorkflowTemplate(context.Context, *WorkflowTemplateGetRequest) (*v1alpha1.WorkflowTemplate, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowTemplate not implemented") +} +func (UnimplementedWorkflowTemplateServiceServer) ListWorkflowTemplates(context.Context, *WorkflowTemplateListRequest) (*v1alpha1.WorkflowTemplateList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowTemplates not implemented") +} +func (UnimplementedWorkflowTemplateServiceServer) UpdateWorkflowTemplate(context.Context, *WorkflowTemplateUpdateRequest) (*v1alpha1.WorkflowTemplate, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkflowTemplate not implemented") +} +func (UnimplementedWorkflowTemplateServiceServer) DeleteWorkflowTemplate(context.Context, *WorkflowTemplateDeleteRequest) (*WorkflowTemplateDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkflowTemplate not implemented") +} +func (UnimplementedWorkflowTemplateServiceServer) LintWorkflowTemplate(context.Context, *WorkflowTemplateLintRequest) (*v1alpha1.WorkflowTemplate, error) { + return nil, status.Errorf(codes.Unimplemented, "method LintWorkflowTemplate not implemented") +} +func (UnimplementedWorkflowTemplateServiceServer) testEmbeddedByValue() {} + +// UnsafeWorkflowTemplateServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to WorkflowTemplateServiceServer will +// result in compilation errors. +type UnsafeWorkflowTemplateServiceServer interface { + mustEmbedUnimplementedWorkflowTemplateServiceServer() +} + +func RegisterWorkflowTemplateServiceServer(s grpc.ServiceRegistrar, srv WorkflowTemplateServiceServer) { + // If the following call pancis, it indicates UnimplementedWorkflowTemplateServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&WorkflowTemplateService_ServiceDesc, srv) +} + +func _WorkflowTemplateService_CreateWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowTemplateCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowTemplateServiceServer).CreateWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowTemplateService_CreateWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowTemplateServiceServer).CreateWorkflowTemplate(ctx, req.(*WorkflowTemplateCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowTemplateService_GetWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowTemplateGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowTemplateServiceServer).GetWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowTemplateService_GetWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowTemplateServiceServer).GetWorkflowTemplate(ctx, req.(*WorkflowTemplateGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowTemplateService_ListWorkflowTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowTemplateListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowTemplateServiceServer).ListWorkflowTemplates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowTemplateService_ListWorkflowTemplates_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowTemplateServiceServer).ListWorkflowTemplates(ctx, req.(*WorkflowTemplateListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowTemplateService_UpdateWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowTemplateUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowTemplateServiceServer).UpdateWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowTemplateService_UpdateWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowTemplateServiceServer).UpdateWorkflowTemplate(ctx, req.(*WorkflowTemplateUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowTemplateService_DeleteWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowTemplateDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowTemplateServiceServer).DeleteWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowTemplateService_DeleteWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowTemplateServiceServer).DeleteWorkflowTemplate(ctx, req.(*WorkflowTemplateDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowTemplateService_LintWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WorkflowTemplateLintRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowTemplateServiceServer).LintWorkflowTemplate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkflowTemplateService_LintWorkflowTemplate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowTemplateServiceServer).LintWorkflowTemplate(ctx, req.(*WorkflowTemplateLintRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// WorkflowTemplateService_ServiceDesc is the grpc.ServiceDesc for WorkflowTemplateService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var WorkflowTemplateService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "workflowtemplate.WorkflowTemplateService", + HandlerType: (*WorkflowTemplateServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateWorkflowTemplate", + Handler: _WorkflowTemplateService_CreateWorkflowTemplate_Handler, + }, + { + MethodName: "GetWorkflowTemplate", + Handler: _WorkflowTemplateService_GetWorkflowTemplate_Handler, + }, + { + MethodName: "ListWorkflowTemplates", + Handler: _WorkflowTemplateService_ListWorkflowTemplates_Handler, + }, + { + MethodName: "UpdateWorkflowTemplate", + Handler: _WorkflowTemplateService_UpdateWorkflowTemplate_Handler, + }, + { + MethodName: "DeleteWorkflowTemplate", + Handler: _WorkflowTemplateService_DeleteWorkflowTemplate_Handler, + }, + { + MethodName: "LintWorkflowTemplate", + Handler: _WorkflowTemplateService_LintWorkflowTemplate_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/apiclient/workflowtemplate/workflow-template.proto", +} diff --git a/pkg/client/clientset/versioned/fake/clientset_generated.go b/pkg/client/clientset/versioned/fake/clientset_generated.go index f8fe6212f554..e529c48c7519 100644 --- a/pkg/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/client/clientset/versioned/fake/clientset_generated.go @@ -18,10 +18,6 @@ import ( // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, // without applying any field management, validations and/or defaults. It shouldn't be considered a replacement // for a real clientset and is mostly useful in simple unit tests. -// -// Deprecated: NewClientset replaces this with support for field management, which significantly improves -// server side apply testing. NewClientset is only available when apply configurations are generated (e.g. -// via --with-applyconfig). func NewSimpleClientset(objects ...runtime.Object) *Clientset { o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) for _, obj := range objects { diff --git a/renovate.json b/renovate.json index 89b3a653e8bc..148c575b2875 100644 --- a/renovate.json +++ b/renovate.json @@ -23,9 +23,83 @@ "# renovate: datasource=(?\\S+) depName=(?\\S+)( versioning=(?\\S+))?\\s+\\w+\\s*\\??=\\s*\"?(?[^\\s\"]+)\"?" ], "extractVersionTemplate": "^v(?.+)$" + }, + { + "description": "k8s.io/code-generator pins in Makefile (go install and go list)", + "customType": "regex", + "managerFilePatterns": [ + "/^Makefile$/" + ], + "matchStrings": [ + "go install k8s\\.io/code-generator/cmd/go-to-protobuf@(?v\\d+\\.\\d+\\.\\d+)", + "go list -mod=mod -m -f '\\{\\{\\.Dir\\}\\}' k8s\\.io/code-generator@(?v\\d+\\.\\d+\\.\\d+)" + ], + "depNameTemplate": "k8s.io/code-generator", + "datasourceTemplate": "go" + }, + { + "description": "protoc plugin pins in Makefile", + "customType": "regex", + "managerFilePatterns": [ + "/^Makefile$/" + ], + "matchStrings": [ + "go install (?google\\.golang\\.org/protobuf)/cmd/protoc-gen-go@(?v[\\d.]+)", + "go install (?google\\.golang\\.org/grpc/cmd/protoc-gen-go-grpc)@(?v[\\d.]+)", + "go install (?github\\.com/grpc-ecosystem/grpc-gateway/v2)/protoc-gen-grpc-gateway@(?v[\\d.]+)", + "go install (?github\\.com/grpc-ecosystem/grpc-gateway/v2)/protoc-gen-openapiv2@(?v[\\d.]+)" + ], + "datasourceTemplate": "go" + }, + { + "description": "Kubernetes OpenAPI spec version in Makefile", + "customType": "regex", + "managerFilePatterns": [ + "/^Makefile$/" + ], + "matchStrings": [ + "kubernetes/kubernetes/(?v\\d+\\.\\d+\\.\\d+)/api/openapi-spec" + ], + "depNameTemplate": "kubernetes/kubernetes", + "datasourceTemplate": "github-tags" + }, + { + "description": "k8s.io proto vendor refs in argo-proto.yaml", + "customType": "regex", + "managerFilePatterns": [ + "/^argo-proto\\.yaml$/" + ], + "matchStrings": [ + "owner: kubernetes\\s+name: (?api|apimachinery)\\s+ref: (?v\\d+\\.\\d+\\.\\d+)" + ], + "depNameTemplate": "k8s.io/{{{depName}}}", + "datasourceTemplate": "go" + }, + { + "description": "Tool pins annotated with `# renovate:` in the nix dev env (kept in lockstep with the Makefile pins)", + "customType": "regex", + "managerFilePatterns": [ + "/^dev/nix/flake\\.nix$/", + "/^devenv\\.nix$/" + ], + "matchStrings": [ + "# renovate: datasource=(?\\S+) depName=(?\\S+)\\n\\s*\\w+ = \"(?[^\"]+)\";", + "# renovate: datasource=(?\\S+) depName=(?\\S+)\\n\\s*\"[^\"@]+@(?[^\"]+)\"" + ], + "extractVersionTemplate": "^v?(?.+)$" } ], "packageRules": [ + { + "description": "Group k8s.io code-generator, proto vendor, and OpenAPI spec versions", + "matchPackageNames": [ + "k8s.io/code-generator", + "k8s.io/api", + "k8s.io/apimachinery", + "kubernetes/kubernetes" + ], + "groupName": "k8s.io codegen and proto deps" + }, { "description": "Disable argo updates (maintained separately)", "matchPackageNames": [ @@ -67,10 +141,16 @@ }, { "description": "Group and automerge distroless base image digest updates", - "matchDatasources": ["docker"], - "matchPackageNames": ["gcr.io/distroless/static-debian13"], + "matchDatasources": [ + "docker" + ], + "matchPackageNames": [ + "gcr.io/distroless/static-debian13" + ], "groupName": "distroless base image", - "matchUpdateTypes": ["digest"], + "matchUpdateTypes": [ + "digest" + ], "automerge": true }, { @@ -83,6 +163,14 @@ "lockFileMaintenance" ], "enabled": false + }, + { + "description": "Nix pins need manual fetch/vendor hash updates in the same PR, never automerge", + "matchFileNames": [ + "dev/nix/**", + "devenv.nix" + ], + "automerge": false } ], "platformAutomerge": true, diff --git a/sdks/java/client/docs/ArchivedWorkflowServiceApi.md b/sdks/java/client/docs/ArchivedWorkflowServiceApi.md index 3f116a63ff8d..06223355491b 100644 --- a/sdks/java/client/docs/ArchivedWorkflowServiceApi.md +++ b/sdks/java/client/docs/ArchivedWorkflowServiceApi.md @@ -253,13 +253,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ArchivedWorkflowServiceApi apiInstance = new ArchivedWorkflowServiceApi(defaultClient); - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional @@ -282,13 +282,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] @@ -341,19 +341,19 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ArchivedWorkflowServiceApi apiInstance = new ArchivedWorkflowServiceApi(defaultClient); - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional String namePrefix = "namePrefix_example"; // String | String namespace = "namespace_example"; // String | - String nameFilter = "nameFilter_example"; // String | Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact. + String nameFilter = "nameFilter_example"; // String | Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact try { IoArgoprojWorkflowV1alpha1WorkflowList result = apiInstance.archivedWorkflowServiceListArchivedWorkflows(listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents, namePrefix, namespace, nameFilter); System.out.println(result); @@ -372,19 +372,19 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] **namePrefix** | **String**| | [optional] **namespace** | **String**| | [optional] - **nameFilter** | **String**| Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact. | [optional] + **nameFilter** | **String**| Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact | [optional] ### Return type @@ -434,7 +434,7 @@ public class Example { ArchivedWorkflowServiceApi apiInstance = new ArchivedWorkflowServiceApi(defaultClient); String uid = "uid_example"; // String | - IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest body = new IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest(); // IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest | + IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowBody body = new IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowBody(); // IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.archivedWorkflowServiceResubmitArchivedWorkflow(uid, body); System.out.println(result); @@ -454,7 +454,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **uid** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest**](IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowBody**](IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowBody.md)| | ### Return type @@ -504,7 +504,7 @@ public class Example { ArchivedWorkflowServiceApi apiInstance = new ArchivedWorkflowServiceApi(defaultClient); String uid = "uid_example"; // String | - IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest body = new IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest(); // IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest | + IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowBody body = new IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowBody(); // IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.archivedWorkflowServiceRetryArchivedWorkflow(uid, body); System.out.println(result); @@ -524,7 +524,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **uid** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest**](IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowBody**](IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowBody.md)| | ### Return type diff --git a/sdks/java/client/docs/ClusterWorkflowTemplateServiceApi.md b/sdks/java/client/docs/ClusterWorkflowTemplateServiceApi.md index 56c1534ff178..608ccecaf682 100644 --- a/sdks/java/client/docs/ClusterWorkflowTemplateServiceApi.md +++ b/sdks/java/client/docs/ClusterWorkflowTemplateServiceApi.md @@ -109,13 +109,13 @@ public class Example { ClusterWorkflowTemplateServiceApi apiInstance = new ClusterWorkflowTemplateServiceApi(defaultClient); String name = "name_example"; // String | - String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. - String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional. - String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional. - Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. - String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. - List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. - Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. + String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional + String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional + String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional + Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional + String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional + List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic + Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional try { Object result = apiInstance.clusterWorkflowTemplateServiceDeleteClusterWorkflowTemplate(name, deleteOptionsGracePeriodSeconds, deleteOptionsPreconditionsUid, deleteOptionsPreconditionsResourceVersion, deleteOptionsOrphanDependents, deleteOptionsPropagationPolicy, deleteOptionsDryRun, deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential); System.out.println(result); @@ -135,13 +135,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| | - **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. | [optional] - **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional. | [optional] - **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional. | [optional] - **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. | [optional] - **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. | [optional] - **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. | [optional] - **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. | [optional] + **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional | [optional] + **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional | [optional] + **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional | [optional] + **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional | [optional] + **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional | [optional] + **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic | [optional] + **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional | [optional] ### Return type @@ -328,13 +328,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ClusterWorkflowTemplateServiceApi apiInstance = new ClusterWorkflowTemplateServiceApi(defaultClient); - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional @@ -356,13 +356,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] @@ -415,7 +415,7 @@ public class Example { ClusterWorkflowTemplateServiceApi apiInstance = new ClusterWorkflowTemplateServiceApi(defaultClient); String name = "name_example"; // String | DEPRECATED: This field is ignored. - IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest body = new IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest(); // IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest | + IoArgoprojWorkflowV1alpha1UpdateClusterWorkflowTemplateBody body = new IoArgoprojWorkflowV1alpha1UpdateClusterWorkflowTemplateBody(); // IoArgoprojWorkflowV1alpha1UpdateClusterWorkflowTemplateBody | try { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate result = apiInstance.clusterWorkflowTemplateServiceUpdateClusterWorkflowTemplate(name, body); System.out.println(result); @@ -435,7 +435,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| DEPRECATED: This field is ignored. | - **body** | [**IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest**](IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1UpdateClusterWorkflowTemplateBody**](IoArgoprojWorkflowV1alpha1UpdateClusterWorkflowTemplateBody.md)| | ### Return type diff --git a/sdks/java/client/docs/CronWorkflowServiceApi.md b/sdks/java/client/docs/CronWorkflowServiceApi.md index 1238c395a5aa..049114d97977 100644 --- a/sdks/java/client/docs/CronWorkflowServiceApi.md +++ b/sdks/java/client/docs/CronWorkflowServiceApi.md @@ -43,7 +43,7 @@ public class Example { CronWorkflowServiceApi apiInstance = new CronWorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | - IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest body = new IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest(); // IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest | + IoArgoprojWorkflowV1alpha1CreateCronWorkflowBody body = new IoArgoprojWorkflowV1alpha1CreateCronWorkflowBody(); // IoArgoprojWorkflowV1alpha1CreateCronWorkflowBody | try { IoArgoprojWorkflowV1alpha1CronWorkflow result = apiInstance.cronWorkflowServiceCreateCronWorkflow(namespace, body); System.out.println(result); @@ -63,7 +63,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest**](IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1CreateCronWorkflowBody**](IoArgoprojWorkflowV1alpha1CreateCronWorkflowBody.md)| | ### Return type @@ -114,13 +114,13 @@ public class Example { CronWorkflowServiceApi apiInstance = new CronWorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. - String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional. - String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional. - Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. - String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. - List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. - Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. + String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional + String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional + String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional + Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional + String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional + List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic + Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional try { Object result = apiInstance.cronWorkflowServiceDeleteCronWorkflow(namespace, name, deleteOptionsGracePeriodSeconds, deleteOptionsPreconditionsUid, deleteOptionsPreconditionsResourceVersion, deleteOptionsOrphanDependents, deleteOptionsPropagationPolicy, deleteOptionsDryRun, deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential); System.out.println(result); @@ -141,13 +141,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. | [optional] - **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional. | [optional] - **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional. | [optional] - **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. | [optional] - **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. | [optional] - **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. | [optional] - **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. | [optional] + **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional | [optional] + **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional | [optional] + **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional | [optional] + **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional | [optional] + **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional | [optional] + **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic | [optional] + **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional | [optional] ### Return type @@ -269,7 +269,7 @@ public class Example { CronWorkflowServiceApi apiInstance = new CronWorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | - IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest body = new IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest(); // IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest | + IoArgoprojWorkflowV1alpha1LintCronWorkflowBody body = new IoArgoprojWorkflowV1alpha1LintCronWorkflowBody(); // IoArgoprojWorkflowV1alpha1LintCronWorkflowBody | try { IoArgoprojWorkflowV1alpha1CronWorkflow result = apiInstance.cronWorkflowServiceLintCronWorkflow(namespace, body); System.out.println(result); @@ -289,7 +289,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest**](IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1LintCronWorkflowBody**](IoArgoprojWorkflowV1alpha1LintCronWorkflowBody.md)| | ### Return type @@ -339,13 +339,13 @@ public class Example { CronWorkflowServiceApi apiInstance = new CronWorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional @@ -368,13 +368,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] @@ -428,7 +428,7 @@ public class Example { CronWorkflowServiceApi apiInstance = new CronWorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest body = new IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest(); // IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest | + Object body = null; // Object | try { IoArgoprojWorkflowV1alpha1CronWorkflow result = apiInstance.cronWorkflowServiceResumeCronWorkflow(namespace, name, body); System.out.println(result); @@ -449,7 +449,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest**](IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest.md)| | + **body** | **Object**| | ### Return type @@ -500,7 +500,7 @@ public class Example { CronWorkflowServiceApi apiInstance = new CronWorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest body = new IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest(); // IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest | + Object body = null; // Object | try { IoArgoprojWorkflowV1alpha1CronWorkflow result = apiInstance.cronWorkflowServiceSuspendCronWorkflow(namespace, name, body); System.out.println(result); @@ -521,7 +521,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest**](IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest.md)| | + **body** | **Object**| | ### Return type @@ -572,7 +572,7 @@ public class Example { CronWorkflowServiceApi apiInstance = new CronWorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | DEPRECATED: This field is ignored. - IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest body = new IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest(); // IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest | + IoArgoprojWorkflowV1alpha1UpdateCronWorkflowBody body = new IoArgoprojWorkflowV1alpha1UpdateCronWorkflowBody(); // IoArgoprojWorkflowV1alpha1UpdateCronWorkflowBody | try { IoArgoprojWorkflowV1alpha1CronWorkflow result = apiInstance.cronWorkflowServiceUpdateCronWorkflow(namespace, name, body); System.out.println(result); @@ -593,7 +593,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| DEPRECATED: This field is ignored. | - **body** | [**IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest**](IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1UpdateCronWorkflowBody**](IoArgoprojWorkflowV1alpha1UpdateCronWorkflowBody.md)| | ### Return type diff --git a/sdks/java/client/docs/EventServiceApi.md b/sdks/java/client/docs/EventServiceApi.md index 3561c346f076..570d80c886d7 100644 --- a/sdks/java/client/docs/EventServiceApi.md +++ b/sdks/java/client/docs/EventServiceApi.md @@ -37,13 +37,13 @@ public class Example { EventServiceApi apiInstance = new EventServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional @@ -66,13 +66,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] @@ -98,7 +98,7 @@ Name | Type | Description | Notes # **eventServiceReceiveEvent** -> Object eventServiceReceiveEvent(namespace, discriminator, body) +> Object eventServiceReceiveEvent(namespace, discriminator, payload) @@ -126,9 +126,9 @@ public class Example { EventServiceApi apiInstance = new EventServiceApi(defaultClient); String namespace = "namespace_example"; // String | The namespace for the io.argoproj.workflow.v1alpha1. This can be empty if the client has cluster scoped permissions. If empty, then the event is \"broadcast\" to workflow event binding in all namespaces. String discriminator = "discriminator_example"; // String | Optional discriminator for the io.argoproj.workflow.v1alpha1. This should almost always be empty. Used for edge-cases where the event payload alone is not provide enough information to discriminate the event. This MUST NOT be used as security mechanism, e.g. to allow two clients to use the same access token, or to support webhooks on unsecured server. Instead, use access tokens. This is made available as `discriminator` in the event binding selector (`/spec/event/selector)` - Object body = null; // Object | The event itself can be any data. + Object payload = null; // Object | The event itself can be any data. try { - Object result = apiInstance.eventServiceReceiveEvent(namespace, discriminator, body); + Object result = apiInstance.eventServiceReceiveEvent(namespace, discriminator, payload); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling EventServiceApi#eventServiceReceiveEvent"); @@ -147,7 +147,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| The namespace for the io.argoproj.workflow.v1alpha1. This can be empty if the client has cluster scoped permissions. If empty, then the event is \"broadcast\" to workflow event binding in all namespaces. | **discriminator** | **String**| Optional discriminator for the io.argoproj.workflow.v1alpha1. This should almost always be empty. Used for edge-cases where the event payload alone is not provide enough information to discriminate the event. This MUST NOT be used as security mechanism, e.g. to allow two clients to use the same access token, or to support webhooks on unsecured server. Instead, use access tokens. This is made available as `discriminator` in the event binding selector (`/spec/event/selector)` | - **body** | **Object**| The event itself can be any data. | + **payload** | **Object**| The event itself can be any data. | ### Return type diff --git a/sdks/java/client/docs/EventSourceServiceApi.md b/sdks/java/client/docs/EventSourceServiceApi.md index 39dbc37cc79e..3caa408a3f6e 100644 --- a/sdks/java/client/docs/EventSourceServiceApi.md +++ b/sdks/java/client/docs/EventSourceServiceApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **eventSourceServiceCreateEventSource** -> GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource eventSourceServiceCreateEventSource(namespace, body) +> IoArgoprojEventsV1alpha1EventSource eventSourceServiceCreateEventSource(namespace, body) @@ -42,9 +42,9 @@ public class Example { EventSourceServiceApi apiInstance = new EventSourceServiceApi(defaultClient); String namespace = "namespace_example"; // String | - EventsourceCreateEventSourceRequest body = new EventsourceCreateEventSourceRequest(); // EventsourceCreateEventSourceRequest | + EventsourceCreateEventSourceBody body = new EventsourceCreateEventSourceBody(); // EventsourceCreateEventSourceBody | try { - GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource result = apiInstance.eventSourceServiceCreateEventSource(namespace, body); + IoArgoprojEventsV1alpha1EventSource result = apiInstance.eventSourceServiceCreateEventSource(namespace, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling EventSourceServiceApi#eventSourceServiceCreateEventSource"); @@ -62,11 +62,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**EventsourceCreateEventSourceRequest**](EventsourceCreateEventSourceRequest.md)| | + **body** | [**EventsourceCreateEventSourceBody**](EventsourceCreateEventSourceBody.md)| | ### Return type -[**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md) +[**IoArgoprojEventsV1alpha1EventSource**](IoArgoprojEventsV1alpha1EventSource.md) ### Authorization @@ -113,13 +113,13 @@ public class Example { EventSourceServiceApi apiInstance = new EventSourceServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. - String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional. - String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional. - Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. - String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. - List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. - Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. + String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional + String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional + String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional + Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional + String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional + List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic + Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional try { Object result = apiInstance.eventSourceServiceDeleteEventSource(namespace, name, deleteOptionsGracePeriodSeconds, deleteOptionsPreconditionsUid, deleteOptionsPreconditionsResourceVersion, deleteOptionsOrphanDependents, deleteOptionsPropagationPolicy, deleteOptionsDryRun, deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential); System.out.println(result); @@ -140,13 +140,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. | [optional] - **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional. | [optional] - **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional. | [optional] - **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. | [optional] - **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. | [optional] - **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. | [optional] - **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. | [optional] + **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional | [optional] + **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional | [optional] + **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional | [optional] + **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional | [optional] + **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional | [optional] + **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic | [optional] + **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional | [optional] ### Return type @@ -196,21 +196,21 @@ public class Example { EventSourceServiceApi apiInstance = new EventSourceServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String name = "name_example"; // String | optional - only return entries for this event source. - String eventSourceType = "eventSourceType_example"; // String | optional - only return entries for this event source type (e.g. `webhook`). - String eventName = "eventName_example"; // String | optional - only return entries for this event name (e.g. `example`). - String grep = "grep_example"; // String | optional - only return entries where `msg` matches this regular expression. - String podLogOptionsContainer = "podLogOptionsContainer_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional. - Boolean podLogOptionsFollow = true; // Boolean | Follow the log stream of the pod. Defaults to false. +optional. - Boolean podLogOptionsPrevious = true; // Boolean | Return previous terminated container logs. Defaults to false. +optional. - String podLogOptionsSinceSeconds = "podLogOptionsSinceSeconds_example"; // String | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional. + String name = "name_example"; // String | optional - only return entries for this event source + String eventSourceType = "eventSourceType_example"; // String | optional - only return entries for this event source type (e.g. `webhook`) + String eventName = "eventName_example"; // String | optional - only return entries for this event name (e.g. `example`) + String grep = "grep_example"; // String | optional - only return entries where `msg` matches this regular expression + String podLogOptionsContainer = "podLogOptionsContainer_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional + Boolean podLogOptionsFollow = true; // Boolean | Follow the log stream of the pod. Defaults to false. +optional + Boolean podLogOptionsPrevious = true; // Boolean | Return previous terminated container logs. Defaults to false. +optional + String podLogOptionsSinceSeconds = "podLogOptionsSinceSeconds_example"; // String | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional String podLogOptionsSinceTimeSeconds = "podLogOptionsSinceTimeSeconds_example"; // String | Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. Integer podLogOptionsSinceTimeNanos = 56; // Integer | Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context. - Boolean podLogOptionsTimestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional. - String podLogOptionsTailLines = "podLogOptionsTailLines_example"; // String | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional. - String podLogOptionsLimitBytes = "podLogOptionsLimitBytes_example"; // String | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional. - Boolean podLogOptionsInsecureSkipTLSVerifyBackend = true; // Boolean | insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional. - String podLogOptionsStream = "podLogOptionsStream_example"; // String | Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional. + Boolean podLogOptionsTimestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional + String podLogOptionsTailLines = "podLogOptionsTailLines_example"; // String | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional + String podLogOptionsLimitBytes = "podLogOptionsLimitBytes_example"; // String | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional + Boolean podLogOptionsInsecureSkipTLSVerifyBackend = true; // Boolean | insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional + String podLogOptionsStream = "podLogOptionsStream_example"; // String | Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional try { StreamResultOfEventsourceLogEntry result = apiInstance.eventSourceServiceEventSourcesLogs(namespace, name, eventSourceType, eventName, grep, podLogOptionsContainer, podLogOptionsFollow, podLogOptionsPrevious, podLogOptionsSinceSeconds, podLogOptionsSinceTimeSeconds, podLogOptionsSinceTimeNanos, podLogOptionsTimestamps, podLogOptionsTailLines, podLogOptionsLimitBytes, podLogOptionsInsecureSkipTLSVerifyBackend, podLogOptionsStream); System.out.println(result); @@ -230,21 +230,21 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **name** | **String**| optional - only return entries for this event source. | [optional] - **eventSourceType** | **String**| optional - only return entries for this event source type (e.g. `webhook`). | [optional] - **eventName** | **String**| optional - only return entries for this event name (e.g. `example`). | [optional] - **grep** | **String**| optional - only return entries where `msg` matches this regular expression. | [optional] - **podLogOptionsContainer** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional. | [optional] - **podLogOptionsFollow** | **Boolean**| Follow the log stream of the pod. Defaults to false. +optional. | [optional] - **podLogOptionsPrevious** | **Boolean**| Return previous terminated container logs. Defaults to false. +optional. | [optional] - **podLogOptionsSinceSeconds** | **String**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional. | [optional] + **name** | **String**| optional - only return entries for this event source | [optional] + **eventSourceType** | **String**| optional - only return entries for this event source type (e.g. `webhook`) | [optional] + **eventName** | **String**| optional - only return entries for this event name (e.g. `example`) | [optional] + **grep** | **String**| optional - only return entries where `msg` matches this regular expression | [optional] + **podLogOptionsContainer** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional | [optional] + **podLogOptionsFollow** | **Boolean**| Follow the log stream of the pod. Defaults to false. +optional | [optional] + **podLogOptionsPrevious** | **Boolean**| Return previous terminated container logs. Defaults to false. +optional | [optional] + **podLogOptionsSinceSeconds** | **String**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional | [optional] **podLogOptionsSinceTimeSeconds** | **String**| Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. | [optional] **podLogOptionsSinceTimeNanos** | **Integer**| Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context. | [optional] - **podLogOptionsTimestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional. | [optional] - **podLogOptionsTailLines** | **String**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional. | [optional] - **podLogOptionsLimitBytes** | **String**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional. | [optional] - **podLogOptionsInsecureSkipTLSVerifyBackend** | **Boolean**| insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional. | [optional] - **podLogOptionsStream** | **String**| Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional. | [optional] + **podLogOptionsTimestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional | [optional] + **podLogOptionsTailLines** | **String**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional | [optional] + **podLogOptionsLimitBytes** | **String**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional | [optional] + **podLogOptionsInsecureSkipTLSVerifyBackend** | **Boolean**| insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional | [optional] + **podLogOptionsStream** | **String**| Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional | [optional] ### Return type @@ -267,7 +267,7 @@ Name | Type | Description | Notes # **eventSourceServiceGetEventSource** -> GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource eventSourceServiceGetEventSource(namespace, name) +> IoArgoprojEventsV1alpha1EventSource eventSourceServiceGetEventSource(namespace, name) @@ -296,7 +296,7 @@ public class Example { String namespace = "namespace_example"; // String | String name = "name_example"; // String | try { - GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource result = apiInstance.eventSourceServiceGetEventSource(namespace, name); + IoArgoprojEventsV1alpha1EventSource result = apiInstance.eventSourceServiceGetEventSource(namespace, name); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling EventSourceServiceApi#eventSourceServiceGetEventSource"); @@ -318,7 +318,7 @@ Name | Type | Description | Notes ### Return type -[**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md) +[**IoArgoprojEventsV1alpha1EventSource**](IoArgoprojEventsV1alpha1EventSource.md) ### Authorization @@ -337,7 +337,7 @@ Name | Type | Description | Notes # **eventSourceServiceListEventSources** -> GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceList eventSourceServiceListEventSources(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents) +> IoArgoprojEventsV1alpha1EventSourceList eventSourceServiceListEventSources(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents) @@ -364,18 +364,18 @@ public class Example { EventSourceServiceApi apiInstance = new EventSourceServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional try { - GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceList result = apiInstance.eventSourceServiceListEventSources(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents); + IoArgoprojEventsV1alpha1EventSourceList result = apiInstance.eventSourceServiceListEventSources(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling EventSourceServiceApi#eventSourceServiceListEventSources"); @@ -393,20 +393,20 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] ### Return type -[**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceList**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceList.md) +[**IoArgoprojEventsV1alpha1EventSourceList**](IoArgoprojEventsV1alpha1EventSourceList.md) ### Authorization @@ -425,7 +425,7 @@ Name | Type | Description | Notes # **eventSourceServiceUpdateEventSource** -> GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource eventSourceServiceUpdateEventSource(namespace, name, body) +> IoArgoprojEventsV1alpha1EventSource eventSourceServiceUpdateEventSource(namespace, name, body) @@ -453,9 +453,9 @@ public class Example { EventSourceServiceApi apiInstance = new EventSourceServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - EventsourceUpdateEventSourceRequest body = new EventsourceUpdateEventSourceRequest(); // EventsourceUpdateEventSourceRequest | + EventsourceUpdateEventSourceBody body = new EventsourceUpdateEventSourceBody(); // EventsourceUpdateEventSourceBody | try { - GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource result = apiInstance.eventSourceServiceUpdateEventSource(namespace, name, body); + IoArgoprojEventsV1alpha1EventSource result = apiInstance.eventSourceServiceUpdateEventSource(namespace, name, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling EventSourceServiceApi#eventSourceServiceUpdateEventSource"); @@ -474,11 +474,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**EventsourceUpdateEventSourceRequest**](EventsourceUpdateEventSourceRequest.md)| | + **body** | [**EventsourceUpdateEventSourceBody**](EventsourceUpdateEventSourceBody.md)| | ### Return type -[**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md) +[**IoArgoprojEventsV1alpha1EventSource**](IoArgoprojEventsV1alpha1EventSource.md) ### Authorization @@ -524,13 +524,13 @@ public class Example { EventSourceServiceApi apiInstance = new EventSourceServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional @@ -553,13 +553,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] diff --git a/sdks/java/client/docs/EventsourceCreateEventSourceBody.md b/sdks/java/client/docs/EventsourceCreateEventSourceBody.md new file mode 100644 index 000000000000..6e66225601cb --- /dev/null +++ b/sdks/java/client/docs/EventsourceCreateEventSourceBody.md @@ -0,0 +1,13 @@ + + +# EventsourceCreateEventSourceBody + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eventSource** | [**IoArgoprojEventsV1alpha1EventSource**](IoArgoprojEventsV1alpha1EventSource.md) | | [optional] + + + diff --git a/sdks/java/client/docs/EventsourceCreateEventSourceRequest.md b/sdks/java/client/docs/EventsourceCreateEventSourceRequest.md deleted file mode 100644 index 70ca3392c142..000000000000 --- a/sdks/java/client/docs/EventsourceCreateEventSourceRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# EventsourceCreateEventSourceRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**eventSource** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md) | | [optional] -**namespace** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/EventsourceEventSourceWatchEvent.md b/sdks/java/client/docs/EventsourceEventSourceWatchEvent.md index 8f2fd97768dc..300295760aac 100644 --- a/sdks/java/client/docs/EventsourceEventSourceWatchEvent.md +++ b/sdks/java/client/docs/EventsourceEventSourceWatchEvent.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_object** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md) | | [optional] +**_object** | [**IoArgoprojEventsV1alpha1EventSource**](IoArgoprojEventsV1alpha1EventSource.md) | | [optional] **type** | **String** | | [optional] diff --git a/sdks/java/client/docs/EventsourceUpdateEventSourceBody.md b/sdks/java/client/docs/EventsourceUpdateEventSourceBody.md new file mode 100644 index 000000000000..af6cf60120ba --- /dev/null +++ b/sdks/java/client/docs/EventsourceUpdateEventSourceBody.md @@ -0,0 +1,13 @@ + + +# EventsourceUpdateEventSourceBody + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eventSource** | [**IoArgoprojEventsV1alpha1EventSource**](IoArgoprojEventsV1alpha1EventSource.md) | | [optional] + + + diff --git a/sdks/java/client/docs/EventsourceUpdateEventSourceRequest.md b/sdks/java/client/docs/EventsourceUpdateEventSourceRequest.md deleted file mode 100644 index eed1067164ae..000000000000 --- a/sdks/java/client/docs/EventsourceUpdateEventSourceRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# EventsourceUpdateEventSourceRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**eventSource** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md) | | [optional] -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPEventSource.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPEventSource.md deleted file mode 100644 index accb41b3e5ae..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPEventSource.md +++ /dev/null @@ -1,27 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPEventSource - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth.md) | | [optional] -**connectionBackoff** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] -**consume** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPConsumeConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPConsumeConfig.md) | | [optional] -**exchangeDeclare** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPExchangeDeclareConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPExchangeDeclareConfig.md) | | [optional] -**exchangeName** | **String** | | [optional] -**exchangeType** | **String** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] -**jsonBody** | **Boolean** | | [optional] -**metadata** | **Map<String, String>** | | [optional] -**queueBind** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueBindConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueBindConfig.md) | | [optional] -**queueDeclare** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueDeclareConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueDeclareConfig.md) | | [optional] -**routingKey** | **String** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**url** | **String** | | [optional] -**urlSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArgoWorkflowTrigger.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArgoWorkflowTrigger.md deleted file mode 100644 index 8047e5018852..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArgoWorkflowTrigger.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArgoWorkflowTrigger - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**args** | **List<String>** | | [optional] -**operation** | **String** | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**source** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArtifactLocation**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArtifactLocation.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArtifactLocation.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArtifactLocation.md deleted file mode 100644 index 9bfe1aaabfe4..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArtifactLocation.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArtifactLocation - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configmap** | [**io.kubernetes.client.openapi.models.V1ConfigMapKeySelector**](io.kubernetes.client.openapi.models.V1ConfigMapKeySelector.md) | | [optional] -**file** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileArtifact**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileArtifact.md) | | [optional] -**git** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitArtifact**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitArtifact.md) | | [optional] -**inline** | **String** | | [optional] -**resource** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResource**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResource.md) | | [optional] -**s3** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Artifact**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Artifact.md) | | [optional] -**url** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1URLArtifact**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1URLArtifact.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventHubsTrigger.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventHubsTrigger.md deleted file mode 100644 index a4790a19b187..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventHubsTrigger.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventHubsTrigger - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fqdn** | **String** | | [optional] -**hubName** | **String** | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**payload** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] -**sharedAccessKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**sharedAccessKeyName** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusTrigger.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusTrigger.md deleted file mode 100644 index 0555bb9d39ac..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusTrigger.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusTrigger - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionString** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**payload** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] -**queueName** | **String** | | [optional] -**subscriptionName** | **String** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**topicName** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md deleted file mode 100644 index dac546360b5a..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**duration** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Int64OrString**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Int64OrString.md) | | [optional] -**factor** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Amount**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Amount.md) | | [optional] -**jitter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Amount**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Amount.md) | | [optional] -**steps** | **Integer** | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketEventSource.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketEventSource.md deleted file mode 100644 index 61f6bd8ce64c..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketEventSource.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketEventSource - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketAuth.md) | | [optional] -**deleteHookOnFinish** | **Boolean** | | [optional] -**events** | **List<String>** | Events this webhook is subscribed to. | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] -**metadata** | **Map<String, String>** | | [optional] -**owner** | **String** | | [optional] -**projectKey** | **String** | | [optional] -**repositories** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketRepository>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketRepository.md) | | [optional] -**repositorySlug** | **String** | | [optional] -**webhook** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetCriteria.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetCriteria.md deleted file mode 100644 index c277be9d4a22..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetCriteria.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetCriteria - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**byTime** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetByTime**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetByTime.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventPersistence.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventPersistence.md deleted file mode 100644 index de59a156fafe..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventPersistence.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventPersistence - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**catchup** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CatchupConfiguration**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CatchupConfiguration.md) | | [optional] -**configMap** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConfigMapPersistence**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConfigMapPersistence.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md deleted file mode 100644 index b77c01f4bd23..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**io.kubernetes.client.openapi.models.V1ObjectMeta**](io.kubernetes.client.openapi.models.V1ObjectMeta.md) | | [optional] -**spec** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceSpec**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceSpec.md) | | [optional] -**status** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceStatus**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceStatus.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceSpec.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceSpec.md deleted file mode 100644 index 6fba836adc50..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceSpec.md +++ /dev/null @@ -1,48 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceSpec - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amqp** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPEventSource.md) | | [optional] -**azureEventsHub** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventsHubEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventsHubEventSource.md) | | [optional] -**azureQueueStorage** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureQueueStorageEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureQueueStorageEventSource.md) | | [optional] -**azureServiceBus** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusEventSource.md) | | [optional] -**bitbucket** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketEventSource.md) | | [optional] -**bitbucketserver** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerEventSource.md) | | [optional] -**calendar** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CalendarEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CalendarEventSource.md) | | [optional] -**emitter** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmitterEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmitterEventSource.md) | | [optional] -**eventBusName** | **String** | | [optional] -**file** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileEventSource.md) | | [optional] -**generic** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GenericEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GenericEventSource.md) | | [optional] -**gerrit** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GerritEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GerritEventSource.md) | | [optional] -**github** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubEventSource.md) | | [optional] -**gitlab** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitlabEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitlabEventSource.md) | | [optional] -**hdfs** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HDFSEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HDFSEventSource.md) | | [optional] -**kafka** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaEventSource.md) | | [optional] -**minio** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Artifact>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Artifact.md) | | [optional] -**mns** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MNSEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MNSEventSource.md) | | [optional] -**mqtt** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MQTTEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MQTTEventSource.md) | | [optional] -**nats** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSEventsSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSEventsSource.md) | | [optional] -**nsq** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NSQEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NSQEventSource.md) | | [optional] -**pubSub** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PubSubEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PubSubEventSource.md) | | [optional] -**pulsar** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarEventSource.md) | | [optional] -**redis** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisEventSource.md) | | [optional] -**redisStream** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisStreamEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisStreamEventSource.md) | | [optional] -**replicas** | **Integer** | | [optional] -**resource** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceEventSource.md) | | [optional] -**service** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Service**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Service.md) | | [optional] -**sftp** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SFTPEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SFTPEventSource.md) | | [optional] -**slack** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackEventSource.md) | | [optional] -**sns** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SNSEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SNSEventSource.md) | | [optional] -**sqs** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SQSEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SQSEventSource.md) | | [optional] -**storageGrid** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridEventSource.md) | | [optional] -**stripe** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StripeEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StripeEventSource.md) | | [optional] -**template** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Template**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Template.md) | | [optional] -**webhook** | [**Map<String, GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookEventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookEventSource.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceStatus.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceStatus.md deleted file mode 100644 index d55ddb79880c..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceStatus.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceStatus - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Status**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Status.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ExprFilter.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ExprFilter.md deleted file mode 100644 index ce80d2adf7ba..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ExprFilter.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ExprFilter - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expr** | **String** | Expr refers to the expression that determines the outcome of the filter. | [optional] -**fields** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PayloadField>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PayloadField.md) | Fields refers to set of keys that refer to the paths within event payload. | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileEventSource.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileEventSource.md deleted file mode 100644 index 0d8451bccf0f..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileEventSource.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileEventSource - -FileEventSource describes an event-source for file related events. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**eventType** | **String** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] -**metadata** | **Map<String, String>** | | [optional] -**polling** | **Boolean** | | [optional] -**watchPathConfig** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HTTPTrigger.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HTTPTrigger.md deleted file mode 100644 index 3213ae3f82cd..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HTTPTrigger.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HTTPTrigger - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**basicAuth** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth.md) | | [optional] -**dynamicHeaders** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**headers** | **Map<String, String>** | | [optional] -**host** | **String** | | [optional] -**method** | **String** | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Parameters is the list of key-value extracted from event's payload that are applied to the HTTP trigger resource. | [optional] -**payload** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**secureHeaders** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SecureHeader>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SecureHeader.md) | | [optional] -**timeout** | **String** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**url** | **String** | URL refers to the URL to send HTTP request to. | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaEventSource.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaEventSource.md deleted file mode 100644 index 99ed8a79385c..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaEventSource.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaEventSource - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**config** | **String** | Yaml format Sarama config for Kafka connection. It follows the struct of sarama.Config. See https://github.com/IBM/sarama/blob/main/config.go e.g. consumer: fetch: min: 1 net: MaxOpenRequests: 5 +optional | [optional] -**connectionBackoff** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] -**consumerGroup** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaConsumerGroup**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaConsumerGroup.md) | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] -**jsonBody** | **Boolean** | | [optional] -**limitEventsPerSecond** | **String** | | [optional] -**metadata** | **Map<String, String>** | | [optional] -**partition** | **String** | | [optional] -**sasl** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SASLConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SASLConfig.md) | | [optional] -**schemaRegistry** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SchemaRegistryConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SchemaRegistryConfig.md) | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**topic** | **String** | | [optional] -**url** | **String** | | [optional] -**version** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaTrigger.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaTrigger.md deleted file mode 100644 index 16626af78779..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaTrigger.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaTrigger - -KafkaTrigger refers to the specification of the Kafka trigger. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**compress** | **Boolean** | | [optional] -**flushFrequency** | **Integer** | | [optional] -**headers** | **Map<String, String>** | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Parameters is the list of parameters that is applied to resolved Kafka trigger object. | [optional] -**partition** | **Integer** | | [optional] -**partitioningKey** | **String** | The partitioning key for the messages put on the Kafka topic. +optional. | [optional] -**payload** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] -**requiredAcks** | **Integer** | RequiredAcks used in producer to tell the broker how many replica acknowledgements Defaults to 1 (Only wait for the leader to ack). +optional. | [optional] -**sasl** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SASLConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SASLConfig.md) | | [optional] -**schemaRegistry** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SchemaRegistryConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SchemaRegistryConfig.md) | | [optional] -**secureHeaders** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SecureHeader>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SecureHeader.md) | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**topic** | **String** | | [optional] -**url** | **String** | URL of the Kafka broker, multiple URLs separated by comma. | [optional] -**version** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MQTTEventSource.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MQTTEventSource.md deleted file mode 100644 index 90ef5413cdbc..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MQTTEventSource.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MQTTEventSource - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth.md) | | [optional] -**clientId** | **String** | | [optional] -**connectionBackoff** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] -**jsonBody** | **Boolean** | | [optional] -**metadata** | **Map<String, String>** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**topic** | **String** | | [optional] -**url** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSEventsSource.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSEventsSource.md deleted file mode 100644 index a67bc5df152c..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSEventsSource.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSEventsSource - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSAuth.md) | | [optional] -**connectionBackoff** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] -**jsonBody** | **Boolean** | | [optional] -**metadata** | **Map<String, String>** | | [optional] -**queue** | **String** | | [optional] -**subject** | **String** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**url** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSTrigger.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSTrigger.md deleted file mode 100644 index 12f268a048f5..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSTrigger.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSTrigger - -NATSTrigger refers to the specification of the NATS trigger. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSAuth.md) | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**payload** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**subject** | **String** | Name of the subject to put message on. | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**url** | **String** | URL of the NATS cluster. | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NSQEventSource.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NSQEventSource.md deleted file mode 100644 index deefdfef5c5c..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NSQEventSource.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NSQEventSource - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel** | **String** | | [optional] -**connectionBackoff** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] -**hostAddress** | **String** | | [optional] -**jsonBody** | **Boolean** | | [optional] -**metadata** | **Map<String, String>** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**topic** | **String** | Topic to subscribe to. | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceFilter.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceFilter.md deleted file mode 100644 index aeaeea6090e3..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceFilter.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceFilter - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**afterStart** | **Boolean** | | [optional] -**createdBy** | **java.time.Instant** | | [optional] -**fields** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Selector>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Selector.md) | | [optional] -**labels** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Selector>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Selector.md) | | [optional] -**prefix** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SchemaRegistryConfig.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SchemaRegistryConfig.md deleted file mode 100644 index 45d1a2181874..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SchemaRegistryConfig.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SchemaRegistryConfig - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth.md) | | [optional] -**schemaId** | **Integer** | | [optional] -**url** | **String** | Schema Registry URL. | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SecureHeader.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SecureHeader.md deleted file mode 100644 index 1f90f1b67bc1..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SecureHeader.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SecureHeader - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**valueFrom** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ValueFromSource**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ValueFromSource.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md deleted file mode 100644 index 49eb2ada1541..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**io.kubernetes.client.openapi.models.V1ObjectMeta**](io.kubernetes.client.openapi.models.V1ObjectMeta.md) | | [optional] -**spec** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorSpec**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorSpec.md) | | [optional] -**status** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorStatus**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorStatus.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorSpec.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorSpec.md deleted file mode 100644 index 3b02215f971a..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorSpec.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorSpec - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dependencies** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependency>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependency.md) | Dependencies is a list of the events that this sensor is dependent on. | [optional] -**errorOnFailedRound** | **Boolean** | ErrorOnFailedRound if set to true, marks sensor state as `error` if the previous trigger round fails. Once sensor state is set to `error`, no further triggers will be processed. | [optional] -**eventBusName** | **String** | | [optional] -**loggingFields** | **Map<String, String>** | | [optional] -**replicas** | **Integer** | | [optional] -**revisionHistoryLimit** | **Integer** | | [optional] -**template** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Template**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Template.md) | | [optional] -**triggers** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Trigger>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Trigger.md) | Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor. | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorStatus.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorStatus.md deleted file mode 100644 index 411ec27bd7b4..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorStatus.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorStatus - -SensorStatus contains information about the status of a sensor. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Status**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Status.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackTrigger.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackTrigger.md deleted file mode 100644 index 47e8a57f2cde..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackTrigger.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackTrigger - -SlackTrigger refers to the specification of the slack notification trigger. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attachments** | **String** | | [optional] -**blocks** | **String** | | [optional] -**channel** | **String** | | [optional] -**message** | **String** | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**sender** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackSender**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackSender.md) | | [optional] -**slackToken** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**thread** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackThread**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackThread.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StandardK8STrigger.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StandardK8STrigger.md deleted file mode 100644 index c710d803bb66..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StandardK8STrigger.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StandardK8STrigger - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**liveObject** | **Boolean** | | [optional] -**operation** | **String** | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Parameters is the list of parameters that is applied to resolved K8s trigger object. | [optional] -**patchStrategy** | **String** | | [optional] -**source** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArtifactLocation**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArtifactLocation.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Status.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Status.md deleted file mode 100644 index 2b71753b77e3..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Status.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Status - -Status is a common structure which can be used for Status field. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Condition>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Condition.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Trigger.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Trigger.md deleted file mode 100644 index 0b0774574974..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Trigger.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Trigger - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**atLeastOnce** | **Boolean** | | [optional] -**dlqTrigger** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Trigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Trigger.md) | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**policy** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerPolicy**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerPolicy.md) | | [optional] -**rateLimit** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RateLimit**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RateLimit.md) | | [optional] -**retryStrategy** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] -**template** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerTemplate**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerTemplate.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerPolicy.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerPolicy.md deleted file mode 100644 index c14478075829..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerPolicy.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerPolicy - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**k8s** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResourcePolicy**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResourcePolicy.md) | | [optional] -**status** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StatusPolicy**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StatusPolicy.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerTemplate.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerTemplate.md deleted file mode 100644 index bc16f479cc73..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerTemplate.md +++ /dev/null @@ -1,30 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerTemplate - -TriggerTemplate is the template that describes trigger specification. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**argoWorkflow** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArgoWorkflowTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ArgoWorkflowTrigger.md) | | [optional] -**awsLambda** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AWSLambdaTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AWSLambdaTrigger.md) | | [optional] -**azureEventHubs** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventHubsTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventHubsTrigger.md) | | [optional] -**azureServiceBus** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusTrigger.md) | | [optional] -**conditions** | **String** | | [optional] -**conditionsReset** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetCriteria>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetCriteria.md) | | [optional] -**custom** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CustomTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CustomTrigger.md) | | [optional] -**email** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmailTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmailTrigger.md) | | [optional] -**http** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HTTPTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HTTPTrigger.md) | | [optional] -**k8s** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StandardK8STrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StandardK8STrigger.md) | | [optional] -**kafka** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaTrigger.md) | | [optional] -**log** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1LogTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1LogTrigger.md) | | [optional] -**name** | **String** | Name is a unique name of the action to take. | [optional] -**nats** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSTrigger.md) | | [optional] -**openWhisk** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OpenWhiskTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OpenWhiskTrigger.md) | | [optional] -**pulsar** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarTrigger.md) | | [optional] -**slack** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackTrigger**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackTrigger.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookEventSource.md b/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookEventSource.md deleted file mode 100644 index 76b306e7e867..000000000000 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookEventSource.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookEventSource - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] -**webhookContext** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] - - - diff --git a/sdks/java/client/docs/GrpcGatewayRuntimeError.md b/sdks/java/client/docs/GoogleRpcStatus.md similarity index 81% rename from sdks/java/client/docs/GrpcGatewayRuntimeError.md rename to sdks/java/client/docs/GoogleRpcStatus.md index edf191506ee8..acbcaef4eff4 100644 --- a/sdks/java/client/docs/GrpcGatewayRuntimeError.md +++ b/sdks/java/client/docs/GoogleRpcStatus.md @@ -1,6 +1,6 @@ -# GrpcGatewayRuntimeError +# GoogleRpcStatus ## Properties @@ -9,7 +9,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **Integer** | | [optional] **details** | [**List<GoogleProtobufAny>**](GoogleProtobufAny.md) | | [optional] -**error** | **String** | | [optional] **message** | **String** | | [optional] diff --git a/sdks/java/client/docs/GrpcGatewayRuntimeStreamError.md b/sdks/java/client/docs/GrpcGatewayRuntimeStreamError.md deleted file mode 100644 index 5a1f85724021..000000000000 --- a/sdks/java/client/docs/GrpcGatewayRuntimeStreamError.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# GrpcGatewayRuntimeStreamError - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**details** | [**List<GoogleProtobufAny>**](GoogleProtobufAny.md) | | [optional] -**grpcCode** | **Integer** | | [optional] -**httpCode** | **Integer** | | [optional] -**httpStatus** | **String** | | [optional] -**message** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPConsumeConfig.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPConsumeConfig.md similarity index 83% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPConsumeConfig.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPConsumeConfig.md index 28e770618bdb..77fd8375e7c0 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPConsumeConfig.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPConsumeConfig.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPConsumeConfig +# IoArgoprojEventsV1alpha1AMQPConsumeConfig ## Properties diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPEventSource.md new file mode 100644 index 000000000000..4e3867740686 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPEventSource.md @@ -0,0 +1,27 @@ + + +# IoArgoprojEventsV1alpha1AMQPEventSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth** | [**IoArgoprojEventsV1alpha1BasicAuth**](IoArgoprojEventsV1alpha1BasicAuth.md) | | [optional] +**connectionBackoff** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] +**consume** | [**IoArgoprojEventsV1alpha1AMQPConsumeConfig**](IoArgoprojEventsV1alpha1AMQPConsumeConfig.md) | | [optional] +**exchangeDeclare** | [**IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig**](IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig.md) | | [optional] +**exchangeName** | **String** | | [optional] +**exchangeType** | **String** | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] +**jsonBody** | **Boolean** | | [optional] +**metadata** | **Map<String, String>** | | [optional] +**queueBind** | [**IoArgoprojEventsV1alpha1AMQPQueueBindConfig**](IoArgoprojEventsV1alpha1AMQPQueueBindConfig.md) | | [optional] +**queueDeclare** | [**IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig**](IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig.md) | | [optional] +**routingKey** | **String** | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**url** | **String** | | [optional] +**urlSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPExchangeDeclareConfig.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig.md similarity index 79% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPExchangeDeclareConfig.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig.md index 3559ebb1e7d2..e84684c3f1a2 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPExchangeDeclareConfig.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPExchangeDeclareConfig +# IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueBindConfig.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPQueueBindConfig.md similarity index 69% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueBindConfig.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPQueueBindConfig.md index ac13c8877c10..6caa72a5cc32 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueBindConfig.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPQueueBindConfig.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueBindConfig +# IoArgoprojEventsV1alpha1AMQPQueueBindConfig ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueDeclareConfig.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig.md similarity index 83% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueDeclareConfig.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig.md index 4840c7863670..bdf69169aaea 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueDeclareConfig.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AMQPQueueDeclareConfig +# IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AWSLambdaTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AWSLambdaTrigger.md similarity index 70% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AWSLambdaTrigger.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1AWSLambdaTrigger.md index e7b73d7953b3..a88e04482839 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AWSLambdaTrigger.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AWSLambdaTrigger.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AWSLambdaTrigger +# IoArgoprojEventsV1alpha1AWSLambdaTrigger ## Properties @@ -10,8 +10,8 @@ Name | Type | Description | Notes **accessKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **functionName** | **String** | FunctionName refers to the name of the function to invoke. | [optional] **invocationType** | **String** | Choose from the following options. * RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the function returns a response or times out. The API response includes the function response and additional data. * Event - Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if it's configured). The API response only includes a status code. * DryRun - Validate parameter values and verify that the user or role has permission to invoke the function. +optional | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**payload** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**payload** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] **region** | **String** | | [optional] **roleARN** | **String** | | [optional] **secretKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Amount.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Amount.md similarity index 77% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Amount.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1Amount.md index 94ca6adcf57a..f27919e26494 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Amount.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Amount.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Amount +# IoArgoprojEventsV1alpha1Amount Amount represent a numeric amount. diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1ArgoWorkflowTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ArgoWorkflowTrigger.md new file mode 100644 index 000000000000..82903b1c6223 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ArgoWorkflowTrigger.md @@ -0,0 +1,16 @@ + + +# IoArgoprojEventsV1alpha1ArgoWorkflowTrigger + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**args** | **List<String>** | | [optional] +**operation** | **String** | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**source** | [**IoArgoprojEventsV1alpha1ArtifactLocation**](IoArgoprojEventsV1alpha1ArtifactLocation.md) | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1ArtifactLocation.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ArtifactLocation.md new file mode 100644 index 000000000000..fa6619564e90 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ArtifactLocation.md @@ -0,0 +1,19 @@ + + +# IoArgoprojEventsV1alpha1ArtifactLocation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configmap** | [**io.kubernetes.client.openapi.models.V1ConfigMapKeySelector**](io.kubernetes.client.openapi.models.V1ConfigMapKeySelector.md) | | [optional] +**file** | [**IoArgoprojEventsV1alpha1FileArtifact**](IoArgoprojEventsV1alpha1FileArtifact.md) | | [optional] +**git** | [**IoArgoprojEventsV1alpha1GitArtifact**](IoArgoprojEventsV1alpha1GitArtifact.md) | | [optional] +**inline** | **String** | | [optional] +**resource** | [**IoArgoprojEventsV1alpha1K8SResource**](IoArgoprojEventsV1alpha1K8SResource.md) | | [optional] +**s3** | [**IoArgoprojEventsV1alpha1S3Artifact**](IoArgoprojEventsV1alpha1S3Artifact.md) | | [optional] +**url** | [**IoArgoprojEventsV1alpha1URLArtifact**](IoArgoprojEventsV1alpha1URLArtifact.md) | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureEventHubsTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureEventHubsTrigger.md new file mode 100644 index 000000000000..0ce8d54efb07 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureEventHubsTrigger.md @@ -0,0 +1,18 @@ + + +# IoArgoprojEventsV1alpha1AzureEventHubsTrigger + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fqdn** | **String** | | [optional] +**hubName** | **String** | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**payload** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] +**sharedAccessKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] +**sharedAccessKeyName** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventsHubEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureEventsHubEventSource.md similarity index 70% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventsHubEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureEventsHubEventSource.md index f78e7f9bfd15..acd27c9579a8 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventsHubEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureEventsHubEventSource.md @@ -1,13 +1,13 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureEventsHubEventSource +# IoArgoprojEventsV1alpha1AzureEventsHubEventSource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **fqdn** | **String** | | [optional] **hubName** | **String** | | [optional] **metadata** | **Map<String, String>** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureQueueStorageEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureQueueStorageEventSource.md similarity index 71% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureQueueStorageEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureQueueStorageEventSource.md index 01e0fd4f53e9..8a860ba82ecb 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureQueueStorageEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureQueueStorageEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureQueueStorageEventSource +# IoArgoprojEventsV1alpha1AzureQueueStorageEventSource ## Properties @@ -10,7 +10,7 @@ Name | Type | Description | Notes **connectionString** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **decodeMessage** | **Boolean** | | [optional] **dlq** | **Boolean** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **jsonBody** | **Boolean** | | [optional] **metadata** | **Map<String, String>** | | [optional] **queueName** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureServiceBusEventSource.md similarity index 69% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureServiceBusEventSource.md index 0e7440e33a23..8ae12300974e 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureServiceBusEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1AzureServiceBusEventSource +# IoArgoprojEventsV1alpha1AzureServiceBusEventSource ## Properties @@ -9,13 +9,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **connectionString** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **deferDelete** | **Boolean** | DeferDelete controls when messages are removed from Azure Service Bus. If false (default), messages are received and deleted immediately before processing. If true, messages are locked and only deleted after successful processing, ensuring they are not lost if processing fails. | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **fullyQualifiedNamespace** | **String** | | [optional] **jsonBody** | **Boolean** | | [optional] **metadata** | **Map<String, String>** | | [optional] **queueName** | **String** | | [optional] **subscriptionName** | **String** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] **topicName** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureServiceBusTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureServiceBusTrigger.md new file mode 100644 index 000000000000..399ed34df3ce --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1AzureServiceBusTrigger.md @@ -0,0 +1,19 @@ + + +# IoArgoprojEventsV1alpha1AzureServiceBusTrigger + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connectionString** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**payload** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] +**queueName** | **String** | | [optional] +**subscriptionName** | **String** | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**topicName** | **String** | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1Backoff.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Backoff.md new file mode 100644 index 000000000000..cad1c41a1a82 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Backoff.md @@ -0,0 +1,16 @@ + + +# IoArgoprojEventsV1alpha1Backoff + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration** | [**IoArgoprojEventsV1alpha1Int64OrString**](IoArgoprojEventsV1alpha1Int64OrString.md) | | [optional] +**factor** | [**IoArgoprojEventsV1alpha1Amount**](IoArgoprojEventsV1alpha1Amount.md) | | [optional] +**jitter** | [**IoArgoprojEventsV1alpha1Amount**](IoArgoprojEventsV1alpha1Amount.md) | | [optional] +**steps** | **Integer** | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitCreds.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BasicAuth.md similarity index 87% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitCreds.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1BasicAuth.md index 5ec2d637e540..05a0c3b3a87a 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitCreds.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BasicAuth.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitCreds +# IoArgoprojEventsV1alpha1BasicAuth ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketAuth.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketAuth.md similarity index 53% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketAuth.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketAuth.md index 5fe5418ccdaa..fd8ba3966149 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketAuth.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketAuth.md @@ -1,13 +1,13 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketAuth +# IoArgoprojEventsV1alpha1BitbucketAuth ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**basic** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketBasicAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketBasicAuth.md) | | [optional] +**basic** | [**IoArgoprojEventsV1alpha1BitbucketBasicAuth**](IoArgoprojEventsV1alpha1BitbucketBasicAuth.md) | | [optional] **oauthToken** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketBasicAuth.md similarity index 87% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketBasicAuth.md index 24dcabdc28fe..afec20f6f624 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketBasicAuth.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth +# IoArgoprojEventsV1alpha1BitbucketBasicAuth ## Properties diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketEventSource.md new file mode 100644 index 000000000000..64625bbdc684 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketEventSource.md @@ -0,0 +1,22 @@ + + +# IoArgoprojEventsV1alpha1BitbucketEventSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth** | [**IoArgoprojEventsV1alpha1BitbucketAuth**](IoArgoprojEventsV1alpha1BitbucketAuth.md) | | [optional] +**deleteHookOnFinish** | **Boolean** | | [optional] +**events** | **List<String>** | Events this webhook is subscribed to. | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] +**metadata** | **Map<String, String>** | | [optional] +**owner** | **String** | | [optional] +**projectKey** | **String** | | [optional] +**repositories** | [**List<IoArgoprojEventsV1alpha1BitbucketRepository>**](IoArgoprojEventsV1alpha1BitbucketRepository.md) | | [optional] +**repositorySlug** | **String** | | [optional] +**webhook** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketRepository.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketRepository.md similarity index 74% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketRepository.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketRepository.md index e2142195ab17..34e4b7398b25 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketRepository.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketRepository.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketRepository +# IoArgoprojEventsV1alpha1BitbucketRepository ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketServerEventSource.md similarity index 57% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketServerEventSource.md index e42d1b278b18..6dd83ed8f528 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketServerEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerEventSource +# IoArgoprojEventsV1alpha1BitbucketServerEventSource ## Properties @@ -12,16 +12,16 @@ Name | Type | Description | Notes **checkInterval** | **String** | | [optional] **deleteHookOnFinish** | **Boolean** | | [optional] **events** | **List<String>** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **metadata** | **Map<String, String>** | | [optional] **oneEventPerChange** | **Boolean** | | [optional] **projectKey** | **String** | | [optional] **projects** | **List<String>** | | [optional] -**repositories** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerRepository>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerRepository.md) | | [optional] +**repositories** | [**List<IoArgoprojEventsV1alpha1BitbucketServerRepository>**](IoArgoprojEventsV1alpha1BitbucketServerRepository.md) | | [optional] **repositorySlug** | **String** | | [optional] **skipBranchRefsChangedOnOpenPR** | **Boolean** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] -**webhook** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**webhook** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] **webhookSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerRepository.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketServerRepository.md similarity index 82% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerRepository.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketServerRepository.md index 67fed54d5387..f9e843b30275 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerRepository.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1BitbucketServerRepository.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketServerRepository +# IoArgoprojEventsV1alpha1BitbucketServerRepository ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CalendarEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1CalendarEventSource.md similarity index 51% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CalendarEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1CalendarEventSource.md index 35fa3bebcf24..a9dfe5461f1c 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CalendarEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1CalendarEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CalendarEventSource +# IoArgoprojEventsV1alpha1CalendarEventSource ## Properties @@ -8,10 +8,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **exclusionDates** | **List<String>** | ExclusionDates defines the list of DATE-TIME exceptions for recurring events. | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **interval** | **String** | | [optional] **metadata** | **Map<String, String>** | | [optional] -**persistence** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventPersistence**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventPersistence.md) | | [optional] +**persistence** | [**IoArgoprojEventsV1alpha1EventPersistence**](IoArgoprojEventsV1alpha1EventPersistence.md) | | [optional] **schedule** | **String** | | [optional] **timezone** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CatchupConfiguration.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1CatchupConfiguration.md similarity index 74% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CatchupConfiguration.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1CatchupConfiguration.md index d0585f103626..3b24ff4b4602 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CatchupConfiguration.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1CatchupConfiguration.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CatchupConfiguration +# IoArgoprojEventsV1alpha1CatchupConfiguration ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Condition.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Condition.md similarity index 85% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Condition.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1Condition.md index a9dbcc3f7807..a82cf464d305 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Condition.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Condition.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Condition +# IoArgoprojEventsV1alpha1Condition ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetByTime.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ConditionsResetByTime.md similarity index 73% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetByTime.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1ConditionsResetByTime.md index 9c3fc5b0929e..3648728278cf 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetByTime.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ConditionsResetByTime.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConditionsResetByTime +# IoArgoprojEventsV1alpha1ConditionsResetByTime ## Properties diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1ConditionsResetCriteria.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ConditionsResetCriteria.md new file mode 100644 index 000000000000..763f48320b4b --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ConditionsResetCriteria.md @@ -0,0 +1,13 @@ + + +# IoArgoprojEventsV1alpha1ConditionsResetCriteria + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**byTime** | [**IoArgoprojEventsV1alpha1ConditionsResetByTime**](IoArgoprojEventsV1alpha1ConditionsResetByTime.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConfigMapPersistence.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ConfigMapPersistence.md similarity index 74% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConfigMapPersistence.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1ConfigMapPersistence.md index bc1608bb8092..1d8e3ea46cbd 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConfigMapPersistence.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ConfigMapPersistence.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ConfigMapPersistence +# IoArgoprojEventsV1alpha1ConfigMapPersistence ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Container.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Container.md similarity index 93% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Container.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1Container.md index e59269f7e554..6a8608fa4e98 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Container.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Container.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Container +# IoArgoprojEventsV1alpha1Container ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CustomTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1CustomTrigger.md similarity index 53% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CustomTrigger.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1CustomTrigger.md index 4d2e70fe7052..cee9ce1e2eac 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CustomTrigger.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1CustomTrigger.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1CustomTrigger +# IoArgoprojEventsV1alpha1CustomTrigger CustomTrigger refers to the specification of the custom trigger. @@ -9,8 +9,8 @@ CustomTrigger refers to the specification of the custom trigger. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **certSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Parameters is the list of parameters that is applied to resolved custom trigger trigger object. | [optional] -**payload** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Parameters is the list of parameters that is applied to resolved custom trigger trigger object. | [optional] +**payload** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] **secure** | **Boolean** | | [optional] **serverNameOverride** | **String** | ServerNameOverride for the secure connection between sensor and custom trigger gRPC server. | [optional] **serverURL** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1DataFilter.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1DataFilter.md similarity index 95% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1DataFilter.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1DataFilter.md index 6272a4d9f5ac..15dc77d07aa7 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1DataFilter.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1DataFilter.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1DataFilter +# IoArgoprojEventsV1alpha1DataFilter DataFilter describes constraints and filters for event data. diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmailTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EmailTrigger.md similarity index 73% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmailTrigger.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1EmailTrigger.md index a9533f962344..2583af5b263c 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmailTrigger.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EmailTrigger.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmailTrigger +# IoArgoprojEventsV1alpha1EmailTrigger EmailTrigger refers to the specification of the email notification trigger. @@ -11,7 +11,7 @@ Name | Type | Description | Notes **body** | **String** | | [optional] **from** | **String** | | [optional] **host** | **String** | Host refers to the smtp host url to which email is send. | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] **port** | **Integer** | | [optional] **smtpPassword** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **subject** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmitterEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EmitterEventSource.md similarity index 55% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmitterEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1EmitterEventSource.md index 6875a516bb09..73601d137341 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmitterEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EmitterEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EmitterEventSource +# IoArgoprojEventsV1alpha1EmitterEventSource ## Properties @@ -10,12 +10,12 @@ Name | Type | Description | Notes **broker** | **String** | Broker URI to connect to. | [optional] **channelKey** | **String** | | [optional] **channelName** | **String** | | [optional] -**connectionBackoff** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**connectionBackoff** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **jsonBody** | **Boolean** | | [optional] **metadata** | **Map<String, String>** | | [optional] **password** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] **username** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventContext.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventContext.md similarity index 92% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventContext.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1EventContext.md index 828c907075c3..f4a17371ca56 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventContext.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventContext.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventContext +# IoArgoprojEventsV1alpha1EventContext ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependency.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventDependency.md similarity index 52% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependency.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1EventDependency.md index e08ff7512b5b..14ae8da2da02 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependency.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventDependency.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependency +# IoArgoprojEventsV1alpha1EventDependency ## Properties @@ -9,10 +9,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **eventName** | **String** | | [optional] **eventSourceName** | **String** | | [optional] -**filters** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyFilter.md) | | [optional] +**filters** | [**IoArgoprojEventsV1alpha1EventDependencyFilter**](IoArgoprojEventsV1alpha1EventDependencyFilter.md) | | [optional] **filtersLogicalOperator** | **String** | FiltersLogicalOperator defines how different filters are evaluated together. Available values: and (&&), or (||) Is optional and if left blank treated as and (&&). | [optional] **name** | **String** | | [optional] -**transform** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyTransformer**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyTransformer.md) | | [optional] +**transform** | [**IoArgoprojEventsV1alpha1EventDependencyTransformer**](IoArgoprojEventsV1alpha1EventDependencyTransformer.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyFilter.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventDependencyFilter.md similarity index 51% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyFilter.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1EventDependencyFilter.md index a34515d001d8..cde905e83a0a 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyFilter.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventDependencyFilter.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyFilter +# IoArgoprojEventsV1alpha1EventDependencyFilter EventDependencyFilter defines filters and constraints for a io.argoproj.workflow.v1alpha1. @@ -8,13 +8,13 @@ EventDependencyFilter defines filters and constraints for a io.argoproj.workflow Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**context** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventContext.md) | | [optional] -**data** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1DataFilter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1DataFilter.md) | | [optional] +**context** | [**IoArgoprojEventsV1alpha1EventContext**](IoArgoprojEventsV1alpha1EventContext.md) | | [optional] +**data** | [**List<IoArgoprojEventsV1alpha1DataFilter>**](IoArgoprojEventsV1alpha1DataFilter.md) | | [optional] **dataLogicalOperator** | **String** | DataLogicalOperator defines how multiple Data filters (if defined) are evaluated together. Available values: and (&&), or (||) Is optional and if left blank treated as and (&&). | [optional] **exprLogicalOperator** | **String** | ExprLogicalOperator defines how multiple Exprs filters (if defined) are evaluated together. Available values: and (&&), or (||) Is optional and if left blank treated as and (&&). | [optional] -**exprs** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ExprFilter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ExprFilter.md) | Exprs contains the list of expressions evaluated against the event payload. | [optional] +**exprs** | [**List<IoArgoprojEventsV1alpha1ExprFilter>**](IoArgoprojEventsV1alpha1ExprFilter.md) | Exprs contains the list of expressions evaluated against the event payload. | [optional] **script** | **String** | Script refers to a Lua script evaluated to determine the validity of an io.argoproj.workflow.v1alpha1. | [optional] -**time** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TimeFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TimeFilter.md) | | [optional] +**time** | [**IoArgoprojEventsV1alpha1TimeFilter**](IoArgoprojEventsV1alpha1TimeFilter.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyTransformer.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventDependencyTransformer.md similarity index 71% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyTransformer.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1EventDependencyTransformer.md index 7569f62bc1ac..7d26d594caa1 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyTransformer.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventDependencyTransformer.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventDependencyTransformer +# IoArgoprojEventsV1alpha1EventDependencyTransformer ## Properties diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventPersistence.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventPersistence.md new file mode 100644 index 000000000000..5d3338716352 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventPersistence.md @@ -0,0 +1,14 @@ + + +# IoArgoprojEventsV1alpha1EventPersistence + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**catchup** | [**IoArgoprojEventsV1alpha1CatchupConfiguration**](IoArgoprojEventsV1alpha1CatchupConfiguration.md) | | [optional] +**configMap** | [**IoArgoprojEventsV1alpha1ConfigMapPersistence**](IoArgoprojEventsV1alpha1ConfigMapPersistence.md) | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSource.md new file mode 100644 index 000000000000..31c2033234fa --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSource.md @@ -0,0 +1,15 @@ + + +# IoArgoprojEventsV1alpha1EventSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**io.kubernetes.client.openapi.models.V1ObjectMeta**](io.kubernetes.client.openapi.models.V1ObjectMeta.md) | | [optional] +**spec** | [**IoArgoprojEventsV1alpha1EventSourceSpec**](IoArgoprojEventsV1alpha1EventSourceSpec.md) | | [optional] +**status** | [**IoArgoprojEventsV1alpha1EventSourceStatus**](IoArgoprojEventsV1alpha1EventSourceStatus.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceFilter.md similarity index 70% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceFilter.md index d3912eb969e4..cdadd5180200 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceFilter.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter +# IoArgoprojEventsV1alpha1EventSourceFilter ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorList.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceList.md similarity index 53% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorList.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceList.md index c38d28ce6dd4..1821062bdfc9 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorList.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceList.md @@ -1,13 +1,13 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorList +# IoArgoprojEventsV1alpha1EventSourceList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md) | | [optional] +**items** | [**List<IoArgoprojEventsV1alpha1EventSource>**](IoArgoprojEventsV1alpha1EventSource.md) | | [optional] **metadata** | [**io.kubernetes.client.openapi.models.V1ListMeta**](io.kubernetes.client.openapi.models.V1ListMeta.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceSpec.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceSpec.md new file mode 100644 index 000000000000..893549b7c4c9 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceSpec.md @@ -0,0 +1,48 @@ + + +# IoArgoprojEventsV1alpha1EventSourceSpec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amqp** | [**Map<String, IoArgoprojEventsV1alpha1AMQPEventSource>**](IoArgoprojEventsV1alpha1AMQPEventSource.md) | | [optional] +**azureEventsHub** | [**Map<String, IoArgoprojEventsV1alpha1AzureEventsHubEventSource>**](IoArgoprojEventsV1alpha1AzureEventsHubEventSource.md) | | [optional] +**azureQueueStorage** | [**Map<String, IoArgoprojEventsV1alpha1AzureQueueStorageEventSource>**](IoArgoprojEventsV1alpha1AzureQueueStorageEventSource.md) | | [optional] +**azureServiceBus** | [**Map<String, IoArgoprojEventsV1alpha1AzureServiceBusEventSource>**](IoArgoprojEventsV1alpha1AzureServiceBusEventSource.md) | | [optional] +**bitbucket** | [**Map<String, IoArgoprojEventsV1alpha1BitbucketEventSource>**](IoArgoprojEventsV1alpha1BitbucketEventSource.md) | | [optional] +**bitbucketserver** | [**Map<String, IoArgoprojEventsV1alpha1BitbucketServerEventSource>**](IoArgoprojEventsV1alpha1BitbucketServerEventSource.md) | | [optional] +**calendar** | [**Map<String, IoArgoprojEventsV1alpha1CalendarEventSource>**](IoArgoprojEventsV1alpha1CalendarEventSource.md) | | [optional] +**emitter** | [**Map<String, IoArgoprojEventsV1alpha1EmitterEventSource>**](IoArgoprojEventsV1alpha1EmitterEventSource.md) | | [optional] +**eventBusName** | **String** | | [optional] +**file** | [**Map<String, IoArgoprojEventsV1alpha1FileEventSource>**](IoArgoprojEventsV1alpha1FileEventSource.md) | | [optional] +**generic** | [**Map<String, IoArgoprojEventsV1alpha1GenericEventSource>**](IoArgoprojEventsV1alpha1GenericEventSource.md) | | [optional] +**gerrit** | [**Map<String, IoArgoprojEventsV1alpha1GerritEventSource>**](IoArgoprojEventsV1alpha1GerritEventSource.md) | | [optional] +**github** | [**Map<String, IoArgoprojEventsV1alpha1GithubEventSource>**](IoArgoprojEventsV1alpha1GithubEventSource.md) | | [optional] +**gitlab** | [**Map<String, IoArgoprojEventsV1alpha1GitlabEventSource>**](IoArgoprojEventsV1alpha1GitlabEventSource.md) | | [optional] +**hdfs** | [**Map<String, IoArgoprojEventsV1alpha1HDFSEventSource>**](IoArgoprojEventsV1alpha1HDFSEventSource.md) | | [optional] +**kafka** | [**Map<String, IoArgoprojEventsV1alpha1KafkaEventSource>**](IoArgoprojEventsV1alpha1KafkaEventSource.md) | | [optional] +**minio** | [**Map<String, IoArgoprojEventsV1alpha1S3Artifact>**](IoArgoprojEventsV1alpha1S3Artifact.md) | | [optional] +**mns** | [**Map<String, IoArgoprojEventsV1alpha1MNSEventSource>**](IoArgoprojEventsV1alpha1MNSEventSource.md) | | [optional] +**mqtt** | [**Map<String, IoArgoprojEventsV1alpha1MQTTEventSource>**](IoArgoprojEventsV1alpha1MQTTEventSource.md) | | [optional] +**nats** | [**Map<String, IoArgoprojEventsV1alpha1NATSEventsSource>**](IoArgoprojEventsV1alpha1NATSEventsSource.md) | | [optional] +**nsq** | [**Map<String, IoArgoprojEventsV1alpha1NSQEventSource>**](IoArgoprojEventsV1alpha1NSQEventSource.md) | | [optional] +**pubSub** | [**Map<String, IoArgoprojEventsV1alpha1PubSubEventSource>**](IoArgoprojEventsV1alpha1PubSubEventSource.md) | | [optional] +**pulsar** | [**Map<String, IoArgoprojEventsV1alpha1PulsarEventSource>**](IoArgoprojEventsV1alpha1PulsarEventSource.md) | | [optional] +**redis** | [**Map<String, IoArgoprojEventsV1alpha1RedisEventSource>**](IoArgoprojEventsV1alpha1RedisEventSource.md) | | [optional] +**redisStream** | [**Map<String, IoArgoprojEventsV1alpha1RedisStreamEventSource>**](IoArgoprojEventsV1alpha1RedisStreamEventSource.md) | | [optional] +**replicas** | **Integer** | | [optional] +**resource** | [**Map<String, IoArgoprojEventsV1alpha1ResourceEventSource>**](IoArgoprojEventsV1alpha1ResourceEventSource.md) | | [optional] +**service** | [**IoArgoprojEventsV1alpha1Service**](IoArgoprojEventsV1alpha1Service.md) | | [optional] +**sftp** | [**Map<String, IoArgoprojEventsV1alpha1SFTPEventSource>**](IoArgoprojEventsV1alpha1SFTPEventSource.md) | | [optional] +**slack** | [**Map<String, IoArgoprojEventsV1alpha1SlackEventSource>**](IoArgoprojEventsV1alpha1SlackEventSource.md) | | [optional] +**sns** | [**Map<String, IoArgoprojEventsV1alpha1SNSEventSource>**](IoArgoprojEventsV1alpha1SNSEventSource.md) | | [optional] +**sqs** | [**Map<String, IoArgoprojEventsV1alpha1SQSEventSource>**](IoArgoprojEventsV1alpha1SQSEventSource.md) | | [optional] +**storageGrid** | [**Map<String, IoArgoprojEventsV1alpha1StorageGridEventSource>**](IoArgoprojEventsV1alpha1StorageGridEventSource.md) | | [optional] +**stripe** | [**Map<String, IoArgoprojEventsV1alpha1StripeEventSource>**](IoArgoprojEventsV1alpha1StripeEventSource.md) | | [optional] +**template** | [**IoArgoprojEventsV1alpha1Template**](IoArgoprojEventsV1alpha1Template.md) | | [optional] +**webhook** | [**Map<String, IoArgoprojEventsV1alpha1WebhookEventSource>**](IoArgoprojEventsV1alpha1WebhookEventSource.md) | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceStatus.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceStatus.md new file mode 100644 index 000000000000..0f4b465f6735 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1EventSourceStatus.md @@ -0,0 +1,13 @@ + + +# IoArgoprojEventsV1alpha1EventSourceStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**IoArgoprojEventsV1alpha1Status**](IoArgoprojEventsV1alpha1Status.md) | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1ExprFilter.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ExprFilter.md new file mode 100644 index 000000000000..e3e353fd1def --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ExprFilter.md @@ -0,0 +1,14 @@ + + +# IoArgoprojEventsV1alpha1ExprFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expr** | **String** | Expr refers to the expression that determines the outcome of the filter. | [optional] +**fields** | [**List<IoArgoprojEventsV1alpha1PayloadField>**](IoArgoprojEventsV1alpha1PayloadField.md) | Fields refers to set of keys that refer to the paths within event payload. | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileArtifact.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1FileArtifact.md similarity index 71% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileArtifact.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1FileArtifact.md index 90fd8e7efcaa..171a7a117b48 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileArtifact.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1FileArtifact.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1FileArtifact +# IoArgoprojEventsV1alpha1FileArtifact ## Properties diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1FileEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1FileEventSource.md new file mode 100644 index 000000000000..23c0ac16358b --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1FileEventSource.md @@ -0,0 +1,18 @@ + + +# IoArgoprojEventsV1alpha1FileEventSource + +FileEventSource describes an event-source for file related events. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eventType** | **String** | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] +**metadata** | **Map<String, String>** | | [optional] +**polling** | **Boolean** | | [optional] +**watchPathConfig** | [**IoArgoprojEventsV1alpha1WatchPathConfig**](IoArgoprojEventsV1alpha1WatchPathConfig.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GenericEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GenericEventSource.md similarity index 74% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GenericEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1GenericEventSource.md index a9b536b3e77e..4e5ba2527495 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GenericEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GenericEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GenericEventSource +# IoArgoprojEventsV1alpha1GenericEventSource GenericEventSource refers to a generic event source. It can be used to implement a custom event source. @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **authSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **config** | **String** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **insecure** | **Boolean** | Insecure determines the type of connection. | [optional] **jsonBody** | **Boolean** | | [optional] **metadata** | **Map<String, String>** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GerritEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GerritEventSource.md similarity index 51% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GerritEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1GerritEventSource.md index d699fb56a241..1a753c0f9a2d 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GerritEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GerritEventSource.md @@ -1,23 +1,23 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GerritEventSource +# IoArgoprojEventsV1alpha1GerritEventSource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**auth** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth.md) | | [optional] +**auth** | [**IoArgoprojEventsV1alpha1BasicAuth**](IoArgoprojEventsV1alpha1BasicAuth.md) | | [optional] **deleteHookOnFinish** | **Boolean** | | [optional] **events** | **List<String>** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **gerritBaseURL** | **String** | | [optional] **hookName** | **String** | | [optional] **maxTries** | **String** | | [optional] **metadata** | **Map<String, String>** | | [optional] **projects** | **List<String>** | List of project namespace paths like \"whynowy/test\". | [optional] **sslVerify** | **Boolean** | | [optional] -**webhook** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] +**webhook** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitArtifact.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GitArtifact.md similarity index 66% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitArtifact.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1GitArtifact.md index 14c9af62b365..6c0681d8996b 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitArtifact.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GitArtifact.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitArtifact +# IoArgoprojEventsV1alpha1GitArtifact ## Properties @@ -9,11 +9,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **branch** | **String** | | [optional] **cloneDirectory** | **String** | Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers. Hence we don't use any specific git provider client. | [optional] -**creds** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitCreds**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitCreds.md) | | [optional] +**creds** | [**IoArgoprojEventsV1alpha1GitCreds**](IoArgoprojEventsV1alpha1GitCreds.md) | | [optional] **filePath** | **String** | | [optional] **insecureIgnoreHostKey** | **Boolean** | | [optional] **ref** | **String** | | [optional] -**remote** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitRemoteConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitRemoteConfig.md) | | [optional] +**remote** | [**IoArgoprojEventsV1alpha1GitRemoteConfig**](IoArgoprojEventsV1alpha1GitRemoteConfig.md) | | [optional] **sshKeySecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **tag** | **String** | | [optional] **url** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketBasicAuth.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GitCreds.md similarity index 86% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketBasicAuth.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1GitCreds.md index e8f75e99d38d..35c3900e561a 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketBasicAuth.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GitCreds.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BitbucketBasicAuth +# IoArgoprojEventsV1alpha1GitCreds ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitRemoteConfig.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GitRemoteConfig.md similarity index 84% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitRemoteConfig.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1GitRemoteConfig.md index 76aea69b7ffa..4f869a1924a9 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitRemoteConfig.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GitRemoteConfig.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitRemoteConfig +# IoArgoprojEventsV1alpha1GitRemoteConfig ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubAppCreds.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GithubAppCreds.md similarity index 84% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubAppCreds.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1GithubAppCreds.md index bebb0fe46d03..285322c4216c 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubAppCreds.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GithubAppCreds.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubAppCreds +# IoArgoprojEventsV1alpha1GithubAppCreds ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GithubEventSource.md similarity index 55% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1GithubEventSource.md index 185b5cf6fb15..2dfadecf39dc 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GithubEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubEventSource +# IoArgoprojEventsV1alpha1GithubEventSource ## Properties @@ -12,8 +12,8 @@ Name | Type | Description | Notes **contentType** | **String** | | [optional] **deleteHookOnFinish** | **Boolean** | | [optional] **events** | **List<String>** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] -**githubApp** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubAppCreds**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GithubAppCreds.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] +**githubApp** | [**IoArgoprojEventsV1alpha1GithubAppCreds**](IoArgoprojEventsV1alpha1GithubAppCreds.md) | | [optional] **githubBaseURL** | **String** | | [optional] **githubUploadURL** | **String** | | [optional] **id** | **String** | | [optional] @@ -21,9 +21,9 @@ Name | Type | Description | Notes **metadata** | **Map<String, String>** | | [optional] **organizations** | **List<String>** | Organizations holds the names of organizations (used for organization level webhooks). Not required if Repositories is set. | [optional] **owner** | **String** | | [optional] -**repositories** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OwnedRepositories>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OwnedRepositories.md) | Repositories holds the information of repositories, which uses repo owner as the key, and list of repo names as the value. Not required if Organizations is set. | [optional] +**repositories** | [**List<IoArgoprojEventsV1alpha1OwnedRepositories>**](IoArgoprojEventsV1alpha1OwnedRepositories.md) | Repositories holds the information of repositories, which uses repo owner as the key, and list of repo names as the value. Not required if Organizations is set. | [optional] **repository** | **String** | | [optional] -**webhook** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] +**webhook** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] **webhookSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitlabEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GitlabEventSource.md similarity index 71% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitlabEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1GitlabEventSource.md index 72e7bd4fd555..7334ea806012 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitlabEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1GitlabEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1GitlabEventSource +# IoArgoprojEventsV1alpha1GitlabEventSource ## Properties @@ -11,14 +11,14 @@ Name | Type | Description | Notes **deleteHookOnFinish** | **Boolean** | | [optional] **enableSSLVerification** | **Boolean** | | [optional] **events** | **List<String>** | Events are gitlab event to listen to. Refer https://github.com/xanzy/go-gitlab/blob/bf34eca5d13a9f4c3f501d8a97b8ac226d55e4d9/projects.go#L794. | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **gitlabBaseURL** | **String** | | [optional] **groups** | **List<String>** | | [optional] **metadata** | **Map<String, String>** | | [optional] **projectID** | **String** | | [optional] **projects** | **List<String>** | | [optional] **secretToken** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**webhook** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] +**webhook** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HDFSEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1HDFSEventSource.md similarity index 77% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HDFSEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1HDFSEventSource.md index e0fdf1495a1e..fca8d059f514 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HDFSEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1HDFSEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1HDFSEventSource +# IoArgoprojEventsV1alpha1HDFSEventSource ## Properties @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **addresses** | **List<String>** | | [optional] **checkInterval** | **String** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **hdfsUser** | **String** | HDFSUser is the user to access HDFS file system. It is ignored if either ccache or keytab is used. | [optional] **krbCCacheSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **krbConfigConfigMap** | [**io.kubernetes.client.openapi.models.V1ConfigMapKeySelector**](io.kubernetes.client.openapi.models.V1ConfigMapKeySelector.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes **krbUsername** | **String** | KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used. | [optional] **metadata** | **Map<String, String>** | | [optional] **type** | **String** | | [optional] -**watchPathConfig** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig.md) | | [optional] +**watchPathConfig** | [**IoArgoprojEventsV1alpha1WatchPathConfig**](IoArgoprojEventsV1alpha1WatchPathConfig.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1HTTPTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1HTTPTrigger.md new file mode 100644 index 000000000000..74410c03fea5 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1HTTPTrigger.md @@ -0,0 +1,23 @@ + + +# IoArgoprojEventsV1alpha1HTTPTrigger + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basicAuth** | [**IoArgoprojEventsV1alpha1BasicAuth**](IoArgoprojEventsV1alpha1BasicAuth.md) | | [optional] +**dynamicHeaders** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**headers** | **Map<String, String>** | | [optional] +**host** | **String** | | [optional] +**method** | **String** | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Parameters is the list of key-value extracted from event's payload that are applied to the HTTP trigger resource. | [optional] +**payload** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**secureHeaders** | [**List<IoArgoprojEventsV1alpha1SecureHeader>**](IoArgoprojEventsV1alpha1SecureHeader.md) | | [optional] +**timeout** | **String** | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**url** | **String** | URL refers to the URL to send HTTP request to. | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Int64OrString.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Int64OrString.md similarity index 78% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Int64OrString.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1Int64OrString.md index fa699a1ad7d5..333f2c803a0f 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Int64OrString.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Int64OrString.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Int64OrString +# IoArgoprojEventsV1alpha1Int64OrString ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1K8SResource.md similarity index 76% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1K8SResource.md index 78ce8d41d1b8..398720ce0c53 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1K8SResource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResource +# IoArgoprojEventsV1alpha1K8SResource K8SResource represent arbitrary structured data. diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResourcePolicy.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1K8SResourcePolicy.md similarity index 51% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResourcePolicy.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1K8SResourcePolicy.md index f6e617a5c05c..6b85fc4f5986 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResourcePolicy.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1K8SResourcePolicy.md @@ -1,13 +1,13 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1K8SResourcePolicy +# IoArgoprojEventsV1alpha1K8SResourcePolicy ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**backoff** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] +**backoff** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] **errorOnBackoffTimeout** | **Boolean** | | [optional] **labels** | **Map<String, String>** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaConsumerGroup.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1KafkaConsumerGroup.md similarity index 78% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaConsumerGroup.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1KafkaConsumerGroup.md index 1f2c0e64e30d..2563981b8d7a 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaConsumerGroup.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1KafkaConsumerGroup.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1KafkaConsumerGroup +# IoArgoprojEventsV1alpha1KafkaConsumerGroup ## Properties diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1KafkaEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1KafkaEventSource.md new file mode 100644 index 000000000000..3f26f7bd159d --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1KafkaEventSource.md @@ -0,0 +1,26 @@ + + +# IoArgoprojEventsV1alpha1KafkaEventSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | **String** | Yaml format Sarama config for Kafka connection. It follows the struct of sarama.Config. See https://github.com/IBM/sarama/blob/main/config.go e.g. consumer: fetch: min: 1 net: MaxOpenRequests: 5 +optional | [optional] +**connectionBackoff** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] +**consumerGroup** | [**IoArgoprojEventsV1alpha1KafkaConsumerGroup**](IoArgoprojEventsV1alpha1KafkaConsumerGroup.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] +**jsonBody** | **Boolean** | | [optional] +**limitEventsPerSecond** | **String** | | [optional] +**metadata** | **Map<String, String>** | | [optional] +**partition** | **String** | | [optional] +**sasl** | [**IoArgoprojEventsV1alpha1SASLConfig**](IoArgoprojEventsV1alpha1SASLConfig.md) | | [optional] +**schemaRegistry** | [**IoArgoprojEventsV1alpha1SchemaRegistryConfig**](IoArgoprojEventsV1alpha1SchemaRegistryConfig.md) | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**topic** | **String** | | [optional] +**url** | **String** | | [optional] +**version** | **String** | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1KafkaTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1KafkaTrigger.md new file mode 100644 index 000000000000..ac3a194e315f --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1KafkaTrigger.md @@ -0,0 +1,28 @@ + + +# IoArgoprojEventsV1alpha1KafkaTrigger + +KafkaTrigger refers to the specification of the Kafka trigger. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**compress** | **Boolean** | | [optional] +**flushFrequency** | **Integer** | | [optional] +**headers** | **Map<String, String>** | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Parameters is the list of parameters that is applied to resolved Kafka trigger object. | [optional] +**partition** | **Integer** | | [optional] +**partitioningKey** | **String** | The partitioning key for the messages put on the Kafka topic. +optional. | [optional] +**payload** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] +**requiredAcks** | **Integer** | RequiredAcks used in producer to tell the broker how many replica acknowledgements Defaults to 1 (Only wait for the leader to ack). +optional. | [optional] +**sasl** | [**IoArgoprojEventsV1alpha1SASLConfig**](IoArgoprojEventsV1alpha1SASLConfig.md) | | [optional] +**schemaRegistry** | [**IoArgoprojEventsV1alpha1SchemaRegistryConfig**](IoArgoprojEventsV1alpha1SchemaRegistryConfig.md) | | [optional] +**secureHeaders** | [**List<IoArgoprojEventsV1alpha1SecureHeader>**](IoArgoprojEventsV1alpha1SecureHeader.md) | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**topic** | **String** | | [optional] +**url** | **String** | URL of the Kafka broker, multiple URLs separated by comma. | [optional] +**version** | **String** | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1LogTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1LogTrigger.md similarity index 73% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1LogTrigger.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1LogTrigger.md index b2edbd66629b..e790352e523b 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1LogTrigger.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1LogTrigger.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1LogTrigger +# IoArgoprojEventsV1alpha1LogTrigger ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MNSEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1MNSEventSource.md similarity index 70% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MNSEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1MNSEventSource.md index 18ca2ec094d0..0364eb97d4c9 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MNSEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1MNSEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1MNSEventSource +# IoArgoprojEventsV1alpha1MNSEventSource ## Properties @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **endpoint** | **String** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **jsonBody** | **Boolean** | | [optional] **queue** | **String** | | [optional] **secretKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1MQTTEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1MQTTEventSource.md new file mode 100644 index 000000000000..32a4de27ed76 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1MQTTEventSource.md @@ -0,0 +1,21 @@ + + +# IoArgoprojEventsV1alpha1MQTTEventSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth** | [**IoArgoprojEventsV1alpha1BasicAuth**](IoArgoprojEventsV1alpha1BasicAuth.md) | | [optional] +**clientId** | **String** | | [optional] +**connectionBackoff** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] +**jsonBody** | **Boolean** | | [optional] +**metadata** | **Map<String, String>** | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**topic** | **String** | | [optional] +**url** | **String** | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Metadata.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Metadata.md similarity index 80% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Metadata.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1Metadata.md index 3920eec2bdf7..8d8fd3b19dbb 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Metadata.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Metadata.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Metadata +# IoArgoprojEventsV1alpha1Metadata ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSAuth.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1NATSAuth.md similarity index 72% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSAuth.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1NATSAuth.md index 0e6c4212faf7..24562a8e8be9 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSAuth.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1NATSAuth.md @@ -1,13 +1,13 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1NATSAuth +# IoArgoprojEventsV1alpha1NATSAuth ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**basic** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1BasicAuth.md) | | [optional] +**basic** | [**IoArgoprojEventsV1alpha1BasicAuth**](IoArgoprojEventsV1alpha1BasicAuth.md) | | [optional] **credential** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **nkey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **token** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1NATSEventsSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1NATSEventsSource.md new file mode 100644 index 000000000000..85183ce8c57c --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1NATSEventsSource.md @@ -0,0 +1,21 @@ + + +# IoArgoprojEventsV1alpha1NATSEventsSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth** | [**IoArgoprojEventsV1alpha1NATSAuth**](IoArgoprojEventsV1alpha1NATSAuth.md) | | [optional] +**connectionBackoff** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] +**jsonBody** | **Boolean** | | [optional] +**metadata** | **Map<String, String>** | | [optional] +**queue** | **String** | | [optional] +**subject** | **String** | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**url** | **String** | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1NATSTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1NATSTrigger.md new file mode 100644 index 000000000000..813adbb13b06 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1NATSTrigger.md @@ -0,0 +1,19 @@ + + +# IoArgoprojEventsV1alpha1NATSTrigger + +NATSTrigger refers to the specification of the NATS trigger. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth** | [**IoArgoprojEventsV1alpha1NATSAuth**](IoArgoprojEventsV1alpha1NATSAuth.md) | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**payload** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**subject** | **String** | Name of the subject to put message on. | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**url** | **String** | URL of the NATS cluster. | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1NSQEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1NSQEventSource.md new file mode 100644 index 000000000000..03d6ed100cb4 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1NSQEventSource.md @@ -0,0 +1,20 @@ + + +# IoArgoprojEventsV1alpha1NSQEventSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **String** | | [optional] +**connectionBackoff** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] +**hostAddress** | **String** | | [optional] +**jsonBody** | **Boolean** | | [optional] +**metadata** | **Map<String, String>** | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] +**topic** | **String** | Topic to subscribe to. | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OpenWhiskTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1OpenWhiskTrigger.md similarity index 54% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OpenWhiskTrigger.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1OpenWhiskTrigger.md index 10fab3463195..be3bb050123f 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OpenWhiskTrigger.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1OpenWhiskTrigger.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OpenWhiskTrigger +# IoArgoprojEventsV1alpha1OpenWhiskTrigger OpenWhiskTrigger refers to the specification of the OpenWhisk trigger. @@ -12,8 +12,8 @@ Name | Type | Description | Notes **authToken** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **host** | **String** | Host URL of the OpenWhisk. | [optional] **namespace** | **String** | Namespace for the action. Defaults to \"_\". +optional. | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | | [optional] -**payload** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**payload** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] **version** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OwnedRepositories.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1OwnedRepositories.md similarity index 75% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OwnedRepositories.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1OwnedRepositories.md index b42c1822605d..df507126977d 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OwnedRepositories.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1OwnedRepositories.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1OwnedRepositories +# IoArgoprojEventsV1alpha1OwnedRepositories ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PayloadField.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1PayloadField.md similarity index 91% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PayloadField.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1PayloadField.md index c8290fd67744..3fd6594e6328 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PayloadField.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1PayloadField.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PayloadField +# IoArgoprojEventsV1alpha1PayloadField PayloadField binds a value at path within the event payload against a name. diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PubSubEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1PubSubEventSource.md similarity index 74% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PubSubEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1PubSubEventSource.md index f9fdd5a362e8..cf83dd76c533 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PubSubEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1PubSubEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PubSubEventSource +# IoArgoprojEventsV1alpha1PubSubEventSource PubSubEventSource refers to event-source for GCP PubSub related events. @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **credentialSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **deleteSubscriptionOnFinish** | **Boolean** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **jsonBody** | **Boolean** | | [optional] **metadata** | **Map<String, String>** | | [optional] **projectID** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1PulsarEventSource.md similarity index 64% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1PulsarEventSource.md index d8a4de219ac5..b83cce930730 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1PulsarEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarEventSource +# IoArgoprojEventsV1alpha1PulsarEventSource ## Properties @@ -10,11 +10,11 @@ Name | Type | Description | Notes **authAthenzParams** | **Map<String, String>** | | [optional] **authAthenzSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **authTokenSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**connectionBackoff** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**connectionBackoff** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **jsonBody** | **Boolean** | | [optional] **metadata** | **Map<String, String>** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] **tlsAllowInsecureConnection** | **Boolean** | | [optional] **tlsTrustCertsSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **tlsValidateHostname** | **Boolean** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1PulsarTrigger.md similarity index 50% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarTrigger.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1PulsarTrigger.md index e223940c99ad..f14a58bc27b7 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarTrigger.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1PulsarTrigger.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1PulsarTrigger +# IoArgoprojEventsV1alpha1PulsarTrigger PulsarTrigger refers to the specification of the Pulsar trigger. @@ -11,10 +11,10 @@ Name | Type | Description | Notes **authAthenzParams** | **Map<String, String>** | | [optional] **authAthenzSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **authTokenSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**connectionBackoff** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Backoff.md) | | [optional] -**parameters** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Parameters is the list of parameters that is applied to resolved Kafka trigger object. | [optional] -**payload** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] +**connectionBackoff** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Parameters is the list of parameters that is applied to resolved Kafka trigger object. | [optional] +**payload** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Payload is the list of key-value extracted from an event payload to construct the request payload. | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] **tlsAllowInsecureConnection** | **Boolean** | | [optional] **tlsTrustCertsSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **tlsValidateHostname** | **Boolean** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RateLimit.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1RateLimit.md similarity index 77% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RateLimit.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1RateLimit.md index c80025e1a1e0..14a4fc03b1fe 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RateLimit.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1RateLimit.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RateLimit +# IoArgoprojEventsV1alpha1RateLimit ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1RedisEventSource.md similarity index 60% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1RedisEventSource.md index 23889b722a3a..6ecf5745bd46 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1RedisEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisEventSource +# IoArgoprojEventsV1alpha1RedisEventSource ## Properties @@ -9,13 +9,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **channels** | **List<String>** | | [optional] **db** | **Integer** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **hostAddress** | **String** | | [optional] **jsonBody** | **Boolean** | | [optional] **metadata** | **Map<String, String>** | | [optional] **namespace** | **String** | | [optional] **password** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] **username** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisStreamEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1RedisStreamEventSource.md similarity index 64% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisStreamEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1RedisStreamEventSource.md index 87921c738fb1..bf318d50ceaf 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisStreamEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1RedisStreamEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1RedisStreamEventSource +# IoArgoprojEventsV1alpha1RedisStreamEventSource ## Properties @@ -9,13 +9,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **consumerGroup** | **String** | | [optional] **db** | **Integer** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **hostAddress** | **String** | | [optional] **maxMsgCountPerRead** | **Integer** | | [optional] **metadata** | **Map<String, String>** | | [optional] **password** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **streams** | **List<String>** | Streams to look for entries. XREADGROUP is used on all streams using a single consumer group. | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] **username** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ResourceEventSource.md similarity index 69% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1ResourceEventSource.md index f382d3d61661..bcad0c15ffff 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ResourceEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceEventSource +# IoArgoprojEventsV1alpha1ResourceEventSource ResourceEventSource refers to a event-source for K8s resource related events. @@ -9,7 +9,7 @@ ResourceEventSource refers to a event-source for K8s resource related events. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **eventTypes** | **List<String>** | EventTypes is the list of event type to watch. Possible values are - ADD, UPDATE and DELETE. | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ResourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1ResourceFilter**](IoArgoprojEventsV1alpha1ResourceFilter.md) | | [optional] **groupVersionResource** | [**GroupVersionResource**](GroupVersionResource.md) | | [optional] **metadata** | **Map<String, String>** | | [optional] **namespace** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1ResourceFilter.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ResourceFilter.md new file mode 100644 index 000000000000..f658aecded26 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ResourceFilter.md @@ -0,0 +1,17 @@ + + +# IoArgoprojEventsV1alpha1ResourceFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**afterStart** | **Boolean** | | [optional] +**createdBy** | **java.time.Instant** | | [optional] +**fields** | [**List<IoArgoprojEventsV1alpha1Selector>**](IoArgoprojEventsV1alpha1Selector.md) | | [optional] +**labels** | [**List<IoArgoprojEventsV1alpha1Selector>**](IoArgoprojEventsV1alpha1Selector.md) | | [optional] +**prefix** | **String** | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Artifact.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1S3Artifact.md similarity index 69% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Artifact.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1S3Artifact.md index 550f23bf8484..e2ba0c1154cc 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Artifact.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1S3Artifact.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Artifact +# IoArgoprojEventsV1alpha1S3Artifact ## Properties @@ -8,11 +8,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**bucket** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Bucket**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Bucket.md) | | [optional] +**bucket** | [**IoArgoprojEventsV1alpha1S3Bucket**](IoArgoprojEventsV1alpha1S3Bucket.md) | | [optional] **caCertificate** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **endpoint** | **String** | | [optional] **events** | **List<String>** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Filter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Filter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1S3Filter**](IoArgoprojEventsV1alpha1S3Filter.md) | | [optional] **insecure** | **Boolean** | | [optional] **metadata** | **Map<String, String>** | | [optional] **region** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Bucket.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1S3Bucket.md similarity index 76% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Bucket.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1S3Bucket.md index 87cbb3b69ae4..9a617bc7ea0c 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Bucket.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1S3Bucket.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Bucket +# IoArgoprojEventsV1alpha1S3Bucket ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Filter.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1S3Filter.md similarity index 77% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Filter.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1S3Filter.md index 57c45e8ffe25..7ba08dcb932d 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Filter.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1S3Filter.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1S3Filter +# IoArgoprojEventsV1alpha1S3Filter ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SASLConfig.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SASLConfig.md similarity index 88% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SASLConfig.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1SASLConfig.md index c1fc6be997ea..64759096753b 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SASLConfig.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SASLConfig.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SASLConfig +# IoArgoprojEventsV1alpha1SASLConfig ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SFTPEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SFTPEventSource.md similarity index 69% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SFTPEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1SFTPEventSource.md index d9cf4d363ced..5cd179fa68f2 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SFTPEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SFTPEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SFTPEventSource +# IoArgoprojEventsV1alpha1SFTPEventSource SFTPEventSource describes an event-source for sftp related events. @@ -10,13 +10,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **address** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **eventType** | **String** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **metadata** | **Map<String, String>** | | [optional] **password** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **pollIntervalDuration** | **String** | | [optional] **sshKeySecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **username** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**watchPathConfig** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig.md) | | [optional] +**watchPathConfig** | [**IoArgoprojEventsV1alpha1WatchPathConfig**](IoArgoprojEventsV1alpha1WatchPathConfig.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SNSEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SNSEventSource.md similarity index 63% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SNSEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1SNSEventSource.md index 5cebb5d6a5ca..85252a3db5f3 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SNSEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SNSEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SNSEventSource +# IoArgoprojEventsV1alpha1SNSEventSource ## Properties @@ -9,14 +9,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **endpoint** | **String** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **metadata** | **Map<String, String>** | | [optional] **region** | **String** | | [optional] **roleARN** | **String** | | [optional] **secretKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **topicArn** | **String** | | [optional] **validateSignature** | **Boolean** | | [optional] -**webhook** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] +**webhook** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SQSEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SQSEventSource.md similarity index 82% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SQSEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1SQSEventSource.md index 5064ef62b962..78fab09a205f 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SQSEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SQSEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SQSEventSource +# IoArgoprojEventsV1alpha1SQSEventSource ## Properties @@ -10,7 +10,7 @@ Name | Type | Description | Notes **accessKey** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **dlq** | **Boolean** | | [optional] **endpoint** | **String** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **jsonBody** | **Boolean** | | [optional] **metadata** | **Map<String, String>** | | [optional] **queue** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1SchemaRegistryConfig.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SchemaRegistryConfig.md new file mode 100644 index 000000000000..040e52d6e3c3 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SchemaRegistryConfig.md @@ -0,0 +1,15 @@ + + +# IoArgoprojEventsV1alpha1SchemaRegistryConfig + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth** | [**IoArgoprojEventsV1alpha1BasicAuth**](IoArgoprojEventsV1alpha1BasicAuth.md) | | [optional] +**schemaId** | **Integer** | | [optional] +**url** | **String** | Schema Registry URL. | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1SecureHeader.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SecureHeader.md new file mode 100644 index 000000000000..50bad3dbd9d0 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SecureHeader.md @@ -0,0 +1,14 @@ + + +# IoArgoprojEventsV1alpha1SecureHeader + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**valueFrom** | [**IoArgoprojEventsV1alpha1ValueFromSource**](IoArgoprojEventsV1alpha1ValueFromSource.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Selector.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Selector.md similarity index 83% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Selector.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1Selector.md index 9bfbf98ee05b..3e2d1067d4e2 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Selector.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Selector.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Selector +# IoArgoprojEventsV1alpha1Selector Selector represents conditional operation to select K8s objects. diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1Sensor.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Sensor.md new file mode 100644 index 000000000000..4aca796013fb --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Sensor.md @@ -0,0 +1,15 @@ + + +# IoArgoprojEventsV1alpha1Sensor + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**io.kubernetes.client.openapi.models.V1ObjectMeta**](io.kubernetes.client.openapi.models.V1ObjectMeta.md) | | [optional] +**spec** | [**IoArgoprojEventsV1alpha1SensorSpec**](IoArgoprojEventsV1alpha1SensorSpec.md) | | [optional] +**status** | [**IoArgoprojEventsV1alpha1SensorStatus**](IoArgoprojEventsV1alpha1SensorStatus.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceList.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SensorList.md similarity index 51% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceList.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1SensorList.md index ed841f62d2d0..742b26394f4d 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceList.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SensorList.md @@ -1,13 +1,13 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceList +# IoArgoprojEventsV1alpha1SensorList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**List<GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource>**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSource.md) | | [optional] +**items** | [**List<IoArgoprojEventsV1alpha1Sensor>**](IoArgoprojEventsV1alpha1Sensor.md) | | [optional] **metadata** | [**io.kubernetes.client.openapi.models.V1ListMeta**](io.kubernetes.client.openapi.models.V1ListMeta.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1SensorSpec.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SensorSpec.md new file mode 100644 index 000000000000..e790e2cab872 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SensorSpec.md @@ -0,0 +1,20 @@ + + +# IoArgoprojEventsV1alpha1SensorSpec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dependencies** | [**List<IoArgoprojEventsV1alpha1EventDependency>**](IoArgoprojEventsV1alpha1EventDependency.md) | Dependencies is a list of the events that this sensor is dependent on. | [optional] +**errorOnFailedRound** | **Boolean** | ErrorOnFailedRound if set to true, marks sensor state as `error` if the previous trigger round fails. Once sensor state is set to `error`, no further triggers will be processed. | [optional] +**eventBusName** | **String** | | [optional] +**loggingFields** | **Map<String, String>** | | [optional] +**replicas** | **Integer** | | [optional] +**revisionHistoryLimit** | **Integer** | | [optional] +**template** | [**IoArgoprojEventsV1alpha1Template**](IoArgoprojEventsV1alpha1Template.md) | | [optional] +**triggers** | [**List<IoArgoprojEventsV1alpha1Trigger>**](IoArgoprojEventsV1alpha1Trigger.md) | Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor. | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1SensorStatus.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SensorStatus.md new file mode 100644 index 000000000000..03c171d8f763 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SensorStatus.md @@ -0,0 +1,14 @@ + + +# IoArgoprojEventsV1alpha1SensorStatus + +SensorStatus contains information about the status of a sensor. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**IoArgoprojEventsV1alpha1Status**](IoArgoprojEventsV1alpha1Status.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Service.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Service.md similarity index 52% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Service.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1Service.md index 7ce6afe764f5..d0a8f14aa70a 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Service.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Service.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Service +# IoArgoprojEventsV1alpha1Service ## Properties @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **clusterIP** | **String** | | [optional] -**metadata** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Metadata**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Metadata.md) | | [optional] +**metadata** | [**IoArgoprojEventsV1alpha1Metadata**](IoArgoprojEventsV1alpha1Metadata.md) | | [optional] **ports** | [**List<ServicePort>**](ServicePort.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackEventSource.md similarity index 54% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackEventSource.md index 7f1353603e4c..95485709a2e5 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackEventSource.md @@ -1,17 +1,17 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackEventSource +# IoArgoprojEventsV1alpha1SlackEventSource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1EventSourceFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] **metadata** | **Map<String, String>** | | [optional] **signingSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **token** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] -**webhook** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] +**webhook** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackSender.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackSender.md similarity index 76% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackSender.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackSender.md index 0d871ed29dc4..db8b6c4ae8b0 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackSender.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackSender.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackSender +# IoArgoprojEventsV1alpha1SlackSender ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackThread.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackThread.md similarity index 79% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackThread.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackThread.md index 96cb0a2febda..0c93483cef58 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackThread.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackThread.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SlackThread +# IoArgoprojEventsV1alpha1SlackThread ## Properties diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackTrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackTrigger.md new file mode 100644 index 000000000000..37c09c65bb05 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1SlackTrigger.md @@ -0,0 +1,21 @@ + + +# IoArgoprojEventsV1alpha1SlackTrigger + +SlackTrigger refers to the specification of the slack notification trigger. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attachments** | **String** | | [optional] +**blocks** | **String** | | [optional] +**channel** | **String** | | [optional] +**message** | **String** | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**sender** | [**IoArgoprojEventsV1alpha1SlackSender**](IoArgoprojEventsV1alpha1SlackSender.md) | | [optional] +**slackToken** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] +**thread** | [**IoArgoprojEventsV1alpha1SlackThread**](IoArgoprojEventsV1alpha1SlackThread.md) | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1StandardK8STrigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StandardK8STrigger.md new file mode 100644 index 000000000000..87d610b40423 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StandardK8STrigger.md @@ -0,0 +1,17 @@ + + +# IoArgoprojEventsV1alpha1StandardK8STrigger + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**liveObject** | **Boolean** | | [optional] +**operation** | **String** | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | Parameters is the list of parameters that is applied to resolved K8s trigger object. | [optional] +**patchStrategy** | **String** | | [optional] +**source** | [**IoArgoprojEventsV1alpha1ArtifactLocation**](IoArgoprojEventsV1alpha1ArtifactLocation.md) | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1Status.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Status.md new file mode 100644 index 000000000000..5bb95654b5d0 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Status.md @@ -0,0 +1,14 @@ + + +# IoArgoprojEventsV1alpha1Status + +Status is a common structure which can be used for Status field. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List<IoArgoprojEventsV1alpha1Condition>**](IoArgoprojEventsV1alpha1Condition.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StatusPolicy.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StatusPolicy.md similarity index 72% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StatusPolicy.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1StatusPolicy.md index 44eb4d27430c..a9e7a7e531e1 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StatusPolicy.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StatusPolicy.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StatusPolicy +# IoArgoprojEventsV1alpha1StatusPolicy ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StorageGridEventSource.md similarity index 53% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1StorageGridEventSource.md index 6dd7f470035d..55a071600693 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StorageGridEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridEventSource +# IoArgoprojEventsV1alpha1StorageGridEventSource ## Properties @@ -11,12 +11,12 @@ Name | Type | Description | Notes **authToken** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional] **bucket** | **String** | Name of the bucket to register notifications for. | [optional] **events** | **List<String>** | | [optional] -**filter** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridFilter**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridFilter.md) | | [optional] +**filter** | [**IoArgoprojEventsV1alpha1StorageGridFilter**](IoArgoprojEventsV1alpha1StorageGridFilter.md) | | [optional] **metadata** | **Map<String, String>** | | [optional] **region** | **String** | | [optional] -**tls** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md) | | [optional] +**tls** | [**IoArgoprojEventsV1alpha1TLSConfig**](IoArgoprojEventsV1alpha1TLSConfig.md) | | [optional] **topicArn** | **String** | | [optional] -**webhook** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] +**webhook** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridFilter.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StorageGridFilter.md similarity index 74% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridFilter.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1StorageGridFilter.md index 586e1492ed4c..27b965ba8c42 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridFilter.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StorageGridFilter.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StorageGridFilter +# IoArgoprojEventsV1alpha1StorageGridFilter ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StripeEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StripeEventSource.md similarity index 65% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StripeEventSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1StripeEventSource.md index b273485ffb65..5ab3ee91cf2b 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StripeEventSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1StripeEventSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1StripeEventSource +# IoArgoprojEventsV1alpha1StripeEventSource ## Properties @@ -11,7 +11,7 @@ Name | Type | Description | Notes **createWebhook** | **Boolean** | | [optional] **eventFilter** | **List<String>** | | [optional] **metadata** | **Map<String, String>** | | [optional] -**webhook** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md) | | [optional] +**webhook** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TLSConfig.md similarity index 92% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1TLSConfig.md index 05f2a78059ac..811e667e9ef2 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TLSConfig.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TLSConfig +# IoArgoprojEventsV1alpha1TLSConfig TLSConfig refers to TLS configuration for a client. diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Template.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Template.md similarity index 74% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Template.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1Template.md index c4d937996cfe..5a3d3a8bc119 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Template.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Template.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Template +# IoArgoprojEventsV1alpha1Template ## Properties @@ -8,9 +8,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **affinity** | [**io.kubernetes.client.openapi.models.V1Affinity**](io.kubernetes.client.openapi.models.V1Affinity.md) | | [optional] -**container** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Container**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Container.md) | | [optional] +**container** | [**IoArgoprojEventsV1alpha1Container**](IoArgoprojEventsV1alpha1Container.md) | | [optional] **imagePullSecrets** | [**List<io.kubernetes.client.openapi.models.V1LocalObjectReference>**](io.kubernetes.client.openapi.models.V1LocalObjectReference.md) | | [optional] -**metadata** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Metadata**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Metadata.md) | | [optional] +**metadata** | [**IoArgoprojEventsV1alpha1Metadata**](IoArgoprojEventsV1alpha1Metadata.md) | | [optional] **nodeSelector** | **Map<String, String>** | | [optional] **priority** | **Integer** | | [optional] **priorityClassName** | **String** | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TimeFilter.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TimeFilter.md similarity index 92% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TimeFilter.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1TimeFilter.md index 31792dcf854f..1400f0a6f40e 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TimeFilter.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TimeFilter.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TimeFilter +# IoArgoprojEventsV1alpha1TimeFilter TimeFilter describes a window in time. It filters out events that occur outside the time limits. In other words, only events that occur after Start and before Stop will pass this filter. diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1Trigger.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Trigger.md new file mode 100644 index 000000000000..d53b5fb3220f --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1Trigger.md @@ -0,0 +1,19 @@ + + +# IoArgoprojEventsV1alpha1Trigger + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**atLeastOnce** | **Boolean** | | [optional] +**dlqTrigger** | [**IoArgoprojEventsV1alpha1Trigger**](IoArgoprojEventsV1alpha1Trigger.md) | | [optional] +**parameters** | [**List<IoArgoprojEventsV1alpha1TriggerParameter>**](IoArgoprojEventsV1alpha1TriggerParameter.md) | | [optional] +**policy** | [**IoArgoprojEventsV1alpha1TriggerPolicy**](IoArgoprojEventsV1alpha1TriggerPolicy.md) | | [optional] +**rateLimit** | [**IoArgoprojEventsV1alpha1RateLimit**](IoArgoprojEventsV1alpha1RateLimit.md) | | [optional] +**retryStrategy** | [**IoArgoprojEventsV1alpha1Backoff**](IoArgoprojEventsV1alpha1Backoff.md) | | [optional] +**template** | [**IoArgoprojEventsV1alpha1TriggerTemplate**](IoArgoprojEventsV1alpha1TriggerTemplate.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerParameter.md similarity index 71% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerParameter.md index bbbea200030a..ec51f552f0f8 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerParameter.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameter +# IoArgoprojEventsV1alpha1TriggerParameter ## Properties @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dest** | **String** | Dest is the JSONPath of a resource key. A path is a series of keys separated by a dot. The colon character can be escaped with '.' The -1 key can be used to append a value to an existing array. See https://github.com/tidwall/sjson#path-syntax for more information about how this is used. | [optional] **operation** | **String** | Operation is what to do with the existing value at Dest, whether to 'prepend', 'overwrite', or 'append' it. | [optional] -**src** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameterSource**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameterSource.md) | | [optional] +**src** | [**IoArgoprojEventsV1alpha1TriggerParameterSource**](IoArgoprojEventsV1alpha1TriggerParameterSource.md) | | [optional] diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameterSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerParameterSource.md similarity index 95% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameterSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerParameterSource.md index 94a70bb84e12..354031067697 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameterSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerParameterSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1TriggerParameterSource +# IoArgoprojEventsV1alpha1TriggerParameterSource ## Properties diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerPolicy.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerPolicy.md new file mode 100644 index 000000000000..685223b472bc --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerPolicy.md @@ -0,0 +1,14 @@ + + +# IoArgoprojEventsV1alpha1TriggerPolicy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**k8s** | [**IoArgoprojEventsV1alpha1K8SResourcePolicy**](IoArgoprojEventsV1alpha1K8SResourcePolicy.md) | | [optional] +**status** | [**IoArgoprojEventsV1alpha1StatusPolicy**](IoArgoprojEventsV1alpha1StatusPolicy.md) | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerTemplate.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerTemplate.md new file mode 100644 index 000000000000..8c6d3263b49e --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1TriggerTemplate.md @@ -0,0 +1,30 @@ + + +# IoArgoprojEventsV1alpha1TriggerTemplate + +TriggerTemplate is the template that describes trigger specification. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**argoWorkflow** | [**IoArgoprojEventsV1alpha1ArgoWorkflowTrigger**](IoArgoprojEventsV1alpha1ArgoWorkflowTrigger.md) | | [optional] +**awsLambda** | [**IoArgoprojEventsV1alpha1AWSLambdaTrigger**](IoArgoprojEventsV1alpha1AWSLambdaTrigger.md) | | [optional] +**azureEventHubs** | [**IoArgoprojEventsV1alpha1AzureEventHubsTrigger**](IoArgoprojEventsV1alpha1AzureEventHubsTrigger.md) | | [optional] +**azureServiceBus** | [**IoArgoprojEventsV1alpha1AzureServiceBusTrigger**](IoArgoprojEventsV1alpha1AzureServiceBusTrigger.md) | | [optional] +**conditions** | **String** | | [optional] +**conditionsReset** | [**List<IoArgoprojEventsV1alpha1ConditionsResetCriteria>**](IoArgoprojEventsV1alpha1ConditionsResetCriteria.md) | | [optional] +**custom** | [**IoArgoprojEventsV1alpha1CustomTrigger**](IoArgoprojEventsV1alpha1CustomTrigger.md) | | [optional] +**email** | [**IoArgoprojEventsV1alpha1EmailTrigger**](IoArgoprojEventsV1alpha1EmailTrigger.md) | | [optional] +**http** | [**IoArgoprojEventsV1alpha1HTTPTrigger**](IoArgoprojEventsV1alpha1HTTPTrigger.md) | | [optional] +**k8s** | [**IoArgoprojEventsV1alpha1StandardK8STrigger**](IoArgoprojEventsV1alpha1StandardK8STrigger.md) | | [optional] +**kafka** | [**IoArgoprojEventsV1alpha1KafkaTrigger**](IoArgoprojEventsV1alpha1KafkaTrigger.md) | | [optional] +**log** | [**IoArgoprojEventsV1alpha1LogTrigger**](IoArgoprojEventsV1alpha1LogTrigger.md) | | [optional] +**name** | **String** | Name is a unique name of the action to take. | [optional] +**nats** | [**IoArgoprojEventsV1alpha1NATSTrigger**](IoArgoprojEventsV1alpha1NATSTrigger.md) | | [optional] +**openWhisk** | [**IoArgoprojEventsV1alpha1OpenWhiskTrigger**](IoArgoprojEventsV1alpha1OpenWhiskTrigger.md) | | [optional] +**pulsar** | [**IoArgoprojEventsV1alpha1PulsarTrigger**](IoArgoprojEventsV1alpha1PulsarTrigger.md) | | [optional] +**slack** | [**IoArgoprojEventsV1alpha1SlackTrigger**](IoArgoprojEventsV1alpha1SlackTrigger.md) | | [optional] + + + diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1URLArtifact.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1URLArtifact.md similarity index 81% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1URLArtifact.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1URLArtifact.md index 8604c8442a38..6d6738113b30 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1URLArtifact.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1URLArtifact.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1URLArtifact +# IoArgoprojEventsV1alpha1URLArtifact URLArtifact contains information about an artifact at an HTTP endpoint. diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ValueFromSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ValueFromSource.md similarity index 87% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ValueFromSource.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1ValueFromSource.md index 458b7033b05d..d902b38a331c 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ValueFromSource.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1ValueFromSource.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1ValueFromSource +# IoArgoprojEventsV1alpha1ValueFromSource ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1WatchPathConfig.md similarity index 78% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1WatchPathConfig.md index 78b95401162a..62685a2a5766 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1WatchPathConfig.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WatchPathConfig +# IoArgoprojEventsV1alpha1WatchPathConfig ## Properties diff --git a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1WebhookContext.md similarity index 93% rename from sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md rename to sdks/java/client/docs/IoArgoprojEventsV1alpha1WebhookContext.md index 606ccd7aa9fc..e16d6f842b88 100644 --- a/sdks/java/client/docs/GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext.md +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1WebhookContext.md @@ -1,6 +1,6 @@ -# GithubComArgoprojArgoEventsPkgApisEventsV1alpha1WebhookContext +# IoArgoprojEventsV1alpha1WebhookContext ## Properties diff --git a/sdks/java/client/docs/IoArgoprojEventsV1alpha1WebhookEventSource.md b/sdks/java/client/docs/IoArgoprojEventsV1alpha1WebhookEventSource.md new file mode 100644 index 000000000000..144988ba1721 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojEventsV1alpha1WebhookEventSource.md @@ -0,0 +1,14 @@ + + +# IoArgoprojEventsV1alpha1WebhookEventSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | [**IoArgoprojEventsV1alpha1EventSourceFilter**](IoArgoprojEventsV1alpha1EventSourceFilter.md) | | [optional] +**webhookContext** | [**IoArgoprojEventsV1alpha1WebhookContext**](IoArgoprojEventsV1alpha1WebhookContext.md) | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateCronWorkflowBody.md similarity index 76% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateCronWorkflowBody.md index bc69504a3adc..2f46b16cfd9d 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateCronWorkflowBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest +# IoArgoprojWorkflowV1alpha1CreateCronWorkflowBody ## Properties @@ -9,7 +9,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createOptions** | [**CreateOptions**](CreateOptions.md) | | [optional] **cronWorkflow** | [**IoArgoprojWorkflowV1alpha1CronWorkflow**](IoArgoprojWorkflowV1alpha1CronWorkflow.md) | | [optional] -**namespace** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowCreateRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateWorkflowBody.md similarity index 81% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowCreateRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateWorkflowBody.md index d2ce99e76ec8..f2a8939da707 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowCreateRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateWorkflowBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1WorkflowCreateRequest +# IoArgoprojWorkflowV1alpha1CreateWorkflowBody ## Properties @@ -9,7 +9,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createOptions** | [**CreateOptions**](CreateOptions.md) | | [optional] **instanceID** | **String** | This field is no longer used. | [optional] -**namespace** | **String** | | [optional] **serverDryRun** | **Boolean** | | [optional] **workflow** | [**IoArgoprojWorkflowV1alpha1Workflow**](IoArgoprojWorkflowV1alpha1Workflow.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateWorkflowTemplateBody.md similarity index 76% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateWorkflowTemplateBody.md index 655ee8c9ec4b..ffc0c44a42b4 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CreateWorkflowTemplateBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest +# IoArgoprojWorkflowV1alpha1CreateWorkflowTemplateBody ## Properties @@ -8,7 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createOptions** | [**CreateOptions**](CreateOptions.md) | | [optional] -**namespace** | **String** | | [optional] **template** | [**IoArgoprojWorkflowV1alpha1WorkflowTemplate**](IoArgoprojWorkflowV1alpha1WorkflowTemplate.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest.md deleted file mode 100644 index f208a870fc81..000000000000 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest.md deleted file mode 100644 index 16b8dcfa78c1..000000000000 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1EventWatchEvent.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1EventWatchEvent.md new file mode 100644 index 000000000000..5a51c2ed2703 --- /dev/null +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1EventWatchEvent.md @@ -0,0 +1,14 @@ + + +# IoArgoprojWorkflowV1alpha1EventWatchEvent + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_object** | [**Event**](Event.md) | | [optional] +**type** | **String** | | [optional] + + + diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintCronWorkflowBody.md similarity index 71% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintCronWorkflowBody.md index b1f138937aa2..8e5b9a5b2f72 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintCronWorkflowBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest +# IoArgoprojWorkflowV1alpha1LintCronWorkflowBody ## Properties @@ -8,7 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cronWorkflow** | [**IoArgoprojWorkflowV1alpha1CronWorkflow**](IoArgoprojWorkflowV1alpha1CronWorkflow.md) | | [optional] -**namespace** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowLintRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintWorkflowBody.md similarity index 71% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowLintRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintWorkflowBody.md index 4bd43fa09fa2..76df4e67abb5 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowLintRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintWorkflowBody.md @@ -1,13 +1,12 @@ -# IoArgoprojWorkflowV1alpha1WorkflowLintRequest +# IoArgoprojWorkflowV1alpha1LintWorkflowBody ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**namespace** | **String** | | [optional] **workflow** | [**IoArgoprojWorkflowV1alpha1Workflow**](IoArgoprojWorkflowV1alpha1Workflow.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintWorkflowTemplateBody.md similarity index 75% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintWorkflowTemplateBody.md index 49a612835744..90fe2a236c13 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1LintWorkflowTemplateBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest +# IoArgoprojWorkflowV1alpha1LintWorkflowTemplateBody ## Properties @@ -8,7 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createOptions** | [**CreateOptions**](CreateOptions.md) | | [optional] -**namespace** | **String** | | [optional] **template** | [**IoArgoprojWorkflowV1alpha1WorkflowTemplate**](IoArgoprojWorkflowV1alpha1WorkflowTemplate.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowBody.md similarity index 84% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowBody.md index 0002a985052a..e2cea2b81faa 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest +# IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowBody ## Properties diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResubmitWorkflowBody.md similarity index 54% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResubmitWorkflowBody.md index afbb8da0a055..92f39728ac05 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResubmitWorkflowBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest +# IoArgoprojWorkflowV1alpha1ResubmitWorkflowBody ## Properties @@ -8,10 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **memoized** | **Boolean** | | [optional] -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] **parameters** | **List<String>** | | [optional] -**uid** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowResumeRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResumeWorkflowBody.md similarity index 55% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowResumeRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResumeWorkflowBody.md index 3d4c27d76699..2d4ed6b52acc 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowResumeRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ResumeWorkflowBody.md @@ -1,14 +1,12 @@ -# IoArgoprojWorkflowV1alpha1WorkflowResumeRequest +# IoArgoprojWorkflowV1alpha1ResumeWorkflowBody ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] **nodeFieldSelector** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowRetryRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowBody.md similarity index 87% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowRetryRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowBody.md index 031587cb5cb8..68d32b9d2538 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowRetryRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1WorkflowRetryRequest +# IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowBody ## Properties diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1RetryWorkflowBody.md similarity index 61% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1RetryWorkflowBody.md index d81e31d0ad0f..ee9fae3501c4 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1RetryWorkflowBody.md @@ -1,18 +1,15 @@ -# IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest +# IoArgoprojWorkflowV1alpha1RetryWorkflowBody ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] **nodeFieldSelector** | **String** | | [optional] **parameters** | **List<String>** | | [optional] **restartSuccessful** | **Boolean** | | [optional] -**uid** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSetRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1SetWorkflowBody.md similarity index 69% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSetRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1SetWorkflowBody.md index 4b5dfd719992..ce1a1c8112e6 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSetRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1SetWorkflowBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1WorkflowSetRequest +# IoArgoprojWorkflowV1alpha1SetWorkflowBody ## Properties @@ -8,8 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | | [optional] -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] **nodeFieldSelector** | **String** | | [optional] **outputParameters** | **String** | | [optional] **phase** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowStopRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1StopWorkflowBody.md similarity index 61% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowStopRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1StopWorkflowBody.md index e42fa1dd1d5c..f512426ecf24 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowStopRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1StopWorkflowBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1WorkflowStopRequest +# IoArgoprojWorkflowV1alpha1StopWorkflowBody ## Properties @@ -8,8 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | | [optional] -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] **nodeFieldSelector** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1SubmitWorkflowBody.md similarity index 77% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1SubmitWorkflowBody.md index 8e0714ee94b3..bfe51a327881 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1SubmitWorkflowBody.md @@ -1,13 +1,12 @@ -# IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest +# IoArgoprojWorkflowV1alpha1SubmitWorkflowBody ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**namespace** | **String** | | [optional] **resourceKind** | **String** | | [optional] **resourceName** | **String** | | [optional] **submitOptions** | [**IoArgoprojWorkflowV1alpha1SubmitOpts**](IoArgoprojWorkflowV1alpha1SubmitOpts.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateClusterWorkflowTemplateBody.md similarity index 65% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateClusterWorkflowTemplateBody.md index c6304fc9c31e..883663751732 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateClusterWorkflowTemplateBody.md @@ -1,13 +1,12 @@ -# IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest +# IoArgoprojWorkflowV1alpha1UpdateClusterWorkflowTemplateBody ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | DEPRECATED: This field is ignored. | [optional] **template** | [**IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate**](IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateCronWorkflowBody.md similarity index 58% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateCronWorkflowBody.md index 10444a30cd29..6e3480ddc9a3 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateCronWorkflowBody.md @@ -1,6 +1,6 @@ -# IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest +# IoArgoprojWorkflowV1alpha1UpdateCronWorkflowBody ## Properties @@ -8,8 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cronWorkflow** | [**IoArgoprojWorkflowV1alpha1CronWorkflow**](IoArgoprojWorkflowV1alpha1CronWorkflow.md) | | [optional] -**name** | **String** | DEPRECATED: This field is ignored. | [optional] -**namespace** | **String** | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateWorkflowTemplateBody.md similarity index 58% rename from sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest.md rename to sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateWorkflowTemplateBody.md index f707c52f7f64..c525bbab8d33 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1UpdateWorkflowTemplateBody.md @@ -1,14 +1,12 @@ -# IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest +# IoArgoprojWorkflowV1alpha1UpdateWorkflowTemplateBody ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | DEPRECATED: This field is ignored. | [optional] -**namespace** | **String** | | [optional] **template** | [**IoArgoprojWorkflowV1alpha1WorkflowTemplate**](IoArgoprojWorkflowV1alpha1WorkflowTemplate.md) | | [optional] diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest.md deleted file mode 100644 index 15e330cf221d..000000000000 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest.md deleted file mode 100644 index 56deb74611de..000000000000 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] - - - diff --git a/sdks/java/client/docs/SensorCreateSensorBody.md b/sdks/java/client/docs/SensorCreateSensorBody.md new file mode 100644 index 000000000000..bd327eab4cac --- /dev/null +++ b/sdks/java/client/docs/SensorCreateSensorBody.md @@ -0,0 +1,14 @@ + + +# SensorCreateSensorBody + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createOptions** | [**CreateOptions**](CreateOptions.md) | | [optional] +**sensor** | [**IoArgoprojEventsV1alpha1Sensor**](IoArgoprojEventsV1alpha1Sensor.md) | | [optional] + + + diff --git a/sdks/java/client/docs/SensorCreateSensorRequest.md b/sdks/java/client/docs/SensorCreateSensorRequest.md deleted file mode 100644 index a18fbb4812d3..000000000000 --- a/sdks/java/client/docs/SensorCreateSensorRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SensorCreateSensorRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createOptions** | [**CreateOptions**](CreateOptions.md) | | [optional] -**namespace** | **String** | | [optional] -**sensor** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md) | | [optional] - - - diff --git a/sdks/java/client/docs/SensorSensorWatchEvent.md b/sdks/java/client/docs/SensorSensorWatchEvent.md index 8d4bdd0e8486..e082f68005f8 100644 --- a/sdks/java/client/docs/SensorSensorWatchEvent.md +++ b/sdks/java/client/docs/SensorSensorWatchEvent.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_object** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md) | | [optional] +**_object** | [**IoArgoprojEventsV1alpha1Sensor**](IoArgoprojEventsV1alpha1Sensor.md) | | [optional] **type** | **String** | | [optional] diff --git a/sdks/java/client/docs/SensorServiceApi.md b/sdks/java/client/docs/SensorServiceApi.md index e62b2ff89220..a83777f1aac3 100644 --- a/sdks/java/client/docs/SensorServiceApi.md +++ b/sdks/java/client/docs/SensorServiceApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **sensorServiceCreateSensor** -> GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor sensorServiceCreateSensor(namespace, body) +> IoArgoprojEventsV1alpha1Sensor sensorServiceCreateSensor(namespace, body) @@ -42,9 +42,9 @@ public class Example { SensorServiceApi apiInstance = new SensorServiceApi(defaultClient); String namespace = "namespace_example"; // String | - SensorCreateSensorRequest body = new SensorCreateSensorRequest(); // SensorCreateSensorRequest | + SensorCreateSensorBody body = new SensorCreateSensorBody(); // SensorCreateSensorBody | try { - GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor result = apiInstance.sensorServiceCreateSensor(namespace, body); + IoArgoprojEventsV1alpha1Sensor result = apiInstance.sensorServiceCreateSensor(namespace, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SensorServiceApi#sensorServiceCreateSensor"); @@ -62,11 +62,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**SensorCreateSensorRequest**](SensorCreateSensorRequest.md)| | + **body** | [**SensorCreateSensorBody**](SensorCreateSensorBody.md)| | ### Return type -[**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md) +[**IoArgoprojEventsV1alpha1Sensor**](IoArgoprojEventsV1alpha1Sensor.md) ### Authorization @@ -113,13 +113,13 @@ public class Example { SensorServiceApi apiInstance = new SensorServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. - String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional. - String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional. - Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. - String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. - List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. - Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. + String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional + String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional + String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional + Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional + String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional + List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic + Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional try { Object result = apiInstance.sensorServiceDeleteSensor(namespace, name, deleteOptionsGracePeriodSeconds, deleteOptionsPreconditionsUid, deleteOptionsPreconditionsResourceVersion, deleteOptionsOrphanDependents, deleteOptionsPropagationPolicy, deleteOptionsDryRun, deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential); System.out.println(result); @@ -140,13 +140,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. | [optional] - **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional. | [optional] - **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional. | [optional] - **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. | [optional] - **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. | [optional] - **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. | [optional] - **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. | [optional] + **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional | [optional] + **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional | [optional] + **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional | [optional] + **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional | [optional] + **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional | [optional] + **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic | [optional] + **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional | [optional] ### Return type @@ -169,7 +169,7 @@ Name | Type | Description | Notes # **sensorServiceGetSensor** -> GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor sensorServiceGetSensor(namespace, name, getOptionsResourceVersion) +> IoArgoprojEventsV1alpha1Sensor sensorServiceGetSensor(namespace, name, getOptionsResourceVersion) @@ -199,7 +199,7 @@ public class Example { String name = "name_example"; // String | String getOptionsResourceVersion = "getOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional try { - GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor result = apiInstance.sensorServiceGetSensor(namespace, name, getOptionsResourceVersion); + IoArgoprojEventsV1alpha1Sensor result = apiInstance.sensorServiceGetSensor(namespace, name, getOptionsResourceVersion); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SensorServiceApi#sensorServiceGetSensor"); @@ -222,7 +222,7 @@ Name | Type | Description | Notes ### Return type -[**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md) +[**IoArgoprojEventsV1alpha1Sensor**](IoArgoprojEventsV1alpha1Sensor.md) ### Authorization @@ -241,7 +241,7 @@ Name | Type | Description | Notes # **sensorServiceListSensors** -> GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorList sensorServiceListSensors(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents) +> IoArgoprojEventsV1alpha1SensorList sensorServiceListSensors(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents) @@ -268,18 +268,18 @@ public class Example { SensorServiceApi apiInstance = new SensorServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional try { - GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorList result = apiInstance.sensorServiceListSensors(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents); + IoArgoprojEventsV1alpha1SensorList result = apiInstance.sensorServiceListSensors(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SensorServiceApi#sensorServiceListSensors"); @@ -297,20 +297,20 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] ### Return type -[**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorList**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1SensorList.md) +[**IoArgoprojEventsV1alpha1SensorList**](IoArgoprojEventsV1alpha1SensorList.md) ### Authorization @@ -356,20 +356,20 @@ public class Example { SensorServiceApi apiInstance = new SensorServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String name = "name_example"; // String | optional - only return entries for this sensor name. - String triggerName = "triggerName_example"; // String | optional - only return entries for this trigger. - String grep = "grep_example"; // String | option - only return entries where `msg` contains this regular expressions. - String podLogOptionsContainer = "podLogOptionsContainer_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional. - Boolean podLogOptionsFollow = true; // Boolean | Follow the log stream of the pod. Defaults to false. +optional. - Boolean podLogOptionsPrevious = true; // Boolean | Return previous terminated container logs. Defaults to false. +optional. - String podLogOptionsSinceSeconds = "podLogOptionsSinceSeconds_example"; // String | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional. + String name = "name_example"; // String | optional - only return entries for this sensor name + String triggerName = "triggerName_example"; // String | optional - only return entries for this trigger + String grep = "grep_example"; // String | option - only return entries where `msg` contains this regular expressions + String podLogOptionsContainer = "podLogOptionsContainer_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional + Boolean podLogOptionsFollow = true; // Boolean | Follow the log stream of the pod. Defaults to false. +optional + Boolean podLogOptionsPrevious = true; // Boolean | Return previous terminated container logs. Defaults to false. +optional + String podLogOptionsSinceSeconds = "podLogOptionsSinceSeconds_example"; // String | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional String podLogOptionsSinceTimeSeconds = "podLogOptionsSinceTimeSeconds_example"; // String | Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. Integer podLogOptionsSinceTimeNanos = 56; // Integer | Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context. - Boolean podLogOptionsTimestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional. - String podLogOptionsTailLines = "podLogOptionsTailLines_example"; // String | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional. - String podLogOptionsLimitBytes = "podLogOptionsLimitBytes_example"; // String | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional. - Boolean podLogOptionsInsecureSkipTLSVerifyBackend = true; // Boolean | insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional. - String podLogOptionsStream = "podLogOptionsStream_example"; // String | Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional. + Boolean podLogOptionsTimestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional + String podLogOptionsTailLines = "podLogOptionsTailLines_example"; // String | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional + String podLogOptionsLimitBytes = "podLogOptionsLimitBytes_example"; // String | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional + Boolean podLogOptionsInsecureSkipTLSVerifyBackend = true; // Boolean | insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional + String podLogOptionsStream = "podLogOptionsStream_example"; // String | Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional try { StreamResultOfSensorLogEntry result = apiInstance.sensorServiceSensorsLogs(namespace, name, triggerName, grep, podLogOptionsContainer, podLogOptionsFollow, podLogOptionsPrevious, podLogOptionsSinceSeconds, podLogOptionsSinceTimeSeconds, podLogOptionsSinceTimeNanos, podLogOptionsTimestamps, podLogOptionsTailLines, podLogOptionsLimitBytes, podLogOptionsInsecureSkipTLSVerifyBackend, podLogOptionsStream); System.out.println(result); @@ -389,20 +389,20 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **name** | **String**| optional - only return entries for this sensor name. | [optional] - **triggerName** | **String**| optional - only return entries for this trigger. | [optional] - **grep** | **String**| option - only return entries where `msg` contains this regular expressions. | [optional] - **podLogOptionsContainer** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional. | [optional] - **podLogOptionsFollow** | **Boolean**| Follow the log stream of the pod. Defaults to false. +optional. | [optional] - **podLogOptionsPrevious** | **Boolean**| Return previous terminated container logs. Defaults to false. +optional. | [optional] - **podLogOptionsSinceSeconds** | **String**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional. | [optional] + **name** | **String**| optional - only return entries for this sensor name | [optional] + **triggerName** | **String**| optional - only return entries for this trigger | [optional] + **grep** | **String**| option - only return entries where `msg` contains this regular expressions | [optional] + **podLogOptionsContainer** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional | [optional] + **podLogOptionsFollow** | **Boolean**| Follow the log stream of the pod. Defaults to false. +optional | [optional] + **podLogOptionsPrevious** | **Boolean**| Return previous terminated container logs. Defaults to false. +optional | [optional] + **podLogOptionsSinceSeconds** | **String**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional | [optional] **podLogOptionsSinceTimeSeconds** | **String**| Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. | [optional] **podLogOptionsSinceTimeNanos** | **Integer**| Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context. | [optional] - **podLogOptionsTimestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional. | [optional] - **podLogOptionsTailLines** | **String**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional. | [optional] - **podLogOptionsLimitBytes** | **String**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional. | [optional] - **podLogOptionsInsecureSkipTLSVerifyBackend** | **Boolean**| insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional. | [optional] - **podLogOptionsStream** | **String**| Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional. | [optional] + **podLogOptionsTimestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional | [optional] + **podLogOptionsTailLines** | **String**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional | [optional] + **podLogOptionsLimitBytes** | **String**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional | [optional] + **podLogOptionsInsecureSkipTLSVerifyBackend** | **Boolean**| insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional | [optional] + **podLogOptionsStream** | **String**| Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional | [optional] ### Return type @@ -425,7 +425,7 @@ Name | Type | Description | Notes # **sensorServiceUpdateSensor** -> GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor sensorServiceUpdateSensor(namespace, name, body) +> IoArgoprojEventsV1alpha1Sensor sensorServiceUpdateSensor(namespace, name, body) @@ -453,9 +453,9 @@ public class Example { SensorServiceApi apiInstance = new SensorServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - SensorUpdateSensorRequest body = new SensorUpdateSensorRequest(); // SensorUpdateSensorRequest | + SensorUpdateSensorBody body = new SensorUpdateSensorBody(); // SensorUpdateSensorBody | try { - GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor result = apiInstance.sensorServiceUpdateSensor(namespace, name, body); + IoArgoprojEventsV1alpha1Sensor result = apiInstance.sensorServiceUpdateSensor(namespace, name, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SensorServiceApi#sensorServiceUpdateSensor"); @@ -474,11 +474,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**SensorUpdateSensorRequest**](SensorUpdateSensorRequest.md)| | + **body** | [**SensorUpdateSensorBody**](SensorUpdateSensorBody.md)| | ### Return type -[**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md) +[**IoArgoprojEventsV1alpha1Sensor**](IoArgoprojEventsV1alpha1Sensor.md) ### Authorization @@ -524,13 +524,13 @@ public class Example { SensorServiceApi apiInstance = new SensorServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional @@ -553,13 +553,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] diff --git a/sdks/java/client/docs/SensorUpdateSensorBody.md b/sdks/java/client/docs/SensorUpdateSensorBody.md new file mode 100644 index 000000000000..309cb55c86ec --- /dev/null +++ b/sdks/java/client/docs/SensorUpdateSensorBody.md @@ -0,0 +1,13 @@ + + +# SensorUpdateSensorBody + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sensor** | [**IoArgoprojEventsV1alpha1Sensor**](IoArgoprojEventsV1alpha1Sensor.md) | | [optional] + + + diff --git a/sdks/java/client/docs/SensorUpdateSensorRequest.md b/sdks/java/client/docs/SensorUpdateSensorRequest.md deleted file mode 100644 index 07199ae7f443..000000000000 --- a/sdks/java/client/docs/SensorUpdateSensorRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SensorUpdateSensorRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**namespace** | **String** | | [optional] -**sensor** | [**GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor**](GithubComArgoprojArgoEventsPkgApisEventsV1alpha1Sensor.md) | | [optional] - - - diff --git a/sdks/java/client/docs/StreamResultOfEvent.md b/sdks/java/client/docs/StreamResultOfEvent.md deleted file mode 100644 index 00c216ab95d0..000000000000 --- a/sdks/java/client/docs/StreamResultOfEvent.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# StreamResultOfEvent - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | [**GrpcGatewayRuntimeStreamError**](GrpcGatewayRuntimeStreamError.md) | | [optional] -**result** | [**Event**](Event.md) | | [optional] - - - diff --git a/sdks/java/client/docs/StreamResultOfEventsourceEventSourceWatchEvent.md b/sdks/java/client/docs/StreamResultOfEventsourceEventSourceWatchEvent.md index b23c304f5d43..0387ccc7a8fe 100644 --- a/sdks/java/client/docs/StreamResultOfEventsourceEventSourceWatchEvent.md +++ b/sdks/java/client/docs/StreamResultOfEventsourceEventSourceWatchEvent.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error** | [**GrpcGatewayRuntimeStreamError**](GrpcGatewayRuntimeStreamError.md) | | [optional] +**error** | [**GoogleRpcStatus**](GoogleRpcStatus.md) | | [optional] **result** | [**EventsourceEventSourceWatchEvent**](EventsourceEventSourceWatchEvent.md) | | [optional] diff --git a/sdks/java/client/docs/StreamResultOfEventsourceLogEntry.md b/sdks/java/client/docs/StreamResultOfEventsourceLogEntry.md index d38281076627..422c6ccf806d 100644 --- a/sdks/java/client/docs/StreamResultOfEventsourceLogEntry.md +++ b/sdks/java/client/docs/StreamResultOfEventsourceLogEntry.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error** | [**GrpcGatewayRuntimeStreamError**](GrpcGatewayRuntimeStreamError.md) | | [optional] +**error** | [**GoogleRpcStatus**](GoogleRpcStatus.md) | | [optional] **result** | [**EventsourceLogEntry**](EventsourceLogEntry.md) | | [optional] diff --git a/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1EventWatchEvent.md b/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1EventWatchEvent.md new file mode 100644 index 000000000000..e331531c8d5b --- /dev/null +++ b/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1EventWatchEvent.md @@ -0,0 +1,14 @@ + + +# StreamResultOfIoArgoprojWorkflowV1alpha1EventWatchEvent + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | [**GoogleRpcStatus**](GoogleRpcStatus.md) | | [optional] +**result** | [**IoArgoprojWorkflowV1alpha1EventWatchEvent**](IoArgoprojWorkflowV1alpha1EventWatchEvent.md) | | [optional] + + + diff --git a/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry.md b/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry.md index 97889008133f..09174a72f059 100644 --- a/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry.md +++ b/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error** | [**GrpcGatewayRuntimeStreamError**](GrpcGatewayRuntimeStreamError.md) | | [optional] +**error** | [**GoogleRpcStatus**](GoogleRpcStatus.md) | | [optional] **result** | [**IoArgoprojWorkflowV1alpha1LogEntry**](IoArgoprojWorkflowV1alpha1LogEntry.md) | | [optional] diff --git a/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent.md b/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent.md index b7d063330a96..f79d8ae4fbc3 100644 --- a/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent.md +++ b/sdks/java/client/docs/StreamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error** | [**GrpcGatewayRuntimeStreamError**](GrpcGatewayRuntimeStreamError.md) | | [optional] +**error** | [**GoogleRpcStatus**](GoogleRpcStatus.md) | | [optional] **result** | [**IoArgoprojWorkflowV1alpha1WorkflowWatchEvent**](IoArgoprojWorkflowV1alpha1WorkflowWatchEvent.md) | | [optional] diff --git a/sdks/java/client/docs/StreamResultOfSensorLogEntry.md b/sdks/java/client/docs/StreamResultOfSensorLogEntry.md index d16c16063430..67274c1c0b10 100644 --- a/sdks/java/client/docs/StreamResultOfSensorLogEntry.md +++ b/sdks/java/client/docs/StreamResultOfSensorLogEntry.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error** | [**GrpcGatewayRuntimeStreamError**](GrpcGatewayRuntimeStreamError.md) | | [optional] +**error** | [**GoogleRpcStatus**](GoogleRpcStatus.md) | | [optional] **result** | [**SensorLogEntry**](SensorLogEntry.md) | | [optional] diff --git a/sdks/java/client/docs/StreamResultOfSensorSensorWatchEvent.md b/sdks/java/client/docs/StreamResultOfSensorSensorWatchEvent.md index ca66c40dec2d..65aaf99da12b 100644 --- a/sdks/java/client/docs/StreamResultOfSensorSensorWatchEvent.md +++ b/sdks/java/client/docs/StreamResultOfSensorSensorWatchEvent.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error** | [**GrpcGatewayRuntimeStreamError**](GrpcGatewayRuntimeStreamError.md) | | [optional] +**error** | [**GoogleRpcStatus**](GoogleRpcStatus.md) | | [optional] **result** | [**SensorSensorWatchEvent**](SensorSensorWatchEvent.md) | | [optional] diff --git a/sdks/java/client/docs/SyncCreateSyncLimitRequest.md b/sdks/java/client/docs/SyncCreateSyncLimitBody.md similarity index 79% rename from sdks/java/client/docs/SyncCreateSyncLimitRequest.md rename to sdks/java/client/docs/SyncCreateSyncLimitBody.md index 8f7b70533ada..786a60f745c1 100644 --- a/sdks/java/client/docs/SyncCreateSyncLimitRequest.md +++ b/sdks/java/client/docs/SyncCreateSyncLimitBody.md @@ -1,6 +1,6 @@ -# SyncCreateSyncLimitRequest +# SyncCreateSyncLimitBody ## Properties @@ -10,7 +10,6 @@ Name | Type | Description | Notes **cmName** | **String** | | [optional] **key** | **String** | | [optional] **limit** | **Integer** | | [optional] -**namespace** | **String** | | [optional] **type** | **SyncSyncConfigType** | | [optional] diff --git a/sdks/java/client/docs/SyncServiceApi.md b/sdks/java/client/docs/SyncServiceApi.md index 2328a7f924cb..e38185d594b7 100644 --- a/sdks/java/client/docs/SyncServiceApi.md +++ b/sdks/java/client/docs/SyncServiceApi.md @@ -39,7 +39,7 @@ public class Example { SyncServiceApi apiInstance = new SyncServiceApi(defaultClient); String namespace = "namespace_example"; // String | - SyncCreateSyncLimitRequest body = new SyncCreateSyncLimitRequest(); // SyncCreateSyncLimitRequest | + SyncCreateSyncLimitBody body = new SyncCreateSyncLimitBody(); // SyncCreateSyncLimitBody | try { SyncSyncLimitResponse result = apiInstance.syncServiceCreateSyncLimit(namespace, body); System.out.println(result); @@ -59,7 +59,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**SyncCreateSyncLimitRequest**](SyncCreateSyncLimitRequest.md)| | + **body** | [**SyncCreateSyncLimitBody**](SyncCreateSyncLimitBody.md)| | ### Return type @@ -258,7 +258,7 @@ public class Example { SyncServiceApi apiInstance = new SyncServiceApi(defaultClient); String namespace = "namespace_example"; // String | String key = "key_example"; // String | - SyncUpdateSyncLimitRequest body = new SyncUpdateSyncLimitRequest(); // SyncUpdateSyncLimitRequest | + SyncUpdateSyncLimitBody body = new SyncUpdateSyncLimitBody(); // SyncUpdateSyncLimitBody | try { SyncSyncLimitResponse result = apiInstance.syncServiceUpdateSyncLimit(namespace, key, body); System.out.println(result); @@ -279,7 +279,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **key** | **String**| | - **body** | [**SyncUpdateSyncLimitRequest**](SyncUpdateSyncLimitRequest.md)| | + **body** | [**SyncUpdateSyncLimitBody**](SyncUpdateSyncLimitBody.md)| | ### Return type diff --git a/sdks/java/client/docs/SyncUpdateSyncLimitRequest.md b/sdks/java/client/docs/SyncUpdateSyncLimitBody.md similarity index 69% rename from sdks/java/client/docs/SyncUpdateSyncLimitRequest.md rename to sdks/java/client/docs/SyncUpdateSyncLimitBody.md index 80dd10046281..55d5aa7f3b1c 100644 --- a/sdks/java/client/docs/SyncUpdateSyncLimitRequest.md +++ b/sdks/java/client/docs/SyncUpdateSyncLimitBody.md @@ -1,6 +1,6 @@ -# SyncUpdateSyncLimitRequest +# SyncUpdateSyncLimitBody ## Properties @@ -8,9 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cmName** | **String** | | [optional] -**key** | **String** | | [optional] **limit** | **Integer** | | [optional] -**namespace** | **String** | | [optional] **type** | **SyncSyncConfigType** | | [optional] diff --git a/sdks/java/client/docs/WorkflowServiceApi.md b/sdks/java/client/docs/WorkflowServiceApi.md index 90c7b4b82778..1cbd8bacb63e 100644 --- a/sdks/java/client/docs/WorkflowServiceApi.md +++ b/sdks/java/client/docs/WorkflowServiceApi.md @@ -52,7 +52,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowCreateRequest body = new IoArgoprojWorkflowV1alpha1WorkflowCreateRequest(); // IoArgoprojWorkflowV1alpha1WorkflowCreateRequest | + IoArgoprojWorkflowV1alpha1CreateWorkflowBody body = new IoArgoprojWorkflowV1alpha1CreateWorkflowBody(); // IoArgoprojWorkflowV1alpha1CreateWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceCreateWorkflow(namespace, body); System.out.println(result); @@ -72,7 +72,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowCreateRequest**](IoArgoprojWorkflowV1alpha1WorkflowCreateRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1CreateWorkflowBody**](IoArgoprojWorkflowV1alpha1CreateWorkflowBody.md)| | ### Return type @@ -123,13 +123,13 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. - String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional. - String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional. - Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. - String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. - List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. - Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. + String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional + String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional + String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional + Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional + String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional + List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic + Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional Boolean force = true; // Boolean | try { Object result = apiInstance.workflowServiceDeleteWorkflow(namespace, name, deleteOptionsGracePeriodSeconds, deleteOptionsPreconditionsUid, deleteOptionsPreconditionsResourceVersion, deleteOptionsOrphanDependents, deleteOptionsPropagationPolicy, deleteOptionsDryRun, deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential, force); @@ -151,13 +151,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. | [optional] - **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional. | [optional] - **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional. | [optional] - **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. | [optional] - **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. | [optional] - **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. | [optional] - **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. | [optional] + **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional | [optional] + **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional | [optional] + **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional | [optional] + **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional | [optional] + **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional | [optional] + **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic | [optional] + **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional | [optional] **force** | **Boolean**| | [optional] ### Return type @@ -210,8 +210,8 @@ public class Example { String namespace = "namespace_example"; // String | String name = "name_example"; // String | String getOptionsResourceVersion = "getOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String fields = "fields_example"; // String | Fields to be included or excluded in the response. e.g. \"spec,status.phase\", \"-status.nodes\". - String uid = "uid_example"; // String | Optional UID to retrieve a specific workflow (useful for archived workflows with the same name). + String fields = "fields_example"; // String | Fields to be included or excluded in the response. e.g. \"spec,status.phase\", \"-status.nodes\" + String uid = "uid_example"; // String | Optional UID to retrieve a specific workflow (useful for archived workflows with the same name) try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceGetWorkflow(namespace, name, getOptionsResourceVersion, fields, uid); System.out.println(result); @@ -233,8 +233,8 @@ Name | Type | Description | Notes **namespace** | **String**| | **name** | **String**| | **getOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **fields** | **String**| Fields to be included or excluded in the response. e.g. \"spec,status.phase\", \"-status.nodes\". | [optional] - **uid** | **String**| Optional UID to retrieve a specific workflow (useful for archived workflows with the same name). | [optional] + **fields** | **String**| Fields to be included or excluded in the response. e.g. \"spec,status.phase\", \"-status.nodes\" | [optional] + **uid** | **String**| Optional UID to retrieve a specific workflow (useful for archived workflows with the same name) | [optional] ### Return type @@ -284,7 +284,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowLintRequest body = new IoArgoprojWorkflowV1alpha1WorkflowLintRequest(); // IoArgoprojWorkflowV1alpha1WorkflowLintRequest | + IoArgoprojWorkflowV1alpha1LintWorkflowBody body = new IoArgoprojWorkflowV1alpha1LintWorkflowBody(); // IoArgoprojWorkflowV1alpha1LintWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceLintWorkflow(namespace, body); System.out.println(result); @@ -304,7 +304,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowLintRequest**](IoArgoprojWorkflowV1alpha1WorkflowLintRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1LintWorkflowBody**](IoArgoprojWorkflowV1alpha1LintWorkflowBody.md)| | ### Return type @@ -354,18 +354,18 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional - String fields = "fields_example"; // String | Fields to be included or excluded in the response. e.g. \"items.spec,items.status.phase\", \"-items.status.nodes\". - String nameFilter = "nameFilter_example"; // String | Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact. + String fields = "fields_example"; // String | Fields to be included or excluded in the response. e.g. \"items.spec,items.status.phase\", \"-items.status.nodes\" + String nameFilter = "nameFilter_example"; // String | Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact String createdAfter = "createdAfter_example"; // String | String finishedBefore = "finishedBefore_example"; // String | try { @@ -387,18 +387,18 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] - **fields** | **String**| Fields to be included or excluded in the response. e.g. \"items.spec,items.status.phase\", \"-items.status.nodes\". | [optional] - **nameFilter** | **String**| Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact. | [optional] + **fields** | **String**| Fields to be included or excluded in the response. e.g. \"items.spec,items.status.phase\", \"-items.status.nodes\" | [optional] + **nameFilter** | **String**| Filter type used for name filtering. Exact | Contains | Prefix. Default to Exact | [optional] **createdAfter** | **String**| | [optional] **finishedBefore** | **String**| | [optional] @@ -452,17 +452,17 @@ public class Example { String namespace = "namespace_example"; // String | String name = "name_example"; // String | String podName = "podName_example"; // String | - String logOptionsContainer = "logOptionsContainer_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional. - Boolean logOptionsFollow = true; // Boolean | Follow the log stream of the pod. Defaults to false. +optional. - Boolean logOptionsPrevious = true; // Boolean | Return previous terminated container logs. Defaults to false. +optional. - String logOptionsSinceSeconds = "logOptionsSinceSeconds_example"; // String | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional. + String logOptionsContainer = "logOptionsContainer_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional + Boolean logOptionsFollow = true; // Boolean | Follow the log stream of the pod. Defaults to false. +optional + Boolean logOptionsPrevious = true; // Boolean | Return previous terminated container logs. Defaults to false. +optional + String logOptionsSinceSeconds = "logOptionsSinceSeconds_example"; // String | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional String logOptionsSinceTimeSeconds = "logOptionsSinceTimeSeconds_example"; // String | Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. Integer logOptionsSinceTimeNanos = 56; // Integer | Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context. - Boolean logOptionsTimestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional. - String logOptionsTailLines = "logOptionsTailLines_example"; // String | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional. - String logOptionsLimitBytes = "logOptionsLimitBytes_example"; // String | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional. - Boolean logOptionsInsecureSkipTLSVerifyBackend = true; // Boolean | insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional. - String logOptionsStream = "logOptionsStream_example"; // String | Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional. + Boolean logOptionsTimestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional + String logOptionsTailLines = "logOptionsTailLines_example"; // String | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional + String logOptionsLimitBytes = "logOptionsLimitBytes_example"; // String | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional + Boolean logOptionsInsecureSkipTLSVerifyBackend = true; // Boolean | insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional + String logOptionsStream = "logOptionsStream_example"; // String | Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional String grep = "grep_example"; // String | String selector = "selector_example"; // String | try { @@ -486,17 +486,17 @@ Name | Type | Description | Notes **namespace** | **String**| | **name** | **String**| | **podName** | **String**| | - **logOptionsContainer** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional. | [optional] - **logOptionsFollow** | **Boolean**| Follow the log stream of the pod. Defaults to false. +optional. | [optional] - **logOptionsPrevious** | **Boolean**| Return previous terminated container logs. Defaults to false. +optional. | [optional] - **logOptionsSinceSeconds** | **String**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional. | [optional] + **logOptionsContainer** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional | [optional] + **logOptionsFollow** | **Boolean**| Follow the log stream of the pod. Defaults to false. +optional | [optional] + **logOptionsPrevious** | **Boolean**| Return previous terminated container logs. Defaults to false. +optional | [optional] + **logOptionsSinceSeconds** | **String**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional | [optional] **logOptionsSinceTimeSeconds** | **String**| Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. | [optional] **logOptionsSinceTimeNanos** | **Integer**| Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context. | [optional] - **logOptionsTimestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional. | [optional] - **logOptionsTailLines** | **String**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional. | [optional] - **logOptionsLimitBytes** | **String**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional. | [optional] - **logOptionsInsecureSkipTLSVerifyBackend** | **Boolean**| insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional. | [optional] - **logOptionsStream** | **String**| Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional. | [optional] + **logOptionsTimestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional | [optional] + **logOptionsTailLines** | **String**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional | [optional] + **logOptionsLimitBytes** | **String**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional | [optional] + **logOptionsInsecureSkipTLSVerifyBackend** | **Boolean**| insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional | [optional] + **logOptionsStream** | **String**| Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional | [optional] **grep** | **String**| | [optional] **selector** | **String**| | [optional] @@ -549,7 +549,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest body = new IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest(); // IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest | + IoArgoprojWorkflowV1alpha1ResubmitWorkflowBody body = new IoArgoprojWorkflowV1alpha1ResubmitWorkflowBody(); // IoArgoprojWorkflowV1alpha1ResubmitWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceResubmitWorkflow(namespace, name, body); System.out.println(result); @@ -570,7 +570,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest**](IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1ResubmitWorkflowBody**](IoArgoprojWorkflowV1alpha1ResubmitWorkflowBody.md)| | ### Return type @@ -621,7 +621,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowResumeRequest body = new IoArgoprojWorkflowV1alpha1WorkflowResumeRequest(); // IoArgoprojWorkflowV1alpha1WorkflowResumeRequest | + IoArgoprojWorkflowV1alpha1ResumeWorkflowBody body = new IoArgoprojWorkflowV1alpha1ResumeWorkflowBody(); // IoArgoprojWorkflowV1alpha1ResumeWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceResumeWorkflow(namespace, name, body); System.out.println(result); @@ -642,7 +642,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowResumeRequest**](IoArgoprojWorkflowV1alpha1WorkflowResumeRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1ResumeWorkflowBody**](IoArgoprojWorkflowV1alpha1ResumeWorkflowBody.md)| | ### Return type @@ -693,7 +693,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowRetryRequest body = new IoArgoprojWorkflowV1alpha1WorkflowRetryRequest(); // IoArgoprojWorkflowV1alpha1WorkflowRetryRequest | + IoArgoprojWorkflowV1alpha1RetryWorkflowBody body = new IoArgoprojWorkflowV1alpha1RetryWorkflowBody(); // IoArgoprojWorkflowV1alpha1RetryWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceRetryWorkflow(namespace, name, body); System.out.println(result); @@ -714,7 +714,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowRetryRequest**](IoArgoprojWorkflowV1alpha1WorkflowRetryRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1RetryWorkflowBody**](IoArgoprojWorkflowV1alpha1RetryWorkflowBody.md)| | ### Return type @@ -765,7 +765,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowSetRequest body = new IoArgoprojWorkflowV1alpha1WorkflowSetRequest(); // IoArgoprojWorkflowV1alpha1WorkflowSetRequest | + IoArgoprojWorkflowV1alpha1SetWorkflowBody body = new IoArgoprojWorkflowV1alpha1SetWorkflowBody(); // IoArgoprojWorkflowV1alpha1SetWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceSetWorkflow(namespace, name, body); System.out.println(result); @@ -786,7 +786,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowSetRequest**](IoArgoprojWorkflowV1alpha1WorkflowSetRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1SetWorkflowBody**](IoArgoprojWorkflowV1alpha1SetWorkflowBody.md)| | ### Return type @@ -837,7 +837,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowStopRequest body = new IoArgoprojWorkflowV1alpha1WorkflowStopRequest(); // IoArgoprojWorkflowV1alpha1WorkflowStopRequest | + IoArgoprojWorkflowV1alpha1StopWorkflowBody body = new IoArgoprojWorkflowV1alpha1StopWorkflowBody(); // IoArgoprojWorkflowV1alpha1StopWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceStopWorkflow(namespace, name, body); System.out.println(result); @@ -858,7 +858,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowStopRequest**](IoArgoprojWorkflowV1alpha1WorkflowStopRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1StopWorkflowBody**](IoArgoprojWorkflowV1alpha1StopWorkflowBody.md)| | ### Return type @@ -908,7 +908,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest body = new IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest(); // IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest | + IoArgoprojWorkflowV1alpha1SubmitWorkflowBody body = new IoArgoprojWorkflowV1alpha1SubmitWorkflowBody(); // IoArgoprojWorkflowV1alpha1SubmitWorkflowBody | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceSubmitWorkflow(namespace, body); System.out.println(result); @@ -928,7 +928,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest**](IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1SubmitWorkflowBody**](IoArgoprojWorkflowV1alpha1SubmitWorkflowBody.md)| | ### Return type @@ -979,7 +979,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest body = new IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest(); // IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest | + Object body = null; // Object | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceSuspendWorkflow(namespace, name, body); System.out.println(result); @@ -1000,7 +1000,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest**](IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest.md)| | + **body** | **Object**| | ### Return type @@ -1051,7 +1051,7 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest body = new IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest(); // IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest | + Object body = null; // Object | try { IoArgoprojWorkflowV1alpha1Workflow result = apiInstance.workflowServiceTerminateWorkflow(namespace, name, body); System.out.println(result); @@ -1072,7 +1072,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest**](IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest.md)| | + **body** | **Object**| | ### Return type @@ -1095,7 +1095,7 @@ Name | Type | Description | Notes # **workflowServiceWatchEvents** -> StreamResultOfEvent workflowServiceWatchEvents(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents) +> StreamResultOfIoArgoprojWorkflowV1alpha1EventWatchEvent workflowServiceWatchEvents(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents) @@ -1122,18 +1122,18 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional try { - StreamResultOfEvent result = apiInstance.workflowServiceWatchEvents(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents); + StreamResultOfIoArgoprojWorkflowV1alpha1EventWatchEvent result = apiInstance.workflowServiceWatchEvents(namespace, listOptionsLabelSelector, listOptionsFieldSelector, listOptionsWatch, listOptionsAllowWatchBookmarks, listOptionsResourceVersion, listOptionsResourceVersionMatch, listOptionsTimeoutSeconds, listOptionsLimit, listOptionsContinue, listOptionsSendInitialEvents); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WorkflowServiceApi#workflowServiceWatchEvents"); @@ -1151,20 +1151,20 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] ### Return type -[**StreamResultOfEvent**](StreamResultOfEvent.md) +[**StreamResultOfIoArgoprojWorkflowV1alpha1EventWatchEvent**](StreamResultOfIoArgoprojWorkflowV1alpha1EventWatchEvent.md) ### Authorization @@ -1210,13 +1210,13 @@ public class Example { WorkflowServiceApi apiInstance = new WorkflowServiceApi(defaultClient); String namespace = "namespace_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional @@ -1240,13 +1240,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] @@ -1302,17 +1302,17 @@ public class Example { String namespace = "namespace_example"; // String | String name = "name_example"; // String | String podName = "podName_example"; // String | - String logOptionsContainer = "logOptionsContainer_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional. - Boolean logOptionsFollow = true; // Boolean | Follow the log stream of the pod. Defaults to false. +optional. - Boolean logOptionsPrevious = true; // Boolean | Return previous terminated container logs. Defaults to false. +optional. - String logOptionsSinceSeconds = "logOptionsSinceSeconds_example"; // String | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional. + String logOptionsContainer = "logOptionsContainer_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional + Boolean logOptionsFollow = true; // Boolean | Follow the log stream of the pod. Defaults to false. +optional + Boolean logOptionsPrevious = true; // Boolean | Return previous terminated container logs. Defaults to false. +optional + String logOptionsSinceSeconds = "logOptionsSinceSeconds_example"; // String | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional String logOptionsSinceTimeSeconds = "logOptionsSinceTimeSeconds_example"; // String | Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. Integer logOptionsSinceTimeNanos = 56; // Integer | Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context. - Boolean logOptionsTimestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional. - String logOptionsTailLines = "logOptionsTailLines_example"; // String | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional. - String logOptionsLimitBytes = "logOptionsLimitBytes_example"; // String | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional. - Boolean logOptionsInsecureSkipTLSVerifyBackend = true; // Boolean | insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional. - String logOptionsStream = "logOptionsStream_example"; // String | Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional. + Boolean logOptionsTimestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional + String logOptionsTailLines = "logOptionsTailLines_example"; // String | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional + String logOptionsLimitBytes = "logOptionsLimitBytes_example"; // String | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional + Boolean logOptionsInsecureSkipTLSVerifyBackend = true; // Boolean | insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional + String logOptionsStream = "logOptionsStream_example"; // String | Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional String grep = "grep_example"; // String | String selector = "selector_example"; // String | try { @@ -1336,17 +1336,17 @@ Name | Type | Description | Notes **namespace** | **String**| | **name** | **String**| | **podName** | **String**| | [optional] - **logOptionsContainer** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional. | [optional] - **logOptionsFollow** | **Boolean**| Follow the log stream of the pod. Defaults to false. +optional. | [optional] - **logOptionsPrevious** | **Boolean**| Return previous terminated container logs. Defaults to false. +optional. | [optional] - **logOptionsSinceSeconds** | **String**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional. | [optional] + **logOptionsContainer** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional | [optional] + **logOptionsFollow** | **Boolean**| Follow the log stream of the pod. Defaults to false. +optional | [optional] + **logOptionsPrevious** | **Boolean**| Return previous terminated container logs. Defaults to false. +optional | [optional] + **logOptionsSinceSeconds** | **String**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional | [optional] **logOptionsSinceTimeSeconds** | **String**| Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. | [optional] **logOptionsSinceTimeNanos** | **Integer**| Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context. | [optional] - **logOptionsTimestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional. | [optional] - **logOptionsTailLines** | **String**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional. | [optional] - **logOptionsLimitBytes** | **String**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional. | [optional] - **logOptionsInsecureSkipTLSVerifyBackend** | **Boolean**| insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional. | [optional] - **logOptionsStream** | **String**| Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional. | [optional] + **logOptionsTimestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional | [optional] + **logOptionsTailLines** | **String**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +optional | [optional] + **logOptionsLimitBytes** | **String**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional | [optional] + **logOptionsInsecureSkipTLSVerifyBackend** | **Boolean**| insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional | [optional] + **logOptionsStream** | **String**| Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". +featureGate=PodLogsQuerySplitStreams +optional | [optional] **grep** | **String**| | [optional] **selector** | **String**| | [optional] diff --git a/sdks/java/client/docs/WorkflowTemplateServiceApi.md b/sdks/java/client/docs/WorkflowTemplateServiceApi.md index bf552a53a9d8..61f0be5f3f93 100644 --- a/sdks/java/client/docs/WorkflowTemplateServiceApi.md +++ b/sdks/java/client/docs/WorkflowTemplateServiceApi.md @@ -41,7 +41,7 @@ public class Example { WorkflowTemplateServiceApi apiInstance = new WorkflowTemplateServiceApi(defaultClient); String namespace = "namespace_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest body = new IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest(); // IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest | + IoArgoprojWorkflowV1alpha1CreateWorkflowTemplateBody body = new IoArgoprojWorkflowV1alpha1CreateWorkflowTemplateBody(); // IoArgoprojWorkflowV1alpha1CreateWorkflowTemplateBody | try { IoArgoprojWorkflowV1alpha1WorkflowTemplate result = apiInstance.workflowTemplateServiceCreateWorkflowTemplate(namespace, body); System.out.println(result); @@ -61,7 +61,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest**](IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1CreateWorkflowTemplateBody**](IoArgoprojWorkflowV1alpha1CreateWorkflowTemplateBody.md)| | ### Return type @@ -112,13 +112,13 @@ public class Example { WorkflowTemplateServiceApi apiInstance = new WorkflowTemplateServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | - String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. - String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional. - String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional. - Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. - String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. - List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. - Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. + String deleteOptionsGracePeriodSeconds = "deleteOptionsGracePeriodSeconds_example"; // String | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional + String deleteOptionsPreconditionsUid = "deleteOptionsPreconditionsUid_example"; // String | Specifies the target UID. +optional + String deleteOptionsPreconditionsResourceVersion = "deleteOptionsPreconditionsResourceVersion_example"; // String | Specifies the target ResourceVersion +optional + Boolean deleteOptionsOrphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional + String deleteOptionsPropagationPolicy = "deleteOptionsPropagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional + List deleteOptionsDryRun = Arrays.asList(); // List | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic + Boolean deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional try { Object result = apiInstance.workflowTemplateServiceDeleteWorkflowTemplate(namespace, name, deleteOptionsGracePeriodSeconds, deleteOptionsPreconditionsUid, deleteOptionsPreconditionsResourceVersion, deleteOptionsOrphanDependents, deleteOptionsPropagationPolicy, deleteOptionsDryRun, deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential); System.out.println(result); @@ -139,13 +139,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| | - **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional. | [optional] - **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional. | [optional] - **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional. | [optional] - **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional. | [optional] - **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional. | [optional] - **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic. | [optional] - **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional. | [optional] + **deleteOptionsGracePeriodSeconds** | **String**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional | [optional] + **deleteOptionsPreconditionsUid** | **String**| Specifies the target UID. +optional | [optional] + **deleteOptionsPreconditionsResourceVersion** | **String**| Specifies the target ResourceVersion +optional | [optional] + **deleteOptionsOrphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional | [optional] + **deleteOptionsPropagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +optional | [optional] + **deleteOptionsDryRun** | [**List<String>**](String.md)| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic | [optional] + **deleteOptionsIgnoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it +optional | [optional] ### Return type @@ -267,7 +267,7 @@ public class Example { WorkflowTemplateServiceApi apiInstance = new WorkflowTemplateServiceApi(defaultClient); String namespace = "namespace_example"; // String | - IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest body = new IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest(); // IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest | + IoArgoprojWorkflowV1alpha1LintWorkflowTemplateBody body = new IoArgoprojWorkflowV1alpha1LintWorkflowTemplateBody(); // IoArgoprojWorkflowV1alpha1LintWorkflowTemplateBody | try { IoArgoprojWorkflowV1alpha1WorkflowTemplate result = apiInstance.workflowTemplateServiceLintWorkflowTemplate(namespace, body); System.out.println(result); @@ -287,7 +287,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest**](IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1LintWorkflowTemplateBody**](IoArgoprojWorkflowV1alpha1LintWorkflowTemplateBody.md)| | ### Return type @@ -338,13 +338,13 @@ public class Example { WorkflowTemplateServiceApi apiInstance = new WorkflowTemplateServiceApi(defaultClient); String namespace = "namespace_example"; // String | String namePattern = "namePattern_example"; // String | - String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. - String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. - Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. - Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. + String listOptionsLabelSelector = "listOptionsLabelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional + String listOptionsFieldSelector = "listOptionsFieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional + Boolean listOptionsWatch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional + Boolean listOptionsAllowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional String listOptionsResourceVersion = "listOptionsResourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional String listOptionsResourceVersionMatch = "listOptionsResourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional - String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. + String listOptionsTimeoutSeconds = "listOptionsTimeoutSeconds_example"; // String | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional String listOptionsLimit = "listOptionsLimit_example"; // String | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. String listOptionsContinue = "listOptionsContinue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Boolean listOptionsSendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional @@ -368,13 +368,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **namePattern** | **String**| | [optional] - **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | [optional] - **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | [optional] - **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | [optional] - **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | [optional] + **listOptionsLabelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional | [optional] + **listOptionsFieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional | [optional] + **listOptionsWatch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional | [optional] + **listOptionsAllowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional | [optional] **listOptionsResourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] **listOptionsResourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional | [optional] - **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | [optional] + **listOptionsTimeoutSeconds** | **String**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional | [optional] **listOptionsLimit** | **String**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **listOptionsContinue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **listOptionsSendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"io.k8s.initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. +optional | [optional] @@ -428,7 +428,7 @@ public class Example { WorkflowTemplateServiceApi apiInstance = new WorkflowTemplateServiceApi(defaultClient); String namespace = "namespace_example"; // String | String name = "name_example"; // String | DEPRECATED: This field is ignored. - IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest body = new IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest(); // IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest | + IoArgoprojWorkflowV1alpha1UpdateWorkflowTemplateBody body = new IoArgoprojWorkflowV1alpha1UpdateWorkflowTemplateBody(); // IoArgoprojWorkflowV1alpha1UpdateWorkflowTemplateBody | try { IoArgoprojWorkflowV1alpha1WorkflowTemplate result = apiInstance.workflowTemplateServiceUpdateWorkflowTemplate(namespace, name, body); System.out.println(result); @@ -449,7 +449,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | **name** | **String**| DEPRECATED: This field is ignored. | - **body** | [**IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest**](IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest.md)| | + **body** | [**IoArgoprojWorkflowV1alpha1UpdateWorkflowTemplateBody**](IoArgoprojWorkflowV1alpha1UpdateWorkflowTemplateBody.md)| | ### Return type diff --git a/sdks/java/tests/src/test/java/tests/ClientTest.java b/sdks/java/tests/src/test/java/tests/ClientTest.java index a365a5be7564..6a660a34c5ad 100644 --- a/sdks/java/tests/src/test/java/tests/ClientTest.java +++ b/sdks/java/tests/src/test/java/tests/ClientTest.java @@ -8,7 +8,7 @@ import io.argoproj.workflow.auth.ApiKeyAuth; import io.argoproj.workflow.models.IoArgoprojWorkflowV1alpha1Template; import io.argoproj.workflow.models.IoArgoprojWorkflowV1alpha1Workflow; -import io.argoproj.workflow.models.IoArgoprojWorkflowV1alpha1WorkflowCreateRequest; +import io.argoproj.workflow.models.IoArgoprojWorkflowV1alpha1CreateWorkflowBody; import io.argoproj.workflow.models.IoArgoprojWorkflowV1alpha1WorkflowSpec; import io.kubernetes.client.openapi.models.V1Container; import io.kubernetes.client.openapi.models.V1ObjectMeta; @@ -33,7 +33,7 @@ public class ClientTest { @Test public void testClient() throws Exception { // create a workflow - IoArgoprojWorkflowV1alpha1WorkflowCreateRequest req = new IoArgoprojWorkflowV1alpha1WorkflowCreateRequest(); + IoArgoprojWorkflowV1alpha1CreateWorkflowBody req = new IoArgoprojWorkflowV1alpha1CreateWorkflowBody(); req.setWorkflow( new IoArgoprojWorkflowV1alpha1Workflow() .metadata(new V1ObjectMeta().generateName("test-")) diff --git a/server/apiserver/argoserver.go b/server/apiserver/argoserver.go index ad02c8d156f6..0a6dc0b5b3bb 100644 --- a/server/apiserver/argoserver.go +++ b/server/apiserver/argoserver.go @@ -14,9 +14,8 @@ import ( "time" "github.com/gorilla/handlers" - grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus" - "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/sethvargo/go-limiter" "github.com/sethvargo/go-limiter/httplimit" @@ -369,7 +368,7 @@ func (as *argoServer) newGRPCServer(ctx context.Context, instanceIDService insta grpc.MaxRecvMsgSize(MaxGRPCMessageSize), grpc.MaxSendMsgSize(MaxGRPCMessageSize), grpc.ConnectionTimeout(300 * time.Second), - grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer( + grpc.ChainUnaryInterceptor( grpc_prometheus.UnaryServerInterceptor, grpcutil.LoggerUnaryServerInterceptor(serverLog), grpcutil.PanicLoggerUnaryServerInterceptor(serverLog), @@ -377,8 +376,8 @@ func (as *argoServer) newGRPCServer(ctx context.Context, instanceIDService insta as.gatekeeper.UnaryServerInterceptor(), grpcutil.RatelimitUnaryServerInterceptor(as.apiRateLimiter), grpcutil.SetVersionHeaderUnaryServerInterceptor(argo.GetVersion()), - )), - grpc.StreamInterceptor(grpc_middleware.ChainStreamServer( + ), + grpc.ChainStreamInterceptor( grpc_prometheus.StreamServerInterceptor, grpcutil.LoggerStreamServerInterceptor(serverLog), grpcutil.PanicLoggerStreamServerInterceptor(serverLog), @@ -386,7 +385,7 @@ func (as *argoServer) newGRPCServer(ctx context.Context, instanceIDService insta as.gatekeeper.StreamServerInterceptor(), grpcutil.RatelimitStreamServerInterceptor(as.apiRateLimiter), grpcutil.SetVersionHeaderStreamServerInterceptor(argo.GetVersion()), - )), + ), } grpcServer := grpc.NewServer(sOpts...) @@ -422,7 +421,9 @@ func (as *argoServer) newHTTPServer(ctx context.Context, port int, artifactServe mux := http.NewServeMux() loggingInterceptor := accesslog.NewLoggingInterceptor(log) - handler := rateLimitMiddleware.Handle(loggingInterceptor.Interceptor(mux)) + // The gateway stream forwarder (and anything else downstream) pulls the + // logger from the request context, so inject it at the outermost layer. + handler := withRequestLogger(log, rateLimitMiddleware.Handle(loggingInterceptor.Interceptor(mux))) dialOpts := []grpc.DialOption{ grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxGRPCMessageSize)), } @@ -439,15 +440,7 @@ func (as *argoServer) newHTTPServer(ctx context.Context, port int, artifactServe // HTTP 1.1+JSON Server // grpc-ecosystem/grpc-gateway is used to proxy HTTP requests to the corresponding gRPC call - // NOTE: if a marshaller option is not supplied, grpc-gateway will default to the jsonpb from - // golang/protobuf. Which does not support types such as time.Time. gogo/protobuf does support - // time.Time, but does not support custom UnmarshalJSON() and MarshalJSON() methods. Therefore - // we use our own Marshaler - gwMuxOpts := runtime.WithMarshalerOption(runtime.MIMEWildcard, new(json.Marshaler)) - gwmux := runtime.NewServeMux(gwMuxOpts, - runtime.WithIncomingHeaderMatcher(grpcutil.IncomingHeaderMatcher), - runtime.WithProtoErrorHandler(runtime.DefaultHTTPProtoErrorHandler), - ) + gwmux := newGatewayMux() mustRegisterGWHandler(ctx, infopkg.RegisterInfoServiceHandlerFromEndpoint, gwmux, endpoint, dialOpts) mustRegisterGWHandler(ctx, eventpkg.RegisterEventServiceHandlerFromEndpoint, gwmux, endpoint, dialOpts) mustRegisterGWHandler(ctx, eventsourcepkg.RegisterEventSourceServiceHandlerFromEndpoint, gwmux, endpoint, dialOpts) @@ -606,6 +599,29 @@ func (as *argoServer) validateArtifactDriverImages(ctx context.Context, cfg *con return nil } +// withRequestLogger injects the server logger into every HTTP request context. +// Downstream handlers — in particular the gateway stream forwarder's keepalive +// goroutine — read it from there. +func withRequestLogger(log logging.Logger, next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + next.ServeHTTP(w, r.WithContext(logging.WithLogger(r.Context(), log))) + }) +} + +// newGatewayMux builds the grpc-gateway mux with the server's marshaler and +// header-matching configuration. Kept as its own function so the gateway +// round-trip test exercises exactly the production configuration. +// NOTE: the marshaler must stay encoding/json-based: grpc-gateway's default +// protojson marshaler ignores MarshalJSON methods, which both our API types and +// the gateway.MessageV2Of bridge for gogo-generated messages rely on — with +// protojson, bridged responses would serialize as {}. +func newGatewayMux() *runtime.ServeMux { + return runtime.NewServeMux( + runtime.WithMarshalerOption(runtime.MIMEWildcard, new(json.Marshaler)), + runtime.WithIncomingHeaderMatcher(grpcutil.IncomingHeaderMatcher), + ) +} + type registerFunc func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error // mustRegisterGWHandler is a convenience function to register a gateway handler diff --git a/server/apiserver/gateway_roundtrip_test.go b/server/apiserver/gateway_roundtrip_test.go new file mode 100644 index 000000000000..806842799489 --- /dev/null +++ b/server/apiserver/gateway_roundtrip_test.go @@ -0,0 +1,222 @@ +package apiserver + +import ( + "context" + "fmt" + "io" + "net" + "net/http" + "net/http/httptest" + "strings" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials/insecure" + "google.golang.org/grpc/status" + "google.golang.org/grpc/test/bufconn" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + workflowpkg "github.com/argoproj/argo-workflows/v4/pkg/apiclient/workflow" + wfv1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1" + "github.com/argoproj/argo-workflows/v4/util/logging" +) + +// This file holds an HTTP round-trip test over the real generated grpc-gateway +// code: HTTP request -> gateway mux -> gRPC (bufconn) -> service -> response. +// It pins the seams that unit tests cannot see: +// - unary responses of gogo-generated types must serialize as real JSON, not +// {} (the gateway.MessageV2Of bridge injected by the Makefile's protoc rule), +// - SSE streams must actually stream: the keepalive writer must keep Flush +// reachable for grpc-gateway's http.ResponseController, and each message +// arrives in the {"result": ...} envelope the UI depends on, +// - errors surface in the google.rpc.Status shape docs/upgrading.md promises, +// for both unary responses and in-stream error chunks. + +// fakeWorkflowServer embeds the Unimplemented stub for brevity; production +// servers implement the interface explicitly (see the protoc rule's +// require_unimplemented_servers comment in the Makefile). +type fakeWorkflowServer struct { + workflowpkg.UnimplementedWorkflowServiceServer +} + +func (s *fakeWorkflowServer) GetWorkflow(_ context.Context, req *workflowpkg.WorkflowGetRequest) (*wfv1.Workflow, error) { + if req.Name == "missing" { + return nil, status.Error(codes.NotFound, "workflow missing not found") + } + return &wfv1.Workflow{ + ObjectMeta: metav1.ObjectMeta{Name: req.Name, Namespace: req.Namespace}, + Spec: wfv1.WorkflowSpec{Entrypoint: "main"}, + }, nil +} + +func (s *fakeWorkflowServer) WatchEvents(req *workflowpkg.WatchEventsRequest, ws grpc.ServerStreamingServer[workflowpkg.EventWatchEvent]) error { + for i, eventType := range []string{"ADDED", "DELETED"} { + if err := ws.Send(&workflowpkg.EventWatchEvent{ + Type: eventType, + Object: &corev1.Event{ + ObjectMeta: metav1.ObjectMeta{Name: fmt.Sprintf("event-%d", i), Namespace: req.Namespace}, + Message: fmt.Sprintf("message-%d", i), + }, + }); err != nil { + return err + } + } + if req.Namespace == "stream-error" { + return status.Error(codes.PermissionDenied, "watch denied") + } + return nil +} + +func (s *fakeWorkflowServer) WorkflowLogs(req *workflowpkg.WorkflowLogRequest, ws grpc.ServerStreamingServer[workflowpkg.LogEntry]) error { + // Echo the query-populated options back so the test can verify population. + return ws.Send(&workflowpkg.LogEntry{ + Content: fmt.Sprintf("container=%s follow=%v", req.LogOptions.Container, req.LogOptions.Follow), + }) +} + +// newGatewayServer starts a real gRPC server on a bufconn listener, registers +// the generated gateway handlers against the production mux configuration +// (newGatewayMux), and serves it wrapped exactly as newHTTPServer does +// (withRequestLogger). +func newGatewayServer(t *testing.T) *httptest.Server { + t.Helper() + ctx := logging.TestContext(t.Context()) + + lis := bufconn.Listen(1024 * 1024) + grpcServer := grpc.NewServer() + workflowpkg.RegisterWorkflowServiceServer(grpcServer, &fakeWorkflowServer{}) + go func() { _ = grpcServer.Serve(lis) }() + t.Cleanup(grpcServer.Stop) + + gwmux := newGatewayMux() + dialOpts := []grpc.DialOption{ + grpc.WithTransportCredentials(insecure.NewCredentials()), + grpc.WithContextDialer(func(ctx context.Context, _ string) (net.Conn, error) { return lis.DialContext(ctx) }), + } + require.NoError(t, workflowpkg.RegisterWorkflowServiceHandlerFromEndpoint(ctx, gwmux, "passthrough:///bufconn", dialOpts)) + + httpServer := httptest.NewServer(withRequestLogger(logging.RequireLoggerFromContext(ctx), gwmux)) + t.Cleanup(httpServer.Close) + return httpServer +} + +// get performs a GET against the test server, optionally as an SSE request, +// and returns the status code, response headers, and body. The response is +// fully read and closed in here so callers cannot leak it. +func get(t *testing.T, server *httptest.Server, path string, sse bool) (int, http.Header, string) { + t.Helper() + req, err := http.NewRequestWithContext(t.Context(), http.MethodGet, server.URL+path, nil) + require.NoError(t, err) + if sse { + req.Header.Set("Accept", "text/event-stream") + } + resp, err := http.DefaultClient.Do(req) + require.NoError(t, err) + defer func() { _ = resp.Body.Close() }() + body, err := io.ReadAll(resp.Body) + require.NoError(t, err) + return resp.StatusCode, resp.Header, string(body) +} + +func TestGatewayRoundtrip_UnaryGogoMessageJSON(t *testing.T) { + server := newGatewayServer(t) + + status, _, body := get(t, server, "/api/v1/workflows/argo/my-wf", false) + + require.Equal(t, http.StatusOK, status, "body: %s", body) + // A gogo-generated response must serialize as real JSON. A bare protoadapt + // wrapper has no exported fields and would produce exactly "{}". + assert.NotEqual(t, "{}", strings.TrimSpace(body)) + assert.Contains(t, body, `"name":"my-wf"`) + assert.Contains(t, body, `"namespace":"argo"`) + assert.Contains(t, body, `"entrypoint":"main"`) +} + +func TestGatewayRoundtrip_UnaryErrorStatusShape(t *testing.T) { + server := newGatewayServer(t) + + status, _, body := get(t, server, "/api/v1/workflows/argo/missing", false) + + // docs/upgrading.md: HTTP error bodies use the google.rpc.Status shape. + require.Equal(t, http.StatusNotFound, status, "body: %s", body) + assert.Contains(t, body, fmt.Sprintf(`"code":%d`, codes.NotFound)) + assert.Contains(t, body, `"message":"workflow missing not found"`) + assert.NotContains(t, body, `"error":`, "grpc-gateway v1's error field must be gone") +} + +func TestGatewayRoundtrip_SSEStream(t *testing.T) { + server := newGatewayServer(t) + + status, header, s := get(t, server, "/api/v1/stream/events/argo", true) + + require.Equal(t, http.StatusOK, status, "body: %s", s) + assert.Equal(t, "text/event-stream", header.Get("Content-Type")) + // The keepalive writer must not hide the underlying Flusher, or the gateway + // aborts the stream with this error after the first message. + assert.NotContains(t, s, "unexpected type of web server") + // Both messages arrive as SSE frames in the {"result": ...} envelope, with + // the EventWatchEvent {type, object} shape the UI unwraps — including the + // event type passed through from the server, not a hardcoded ADDED. + assert.Equal(t, 2, strings.Count(s, "data: "), "expected two SSE frames, body: %s", s) + assert.Contains(t, s, `"result":{"type":"ADDED","object":`) + assert.Contains(t, s, `"result":{"type":"DELETED","object":`) + assert.Contains(t, s, `"message":"message-0"`) + assert.Contains(t, s, `"message":"message-1"`) +} + +func TestGatewayRoundtrip_StreamErrorStatusShape(t *testing.T) { + server := newGatewayServer(t) + + status, _, s := get(t, server, "/api/v1/stream/events/stream-error", true) + + // A mid-stream failure arrives as a trailing {"error": ...} chunk in the + // google.rpc.Status shape (headers were already sent, so still HTTP 200). + require.Equal(t, http.StatusOK, status, "body: %s", s) + assert.Contains(t, s, `"message":"message-1"`, "messages before the error must still arrive") + assert.Contains(t, s, `"error":`) + assert.Contains(t, s, fmt.Sprintf(`"code":%d`, codes.PermissionDenied)) + assert.Contains(t, s, `"message":"watch denied"`) + assert.NotContains(t, s, `"grpc_code"`, "grpc-gateway v1's stream error fields must be gone") +} + +func TestGatewayRoundtrip_StreamFieldFilter(t *testing.T) { + server := newGatewayServer(t) + + status, _, s := get(t, server, "/api/v1/stream/events/argo?fields=result.object.message", true) + + require.Equal(t, http.StatusOK, status, "body: %s", s) + assert.Equal(t, 2, strings.Count(s, "data: "), "filtering must not break streaming, body: %s", s) + assert.Contains(t, s, `"message":"message-0"`) + assert.Contains(t, s, `"message":"message-1"`) + assert.NotContains(t, s, `"type":"ADDED"`, "?fields should have filtered out result.type") + assert.NotContains(t, s, `"metadata"`, "?fields should have filtered out result.object.metadata") +} + +func TestGatewayRoundtrip_NonSSEStream(t *testing.T) { + server := newGatewayServer(t) + + status, _, s := get(t, server, "/api/v1/stream/events/argo", false) + + require.Equal(t, http.StatusOK, status, "body: %s", s) + assert.NotContains(t, s, "data: ", "non-SSE stream should be newline-delimited JSON, not SSE frames") + assert.Contains(t, s, `"result":{"type":"ADDED","object":`) + assert.Equal(t, 2, strings.Count(s, `"message":"message-`)) +} + +// The gateway populates ?logOptions.*= query parameters into the embedded +// corev1.PodLogOptions via protoreflect, which derives descriptors for the +// Kubernetes type from its struct tags. Kubernetes mis-tags the `stream` field +// (varint for a *string); without the hack/vendor-patches.sh tag fix, every +// log request with logOptions parameters panics the handler. +func TestGatewayRoundtrip_LogQueryParamsPopulateK8sOptions(t *testing.T) { + server := newGatewayServer(t) + + status, _, s := get(t, server, "/api/v1/workflows/argo/my-wf/log?logOptions.container=main&logOptions.follow=true&logOptions.stream=All", false) + + require.Equal(t, http.StatusOK, status, "body: %s", s) + assert.Contains(t, s, "container=main follow=true") +} diff --git a/server/workflow/workflow_server.go b/server/workflow/workflow_server.go index efa016e93a2b..78b6845285de 100644 --- a/server/workflow/workflow_server.go +++ b/server/workflow/workflow_server.go @@ -435,7 +435,10 @@ func (s *workflowServer) WatchEvents(req *workflowpkg.WatchEventsRequest, ws wor return sutils.ToStatusError(apierr.FromObject(event.Object), codes.Internal) } logger.Debug(ctx, "Sending event") - err = ws.Send(e) + err = ws.Send(&workflowpkg.EventWatchEvent{ + Type: string(event.Type), + Object: e, + }) if err != nil { return sutils.ToStatusError(err, codes.Internal) } diff --git a/server/workflow/workflow_server_test.go b/server/workflow/workflow_server_test.go index 372cc04dca6e..60c5d3c9a0e9 100644 --- a/server/workflow/workflow_server_test.go +++ b/server/workflow/workflow_server_test.go @@ -1019,7 +1019,7 @@ func TestPodLogs(t *testing.T) { server, ctx := getWorkflowServer(t) ctx, cancel := context.WithCancel(ctx) go func() { - err := server.PodLogs(&workflowpkg.WorkflowLogRequest{ + err := server.PodLogs(&workflowpkg.WorkflowLogRequest{ //nolint:staticcheck // tests the deprecated RPC Name: "hello-world-9tql2", Namespace: "workflows", LogOptions: &corev1.PodLogOptions{}, diff --git a/ui/src/shared/services/workflows-service.ts b/ui/src/shared/services/workflows-service.ts index 5dc40da70b2a..7f4f01e9600f 100644 --- a/ui/src/shared/services/workflows-service.ts +++ b/ui/src/shared/services/workflows-service.ts @@ -85,10 +85,10 @@ export const WorkflowsService = { return requests.loadEventSource(url).pipe(map(data => data && (JSON.parse(data).result as models.kubernetes.WatchEvent))); }, - watchEvents(namespace: string, fieldSelector: string): Observable { + watchEvents(namespace: string, fieldSelector: string): Observable> { return requests .loadEventSource(`api/v1/stream/events/${namespace}?listOptions.fieldSelector=${fieldSelector}`) - .pipe(map(data => data && (JSON.parse(data).result as Event))); + .pipe(map(data => data && (JSON.parse(data).result as models.kubernetes.WatchEvent))); }, watchFields(query: { diff --git a/ui/src/workflows/components/events-panel.tsx b/ui/src/workflows/components/events-panel.tsx index dca3b30e2a68..8d75500528f1 100644 --- a/ui/src/workflows/components/events-panel.tsx +++ b/ui/src/workflows/components/events-panel.tsx @@ -1,6 +1,5 @@ import * as React from 'react'; import {useEffect, useRef, useState} from 'react'; -import {map} from 'rxjs/operators'; import {ErrorNotice} from '../../shared/components/error-notice'; import {Notice} from '../../shared/components/notice'; @@ -32,17 +31,7 @@ export function EventsPanel({namespace, name, kind}: {namespace: string; name: s const lw = new ListWatch( // no list function, so we fake it () => Promise.resolve({metadata: {}, items: []}), - () => - // ListWatch can only handle Kubernetes Watch Event - so we fake it - services.workflows.watchEvents(namespace, fieldSelector).pipe( - map( - x => - x && { - type: 'ADDED', - object: x - } - ) - ), + () => services.workflows.watchEvents(namespace, fieldSelector), () => setError(null), () => setError(null), items => setEvents([...items]), diff --git a/util/grpc/gateway/message.go b/util/grpc/gateway/message.go new file mode 100644 index 000000000000..39d08f90a401 --- /dev/null +++ b/util/grpc/gateway/message.go @@ -0,0 +1,30 @@ +package gateway + +import ( + "encoding/json" + + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/protoadapt" +) + +// jsonMessage satisfies the proto.Message return type grpc-gateway v2 requires +// while keeping the JSON wire format of the original message. The server's +// marshalers use encoding/json, and the bare protoadapt wrapper around a +// gogo-generated message has no exported fields, so it would serialize as {}. +type jsonMessage struct { + proto.Message + orig any +} + +func (m jsonMessage) MarshalJSON() ([]byte, error) { + return json.Marshal(m.orig) +} + +// MessageV2Of bridges a message generated by gogo/protobuf (which predates +// protoreflect) to grpc-gateway v2's proto.Message response type. For +// protoc-gen-go messages the protoadapt conversion is a no-op and the JSON +// output is unchanged. Called from generated .pb.gw.go code (injected by the +// protoc rule in the Makefile). +func MessageV2Of(m protoadapt.MessageV1) proto.Message { + return jsonMessage{Message: protoadapt.MessageV2Of(m), orig: m} +} diff --git a/util/grpc/gateway/stream_forwarder.go b/util/grpc/gateway/stream_forwarder.go new file mode 100644 index 000000000000..aca7f48bbaaf --- /dev/null +++ b/util/grpc/gateway/stream_forwarder.go @@ -0,0 +1,191 @@ +// Package gateway holds the grpc-gateway v2 glue that both the server and the +// generated pkg/apiclient code depend on. It must stay a leaf package: no +// server-side dependencies (interceptors, rate limiters), because pkg/apiclient +// is the public Go SDK surface and imports it. +package gateway + +import ( + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "strings" + "sync" + "time" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "google.golang.org/protobuf/proto" + + "github.com/argoproj/argo-workflows/v4/util/fields" + "github.com/argoproj/argo-workflows/v4/util/logging" +) + +type messageMarshaler struct { + cleaner fields.Cleaner + isSSE bool +} + +var errMarshalOnly = errors.New("stream marshaler only supports Marshal") + +// grpc-gateway's ForwardResponseStream only ever calls Marshal on this +// marshaler; the rest of the runtime.Marshaler surface fails loudly so a +// gateway upgrade that starts using it cannot silently misbehave. +func (m *messageMarshaler) Unmarshal(data []byte, v any) error { return errMarshalOnly } +func (m *messageMarshaler) NewDecoder(r io.Reader) runtime.Decoder { + return runtime.DecoderFunc(func(v any) error { return errMarshalOnly }) +} +func (m *messageMarshaler) NewEncoder(w io.Writer) runtime.Encoder { + return runtime.EncoderFunc(func(v any) error { return errMarshalOnly }) +} + +func (m *messageMarshaler) ContentType(_ any) string { + if m.isSSE { + return "text/event-stream" + } + return "application/json" +} + +func (m *messageMarshaler) Marshal(v any) ([]byte, error) { + // grpc-gateway wraps every stream message in map[string]any{"result": msg} + // (or {"error": ...}), so v is always a JSON object. Cleaner round-trips it + // through JSON to apply the ?fields filter. + out := v + var cleaned map[string]any + if changed, err := m.cleaner.Clean(v, &cleaned); err != nil { + return nil, err + } else if changed { + out = cleaned + } + dataBytes, err := json.Marshal(out) + if err != nil { + return nil, err + } + if m.isSSE { + dataBytes = fmt.Appendf(nil, "data: %s \n\n", string(dataBytes)) + } + return dataBytes, nil +} + +func newStreamMarshaler(req *http.Request, isSSE bool) *messageMarshaler { + return &messageMarshaler{ + cleaner: fields.NewCleaner(req.URL.Query().Get("fields")), + isSSE: isSSE, + } +} + +// fallbackLogger is used when a request context carries no logger. This package +// is wired into generated pkg/apiclient code, so it can run under HTTP servers +// (or SDK consumers) that never call logging.WithLogger — and the keepalive runs +// in a background goroutine, where a missing-logger panic would kill the whole +// process on something as routine as an SSE client disconnecting. +var fallbackLogger = logging.NewSlogLogger(logging.Info, logging.Text) + +func loggerFromContext(ctx context.Context) logging.Logger { + if logger := logging.GetLoggerFromContextOrNil(ctx); logger != nil { + return logger + } + return fallbackLogger +} + +// flush recovers from panics because it runs in a background goroutine. +func flush(ctx context.Context, flusher http.Flusher) { + defer func() { + if r := recover(); r != nil { + loggerFromContext(ctx).Warn(ctx, "recovered in flush, issue with writer inside http.ResponseWriter") + } + }() + flusher.Flush() +} + +func writeKeepalive(ctx context.Context, w http.ResponseWriter, mut *sync.Mutex) bool { + mut.Lock() + defer mut.Unlock() + + _, err := w.Write([]byte(":\n")) + if err != nil { + loggerFromContext(ctx).WithError(err).Warn(ctx, "failed to write http keepalive response") + return false + } + if f, ok := w.(http.Flusher); ok { + flush(ctx, f) + } + return true +} + +// keepaliveInterval is a variable so tests can shorten it. +var keepaliveInterval = 15 * time.Second + +func keepalive(ctx context.Context, w http.ResponseWriter, mut *sync.Mutex) { + keepaliveTicker := time.NewTicker(keepaliveInterval) + defer keepaliveTicker.Stop() + + for { + select { + case <-ctx.Done(): + return + case <-keepaliveTicker.C: + if !writeKeepalive(ctx, w, mut) { + return + } + } + } +} + +// mutexWriter wraps an http.ResponseWriter with a mutex to prevent +// concurrent writes from the keepalive goroutine and the main handler. +type mutexWriter struct { + http.ResponseWriter + mut *sync.Mutex +} + +func (w *mutexWriter) Write(p []byte) (int, error) { + w.mut.Lock() + defer w.mut.Unlock() + return w.ResponseWriter.Write(p) +} + +// Flush makes the wrapper usable with http.NewResponseController, which +// grpc-gateway's ForwardResponseStream uses to flush after every message. +// Without it the controller reports ErrNotSupported and the gateway aborts the +// stream with an HTTP 500. Deliberately no Unwrap(): everything must go +// through the mutex. +func (w *mutexWriter) Flush() { + w.mut.Lock() + defer w.mut.Unlock() + if f, ok := w.ResponseWriter.(http.Flusher); ok { + f.Flush() + } +} + +// withKeepalive sends ":\n" every 15s in a background goroutine and +// mutex-protects all writes. The caller must cancel ctx to stop it. +func withKeepalive(ctx context.Context, w http.ResponseWriter) http.ResponseWriter { + mut := &sync.Mutex{} + go keepalive(ctx, w, mut) + return &mutexWriter{ResponseWriter: w, mut: mut} +} + +// StreamForwarder is a grpc-gateway v2 compatible stream forwarder that supports +// SSE formatting and field filtering via the ?fields query parameter. +var StreamForwarder = func( + ctx context.Context, + mux *runtime.ServeMux, + marshaler runtime.Marshaler, + w http.ResponseWriter, + req *http.Request, + recv func() (proto.Message, error), + opts ...func(context.Context, http.ResponseWriter, proto.Message) error, +) { + isSSE := strings.Contains(req.Header.Get("Accept"), "text/event-stream") + processCtx, cancel := context.WithCancel(ctx) + defer cancel() + if isSSE { + w.Header().Set("Content-Type", "text/event-stream") + w.Header().Set("X-Content-Type-Options", "nosniff") + w = withKeepalive(processCtx, w) + } + m := newStreamMarshaler(req, isSSE) + runtime.ForwardResponseStream(ctx, mux, m, w, req, recv, opts...) +} diff --git a/util/grpc/gateway/stream_forwarder_test.go b/util/grpc/gateway/stream_forwarder_test.go new file mode 100644 index 000000000000..0de03485af0b --- /dev/null +++ b/util/grpc/gateway/stream_forwarder_test.go @@ -0,0 +1,256 @@ +package gateway + +import ( + "context" + "errors" + "net/http" + "net/http/httptest" + "strings" + "sync" + "testing" + "time" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/argoproj/argo-workflows/v4/util/logging" +) + +func newTestMarshaler(t *testing.T, query string, isSSE bool) *messageMarshaler { + t.Helper() + req := httptest.NewRequestWithContext(t.Context(), http.MethodGet, "/api/v1/workflows"+query, nil) + return newStreamMarshaler(req, isSSE) +} + +// shortKeepalive shrinks the keepalive interval for the duration of a test. +func shortKeepalive(t *testing.T, d time.Duration) { + t.Helper() + old := keepaliveInterval + keepaliveInterval = d + t.Cleanup(func() { keepaliveInterval = old }) +} + +func TestMessageMarshaler_ContentType(t *testing.T) { + m := &messageMarshaler{isSSE: false} + assert.Equal(t, "application/json", m.ContentType(nil)) + + m = &messageMarshaler{isSSE: true} + assert.Equal(t, "text/event-stream", m.ContentType(nil)) +} + +func TestMessageMarshaler_OnlyMarshalSupported(t *testing.T) { + m := newTestMarshaler(t, "", false) + require.Error(t, m.Unmarshal([]byte("{}"), nil)) + require.Error(t, m.NewDecoder(nil).Decode(nil)) + require.Error(t, m.NewEncoder(nil).Encode(nil)) +} + +// The ?fields filtering semantics themselves are covered by util/fields' own +// tests; these cases pin that the query parameter is wired into the marshaler +// and that paths are relative to grpc-gateway's {"result": ...} envelope. +func TestMessageMarshaler_Marshal(t *testing.T) { + input := map[string]any{"result": map[string]any{ + "name": "test", + "status": "running", + }} + + t.Run("no fields", func(t *testing.T) { + m := newTestMarshaler(t, "", false) + data, err := m.Marshal(input) + require.NoError(t, err) + assert.Contains(t, string(data), `"name":"test"`) + assert.Contains(t, string(data), `"status":"running"`) + }) + + t.Run("include fields", func(t *testing.T) { + m := newTestMarshaler(t, "?fields=result.name", false) + data, err := m.Marshal(input) + require.NoError(t, err) + assert.Contains(t, string(data), `"name":"test"`) + assert.NotContains(t, string(data), `"status"`) + }) +} + +func TestMessageMarshaler_Marshal_SSE(t *testing.T) { + m := newTestMarshaler(t, "", true) + input := map[string]any{"result": map[string]any{"name": "test"}} + + data, err := m.Marshal(input) + require.NoError(t, err) + + s := string(data) + assert.Contains(t, s, "data: ") + assert.Contains(t, s, `"name":"test"`) + assert.Equal(t, "\n\n", s[len(s)-2:], "SSE data should end with double newline") +} + +// errorWriter is an http.ResponseWriter that always returns an error on Write. +type errorWriter struct { + header http.Header +} + +func newErrorWriter() *errorWriter { + return &errorWriter{header: make(http.Header)} +} + +func (e *errorWriter) Header() http.Header { return e.header } +func (e *errorWriter) WriteHeader(int) {} +func (e *errorWriter) Write([]byte) (int, error) { return 0, errors.New("connection closed") } + +func TestWriteKeepalive_Success(t *testing.T) { + ctx := logging.TestContext(t.Context()) + rec := httptest.NewRecorder() + mut := &sync.Mutex{} + + ok := writeKeepalive(ctx, rec, mut) + + assert.True(t, ok) + assert.Equal(t, ":\n", rec.Body.String()) + assert.True(t, rec.Flushed, "keepalive should flush the writer") +} + +func TestWriteKeepalive_Failure(t *testing.T) { + ctx := logging.TestContext(t.Context()) + w := newErrorWriter() + mut := &sync.Mutex{} + + ok := writeKeepalive(ctx, w, mut) + + assert.False(t, ok) +} + +// A request context without a logger must not panic: production HTTP request +// contexts may not carry one, and the keepalive runs in a background goroutine +// where a panic would kill the process. +func TestWriteKeepalive_NoLoggerInContext(t *testing.T) { + w := newErrorWriter() + mut := &sync.Mutex{} + + assert.NotPanics(t, func() { + ok := writeKeepalive(context.Background(), w, mut) //nolint:testingcontext // deliberately logger-free + assert.False(t, ok) + }) +} + +func TestKeepalive_StopsOnWriteError(t *testing.T) { + shortKeepalive(t, time.Millisecond) + w := newErrorWriter() + mut := &sync.Mutex{} + + done := make(chan struct{}) + go func() { + // Deliberately logger-free context: the failure path must not panic. + keepalive(context.Background(), w, mut) //nolint:testingcontext + close(done) + }() + + select { + case <-done: + // keepalive returned after the first failed write + case <-time.After(2 * time.Second): + t.Fatal("keepalive goroutine did not stop on write error") + } +} + +func TestKeepalive_StopsOnContextCancel(t *testing.T) { + rec := httptest.NewRecorder() + mut := &sync.Mutex{} + ctx, cancel := context.WithCancel(logging.TestContext(t.Context())) //nolint:testingcontext + + done := make(chan struct{}) + go func() { + keepalive(ctx, rec, mut) + close(done) + }() + + cancel() + + select { + case <-done: + // Goroutine stopped as expected + case <-time.After(2 * time.Second): + t.Fatal("keepalive goroutine did not stop on context cancellation") + } +} + +// syncRecorder is a ResponseWriter safe to read while the keepalive goroutine +// (which holds the raw writer) is writing to it. +type syncRecorder struct { + mu sync.Mutex + buf strings.Builder + header http.Header +} + +func newSyncRecorder() *syncRecorder { return &syncRecorder{header: make(http.Header)} } + +func (s *syncRecorder) Header() http.Header { return s.header } +func (s *syncRecorder) WriteHeader(int) {} +func (s *syncRecorder) Write(p []byte) (int, error) { + s.mu.Lock() + defer s.mu.Unlock() + return s.buf.Write(p) +} + +func (s *syncRecorder) String() string { + s.mu.Lock() + defer s.mu.Unlock() + return s.buf.String() +} + +func TestWithKeepalive_EmitsKeepalives(t *testing.T) { + shortKeepalive(t, time.Millisecond) + rec := newSyncRecorder() + ctx, cancel := context.WithCancel(logging.TestContext(t.Context())) //nolint:testingcontext + defer cancel() + + _ = withKeepalive(ctx, rec) + + assert.Eventually(t, func() bool { + return strings.Contains(rec.String(), ":\n") + }, 2*time.Second, 5*time.Millisecond, "keepalive frames should reach the writer") +} + +// flushRecorder counts Flush calls so tests can assert the wrapper forwards them. +type flushRecorder struct { + *httptest.ResponseRecorder + flushes int +} + +func (f *flushRecorder) Flush() { f.flushes++ } + +func TestMutexWriter_SupportsResponseController(t *testing.T) { + // grpc-gateway's ForwardResponseStream flushes after every message via + // http.NewResponseController. The keepalive wrapper must not hide the + // underlying writer's Flusher, or every SSE stream aborts with + // "unexpected type of web server". + rec := &flushRecorder{ResponseRecorder: httptest.NewRecorder()} + w := &mutexWriter{ResponseWriter: rec, mut: &sync.Mutex{}} + + rc := http.NewResponseController(w) + require.NoError(t, rc.Flush()) + assert.Equal(t, 1, rec.flushes) + + _, err := w.Write([]byte("data")) + require.NoError(t, err) + assert.Equal(t, "data", rec.Body.String()) +} + +func TestWithKeepalive_ConcurrentWrites(t *testing.T) { + // The mutexWriter must serialize writes; with the interval shortened the + // keepalive goroutine contends with the handler writes below. + shortKeepalive(t, time.Millisecond) + rec := newSyncRecorder() + ctx, cancel := context.WithCancel(logging.TestContext(t.Context())) //nolint:testingcontext + defer cancel() + w := withKeepalive(ctx, rec) + + var wg sync.WaitGroup + for range 10 { + wg.Go(func() { + _, err := w.Write([]byte("x")) + assert.NoError(t, err) + }) + } + wg.Wait() + assert.Equal(t, 10, strings.Count(rec.String(), "x")) +} diff --git a/util/json/json.go b/util/json/json.go index e43edb979f1d..adb1ce1ec90b 100644 --- a/util/json/json.go +++ b/util/json/json.go @@ -5,14 +5,14 @@ import ( "encoding/json" "io" - gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" + gwruntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" ) // Marshaler is a type which satisfies the grpc-gateway Marshaler interface type Marshaler struct{} // ContentType implements gwruntime.Marshaler. -func (j *Marshaler) ContentType() string { +func (j *Marshaler) ContentType(_ any) string { return "application/json" }