Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@
- [v0.21.0](services/secretsmanager/CHANGELOG.md#v0210)
- `v1api`:
- **Breaking Change:** Change type of `SecretIdNumUses` in `Approle`, `CreateApprolePayload` and `UpdateApprolePayload`, `NumUses` and `Version` in `ApproleSecret` and `SecretCount` in `Instance` from `int32` to `int64`; the `secretIdVersion` parameter of `GetApproleSecretId`, `UpdateApproleSecretId` and `DeleteApproleSecretId` is now `int64` as well
- `telemetryrouter`:
- [v0.7.0](services/telemetryrouter/CHANGELOG.md#v070)
- `v1api`:
- **Feature:** New `PartialUpdateTelemetryRouter`, `PartialUpdateDestination`, and `PartialUpdateAccessToken` operations
- **Feature:** New waiters `PartialUpdateTelemetryRouterWaitHandler`, `PartialUpdateDestinationWaitHandler`, and `PartialUpdateAccessTokenWaitHandler`
- **Feature:** Add `DestinationCount` field to `TelemetryRouterResponse` to get the number of destinations TelemetryRouter has
- **Feature:** Add `ResourceLabels` field to `CreateTelemetryRouterPayload`, `UpdateTelemetryRouterPayload`, `PartialUpdateTelemetryRouterPayload` and `TelemetryRouterResponse`
- **Breaking change:** Add regex validation to the `Key` field of `ConfigFilterAttributes`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `BearerToken` and `Uri` fields of `DestinationConfigOpenTelemetry`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Username` and `Password` fields of `DestinationConfigOpenTelemetryBasicAuth`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Bucket` and `Endpoint` fields of `DestinationConfigS3`: `Bucket` may only contain lowercase letters, digits and hyphens, `Endpoint` must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Id` and `Secret` fields of `DestinationConfigS3AccessKey`, which now must be non-empty and must not contain control characters
- `ufw`:
- [v0.3.0](services/ufw/CHANGELOG.md#v030)
- **Breaking Change:** Rule type `PublicIP` is no longer supported: it can no longer be used to create rules (`CreateRulePayload.Type`) or to filter `ListRules`, and the `RULERESPONSETYPE_PUBLIC_IP` value was removed from the `RuleResponseType` enum
Expand Down
79 changes: 79 additions & 0 deletions examples/services/telemetryrouter/telemetryrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,37 @@ func main() {
}
log.Printf("[Telemetry Router API] TelemetryRouter Instance \"%s\" has been successfully updated.\n", createdInstance)

// Partially update the created Telemetry Router Instance
log.Printf("[TelemetryRouter API] Partially updating TelemetryRouter Instance with ID \"%s\".\n", createResp.Id)
partialUpdatePayload := telemetryrouter.PartialUpdateTelemetryRouterPayload{
DisplayName: utils.Ptr("my-part-upd-tlmr-instance"),
Filter: &telemetryrouter.ConfigFilterPatch{
Attributes: []telemetryrouter.ConfigFilterAttributes{
{
Key: "service.name",
Level: "logRecord",
Matcher: "=",
Values: []string{"service3", "service4"},
},
},
},
}
partialUpdateResp, err := client.DefaultAPI.PartialUpdateTelemetryRouter(ctx, projectId, regionId, createdInstance).
PartialUpdateTelemetryRouterPayload(partialUpdatePayload).
Execute()
if err != nil {
log.Fatalf("[Telemetry Router API] Error when calling `PartialUpdateTelemetryRouter`: %v\n", err)
}
log.Printf("[Telemetry Router API] Partially Updated Telemetry Router Instance with ID \"%s\" to Display Name \"%s\".\n", partialUpdateResp.Id, partialUpdateResp.DisplayName)

// Wait for the Telemetry Router Instance to be partially updated
log.Printf("[TelemetryRouter API] Waiting for TelemetryRouter Instance with ID \"%s\" to be partially updated.\n", createResp.Id)
_, err = wait.PartialUpdateTelemetryRouterWaitHandler(ctx, client.DefaultAPI, projectId, regionId, createdInstance).WaitWithContext(context.Background())
if err != nil {
log.Fatalf("[Telemetry Router API] Error when waiting for partial update: %v\n", err)
}
log.Printf("[Telemetry Router API] TelemetryRouter Instance \"%s\" has been successfully partially updated.\n", createdInstance)

// Create an Access Token
log.Printf("[TelemetryRouter API] Creating AccessToken for TelemetryRouter Instance with ID \"%s\".\n", createResp.Id)
createTokenPayload := telemetryrouter.CreateAccessTokenPayload{
Expand Down Expand Up @@ -150,6 +181,29 @@ func main() {
}
log.Printf("[Telemetry Router API] Access Token \"%s\" has been successfully updated.\n", updateTokenResp.Id)

// Partially update an Access Token
log.Printf("[Telemetry Router API] Partially updating the Access Token with ID \"%s\".\n", createTokenResp.Id)
partialDescriptionNS := telemetryrouter.NullableString{}
partialDescriptionNS.Set(utils.Ptr("partially updated description"))
partialUpdateTokenPayload := telemetryrouter.PartialUpdateAccessTokenPayload{
Description: partialDescriptionNS,
}
partialUpdateTokenResp, err := client.DefaultAPI.PartialUpdateAccessToken(ctx, projectId, regionId, createdInstance, createTokenResp.Id).
PartialUpdateAccessTokenPayload(partialUpdateTokenPayload).
Execute()
if err != nil {
log.Fatalf("[Telemetry Router API] Error when calling `PartialUpdateAccessToken`: %v\n", err)
}
log.Printf("[Telemetry Router API] Partially updated Access Token with ID \"%s\".\n", partialUpdateTokenResp.Id)

// Wait for the Access Token to be partially updated
log.Printf("[Telemetry Router API] Waiting for the Access Token with ID \"%s\" to be partially updated.\n", createTokenResp.Id)
_, err = wait.PartialUpdateAccessTokenWaitHandler(ctx, client.DefaultAPI, projectId, regionId, createdInstance, partialUpdateTokenResp.Id).WaitWithContext(context.Background())
if err != nil {
log.Fatalf("[Telemetry Router API] Error when waiting for partial update: %v\n", err)
}
log.Printf("[Telemetry Router API] Access Token \"%s\" has been successfully partially updated.\n", partialUpdateTokenResp.Id)

// Delete Access Token
log.Printf("[Telemetry Router API] Deleting for the Access Token with ID \"%s\".\n", createTokenResp.Id)
err = client.DefaultAPI.DeleteAccessToken(ctx, projectId, regionId, createdInstance, updateTokenResp.Id).Execute()
Expand Down Expand Up @@ -254,6 +308,31 @@ func main() {
}
log.Printf("[Telemetry Router API] Destination \"%s\" has been successfully updated.\n", updateS3DestinationResp.Id)

// Partially update S3 Destination
log.Printf("[Telemetry Router API] Partially updating Destination with ID \"%s\".\n", createS3DestinationResp.Id)
partialUpdateS3DestinationPayload := telemetryrouter.PartialUpdateDestinationPayload{
DisplayName: utils.Ptr("part-upd-s3-destination"),
Config: &telemetryrouter.DestinationConfigPatch{
S3: &telemetryrouter.DestinationConfigPatchS3{
Bucket: utils.Ptr("another-bucket"),
},
},
}
partialUpdateS3DestinationResp, err := client.DefaultAPI.PartialUpdateDestination(ctx, projectId, regionId, createdInstance, createS3DestinationResp.Id).
PartialUpdateDestinationPayload(partialUpdateS3DestinationPayload).Execute()
if err != nil {
log.Fatalf("[Telemetry Router API] Error when calling `PartialUpdateDestination`: %v\n", err)
}
log.Printf("[Telemetry Router API] Partially updated Destination with ID \"%s\".\n", partialUpdateS3DestinationResp.Id)

// Wait for the S3 Destination to be partially updated
log.Printf("[Telemetry Router API] Waiting for the Destination with ID \"%s\" to be partially updated.\n", createS3DestinationResp.Id)
_, err = wait.PartialUpdateDestinationWaitHandler(ctx, client.DefaultAPI, projectId, regionId, createdInstance, partialUpdateS3DestinationResp.Id).WaitWithContext(context.Background())
if err != nil {
log.Fatalf("[Telemetry Router API] Error when waiting for partial update: %v\n", err)
}
log.Printf("[Telemetry Router API] Destination \"%s\" has been successfully partially updated.\n", partialUpdateS3DestinationResp.Id)

// Delete S3 Destination
log.Printf("[Telemetry Router API] Deleting Destination with ID \"%s\".\n", updateS3DestinationResp.Id)
err = client.DefaultAPI.DeleteDestination(ctx, projectId, regionId, createdInstance, updateS3DestinationResp.Id).Execute()
Expand Down
12 changes: 12 additions & 0 deletions services/telemetryrouter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## v0.7.0
- `v1api`:
- **Feature:** New `PartialUpdateTelemetryRouter`, `PartialUpdateDestination`, and `PartialUpdateAccessToken` operations
- **Feature:** New waiters `PartialUpdateTelemetryRouterWaitHandler`, `PartialUpdateDestinationWaitHandler`, and `PartialUpdateAccessTokenWaitHandler`
- **Feature:** Add `DestinationCount` field to `TelemetryRouterResponse` to get the number of destinations TelemetryRouter has
- **Feature:** Add `ResourceLabels` field to `CreateTelemetryRouterPayload`, `UpdateTelemetryRouterPayload`, `PartialUpdateTelemetryRouterPayload` and `TelemetryRouterResponse`
- **Breaking change:** Add regex validation to the `Key` field of `ConfigFilterAttributes`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `BearerToken` and `Uri` fields of `DestinationConfigOpenTelemetry`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Username` and `Password` fields of `DestinationConfigOpenTelemetryBasicAuth`, which now must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Bucket` and `Endpoint` fields of `DestinationConfigS3`: `Bucket` may only contain lowercase letters, digits and hyphens, `Endpoint` must be non-empty and must not contain control characters
- **Breaking change:** Add regex validation to the `Id` and `Secret` fields of `DestinationConfigS3AccessKey`, which now must be non-empty and must not contain control characters

## v0.6.1
- **Dependencies:** Bump STACKIT SDK core module from `v0.27.0` to `v0.27.1`

Expand Down
2 changes: 1 addition & 1 deletion services/telemetryrouter/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.6.1
v0.7.0
2 changes: 1 addition & 1 deletion services/telemetryrouter/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7fd0fb8e513021dfbad1f5ee736785ec72987b40
6a64c31e5d4c6aaf2d5a11af086a4941eb5bdc19
Loading
Loading