diff --git a/connected_app/api/openapi.yaml b/connected_app/api/openapi.yaml index e1df7e5..e2315f0 100644 --- a/connected_app/api/openapi.yaml +++ b/connected_app/api/openapi.yaml @@ -498,6 +498,11 @@ components: type: object connectedAppRespExt_allOf: properties: + org_id: + description: the organization where the connected app is created + example: bb1f55d6-563z-4f60-845c-207286484re1 + title: org_id + type: string client_id: description: connected app client id example: 7d72415f862044199be3b739848e6adb diff --git a/connected_app/docs/ConnectedAppRespExt.md b/connected_app/docs/ConnectedAppRespExt.md index dbc042f..6ebbdca 100644 --- a/connected_app/docs/ConnectedAppRespExt.md +++ b/connected_app/docs/ConnectedAppRespExt.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **PublicKeys** | Pointer to **[]string** | Application public key (PEM format). Used to validate JWT authorization grants. | [optional] **ClientUri** | Pointer to **string** | | [optional] **Audience** | Pointer to **string** | | [optional] +**OrgId** | Pointer to **string** | the organization where the connected app is created | [optional] **ClientId** | Pointer to **string** | connected app client id | [optional] **ClientSecret** | Pointer to **string** | connected app generated secret | [optional] **OwnerOrgId** | Pointer to **string** | connected app owner organization id | [optional] @@ -214,6 +215,31 @@ SetAudience sets Audience field to given value. HasAudience returns a boolean if a field has been set. +### GetOrgId + +`func (o *ConnectedAppRespExt) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *ConnectedAppRespExt) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *ConnectedAppRespExt) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + +### HasOrgId + +`func (o *ConnectedAppRespExt) HasOrgId() bool` + +HasOrgId returns a boolean if a field has been set. + ### GetClientId `func (o *ConnectedAppRespExt) GetClientId() string` diff --git a/connected_app/docs/ConnectedAppRespExtAllOf.md b/connected_app/docs/ConnectedAppRespExtAllOf.md index bdfc4cf..1a04475 100644 --- a/connected_app/docs/ConnectedAppRespExtAllOf.md +++ b/connected_app/docs/ConnectedAppRespExtAllOf.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**OrgId** | Pointer to **string** | the organization where the connected app is created | [optional] **ClientId** | Pointer to **string** | connected app client id | [optional] **ClientSecret** | Pointer to **string** | connected app generated secret | [optional] **OwnerOrgId** | Pointer to **string** | connected app owner organization id | [optional] @@ -32,6 +33,31 @@ NewConnectedAppRespExtAllOfWithDefaults instantiates a new ConnectedAppRespExtAl This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetOrgId + +`func (o *ConnectedAppRespExtAllOf) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *ConnectedAppRespExtAllOf) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *ConnectedAppRespExtAllOf) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + +### HasOrgId + +`func (o *ConnectedAppRespExtAllOf) HasOrgId() bool` + +HasOrgId returns a boolean if a field has been set. + ### GetClientId `func (o *ConnectedAppRespExtAllOf) GetClientId() string` diff --git a/connected_app/model_connected_app_resp_ext.go b/connected_app/model_connected_app_resp_ext.go index 99c3dbd..899d817 100644 --- a/connected_app/model_connected_app_resp_ext.go +++ b/connected_app/model_connected_app_resp_ext.go @@ -27,6 +27,8 @@ type ConnectedAppRespExt struct { PublicKeys []string `json:"public_keys,omitempty"` ClientUri *string `json:"client_uri,omitempty"` Audience *string `json:"audience,omitempty"` + // the organization where the connected app is created + OrgId *string `json:"org_id,omitempty"` // connected app client id ClientId *string `json:"client_id,omitempty"` // connected app generated secret @@ -282,6 +284,38 @@ func (o *ConnectedAppRespExt) SetAudience(v string) { o.Audience = &v } +// GetOrgId returns the OrgId field value if set, zero value otherwise. +func (o *ConnectedAppRespExt) GetOrgId() string { + if o == nil || IsNil(o.OrgId) { + var ret string + return ret + } + return *o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedAppRespExt) GetOrgIdOk() (*string, bool) { + if o == nil || IsNil(o.OrgId) { + return nil, false + } + return o.OrgId, true +} + +// HasOrgId returns a boolean if a field has been set. +func (o *ConnectedAppRespExt) HasOrgId() bool { + if o != nil && !IsNil(o.OrgId) { + return true + } + + return false +} + +// SetOrgId gets a reference to the given string and assigns it to the OrgId field. +func (o *ConnectedAppRespExt) SetOrgId(v string) { + o.OrgId = &v +} + // GetClientId returns the ClientId field value if set, zero value otherwise. func (o *ConnectedAppRespExt) GetClientId() string { if o == nil || IsNil(o.ClientId) { @@ -569,6 +603,9 @@ func (o ConnectedAppRespExt) ToMap() (map[string]interface{}, error) { if !IsNil(o.Audience) { toSerialize["audience"] = o.Audience } + if !IsNil(o.OrgId) { + toSerialize["org_id"] = o.OrgId + } if !IsNil(o.ClientId) { toSerialize["client_id"] = o.ClientId } diff --git a/connected_app/model_connected_app_resp_ext_all_of.go b/connected_app/model_connected_app_resp_ext_all_of.go index b13e480..1115dfb 100644 --- a/connected_app/model_connected_app_resp_ext_all_of.go +++ b/connected_app/model_connected_app_resp_ext_all_of.go @@ -19,6 +19,8 @@ var _ MappedNullable = &ConnectedAppRespExtAllOf{} // ConnectedAppRespExtAllOf struct for ConnectedAppRespExtAllOf type ConnectedAppRespExtAllOf struct { + // the organization where the connected app is created + OrgId *string `json:"org_id,omitempty"` // connected app client id ClientId *string `json:"client_id,omitempty"` // connected app generated secret @@ -50,6 +52,38 @@ func NewConnectedAppRespExtAllOfWithDefaults() *ConnectedAppRespExtAllOf { return &this } +// GetOrgId returns the OrgId field value if set, zero value otherwise. +func (o *ConnectedAppRespExtAllOf) GetOrgId() string { + if o == nil || IsNil(o.OrgId) { + var ret string + return ret + } + return *o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectedAppRespExtAllOf) GetOrgIdOk() (*string, bool) { + if o == nil || IsNil(o.OrgId) { + return nil, false + } + return o.OrgId, true +} + +// HasOrgId returns a boolean if a field has been set. +func (o *ConnectedAppRespExtAllOf) HasOrgId() bool { + if o != nil && !IsNil(o.OrgId) { + return true + } + + return false +} + +// SetOrgId gets a reference to the given string and assigns it to the OrgId field. +func (o *ConnectedAppRespExtAllOf) SetOrgId(v string) { + o.OrgId = &v +} + // GetClientId returns the ClientId field value if set, zero value otherwise. func (o *ConnectedAppRespExtAllOf) GetClientId() string { if o == nil || IsNil(o.ClientId) { @@ -316,6 +350,9 @@ func (o ConnectedAppRespExtAllOf) MarshalJSON() ([]byte, error) { func (o ConnectedAppRespExtAllOf) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.OrgId) { + toSerialize["org_id"] = o.OrgId + } if !IsNil(o.ClientId) { toSerialize["client_id"] = o.ClientId }