mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 17:33:41 +00:00
fix: deprecated add endpoint and variable declaration
This commit is contained in:
parent
9cbe4650d8
commit
d92caaf07d
@ -49,7 +49,7 @@ Returns the detail of an instance
|
|||||||
> **rpc** AddInstance([AddInstanceRequest](#addinstancerequest))
|
> **rpc** AddInstance([AddInstanceRequest](#addinstancerequest))
|
||||||
[AddInstanceResponse](#addinstanceresponse)
|
[AddInstanceResponse](#addinstanceresponse)
|
||||||
|
|
||||||
Creates a new instance with all needed setup data
|
deprecated: Creates a new instance with all needed setup data
|
||||||
This might take some time
|
This might take some time
|
||||||
|
|
||||||
|
|
||||||
@ -74,7 +74,8 @@ Updates name of an existing instance
|
|||||||
> **rpc** CreateInstance([CreateInstanceRequest](#createinstancerequest))
|
> **rpc** CreateInstance([CreateInstanceRequest](#createinstancerequest))
|
||||||
[CreateInstanceResponse](#createinstanceresponse)
|
[CreateInstanceResponse](#createinstanceresponse)
|
||||||
|
|
||||||
|
Creates a new instance with all needed setup data
|
||||||
|
This might take some time
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -386,8 +386,8 @@ func (c *Commands) SetUpInstance(ctx context.Context, setup *InstanceSetup) (str
|
|||||||
return "", "", nil, nil, err
|
return "", "", nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
pat := ""
|
var pat string
|
||||||
machineKey := make([]byte, 0)
|
var machineKey []byte
|
||||||
if setup.Org.Machine != nil {
|
if setup.Org.Machine != nil {
|
||||||
if setup.Org.Machine.Pat {
|
if setup.Org.Machine.Pat {
|
||||||
_, token, err := c.AddPersonalAccessToken(ctx, userID, orgID, setup.Org.Machine.PatExpirationDate, setup.Org.Machine.PatScopes, domain.UserTypeMachine)
|
_, token, err := c.AddPersonalAccessToken(ctx, userID, orgID, setup.Org.Machine.PatExpirationDate, setup.Org.Machine.PatScopes, domain.UserTypeMachine)
|
||||||
|
@ -70,8 +70,8 @@ func (c *Commands) setUpOrgWithIDs(ctx context.Context, o *OrgSetup, orgID, user
|
|||||||
return "", "", nil, nil, err
|
return "", "", nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
pat := ""
|
var pat string
|
||||||
machineKey := make([]byte, 0)
|
var machineKey []byte
|
||||||
if o.Machine != nil {
|
if o.Machine != nil {
|
||||||
if o.Machine.Pat {
|
if o.Machine.Pat {
|
||||||
_, token, err := c.AddPersonalAccessToken(ctx, userID, orgID, o.Machine.PatExpirationDate, o.Machine.PatScopes, domain.UserTypeMachine)
|
_, token, err := c.AddPersonalAccessToken(ctx, userID, orgID, o.Machine.PatExpirationDate, o.Machine.PatScopes, domain.UserTypeMachine)
|
||||||
|
@ -122,7 +122,7 @@ service SystemService {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a new instance with all needed setup data
|
//deprecated: Creates a new instance with all needed setup data
|
||||||
// This might take some time
|
// This might take some time
|
||||||
rpc AddInstance(AddInstanceRequest) returns (AddInstanceResponse) {
|
rpc AddInstance(AddInstanceRequest) returns (AddInstanceResponse) {
|
||||||
option (google.api.http) = {
|
option (google.api.http) = {
|
||||||
@ -147,6 +147,8 @@ service SystemService {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Creates a new instance with all needed setup data
|
||||||
|
// This might take some time
|
||||||
rpc CreateInstance(CreateInstanceRequest) returns (CreateInstanceResponse) {
|
rpc CreateInstance(CreateInstanceRequest) returns (CreateInstanceResponse) {
|
||||||
option (google.api.http) = {
|
option (google.api.http) = {
|
||||||
post: "/instances/_create"
|
post: "/instances/_create"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user