Skip to content

Commit

Permalink
fix: name in join token should be optional (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewab authored Feb 29, 2024
1 parent 26fe0a1 commit 5719a4c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 17 deletions.
9 changes: 7 additions & 2 deletions infra_provision/docs/HostactivationJoinToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**ExpiresAt** | Pointer to **time.Time** | | [optional]
**Id** | Pointer to **string** | The resource identifier. | [optional] [readonly]
**LastUsedAt** | Pointer to **time.Time** | | [optional] [readonly]
**Name** | **string** | |
**Name** | Pointer to **string** | | [optional]
**Status** | Pointer to [**JoinTokenJoinTokenStatus**](JoinTokenJoinTokenStatus.md) | | [optional] [default to JOINTOKENJOINTOKENSTATUS_UNKNOWN]
**Tags** | Pointer to **map[string]interface{}** | | [optional]
**TokenId** | Pointer to **string** | first half of the token. | [optional] [readonly]
Expand All @@ -19,7 +19,7 @@ Name | Type | Description | Notes

### NewHostactivationJoinToken

`func NewHostactivationJoinToken(name string, ) *HostactivationJoinToken`
`func NewHostactivationJoinToken() *HostactivationJoinToken`

NewHostactivationJoinToken instantiates a new HostactivationJoinToken object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -178,6 +178,11 @@ and a boolean to check if the value has been set.

SetName sets Name field to given value.

### HasName

`func (o *HostactivationJoinToken) HasName() bool`

HasName returns a boolean if a field has been set.

### GetStatus

Expand Down
4 changes: 2 additions & 2 deletions infra_provision/docs/UIJoinTokenAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
)

func main() {
body := *openapiclient.NewHostactivationJoinToken("Name_example") // HostactivationJoinToken |
body := *openapiclient.NewHostactivationJoinToken() // HostactivationJoinToken |

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
Expand Down Expand Up @@ -377,7 +377,7 @@ import (

func main() {
id := "id_example" // string | An application specific resource identity of a resource
body := *openapiclient.NewHostactivationJoinToken("Name_example") // HostactivationJoinToken |
body := *openapiclient.NewHostactivationJoinToken() // HostactivationJoinToken |

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
Expand Down
35 changes: 22 additions & 13 deletions infra_provision/model_hostactivation_join_token.go

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

0 comments on commit 5719a4c

Please sign in to comment.