diff --git a/services/dremio/oas_commit b/services/dremio/oas_commit index b129c2291..8eda53fca 100644 --- a/services/dremio/oas_commit +++ b/services/dremio/oas_commit @@ -1 +1 @@ -98c11e0ee4834ddaaa474eccc437d234e6276a70 +40d4661272408ae0a917bad81019c08be166eb5a diff --git a/services/dremio/v1alphaapi/api_default.go b/services/dremio/v1alphaapi/api_default.go index 3e9c0e4e9..ce47e0098 100644 --- a/services/dremio/v1alphaapi/api_default.go +++ b/services/dremio/v1alphaapi/api_default.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/api_default_mock.go b/services/dremio/v1alphaapi/api_default_mock.go index c48e7f47c..bf7588595 100644 --- a/services/dremio/v1alphaapi/api_default_mock.go +++ b/services/dremio/v1alphaapi/api_default_mock.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/client.go b/services/dremio/v1alphaapi/client.go index 6101759c1..fcf685140 100644 --- a/services/dremio/v1alphaapi/client.go +++ b/services/dremio/v1alphaapi/client.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/configuration.go b/services/dremio/v1alphaapi/configuration.go index 0ddc9c9df..931ffbb73 100644 --- a/services/dremio/v1alphaapi/configuration.go +++ b/services/dremio/v1alphaapi/configuration.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_auth_parameters.go b/services/dremio/v1alphaapi/model_auth_parameters.go index 42b8f3a01..f64dad374 100644 --- a/services/dremio/v1alphaapi/model_auth_parameters.go +++ b/services/dremio/v1alphaapi/model_auth_parameters.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_authentication.go b/services/dremio/v1alphaapi/model_authentication.go index f210f083f..a7b304367 100644 --- a/services/dremio/v1alphaapi/model_authentication.go +++ b/services/dremio/v1alphaapi/model_authentication.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_authentication_type.go b/services/dremio/v1alphaapi/model_authentication_type.go index 4783d2631..5d89e36f3 100644 --- a/services/dremio/v1alphaapi/model_authentication_type.go +++ b/services/dremio/v1alphaapi/model_authentication_type.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_azuread.go b/services/dremio/v1alphaapi/model_azuread.go index b001d5f91..7e272cccc 100644 --- a/services/dremio/v1alphaapi/model_azuread.go +++ b/services/dremio/v1alphaapi/model_azuread.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ @@ -25,7 +25,7 @@ type Azuread struct { // The Azure AD client ID. ClientId string `json:"clientId"` // The Azure AD client secret. - ClientSecret string `json:"clientSecret"` + ClientSecret *string `json:"clientSecret,omitempty"` // The Azure AD redirect URL. RedirectUrl *string `json:"redirectUrl,omitempty"` AdditionalProperties map[string]interface{} @@ -37,11 +37,10 @@ type _Azuread Azuread // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAzuread(authorityUrl string, clientId string, clientSecret string) *Azuread { +func NewAzuread(authorityUrl string, clientId string) *Azuread { this := Azuread{} this.AuthorityUrl = authorityUrl this.ClientId = clientId - this.ClientSecret = clientSecret return &this } @@ -101,28 +100,36 @@ func (o *Azuread) SetClientId(v string) { o.ClientId = v } -// GetClientSecret returns the ClientSecret field value +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. func (o *Azuread) GetClientSecret() string { - if o == nil { + if o == nil || IsNil(o.ClientSecret) { var ret string return ret } - - return o.ClientSecret + return *o.ClientSecret } -// GetClientSecretOk returns a tuple with the ClientSecret field value +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Azuread) GetClientSecretOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.ClientSecret) { return nil, false } - return &o.ClientSecret, true + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *Azuread) HasClientSecret() bool { + if o != nil && !IsNil(o.ClientSecret) { + return true + } + + return false } -// SetClientSecret sets field value +// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field. func (o *Azuread) SetClientSecret(v string) { - o.ClientSecret = v + o.ClientSecret = &v } // GetRedirectUrl returns the RedirectUrl field value if set, zero value otherwise. @@ -169,7 +176,9 @@ func (o Azuread) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["authorityUrl"] = o.AuthorityUrl toSerialize["clientId"] = o.ClientId - toSerialize["clientSecret"] = o.ClientSecret + if !IsNil(o.ClientSecret) { + toSerialize["clientSecret"] = o.ClientSecret + } if !IsNil(o.RedirectUrl) { toSerialize["redirectUrl"] = o.RedirectUrl } @@ -188,7 +197,6 @@ func (o *Azuread) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "authorityUrl", "clientId", - "clientSecret", } allProperties := make(map[string]interface{}) diff --git a/services/dremio/v1alphaapi/model_create_dremio_instance_payload.go b/services/dremio/v1alphaapi/model_create_dremio_instance_payload.go index 0c24d8b14..08c0f4080 100644 --- a/services/dremio/v1alphaapi/model_create_dremio_instance_payload.go +++ b/services/dremio/v1alphaapi/model_create_dremio_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_create_dremio_user_payload.go b/services/dremio/v1alphaapi/model_create_dremio_user_payload.go index cd2703302..7087ea02f 100644 --- a/services/dremio/v1alphaapi/model_create_dremio_user_payload.go +++ b/services/dremio/v1alphaapi/model_create_dremio_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_dremio_response.go b/services/dremio/v1alphaapi/model_dremio_response.go index c97e05aa4..4fa607061 100644 --- a/services/dremio/v1alphaapi/model_dremio_response.go +++ b/services/dremio/v1alphaapi/model_dremio_response.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_dremio_response_state.go b/services/dremio/v1alphaapi/model_dremio_response_state.go index 13b4d2486..219698782 100644 --- a/services/dremio/v1alphaapi/model_dremio_response_state.go +++ b/services/dremio/v1alphaapi/model_dremio_response_state.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_dremio_user_response.go b/services/dremio/v1alphaapi/model_dremio_user_response.go index 0bce9b139..5cd7028cb 100644 --- a/services/dremio/v1alphaapi/model_dremio_user_response.go +++ b/services/dremio/v1alphaapi/model_dremio_user_response.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_dremio_user_response_state.go b/services/dremio/v1alphaapi/model_dremio_user_response_state.go index feacc8f83..89417f94d 100644 --- a/services/dremio/v1alphaapi/model_dremio_user_response_state.go +++ b/services/dremio/v1alphaapi/model_dremio_user_response_state.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_endpoints.go b/services/dremio/v1alphaapi/model_endpoints.go index 1d2ec56ab..85995823b 100644 --- a/services/dremio/v1alphaapi/model_endpoints.go +++ b/services/dremio/v1alphaapi/model_endpoints.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_list_dremio_users_response.go b/services/dremio/v1alphaapi/model_list_dremio_users_response.go index 14d194c3c..763c90fd3 100644 --- a/services/dremio/v1alphaapi/model_list_dremio_users_response.go +++ b/services/dremio/v1alphaapi/model_list_dremio_users_response.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_list_dremios_response.go b/services/dremio/v1alphaapi/model_list_dremios_response.go index 48e00ff4d..34af98db1 100644 --- a/services/dremio/v1alphaapi/model_list_dremios_response.go +++ b/services/dremio/v1alphaapi/model_list_dremios_response.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_oauth.go b/services/dremio/v1alphaapi/model_oauth.go index 7e6273c39..3c3af8e60 100644 --- a/services/dremio/v1alphaapi/model_oauth.go +++ b/services/dremio/v1alphaapi/model_oauth.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ @@ -25,7 +25,7 @@ type Oauth struct { // The client ID assigned by the Identity Provider. ClientId string `json:"clientId"` // The client secret generated by the Identity Provider. - ClientSecret string `json:"clientSecret"` + ClientSecret *string `json:"clientSecret,omitempty"` JwtClaims OauthJwtClaims `json:"jwtClaims"` // Any additional parameters the Identity Provider requires. Parameters []AuthParameters `json:"parameters,omitempty"` @@ -42,11 +42,10 @@ type _Oauth Oauth // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewOauth(authorityUrl string, clientId string, clientSecret string, jwtClaims OauthJwtClaims) *Oauth { +func NewOauth(authorityUrl string, clientId string, jwtClaims OauthJwtClaims) *Oauth { this := Oauth{} this.AuthorityUrl = authorityUrl this.ClientId = clientId - this.ClientSecret = clientSecret this.JwtClaims = jwtClaims var scope string = "openid profile" this.Scope = &scope @@ -111,28 +110,36 @@ func (o *Oauth) SetClientId(v string) { o.ClientId = v } -// GetClientSecret returns the ClientSecret field value +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. func (o *Oauth) GetClientSecret() string { - if o == nil { + if o == nil || IsNil(o.ClientSecret) { var ret string return ret } - - return o.ClientSecret + return *o.ClientSecret } -// GetClientSecretOk returns a tuple with the ClientSecret field value +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Oauth) GetClientSecretOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.ClientSecret) { return nil, false } - return &o.ClientSecret, true + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *Oauth) HasClientSecret() bool { + if o != nil && !IsNil(o.ClientSecret) { + return true + } + + return false } -// SetClientSecret sets field value +// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field. func (o *Oauth) SetClientSecret(v string) { - o.ClientSecret = v + o.ClientSecret = &v } // GetJwtClaims returns the JwtClaims field value @@ -267,7 +274,9 @@ func (o Oauth) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["authorityUrl"] = o.AuthorityUrl toSerialize["clientId"] = o.ClientId - toSerialize["clientSecret"] = o.ClientSecret + if !IsNil(o.ClientSecret) { + toSerialize["clientSecret"] = o.ClientSecret + } toSerialize["jwtClaims"] = o.JwtClaims if !IsNil(o.Parameters) { toSerialize["parameters"] = o.Parameters @@ -293,7 +302,6 @@ func (o *Oauth) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "authorityUrl", "clientId", - "clientSecret", "jwtClaims", } diff --git a/services/dremio/v1alphaapi/model_oauth_jwt_claims.go b/services/dremio/v1alphaapi/model_oauth_jwt_claims.go index 4d0577f10..a255d6405 100644 --- a/services/dremio/v1alphaapi/model_oauth_jwt_claims.go +++ b/services/dremio/v1alphaapi/model_oauth_jwt_claims.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/model_update_dremio_instance_payload.go b/services/dremio/v1alphaapi/model_update_dremio_instance_payload.go index 70f24d83b..7f3b69d79 100644 --- a/services/dremio/v1alphaapi/model_update_dremio_instance_payload.go +++ b/services/dremio/v1alphaapi/model_update_dremio_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/response.go b/services/dremio/v1alphaapi/response.go index cb8ceb8e7..3f4c8e649 100644 --- a/services/dremio/v1alphaapi/response.go +++ b/services/dremio/v1alphaapi/response.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */ diff --git a/services/dremio/v1alphaapi/utils.go b/services/dremio/v1alphaapi/utils.go index 3ab2e78a0..baebf818c 100644 --- a/services/dremio/v1alphaapi/utils.go +++ b/services/dremio/v1alphaapi/utils.go @@ -1,7 +1,7 @@ /* STACKIT Dremio API -This API provides endpoints for managing Dremios. +This API provides endpoints for managing Dremio instances and users. API version: 1alpha.0.0 */