Skip to content

Commit

Permalink
feat: add flags for remotes, replications, and functions to `auth cre…
Browse files Browse the repository at this point in the history
…ate` (#325)
  • Loading branch information
danxmoran committed Nov 10, 2021
1 parent 1eadcf1 commit 99791ba
Show file tree
Hide file tree
Showing 14 changed files with 144 additions and 78 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -20,6 +20,7 @@ vendor/
# Docs generated from our openapi repo
api/cli.yml
api/cli.gen.yml
api/cli-extras.gen.yml

# GPG private key generated by CI during release.
private.key
22 changes: 11 additions & 11 deletions api/api_resource_list.gen.go → api/api_resources.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions api/api_tasks.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 17 additions & 2 deletions api/api_write.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 0 additions & 52 deletions api/cli-extras.gen.yml

This file was deleted.

4 changes: 2 additions & 2 deletions api/client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/contract/cli.yml
Expand Up @@ -12,7 +12,7 @@ paths:
/setup:
$ref: "./openapi/src/common/paths/setup.yml"
/write:
$ref: "./openapi/src/common/paths/write.yml"
$ref: "./openapi/src/oss/paths/write.yml"
/buckets:
$ref: "./openapi/src/common/paths/buckets.yml"
/buckets/{bucketID}:
Expand Down
2 changes: 1 addition & 1 deletion api/contract/openapi
Submodule openapi updated 94 files
+1 −1 .circleci/config.yml
+4 −2 Makefile
+41 −2 README.md
+3 −3 contracts/README.md
+325 −33 contracts/cloud-diff.yml
+403 −898 contracts/cloud.json
+307 −551 contracts/cloud.yml
+17 −515 contracts/common.yml
+293 −0 contracts/invocable-scripts.yml
+0 −516 contracts/managed-functions.yml
+347 −538 contracts/oss-diff.yml
+4,418 −5,717 contracts/oss.json
+358 −1,104 contracts/oss.yml
+10 −0 contracts/priv/unity.yml
+11,486 −13,012 contracts/ref/cloud.yml
+12,189 −12,811 contracts/ref/oss.yml
+293 −0 contracts/svc/invocable-scripts.yml
+0 −516 contracts/svc/managed-functions.yml
+1 −1 scripts/ci-swagrag.dockerfile
+7 −4 scripts/extract-tags.sh
+4 −5 scripts/generate.sh
+4 −3 scripts/reference.sh
+63 −26 src/cloud.yml
+12 −11 src/cloud/paths/measurements.yml
+8 −7 src/cloud/paths/measurements_measurementID.yml
+2 −2 src/cloud/paths/orgs_orgID_usage.yml
+153 −0 src/cloud/paths/write.yml
+8 −0 src/cloud/schemas/MeasurementSchema.yml
+6 −0 src/cloud/schemas/MeasurementSchemaList.yml
+0 −10 src/common/_paths.yml
+5 −0 src/common/_quick-start.yml
+19 −0 src/common/_response-codes.yml
+10 −0 src/common/_responses.yml
+0 −14 src/common/_schemas.yml
+0 −57 src/common/paths/documents_templates.yml
+0 −81 src/common/paths/documents_templates_templateID.yml
+0 −59 src/common/paths/documents_templates_templateID_labels.yml
+0 −34 src/common/paths/documents_templates_templateID_labels_labelID.yml
+1 −1 src/common/paths/me_password.yml
+11 −8 src/common/paths/query.yml
+2 −2 src/common/paths/query_analyze.yml
+2 −1 src/common/paths/resources.yml
+1 −1 src/common/paths/signin.yml
+10 −0 src/common/paths/tasks.yml
+1 −1 src/common/paths/users_userID_password.yml
+4 −0 src/common/responses/AuthorizationError.yml
+10 −0 src/common/responses/InternalServerError.yml
+7 −0 src/common/responses/ResourceNotFoundError.yml
+0 −24 src/common/schemas/Document.yml
+0 −20 src/common/schemas/DocumentCreate.yml
+0 −21 src/common/schemas/DocumentListEntry.yml
+0 −23 src/common/schemas/DocumentMeta.yml
+0 −6 src/common/schemas/DocumentUpdate.yml
+0 −6 src/common/schemas/Documents.yml
+3 −0 src/common/schemas/Resource.yml
+105 −53 src/oss.yml
+5 −4 src/oss/paths/backup_metadata.yml
+5 −4 src/oss/paths/backup_shards_shardID.yml
+4 −2 src/oss/paths/restore_kv.yml
+3 −1 src/oss/paths/restore_shards_shardID.yml
+3 −1 src/oss/paths/restore_sql.yml
+26 −22 src/oss/paths/write.yml
+45 −0 src/svc-invocable-scripts.yml
+0 −56 src/svc-managed-functions.yml
+50 −0 src/svc/invocable-scripts/paths/scripts.yml
+73 −0 src/svc/invocable-scripts/paths/scripts_scriptID.yml
+27 −0 src/svc/invocable-scripts/paths/scripts_scriptID_invoke.yml
+2 −2 src/svc/invocable-scripts/schemas/Script.yml
+13 −0 src/svc/invocable-scripts/schemas/ScriptCreateRequest.yml
+2 −0 src/svc/invocable-scripts/schemas/ScriptHTTPResponseData.yml
+0 −0 src/svc/invocable-scripts/schemas/ScriptInvocationParams.yml
+2 −0 src/svc/invocable-scripts/schemas/ScriptLanguage.yml
+0 −0 src/svc/invocable-scripts/schemas/ScriptUpdateRequest.yml
+2 −2 src/svc/invocable-scripts/schemas/Scripts.yml
+0 −60 src/svc/managed-functions/paths/functions.yml
+0 −71 src/svc/managed-functions/paths/functions_functionID.yml
+0 −54 src/svc/managed-functions/paths/functions_functionID_invoke.yml
+0 −34 src/svc/managed-functions/paths/functions_functionID_runs.yml
+0 −28 src/svc/managed-functions/paths/functions_functionID_runs_runID.yml
+0 −22 src/svc/managed-functions/paths/functions_trigger.yml
+0 −14 src/svc/managed-functions/schemas/FunctionCreateRequest.yml
+0 −7 src/svc/managed-functions/schemas/FunctionHTTPResponse.yml
+0 −2 src/svc/managed-functions/schemas/FunctionHTTPResponseData.yml
+0 −13 src/svc/managed-functions/schemas/FunctionHTTPResponseNoData.yml
+0 −2 src/svc/managed-functions/schemas/FunctionLanguage.yml
+0 −7 src/svc/managed-functions/schemas/FunctionRun.yml
+0 −21 src/svc/managed-functions/schemas/FunctionRunBase.yml
+0 −12 src/svc/managed-functions/schemas/FunctionRunLog.yml
+0 −17 src/svc/managed-functions/schemas/FunctionTriggerRequest.yml
+0 −7 src/svc/managed-functions/schemas/FunctionTriggerResponse.yml
+0 −6 src/svc/managed-functions/schemas/Functions.yml
+3 −0 src/unity/paths/orgs_orgId_invites.yml
+3 −0 src/unity/schemas/CheckoutRequest.yml
+4 −0 src/unity/schemas/Me.yml
7 changes: 5 additions & 2 deletions api/extras/model_resource_enum_oss.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 76 additions & 2 deletions api/model_measurement_schema.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/auth/auth.go
Expand Up @@ -15,7 +15,7 @@ type Client struct {
api.AuthorizationsApi
api.UsersApi
api.OrganizationsApi
api.ResourceListApi
api.ResourcesApi
}

const (
Expand Down
2 changes: 1 addition & 1 deletion clients/org/org_members_test.go
Expand Up @@ -395,7 +395,7 @@ func TestClient_RemoveMembers(t *testing.T) {

req := api.ApiDeleteOrgsIDMembersIDRequest{ApiService: orgApi}.OrgID(id1.String()).UserID(id2.String())
orgApi.EXPECT().
DeleteOrgsIDMembersID(gomock.Any(), gomock.Eq(id2.String()), gomock.Eq(id1.String()), ).Return(req)
DeleteOrgsIDMembersID(gomock.Any(), gomock.Eq(id2.String()), gomock.Eq(id1.String())).Return(req)
orgApi.EXPECT().DeleteOrgsIDMembersIDExecute(gomock.Eq(req)).Return(nil)
},
expectedOut: "user \"2222222222222222\" has been removed from org \"1111111111111111\"",
Expand Down

0 comments on commit 99791ba

Please sign in to comment.