Skip to content

Commit e8d7e9c

Browse files
committed
chore: auto update client api apecloud/apecloud@d614de6
1 parent e9fe058 commit e8d7e9c

File tree

6 files changed

+179
-71
lines changed

6 files changed

+179
-71
lines changed

.generator/schemas/adminapi.yaml

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24747,6 +24747,33 @@ components:
2474724747
objectExpressionTips:
2474824748
$ref: '#/components/schemas/internationalDesc'
2474924749
nullable: true
24750+
parameterValueType:
24751+
enum:
24752+
- string
24753+
- integer
24754+
type: string
24755+
dataChannelParameter:
24756+
type: object
24757+
properties:
24758+
displayName:
24759+
type: string
24760+
desc:
24761+
$ref: '#/components/schemas/internationalDesc'
24762+
key:
24763+
type: string
24764+
defaultValue:
24765+
type: string
24766+
valueType:
24767+
$ref: '#/components/schemas/parameterValueType'
24768+
required:
24769+
- key
24770+
dataChannelParameterOption:
24771+
type: object
24772+
description: module parameter template, the key is the module name, the value is the parameter template
24773+
additionalProperties:
24774+
type: array
24775+
items:
24776+
$ref: '#/components/schemas/dataChannelParameter'
2475024777
engineMapping:
2475124778
type: object
2475224779
properties:
@@ -24773,6 +24800,10 @@ components:
2477324800
type: array
2477424801
items:
2477524802
type: string
24803+
parameterTemplate:
24804+
description: the parameter template of the engine mapping, has a higher priority than the parameterTemplate in standardDefinition
24805+
$ref: '#/components/schemas/dataChannelParameterOption'
24806+
nullable: true
2477624807
standardResource:
2477724808
type: object
2477824809
properties:
@@ -24784,33 +24815,6 @@ components:
2478424815
type: number
2478524816
format: double
2478624817
nullable: true
24787-
parameterValueType:
24788-
enum:
24789-
- string
24790-
- integer
24791-
type: string
24792-
dataChannelParameter:
24793-
type: object
24794-
properties:
24795-
displayName:
24796-
type: string
24797-
desc:
24798-
$ref: '#/components/schemas/internationalDesc'
24799-
key:
24800-
type: string
24801-
defaultValue:
24802-
type: string
24803-
valueType:
24804-
$ref: '#/components/schemas/parameterValueType'
24805-
required:
24806-
- key
24807-
dataChannelParameterOption:
24808-
type: object
24809-
description: module parameter template, the key is the module name, the value is the parameter template
24810-
additionalProperties:
24811-
type: array
24812-
items:
24813-
$ref: '#/components/schemas/dataChannelParameter'
2481424818
standardDefinition:
2481524819
type: object
2481624820
properties:

.generator/schemas/openapi.yaml

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12213,6 +12213,16 @@ paths:
1221312213
name: channelID
1221412214
schema:
1221512215
type: string
12216+
- description: The source EngineDeifnition name
12217+
in: query
12218+
name: source
12219+
schema:
12220+
type: string
12221+
- description: The target EngineDeifnition name
12222+
in: query
12223+
name: target
12224+
schema:
12225+
type: string
1221612226
- description: The module name
1221712227
in: query
1221812228
name: moduleName
@@ -19693,6 +19703,33 @@ components:
1969319703
objectExpressionTips:
1969419704
$ref: '#/components/schemas/internationalDesc'
1969519705
nullable: true
19706+
parameterValueType:
19707+
enum:
19708+
- string
19709+
- integer
19710+
type: string
19711+
dataChannelParameter:
19712+
type: object
19713+
properties:
19714+
displayName:
19715+
type: string
19716+
desc:
19717+
$ref: '#/components/schemas/internationalDesc'
19718+
key:
19719+
type: string
19720+
defaultValue:
19721+
type: string
19722+
valueType:
19723+
$ref: '#/components/schemas/parameterValueType'
19724+
required:
19725+
- key
19726+
dataChannelParameterOption:
19727+
type: object
19728+
description: module parameter template, the key is the module name, the value is the parameter template
19729+
additionalProperties:
19730+
type: array
19731+
items:
19732+
$ref: '#/components/schemas/dataChannelParameter'
1969619733
engineMapping:
1969719734
type: object
1969819735
properties:
@@ -19719,6 +19756,10 @@ components:
1971919756
type: array
1972019757
items:
1972119758
type: string
19759+
parameterTemplate:
19760+
description: the parameter template of the engine mapping, has a higher priority than the parameterTemplate in standardDefinition
19761+
$ref: '#/components/schemas/dataChannelParameterOption'
19762+
nullable: true
1972219763
standardResource:
1972319764
type: object
1972419765
properties:
@@ -19730,33 +19771,6 @@ components:
1973019771
type: number
1973119772
format: double
1973219773
nullable: true
19733-
parameterValueType:
19734-
enum:
19735-
- string
19736-
- integer
19737-
type: string
19738-
dataChannelParameter:
19739-
type: object
19740-
properties:
19741-
displayName:
19742-
type: string
19743-
desc:
19744-
$ref: '#/components/schemas/internationalDesc'
19745-
key:
19746-
type: string
19747-
defaultValue:
19748-
type: string
19749-
valueType:
19750-
$ref: '#/components/schemas/parameterValueType'
19751-
required:
19752-
- key
19753-
dataChannelParameterOption:
19754-
type: object
19755-
description: module parameter template, the key is the module name, the value is the parameter template
19756-
additionalProperties:
19757-
type: array
19758-
items:
19759-
$ref: '#/components/schemas/dataChannelParameter'
1976019774
standardDefinition:
1976119775
type: object
1976219776
properties:

apecloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 37dfa8c01bebd761f2205741d657c22679b97241
1+
Subproject commit d614de6d7ea4f0190b77f414378dd113bca7670d

api/kbcloud/admin/model_engine_mapping.go

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ type EngineMapping struct {
1616
ReplicationMetadata *ReplicationMetadataObject `json:"replicationMetadata,omitempty"`
1717
Descriptions *MappingDescription `json:"descriptions,omitempty"`
1818
PreCheckers []string `json:"preCheckers,omitempty"`
19+
// module parameter template, the key is the module name, the value is the parameter template
20+
ParameterTemplate map[string][]DataChannelParameter `json:"parameterTemplate,omitempty"`
1921
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2022
UnparsedObject map[string]interface{} `json:"-"`
2123
AdditionalProperties map[string]interface{} `json:"-"`
@@ -234,6 +236,34 @@ func (o *EngineMapping) SetPreCheckers(v []string) {
234236
o.PreCheckers = v
235237
}
236238

239+
// GetParameterTemplate returns the ParameterTemplate field value if set, zero value otherwise.
240+
func (o *EngineMapping) GetParameterTemplate() map[string][]DataChannelParameter {
241+
if o == nil || o.ParameterTemplate == nil {
242+
var ret map[string][]DataChannelParameter
243+
return ret
244+
}
245+
return o.ParameterTemplate
246+
}
247+
248+
// GetParameterTemplateOk returns a tuple with the ParameterTemplate field value if set, nil otherwise
249+
// and a boolean to check if the value has been set.
250+
func (o *EngineMapping) GetParameterTemplateOk() (*map[string][]DataChannelParameter, bool) {
251+
if o == nil || o.ParameterTemplate == nil {
252+
return nil, false
253+
}
254+
return &o.ParameterTemplate, true
255+
}
256+
257+
// HasParameterTemplate returns a boolean if a field has been set.
258+
func (o *EngineMapping) HasParameterTemplate() bool {
259+
return o != nil && o.ParameterTemplate != nil
260+
}
261+
262+
// SetParameterTemplate gets a reference to the given map[string][]DataChannelParameter and assigns it to the ParameterTemplate field.
263+
func (o *EngineMapping) SetParameterTemplate(v map[string][]DataChannelParameter) {
264+
o.ParameterTemplate = v
265+
}
266+
237267
// MarshalJSON serializes the struct using spec logic.
238268
func (o EngineMapping) MarshalJSON() ([]byte, error) {
239269
toSerialize := map[string]interface{}{}
@@ -261,6 +291,9 @@ func (o EngineMapping) MarshalJSON() ([]byte, error) {
261291
if o.PreCheckers != nil {
262292
toSerialize["preCheckers"] = o.PreCheckers
263293
}
294+
if o.ParameterTemplate != nil {
295+
toSerialize["parameterTemplate"] = o.ParameterTemplate
296+
}
264297

265298
for key, value := range o.AdditionalProperties {
266299
toSerialize[key] = value
@@ -271,20 +304,21 @@ func (o EngineMapping) MarshalJSON() ([]byte, error) {
271304
// UnmarshalJSON deserializes the given payload.
272305
func (o *EngineMapping) UnmarshalJSON(bytes []byte) (err error) {
273306
all := struct {
274-
Source *string `json:"source,omitempty"`
275-
Target *string `json:"target,omitempty"`
276-
Modules []string `json:"modules,omitempty"`
277-
Events [][]EventObject `json:"events,omitempty"`
278-
ReplicationMetadata *ReplicationMetadataObject `json:"replicationMetadata,omitempty"`
279-
Descriptions *MappingDescription `json:"descriptions,omitempty"`
280-
PreCheckers []string `json:"preCheckers,omitempty"`
307+
Source *string `json:"source,omitempty"`
308+
Target *string `json:"target,omitempty"`
309+
Modules []string `json:"modules,omitempty"`
310+
Events [][]EventObject `json:"events,omitempty"`
311+
ReplicationMetadata *ReplicationMetadataObject `json:"replicationMetadata,omitempty"`
312+
Descriptions *MappingDescription `json:"descriptions,omitempty"`
313+
PreCheckers []string `json:"preCheckers,omitempty"`
314+
ParameterTemplate map[string][]DataChannelParameter `json:"parameterTemplate,omitempty"`
281315
}{}
282316
if err = common.Unmarshal(bytes, &all); err != nil {
283317
return err
284318
}
285319
additionalProperties := make(map[string]interface{})
286320
if err = common.Unmarshal(bytes, &additionalProperties); err == nil {
287-
common.DeleteKeys(additionalProperties, &[]string{"source", "target", "modules", "events", "replicationMetadata", "descriptions", "preCheckers"})
321+
common.DeleteKeys(additionalProperties, &[]string{"source", "target", "modules", "events", "replicationMetadata", "descriptions", "preCheckers", "parameterTemplate"})
288322
} else {
289323
return err
290324
}
@@ -303,6 +337,7 @@ func (o *EngineMapping) UnmarshalJSON(bytes []byte) (err error) {
303337
}
304338
o.Descriptions = all.Descriptions
305339
o.PreCheckers = all.PreCheckers
340+
o.ParameterTemplate = all.ParameterTemplate
306341

307342
if len(additionalProperties) > 0 {
308343
o.AdditionalProperties = additionalProperties

api/kbcloud/api_data_replication.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ func (a *DataReplicationApi) ListDataChannelEvents(ctx _context.Context, orgName
645645
type ListDataChannelParametersOptionalParameters struct {
646646
StandardName *string
647647
ChannelId *string
648+
Source *string
649+
Target *string
648650
ModuleName *string
649651
}
650652

@@ -666,6 +668,18 @@ func (r *ListDataChannelParametersOptionalParameters) WithChannelId(channelId st
666668
return r
667669
}
668670

671+
// WithSource sets the corresponding parameter name and returns the struct.
672+
func (r *ListDataChannelParametersOptionalParameters) WithSource(source string) *ListDataChannelParametersOptionalParameters {
673+
r.Source = &source
674+
return r
675+
}
676+
677+
// WithTarget sets the corresponding parameter name and returns the struct.
678+
func (r *ListDataChannelParametersOptionalParameters) WithTarget(target string) *ListDataChannelParametersOptionalParameters {
679+
r.Target = &target
680+
return r
681+
}
682+
669683
// WithModuleName sets the corresponding parameter name and returns the struct.
670684
func (r *ListDataChannelParametersOptionalParameters) WithModuleName(moduleName string) *ListDataChannelParametersOptionalParameters {
671685
r.ModuleName = &moduleName
@@ -716,6 +730,12 @@ func (a *DataReplicationApi) ListDataChannelParameters(ctx _context.Context, org
716730
if optionalParams.ChannelId != nil {
717731
localVarQueryParams.Add("channelID", common.ParameterToString(*optionalParams.ChannelId, ""))
718732
}
733+
if optionalParams.Source != nil {
734+
localVarQueryParams.Add("source", common.ParameterToString(*optionalParams.Source, ""))
735+
}
736+
if optionalParams.Target != nil {
737+
localVarQueryParams.Add("target", common.ParameterToString(*optionalParams.Target, ""))
738+
}
719739
if optionalParams.ModuleName != nil {
720740
localVarQueryParams.Add("moduleName", common.ParameterToString(*optionalParams.ModuleName, ""))
721741
}

0 commit comments

Comments
 (0)