diff --git a/gen/iwfidl/docs/WorkflowSetDataObjectsRequest.md b/gen/iwfidl/docs/WorkflowSetDataObjectsRequest.md new file mode 100644 index 00000000..cd5f200b --- /dev/null +++ b/gen/iwfidl/docs/WorkflowSetDataObjectsRequest.md @@ -0,0 +1,103 @@ +# WorkflowSetDataObjectsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WorkflowId** | **string** | | +**WorkflowRunId** | Pointer to **string** | | [optional] +**Objects** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional] + +## Methods + +### NewWorkflowSetDataObjectsRequest + +`func NewWorkflowSetDataObjectsRequest(workflowId string, ) *WorkflowSetDataObjectsRequest` + +NewWorkflowSetDataObjectsRequest instantiates a new WorkflowSetDataObjectsRequest object +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 + +### NewWorkflowSetDataObjectsRequestWithDefaults + +`func NewWorkflowSetDataObjectsRequestWithDefaults() *WorkflowSetDataObjectsRequest` + +NewWorkflowSetDataObjectsRequestWithDefaults instantiates a new WorkflowSetDataObjectsRequest object +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 + +### GetWorkflowId + +`func (o *WorkflowSetDataObjectsRequest) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *WorkflowSetDataObjectsRequest) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *WorkflowSetDataObjectsRequest) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + + +### GetWorkflowRunId + +`func (o *WorkflowSetDataObjectsRequest) GetWorkflowRunId() string` + +GetWorkflowRunId returns the WorkflowRunId field if non-nil, zero value otherwise. + +### GetWorkflowRunIdOk + +`func (o *WorkflowSetDataObjectsRequest) GetWorkflowRunIdOk() (*string, bool)` + +GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRunId + +`func (o *WorkflowSetDataObjectsRequest) SetWorkflowRunId(v string)` + +SetWorkflowRunId sets WorkflowRunId field to given value. + +### HasWorkflowRunId + +`func (o *WorkflowSetDataObjectsRequest) HasWorkflowRunId() bool` + +HasWorkflowRunId returns a boolean if a field has been set. + +### GetObjects + +`func (o *WorkflowSetDataObjectsRequest) GetObjects() []KeyValue` + +GetObjects returns the Objects field if non-nil, zero value otherwise. + +### GetObjectsOk + +`func (o *WorkflowSetDataObjectsRequest) GetObjectsOk() (*[]KeyValue, bool)` + +GetObjectsOk returns a tuple with the Objects field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjects + +`func (o *WorkflowSetDataObjectsRequest) SetObjects(v []KeyValue)` + +SetObjects sets Objects field to given value. + +### HasObjects + +`func (o *WorkflowSetDataObjectsRequest) HasObjects() bool` + +HasObjects 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) + + diff --git a/gen/iwfidl/docs/WorkflowSetSearchAttributesRequest.md b/gen/iwfidl/docs/WorkflowSetSearchAttributesRequest.md new file mode 100644 index 00000000..054360c6 --- /dev/null +++ b/gen/iwfidl/docs/WorkflowSetSearchAttributesRequest.md @@ -0,0 +1,103 @@ +# WorkflowSetSearchAttributesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WorkflowId** | **string** | | +**WorkflowRunId** | Pointer to **string** | | [optional] +**SearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional] + +## Methods + +### NewWorkflowSetSearchAttributesRequest + +`func NewWorkflowSetSearchAttributesRequest(workflowId string, ) *WorkflowSetSearchAttributesRequest` + +NewWorkflowSetSearchAttributesRequest instantiates a new WorkflowSetSearchAttributesRequest object +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 + +### NewWorkflowSetSearchAttributesRequestWithDefaults + +`func NewWorkflowSetSearchAttributesRequestWithDefaults() *WorkflowSetSearchAttributesRequest` + +NewWorkflowSetSearchAttributesRequestWithDefaults instantiates a new WorkflowSetSearchAttributesRequest object +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 + +### GetWorkflowId + +`func (o *WorkflowSetSearchAttributesRequest) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *WorkflowSetSearchAttributesRequest) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *WorkflowSetSearchAttributesRequest) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + + +### GetWorkflowRunId + +`func (o *WorkflowSetSearchAttributesRequest) GetWorkflowRunId() string` + +GetWorkflowRunId returns the WorkflowRunId field if non-nil, zero value otherwise. + +### GetWorkflowRunIdOk + +`func (o *WorkflowSetSearchAttributesRequest) GetWorkflowRunIdOk() (*string, bool)` + +GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRunId + +`func (o *WorkflowSetSearchAttributesRequest) SetWorkflowRunId(v string)` + +SetWorkflowRunId sets WorkflowRunId field to given value. + +### HasWorkflowRunId + +`func (o *WorkflowSetSearchAttributesRequest) HasWorkflowRunId() bool` + +HasWorkflowRunId returns a boolean if a field has been set. + +### GetSearchAttributes + +`func (o *WorkflowSetSearchAttributesRequest) GetSearchAttributes() []SearchAttribute` + +GetSearchAttributes returns the SearchAttributes field if non-nil, zero value otherwise. + +### GetSearchAttributesOk + +`func (o *WorkflowSetSearchAttributesRequest) GetSearchAttributesOk() (*[]SearchAttribute, bool)` + +GetSearchAttributesOk returns a tuple with the SearchAttributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchAttributes + +`func (o *WorkflowSetSearchAttributesRequest) SetSearchAttributes(v []SearchAttribute)` + +SetSearchAttributes sets SearchAttributes field to given value. + +### HasSearchAttributes + +`func (o *WorkflowSetSearchAttributesRequest) HasSearchAttributes() bool` + +HasSearchAttributes 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) + + diff --git a/gen/iwfidl/model_workflow_set_data_objects_request.go b/gen/iwfidl/model_workflow_set_data_objects_request.go new file mode 100644 index 00000000..febc7c98 --- /dev/null +++ b/gen/iwfidl/model_workflow_set_data_objects_request.go @@ -0,0 +1,187 @@ +/* +Workflow APIs + +This APIs for iwf SDKs to operate workflows + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package iwfidl + +import ( + "encoding/json" +) + +// checks if the WorkflowSetDataObjectsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowSetDataObjectsRequest{} + +// WorkflowSetDataObjectsRequest struct for WorkflowSetDataObjectsRequest +type WorkflowSetDataObjectsRequest struct { + WorkflowId string `json:"workflowId"` + WorkflowRunId *string `json:"workflowRunId,omitempty"` + Objects []KeyValue `json:"objects,omitempty"` +} + +// NewWorkflowSetDataObjectsRequest instantiates a new WorkflowSetDataObjectsRequest object +// 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 NewWorkflowSetDataObjectsRequest(workflowId string) *WorkflowSetDataObjectsRequest { + this := WorkflowSetDataObjectsRequest{} + this.WorkflowId = workflowId + return &this +} + +// NewWorkflowSetDataObjectsRequestWithDefaults instantiates a new WorkflowSetDataObjectsRequest object +// 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 +func NewWorkflowSetDataObjectsRequestWithDefaults() *WorkflowSetDataObjectsRequest { + this := WorkflowSetDataObjectsRequest{} + return &this +} + +// GetWorkflowId returns the WorkflowId field value +func (o *WorkflowSetDataObjectsRequest) GetWorkflowId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value +// and a boolean to check if the value has been set. +func (o *WorkflowSetDataObjectsRequest) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowId, true +} + +// SetWorkflowId sets field value +func (o *WorkflowSetDataObjectsRequest) SetWorkflowId(v string) { + o.WorkflowId = v +} + +// GetWorkflowRunId returns the WorkflowRunId field value if set, zero value otherwise. +func (o *WorkflowSetDataObjectsRequest) GetWorkflowRunId() string { + if o == nil || IsNil(o.WorkflowRunId) { + var ret string + return ret + } + return *o.WorkflowRunId +} + +// GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowSetDataObjectsRequest) GetWorkflowRunIdOk() (*string, bool) { + if o == nil || IsNil(o.WorkflowRunId) { + return nil, false + } + return o.WorkflowRunId, true +} + +// HasWorkflowRunId returns a boolean if a field has been set. +func (o *WorkflowSetDataObjectsRequest) HasWorkflowRunId() bool { + if o != nil && !IsNil(o.WorkflowRunId) { + return true + } + + return false +} + +// SetWorkflowRunId gets a reference to the given string and assigns it to the WorkflowRunId field. +func (o *WorkflowSetDataObjectsRequest) SetWorkflowRunId(v string) { + o.WorkflowRunId = &v +} + +// GetObjects returns the Objects field value if set, zero value otherwise. +func (o *WorkflowSetDataObjectsRequest) GetObjects() []KeyValue { + if o == nil || IsNil(o.Objects) { + var ret []KeyValue + return ret + } + return o.Objects +} + +// GetObjectsOk returns a tuple with the Objects field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowSetDataObjectsRequest) GetObjectsOk() ([]KeyValue, bool) { + if o == nil || IsNil(o.Objects) { + return nil, false + } + return o.Objects, true +} + +// HasObjects returns a boolean if a field has been set. +func (o *WorkflowSetDataObjectsRequest) HasObjects() bool { + if o != nil && !IsNil(o.Objects) { + return true + } + + return false +} + +// SetObjects gets a reference to the given []KeyValue and assigns it to the Objects field. +func (o *WorkflowSetDataObjectsRequest) SetObjects(v []KeyValue) { + o.Objects = v +} + +func (o WorkflowSetDataObjectsRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowSetDataObjectsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["workflowId"] = o.WorkflowId + if !IsNil(o.WorkflowRunId) { + toSerialize["workflowRunId"] = o.WorkflowRunId + } + if !IsNil(o.Objects) { + toSerialize["objects"] = o.Objects + } + return toSerialize, nil +} + +type NullableWorkflowSetDataObjectsRequest struct { + value *WorkflowSetDataObjectsRequest + isSet bool +} + +func (v NullableWorkflowSetDataObjectsRequest) Get() *WorkflowSetDataObjectsRequest { + return v.value +} + +func (v *NullableWorkflowSetDataObjectsRequest) Set(val *WorkflowSetDataObjectsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowSetDataObjectsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowSetDataObjectsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowSetDataObjectsRequest(val *WorkflowSetDataObjectsRequest) *NullableWorkflowSetDataObjectsRequest { + return &NullableWorkflowSetDataObjectsRequest{value: val, isSet: true} +} + +func (v NullableWorkflowSetDataObjectsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowSetDataObjectsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/gen/iwfidl/model_workflow_set_search_attributes_request.go b/gen/iwfidl/model_workflow_set_search_attributes_request.go new file mode 100644 index 00000000..d17f0a1c --- /dev/null +++ b/gen/iwfidl/model_workflow_set_search_attributes_request.go @@ -0,0 +1,187 @@ +/* +Workflow APIs + +This APIs for iwf SDKs to operate workflows + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package iwfidl + +import ( + "encoding/json" +) + +// checks if the WorkflowSetSearchAttributesRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowSetSearchAttributesRequest{} + +// WorkflowSetSearchAttributesRequest struct for WorkflowSetSearchAttributesRequest +type WorkflowSetSearchAttributesRequest struct { + WorkflowId string `json:"workflowId"` + WorkflowRunId *string `json:"workflowRunId,omitempty"` + SearchAttributes []SearchAttribute `json:"searchAttributes,omitempty"` +} + +// NewWorkflowSetSearchAttributesRequest instantiates a new WorkflowSetSearchAttributesRequest object +// 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 NewWorkflowSetSearchAttributesRequest(workflowId string) *WorkflowSetSearchAttributesRequest { + this := WorkflowSetSearchAttributesRequest{} + this.WorkflowId = workflowId + return &this +} + +// NewWorkflowSetSearchAttributesRequestWithDefaults instantiates a new WorkflowSetSearchAttributesRequest object +// 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 +func NewWorkflowSetSearchAttributesRequestWithDefaults() *WorkflowSetSearchAttributesRequest { + this := WorkflowSetSearchAttributesRequest{} + return &this +} + +// GetWorkflowId returns the WorkflowId field value +func (o *WorkflowSetSearchAttributesRequest) GetWorkflowId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value +// and a boolean to check if the value has been set. +func (o *WorkflowSetSearchAttributesRequest) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowId, true +} + +// SetWorkflowId sets field value +func (o *WorkflowSetSearchAttributesRequest) SetWorkflowId(v string) { + o.WorkflowId = v +} + +// GetWorkflowRunId returns the WorkflowRunId field value if set, zero value otherwise. +func (o *WorkflowSetSearchAttributesRequest) GetWorkflowRunId() string { + if o == nil || IsNil(o.WorkflowRunId) { + var ret string + return ret + } + return *o.WorkflowRunId +} + +// GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowSetSearchAttributesRequest) GetWorkflowRunIdOk() (*string, bool) { + if o == nil || IsNil(o.WorkflowRunId) { + return nil, false + } + return o.WorkflowRunId, true +} + +// HasWorkflowRunId returns a boolean if a field has been set. +func (o *WorkflowSetSearchAttributesRequest) HasWorkflowRunId() bool { + if o != nil && !IsNil(o.WorkflowRunId) { + return true + } + + return false +} + +// SetWorkflowRunId gets a reference to the given string and assigns it to the WorkflowRunId field. +func (o *WorkflowSetSearchAttributesRequest) SetWorkflowRunId(v string) { + o.WorkflowRunId = &v +} + +// GetSearchAttributes returns the SearchAttributes field value if set, zero value otherwise. +func (o *WorkflowSetSearchAttributesRequest) GetSearchAttributes() []SearchAttribute { + if o == nil || IsNil(o.SearchAttributes) { + var ret []SearchAttribute + return ret + } + return o.SearchAttributes +} + +// GetSearchAttributesOk returns a tuple with the SearchAttributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowSetSearchAttributesRequest) GetSearchAttributesOk() ([]SearchAttribute, bool) { + if o == nil || IsNil(o.SearchAttributes) { + return nil, false + } + return o.SearchAttributes, true +} + +// HasSearchAttributes returns a boolean if a field has been set. +func (o *WorkflowSetSearchAttributesRequest) HasSearchAttributes() bool { + if o != nil && !IsNil(o.SearchAttributes) { + return true + } + + return false +} + +// SetSearchAttributes gets a reference to the given []SearchAttribute and assigns it to the SearchAttributes field. +func (o *WorkflowSetSearchAttributesRequest) SetSearchAttributes(v []SearchAttribute) { + o.SearchAttributes = v +} + +func (o WorkflowSetSearchAttributesRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowSetSearchAttributesRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["workflowId"] = o.WorkflowId + if !IsNil(o.WorkflowRunId) { + toSerialize["workflowRunId"] = o.WorkflowRunId + } + if !IsNil(o.SearchAttributes) { + toSerialize["searchAttributes"] = o.SearchAttributes + } + return toSerialize, nil +} + +type NullableWorkflowSetSearchAttributesRequest struct { + value *WorkflowSetSearchAttributesRequest + isSet bool +} + +func (v NullableWorkflowSetSearchAttributesRequest) Get() *WorkflowSetSearchAttributesRequest { + return v.value +} + +func (v *NullableWorkflowSetSearchAttributesRequest) Set(val *WorkflowSetSearchAttributesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowSetSearchAttributesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowSetSearchAttributesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowSetSearchAttributesRequest(val *WorkflowSetSearchAttributesRequest) *NullableWorkflowSetSearchAttributesRequest { + return &NullableWorkflowSetSearchAttributesRequest{value: val, isSet: true} +} + +func (v NullableWorkflowSetSearchAttributesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowSetSearchAttributesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/integ/set_query_attributes_test.go b/integ/set_query_attributes_test.go new file mode 100644 index 00000000..27fff4a4 --- /dev/null +++ b/integ/set_query_attributes_test.go @@ -0,0 +1 @@ +package integ diff --git a/integ/set_search_attributes_test.go b/integ/set_search_attributes_test.go new file mode 100644 index 00000000..27fff4a4 --- /dev/null +++ b/integ/set_search_attributes_test.go @@ -0,0 +1 @@ +package integ