Skip to content

Commit

Permalink
Merge pull request #8 from konpyutaika/patch_label_index
Browse files Browse the repository at this point in the history
Patch label index
  • Loading branch information
juldrixx authored Sep 17, 2022
2 parents 9f85795 + 928c0c4 commit 94b3b7d
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 15 deletions.
18 changes: 15 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ Manual changes :
- In `model_parameter_dto`, replace :

```golang
Value string `json:"value,omitempty"`
Description string `json:"value,omitempty"`
```

by :

```golang
Value *string `json:"value,omitempty"`
Description *string `json:"value,omitempty"`
```

- replace
Expand All @@ -72,7 +72,19 @@ Manual changes :
// The timestamp of when the request was last updated
LastUpdated string `json:"lastUpdated,omitempty"`
```

- replace

```golang
// The index of the bend point where to place the connection label.
LabelIndex int32 `json:"labelIndex,omitempty"`
```

by :

```golang
// The index of the bend point where to place the connection label.
LabelIndex int32 `json:"labelIndex"`
```



Expand Down
2 changes: 1 addition & 1 deletion pkg/nifi/model_connection_dto.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ConnectionDto struct {
// The name of the connection.
Name string `json:"name,omitempty"`
// The index of the bend point where to place the connection label.
LabelIndex int32 `json:"labelIndex,omitempty"`
LabelIndex int32 `json:"labelIndex"`
// The z index of the connection.
GetzIndex int64 `json:"getzIndex,omitempty"`
// The selected relationship that comprise the connection.
Expand Down
6 changes: 3 additions & 3 deletions pkg/nifi/model_connection_entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ type ConnectionEntity struct {
// The bulletins for this component.
Bulletins []BulletinEntity `json:"bulletins,omitempty"`
// Acknowledges that this node is disconnected to allow for mutable requests to proceed.
DisconnectedNodeAcknowledged bool `json:"disconnectedNodeAcknowledged,omitempty"`
Component *ConnectionDto `json:"component,omitempty"`
DisconnectedNodeAcknowledged bool `json:"disconnectedNodeAcknowledged,omitempty"`
Component *ConnectionDto `json:"component,omitempty"`
// The status of the connection.
Status *ConnectionStatusDto `json:"status,omitempty"`
// The bend points on the connection.
Bends []PositionDto `json:"bends,omitempty"`
// The index of the bend point where to place the connection label.
LabelIndex int32 `json:"labelIndex,omitempty"`
LabelIndex int32 `json:"labelIndex"`
// The z index of the connection.
GetzIndex int64 `json:"getzIndex,omitempty"`
// The identifier of the source of this connection.
Expand Down
4 changes: 2 additions & 2 deletions pkg/nifi/model_versioned_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type VersionedConnection struct {
// The destination of the connection.
Destination *ConnectableComponent `json:"destination,omitempty"`
// The index of the bend point where to place the connection label.
LabelIndex int32 `json:"labelIndex,omitempty"`
LabelIndex int32 `json:"labelIndex"`
// The z index of the connection.
ZIndex int64 `json:"zIndex,omitempty"`
// The selected relationship that comprise the connection.
Expand All @@ -45,7 +45,7 @@ type VersionedConnection struct {
PartitioningAttribute string `json:"partitioningAttribute,omitempty"`
// Whether or not compression should be used when transferring FlowFiles between nodes
LoadBalanceCompression string `json:"loadBalanceCompression,omitempty"`
ComponentType string `json:"componentType,omitempty"`
ComponentType string `json:"componentType,omitempty"`
// The ID of the Process Group that this component belongs to
GroupIdentifier string `json:"groupIdentifier,omitempty"`
}
4 changes: 2 additions & 2 deletions pkg/registry/model_versioned_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type VersionedConnection struct {
// The destination of the connection.
Destination *ConnectableComponent `json:"destination,omitempty"`
// The index of the bend point where to place the connection label.
LabelIndex int32 `json:"labelIndex,omitempty"`
LabelIndex int32 `json:"labelIndex"`
// The z index of the connection.
ZIndex int64 `json:"zIndex,omitempty"`
// The selected relationship that comprise the connection.
Expand All @@ -45,7 +45,7 @@ type VersionedConnection struct {
PartitioningAttribute string `json:"partitioningAttribute,omitempty"`
// Whether or not compression should be used when transferring FlowFiles between nodes
LoadBalanceCompression string `json:"loadBalanceCompression,omitempty"`
ComponentType string `json:"componentType,omitempty"`
ComponentType string `json:"componentType,omitempty"`
// The ID of the Process Group that this component belongs to
GroupIdentifier string `json:"groupIdentifier,omitempty"`
}
4 changes: 2 additions & 2 deletions resources/client_gen/generate_nifi_api_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
echo Exporting Params
export wv_client_name=${wv_client_name:-nifi}

export wv_codegen_filename=${wv_codegen_filename:-swagger-codegen-cli-2.4.13.jar}
export wv_codegen_filename=${wv_codegen_filename:-swagger-codegen-cli-2.4.28.jar}
export wv_tmp_dir=${wv_tmp_dir:-${HOME}/Projects/tmp}
export wv_client_dir=${wv_tmp_dir}/${wv_client_name}
export wv_mustache_dir=./swagger_templates
export wv_api_def_dir=./api_defs

export wv_codegen_url=https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.13/${wv_codegen_filename}
export wv_codegen_url=https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.28/${wv_codegen_filename}
export wv_swagger_def=$(ls ${wv_api_def_dir} | grep ${wv_client_name} | sort -V | tail -1)

echo Prepping Workspace
Expand Down
4 changes: 2 additions & 2 deletions resources/client_gen/generate_nifi_registry_api_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
echo Exporting Params
export wv_client_name=${wv_client_name:-registry}

export wv_codegen_filename=${wv_codegen_filename:-swagger-codegen-cli-2.4.13.jar}
export wv_codegen_filename=${wv_codegen_filename:-swagger-codegen-cli-2.4.28.jar}
export wv_tmp_dir=${wv_tmp_dir:-${HOME}/Projects/tmp}
export wv_client_dir=${wv_tmp_dir}/${wv_client_name}
export wv_mustache_dir=./swagger_templates
export wv_api_def_dir=./api_defs

export wv_codegen_url=https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.13/${wv_codegen_filename}
export wv_codegen_url=https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.28/${wv_codegen_filename}
export wv_swagger_def=$(ls ${wv_api_def_dir} | grep ${wv_client_name} | sort -V | tail -1)

echo Prepping Workspace
Expand Down

0 comments on commit 94b3b7d

Please sign in to comment.