You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
common.AddRequiredNameFlagVar(cmd, &args.Name, "Name of the service token")
34
35
cmd.Flags().TimeVar(&args.Expiration, "expiration", time.Time{}, []string{DateFormat}, "Expiration date of the service token")
35
36
cmd.Flags().StringSliceVar(&args.Roles, "roles", []string{}, "Roles assigned to the service token")
37
+
cmd.Flags().StringVar(&args.DedicatedSubject, "dedicatedSubject", "", "Subject solely created for usage with this token. The dedicated subject is cleaned after the token is deleted")
*UserAuthorizationApi* | [**GetUserAuthorizationFor**](docs/UserAuthorizationApi.md#getuserauthorizationfor) | **Get** /user/authorization/for | Is the current user authorized for the provided permission
235
+
*UserAuthorizationApi* | [**GetUserAuthorizationFor**](docs/UserAuthorizationApi.md#getuserauthorizationfor) | **Get** /user/authorization/for | Is the current user authorized for the provided permission and resource
236
236
*UserProfileApi* | [**GetCurrentUserProfile**](docs/UserProfileApi.md#getcurrentuserprofile) | **Get** /user/profile | Get current user profile
237
237
*UserProfileApi* | [**SaveCurrentUserProfile**](docs/UserProfileApi.md#savecurrentuserprofile) | **Put** /user/profile | Save current user profile
238
238
*UserSessionApi* | [**GetUserSessionAssumedRole**](docs/UserSessionApi.md#getusersessionassumedrole) | **Get** /user/session/assumedRole | Get the assumed a role for the current session
Copy file name to clipboardExpand all lines: generated/stackstate_api/docs/NewServiceTokenRequest.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
**Name** | **string** | |
8
8
**ExpiryDate** | Pointer to **int64** | | [optional]
9
9
**Roles** | **[]string** | |
10
+
**DedicatedSubject** | Pointer to **string** | | [optional]
10
11
11
12
## Methods
12
13
@@ -92,6 +93,31 @@ and a boolean to check if the value has been set.
92
93
SetRoles sets Roles field to given value.
93
94
94
95
96
+
### GetDedicatedSubject
97
+
98
+
`func (o *NewServiceTokenRequest) GetDedicatedSubject() string`
99
+
100
+
GetDedicatedSubject returns the DedicatedSubject field if non-nil, zero value otherwise.
101
+
102
+
### GetDedicatedSubjectOk
103
+
104
+
`func (o *NewServiceTokenRequest) GetDedicatedSubjectOk() (*string, bool)`
105
+
106
+
GetDedicatedSubjectOk returns a tuple with the DedicatedSubject field if it's non-nil, zero value otherwise
107
+
and a boolean to check if the value has been set.
108
+
109
+
### SetDedicatedSubject
110
+
111
+
`func (o *NewServiceTokenRequest) SetDedicatedSubject(v string)`
112
+
113
+
SetDedicatedSubject sets DedicatedSubject field to given value.
114
+
115
+
### HasDedicatedSubject
116
+
117
+
`func (o *NewServiceTokenRequest) HasDedicatedSubject() bool`
118
+
119
+
HasDedicatedSubject returns a boolean if a field has been set.
120
+
95
121
96
122
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
Copy file name to clipboardExpand all lines: generated/stackstate_api/docs/ServiceToken.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
**Description** | Pointer to **string** | | [optional]
11
11
**Expiration** | Pointer to **int64** | | [optional]
12
12
**Roles** | **[]string** | |
13
+
**DedicatedSubject** | Pointer to **string** | | [optional]
13
14
14
15
## Methods
15
16
@@ -170,6 +171,31 @@ and a boolean to check if the value has been set.
170
171
SetRoles sets Roles field to given value.
171
172
172
173
174
+
### GetDedicatedSubject
175
+
176
+
`func (o *ServiceToken) GetDedicatedSubject() string`
177
+
178
+
GetDedicatedSubject returns the DedicatedSubject field if non-nil, zero value otherwise.
179
+
180
+
### GetDedicatedSubjectOk
181
+
182
+
`func (o *ServiceToken) GetDedicatedSubjectOk() (*string, bool)`
183
+
184
+
GetDedicatedSubjectOk returns a tuple with the DedicatedSubject field if it's non-nil, zero value otherwise
185
+
and a boolean to check if the value has been set.
186
+
187
+
### SetDedicatedSubject
188
+
189
+
`func (o *ServiceToken) SetDedicatedSubject(v string)`
190
+
191
+
SetDedicatedSubject sets DedicatedSubject field to given value.
192
+
193
+
### HasDedicatedSubject
194
+
195
+
`func (o *ServiceToken) HasDedicatedSubject() bool`
196
+
197
+
HasDedicatedSubject returns a boolean if a field has been set.
198
+
173
199
174
200
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
Copy file name to clipboardExpand all lines: generated/stackstate_api/docs/UserAuthorizationApi.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@ All URIs are relative to *http://localhost*
4
4
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
-
[**GetUserAuthorizationFor**](UserAuthorizationApi.md#GetUserAuthorizationFor) | **Get** /user/authorization/for | Is the current user authorized for the provided permission
7
+
[**GetUserAuthorizationFor**](UserAuthorizationApi.md#GetUserAuthorizationFor) | **Get** /user/authorization/for | Is the current user authorized for the provided permission and resource
0 commit comments