Skip to content

Generator: Update SDK /services/telemetrylink#6789

Closed
stackit-pipeline wants to merge 1 commit into
mainfrom
generator-bot-25000604884/telemetrylink
Closed

Generator: Update SDK /services/telemetrylink#6789
stackit-pipeline wants to merge 1 commit into
mainfrom
generator-bot-25000604884/telemetrylink

Conversation

@stackit-pipeline
Copy link
Copy Markdown
Contributor

Generated from GitHub run 25000604884
spec comparison:

@param regionId The STACKIT region name the resource is located in.
@return ApiPatchFolderTelemetryLinkRequest
*/
PatchFolderTelemetryLink(ctx context.Context, folderId string, regionId string) ApiPatchFolderTelemetryLinkRequest
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch methods should be named "PartialUpdate..."

@param regionId The STACKIT region name the resource is located in.
@return ApiPutFolderTelemetryLinkRequest
*/
PutFolderTelemetryLink(ctx context.Context, folderId string, regionId string) ApiPutFolderTelemetryLinkRequest
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this specific case, it will be "CreateOrUpdate" because based on the description, the Put endpoint is also used for the Createion


// GetFolderTelemetryLinkExecute executes the request
// @return TelemetryLinkResponse
GetFolderTelemetryLinkExecute(r ApiGetFolderTelemetryLinkRequest) (*TelemetryLinkResponse, error)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment all GET, PUT and PATCH endpoints share the same response schema/struct TelemetryLinkResponse. So the response should be everywhere the same. Is this correct?

If you want to change in the future the response of only the [Action]FolderTelemetryLink endpoints, this will be a breaking change. Because then you would need to replace the schema, what results here to a new go struct and customers have to make changes.

So I would suggest to have separate response schemas to be in the future more flexible.

@Fyusel
Copy link
Copy Markdown
Contributor

Fyusel commented May 5, 2026

fixed in #7123

@Fyusel Fyusel closed this May 5, 2026
@Fyusel Fyusel deleted the generator-bot-25000604884/telemetrylink branch May 5, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants