Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 1 cmd/rbac/rbac_create_subject.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func RunCreateSubjectCommand(args *CreateSubjectArgs) di.CmdWithApiFn {
subject := stackstate_api.NewCreateSubject()
if args.Scope != "" {
subject.SetQuery(args.Scope)
subject.SetVersion("0.0.1")
}

resp, err := api.SubjectApi.CreateSubject(cli.Context, args.Subject).
Expand Down
1 change: 1 addition & 0 deletions 1 cmd/rbac/rbac_create_subject_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func TestCreateSubject(t *testing.T) {

otherExpectedSubject := stackstate_api.NewCreateSubject()
otherExpectedSubject.SetQuery(SomeScope)
otherExpectedSubject.SetVersion("0.0.1")
assert.Equal(t, otherExpectedSubject, calls[0].PcreateSubject)

expectedStrings := []string{
Expand Down
5 changes: 5 additions & 0 deletions 5 generated/stackstate_api/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10715,12 +10715,17 @@ components:
CreateSubject:
example:
query: query
version: version
properties:
query:
type: string
version:
type: string
type: object
Query:
type: string
Version:
type: string
SubscriptionState:
discriminator:
propertyName: _type
Expand Down
26 changes: 26 additions & 0 deletions 26 generated/stackstate_api/docs/CreateSubject.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Query** | Pointer to **string** | | [optional]
**Version** | Pointer to **string** | | [optional]

## Methods

Expand Down Expand Up @@ -50,6 +51,31 @@ SetQuery sets Query field to given value.

HasQuery returns a boolean if a field has been set.

### GetVersion

`func (o *CreateSubject) GetVersion() string`

GetVersion returns the Version field if non-nil, zero value otherwise.

### GetVersionOk

`func (o *CreateSubject) GetVersionOk() (*string, bool)`

GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetVersion

`func (o *CreateSubject) SetVersion(v string)`

SetVersion sets Version field to given value.

### HasVersion

`func (o *CreateSubject) HasVersion() bool`

HasVersion returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
38 changes: 37 additions & 1 deletion 38 generated/stackstate_api/model_create_subject.go

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

2 changes: 1 addition & 1 deletion 2 stackstate_openapi/openapi_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
eb3e3df341ccfd167ed8c2e2c14b63a38be686b3
d8fc5194c51017c8e938a1b54f94bdb8a857d6c8
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.