From 74d50ded7be5d22ea2430d50f294f494bed23808 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 29 Oct 2026 11:43:04 +0000 Subject: [PATCH] Generate logs --- services/logs/oas_commit | 2 +- services/logs/v1api/api_default.go | 2 +- services/logs/v1api/api_default_mock.go | 2 +- services/logs/v1api/client.go | 4 +- services/logs/v1api/configuration.go | 2 +- services/logs/v1api/model_access_policy.go | 40 +++++++++++++++++- .../logs/v1api/model_access_policy_list.go | 2 +- services/logs/v1api/model_access_token.go | 40 +++++++++++++++++- .../logs/v1api/model_access_token_list.go | 2 +- .../logs/v1api/model_access_token_status.go | 2 +- .../model_create_access_policy_payload.go | 41 +++++++++++++++++- .../model_create_access_token_payload.go | 40 +++++++++++++++++- .../model_create_logs_instance_payload.go | 40 +++++++++++++++++- services/logs/v1api/model_logs_instance.go | 40 +++++++++++++++++- .../logs/v1api/model_logs_instance_status.go | 2 +- .../logs/v1api/model_logs_instances_list.go | 2 +- .../logs/v1api/model_permissions_inner.go | 2 +- .../model_update_access_policy_payload.go | 41 +++++++++++++++++- .../model_update_access_token_payload.go | 42 ++++++++++++++++++- .../model_update_logs_instance_payload.go | 40 +++++++++++++++++- services/logs/v1api/response.go | 2 +- services/logs/v1api/utils.go | 2 +- 22 files changed, 368 insertions(+), 24 deletions(-) diff --git a/services/logs/oas_commit b/services/logs/oas_commit index 9b8212c3dd..9510a89460 100644 --- a/services/logs/oas_commit +++ b/services/logs/oas_commit @@ -1 +1 @@ -96424a9ede942f2964f16a0c236aaa9c007c355b +c9fb47b3087043293b6f77e5d3b778784de27ef2 diff --git a/services/logs/v1api/api_default.go b/services/logs/v1api/api_default.go index be6266cc8f..db7c50c234 100644 --- a/services/logs/v1api/api_default.go +++ b/services/logs/v1api/api_default.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/api_default_mock.go b/services/logs/v1api/api_default_mock.go index 9be0b071b6..05d4ba8415 100644 --- a/services/logs/v1api/api_default_mock.go +++ b/services/logs/v1api/api_default_mock.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/client.go b/services/logs/v1api/client.go index dec2896828..45a2fa74f6 100644 --- a/services/logs/v1api/client.go +++ b/services/logs/v1api/client.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the STACKIT Logs API API v1.2.0 +// APIClient manages communication with the STACKIT Logs API API v1.3.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/logs/v1api/configuration.go b/services/logs/v1api/configuration.go index eb587ea257..d999d2af8d 100644 --- a/services/logs/v1api/configuration.go +++ b/services/logs/v1api/configuration.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/model_access_policy.go b/services/logs/v1api/model_access_policy.go index 411972a3e6..86010c2b8a 100644 --- a/services/logs/v1api/model_access_policy.go +++ b/services/logs/v1api/model_access_policy.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,6 +26,8 @@ type AccessPolicy struct { Email string `json:"email"` // An auto generated unique id which identifies the access policy. Id string `json:"id"` + // Labels as key-value pairs. + Labels *map[string]string `json:"labels,omitempty"` // The access permissions granted to the access token or access policy. Permissions []PermissionsInner `json:"permissions"` AdditionalProperties map[string]interface{} @@ -133,6 +135,38 @@ func (o *AccessPolicy) SetId(v string) { o.Id = v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *AccessPolicy) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessPolicy) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *AccessPolicy) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *AccessPolicy) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetPermissions returns the Permissions field value func (o *AccessPolicy) GetPermissions() []PermissionsInner { if o == nil { @@ -172,6 +206,9 @@ func (o AccessPolicy) ToMap() (map[string]interface{}, error) { } toSerialize["email"] = o.Email toSerialize["id"] = o.Id + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } toSerialize["permissions"] = o.Permissions for key, value := range o.AdditionalProperties { @@ -221,6 +258,7 @@ func (o *AccessPolicy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "description") delete(additionalProperties, "email") delete(additionalProperties, "id") + delete(additionalProperties, "labels") delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/services/logs/v1api/model_access_policy_list.go b/services/logs/v1api/model_access_policy_list.go index 37a916fb7d..a7ae866333 100644 --- a/services/logs/v1api/model_access_policy_list.go +++ b/services/logs/v1api/model_access_policy_list.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/model_access_token.go b/services/logs/v1api/model_access_token.go index 17f358a187..6b1027fe12 100644 --- a/services/logs/v1api/model_access_token.go +++ b/services/logs/v1api/model_access_token.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -33,6 +33,8 @@ type AccessToken struct { Expires bool `json:"expires"` // An auto generated unique id which identifies the access token. Id string `json:"id"` + // Labels as key-value pairs. + Labels *map[string]string `json:"labels,omitempty"` // The access permissions granted to the access token or access policy. Permissions []PermissionsInner `json:"permissions"` Status AccessTokenStatus `json:"status"` @@ -226,6 +228,38 @@ func (o *AccessToken) SetId(v string) { o.Id = v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *AccessToken) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessToken) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *AccessToken) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *AccessToken) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetPermissions returns the Permissions field value func (o *AccessToken) GetPermissions() []PermissionsInner { if o == nil { @@ -326,6 +360,9 @@ func (o AccessToken) ToMap() (map[string]interface{}, error) { toSerialize["displayName"] = o.DisplayName toSerialize["expires"] = o.Expires toSerialize["id"] = o.Id + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } toSerialize["permissions"] = o.Permissions toSerialize["status"] = o.Status if !IsNil(o.ValidUntil) { @@ -385,6 +422,7 @@ func (o *AccessToken) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "displayName") delete(additionalProperties, "expires") delete(additionalProperties, "id") + delete(additionalProperties, "labels") delete(additionalProperties, "permissions") delete(additionalProperties, "status") delete(additionalProperties, "validUntil") diff --git a/services/logs/v1api/model_access_token_list.go b/services/logs/v1api/model_access_token_list.go index 58568cab3b..e179774f01 100644 --- a/services/logs/v1api/model_access_token_list.go +++ b/services/logs/v1api/model_access_token_list.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/model_access_token_status.go b/services/logs/v1api/model_access_token_status.go index 5b50435ce6..d11d913a38 100644 --- a/services/logs/v1api/model_access_token_status.go +++ b/services/logs/v1api/model_access_token_status.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/model_create_access_policy_payload.go b/services/logs/v1api/model_create_access_policy_payload.go index 5c4975bf59..796ac61a55 100644 --- a/services/logs/v1api/model_create_access_policy_payload.go +++ b/services/logs/v1api/model_create_access_policy_payload.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,6 +24,8 @@ type CreateAccessPolicyPayload struct { Description NullableString `json:"description,omitempty"` // The email address of the STACKIT IAM subject (user, group, or service account). Email string `json:"email"` + // Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. + Labels map[string]string `json:"labels,omitempty"` // The access permissions granted to the access token or access policy. Permissions []PermissionsInner `json:"permissions"` AdditionalProperties map[string]interface{} @@ -117,6 +119,39 @@ func (o *CreateAccessPolicyPayload) SetEmail(v string) { o.Email = v } +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateAccessPolicyPayload) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateAccessPolicyPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateAccessPolicyPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *CreateAccessPolicyPayload) SetLabels(v map[string]string) { + o.Labels = v +} + // GetPermissions returns the Permissions field value func (o *CreateAccessPolicyPayload) GetPermissions() []PermissionsInner { if o == nil { @@ -155,6 +190,9 @@ func (o CreateAccessPolicyPayload) ToMap() (map[string]interface{}, error) { toSerialize["description"] = o.Description.Get() } toSerialize["email"] = o.Email + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } toSerialize["permissions"] = o.Permissions for key, value := range o.AdditionalProperties { @@ -202,6 +240,7 @@ func (o *CreateAccessPolicyPayload) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "description") delete(additionalProperties, "email") + delete(additionalProperties, "labels") delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/services/logs/v1api/model_create_access_token_payload.go b/services/logs/v1api/model_create_access_token_payload.go index b830b462e4..950663fa74 100644 --- a/services/logs/v1api/model_create_access_token_payload.go +++ b/services/logs/v1api/model_create_access_token_payload.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,6 +24,8 @@ type CreateAccessTokenPayload struct { Description *string `json:"description,omitempty"` // The displayed name of the access token. DisplayName string `json:"displayName" validate:"regexp=^[a-zA-Z][\\w -]*$"` + // Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. + Labels *map[string]string `json:"labels,omitempty"` // A lifetime period for an access token in days. If unset the token will not expire. Lifetime *int32 `json:"lifetime,omitempty"` // The access permissions granted to the access token or access policy. @@ -108,6 +110,38 @@ func (o *CreateAccessTokenPayload) SetDisplayName(v string) { o.DisplayName = v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *CreateAccessTokenPayload) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAccessTokenPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateAccessTokenPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *CreateAccessTokenPayload) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetLifetime returns the Lifetime field value if set, zero value otherwise. func (o *CreateAccessTokenPayload) GetLifetime() int32 { if o == nil || IsNil(o.Lifetime) { @@ -178,6 +212,9 @@ func (o CreateAccessTokenPayload) ToMap() (map[string]interface{}, error) { toSerialize["description"] = o.Description } toSerialize["displayName"] = o.DisplayName + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } if !IsNil(o.Lifetime) { toSerialize["lifetime"] = o.Lifetime } @@ -228,6 +265,7 @@ func (o *CreateAccessTokenPayload) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "description") delete(additionalProperties, "displayName") + delete(additionalProperties, "labels") delete(additionalProperties, "lifetime") delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties diff --git a/services/logs/v1api/model_create_logs_instance_payload.go b/services/logs/v1api/model_create_logs_instance_payload.go index 218ef158c5..dcaf6ed2ed 100644 --- a/services/logs/v1api/model_create_logs_instance_payload.go +++ b/services/logs/v1api/model_create_logs_instance_payload.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,6 +26,8 @@ type CreateLogsInstancePayload struct { Description *string `json:"description,omitempty"` // The displayed name to distinguish multiple Logs instances. DisplayName string `json:"displayName" validate:"regexp=^[a-zA-Z][\\w -]*$"` + // Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. + Labels *map[string]string `json:"labels,omitempty"` // The log retention time in days. RetentionDays int32 `json:"retentionDays"` AdditionalProperties map[string]interface{} @@ -140,6 +142,38 @@ func (o *CreateLogsInstancePayload) SetDisplayName(v string) { o.DisplayName = v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *CreateLogsInstancePayload) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateLogsInstancePayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateLogsInstancePayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *CreateLogsInstancePayload) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetRetentionDays returns the RetentionDays field value func (o *CreateLogsInstancePayload) GetRetentionDays() int32 { if o == nil { @@ -181,6 +215,9 @@ func (o CreateLogsInstancePayload) ToMap() (map[string]interface{}, error) { toSerialize["description"] = o.Description } toSerialize["displayName"] = o.DisplayName + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } toSerialize["retentionDays"] = o.RetentionDays for key, value := range o.AdditionalProperties { @@ -229,6 +266,7 @@ func (o *CreateLogsInstancePayload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "acl") delete(additionalProperties, "description") delete(additionalProperties, "displayName") + delete(additionalProperties, "labels") delete(additionalProperties, "retentionDays") o.AdditionalProperties = additionalProperties } diff --git a/services/logs/v1api/model_logs_instance.go b/services/logs/v1api/model_logs_instance.go index 04617075e3..7c77e086a9 100644 --- a/services/logs/v1api/model_logs_instance.go +++ b/services/logs/v1api/model_logs_instance.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -37,6 +37,8 @@ type LogsInstance struct { IngestOtlpUrl *string `json:"ingestOtlpUrl,omitempty"` // The Logs instance's ingest logs URL IngestUrl *string `json:"ingestUrl,omitempty"` + // Labels as key-value pairs. + Labels *map[string]string `json:"labels,omitempty"` // The Logs instance's query range URL QueryRangeUrl *string `json:"queryRangeUrl,omitempty"` // The Logs instance's query URL @@ -303,6 +305,38 @@ func (o *LogsInstance) SetIngestUrl(v string) { o.IngestUrl = &v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *LogsInstance) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LogsInstance) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *LogsInstance) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *LogsInstance) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetQueryRangeUrl returns the QueryRangeUrl field value if set, zero value otherwise. func (o *LogsInstance) GetQueryRangeUrl() string { if o == nil || IsNil(o.QueryRangeUrl) { @@ -443,6 +477,9 @@ func (o LogsInstance) ToMap() (map[string]interface{}, error) { if !IsNil(o.IngestUrl) { toSerialize["ingestUrl"] = o.IngestUrl } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } if !IsNil(o.QueryRangeUrl) { toSerialize["queryRangeUrl"] = o.QueryRangeUrl } @@ -506,6 +543,7 @@ func (o *LogsInstance) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "ingestOtlpUrl") delete(additionalProperties, "ingestUrl") + delete(additionalProperties, "labels") delete(additionalProperties, "queryRangeUrl") delete(additionalProperties, "queryUrl") delete(additionalProperties, "retentionDays") diff --git a/services/logs/v1api/model_logs_instance_status.go b/services/logs/v1api/model_logs_instance_status.go index ab99353ec5..c88886007e 100644 --- a/services/logs/v1api/model_logs_instance_status.go +++ b/services/logs/v1api/model_logs_instance_status.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/model_logs_instances_list.go b/services/logs/v1api/model_logs_instances_list.go index cb58f98802..35a0ced60d 100644 --- a/services/logs/v1api/model_logs_instances_list.go +++ b/services/logs/v1api/model_logs_instances_list.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/model_permissions_inner.go b/services/logs/v1api/model_permissions_inner.go index d9626e6488..f4ab621a7c 100644 --- a/services/logs/v1api/model_permissions_inner.go +++ b/services/logs/v1api/model_permissions_inner.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/model_update_access_policy_payload.go b/services/logs/v1api/model_update_access_policy_payload.go index 830edb82a4..d6dd291bde 100644 --- a/services/logs/v1api/model_update_access_policy_payload.go +++ b/services/logs/v1api/model_update_access_policy_payload.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,6 +21,8 @@ var _ MappedNullable = &UpdateAccessPolicyPayload{} type UpdateAccessPolicyPayload struct { // The updated description of the access policy. If not present will be ignored in update. Description NullableString `json:"description,omitempty"` + // Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. + Labels map[string]string `json:"labels,omitempty"` // The access permissions granted to the access token or access policy. Permissions []PermissionsInner `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} @@ -88,6 +90,39 @@ func (o *UpdateAccessPolicyPayload) UnsetDescription() { o.Description.Unset() } +// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateAccessPolicyPayload) GetLabels() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdateAccessPolicyPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return &o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateAccessPolicyPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *UpdateAccessPolicyPayload) SetLabels(v map[string]string) { + o.Labels = v +} + // GetPermissions returns the Permissions field value if set, zero value otherwise. func (o *UpdateAccessPolicyPayload) GetPermissions() []PermissionsInner { if o == nil || IsNil(o.Permissions) { @@ -133,6 +168,9 @@ func (o UpdateAccessPolicyPayload) ToMap() (map[string]interface{}, error) { if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } if !IsNil(o.Permissions) { toSerialize["permissions"] = o.Permissions } @@ -159,6 +197,7 @@ func (o *UpdateAccessPolicyPayload) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "description") + delete(additionalProperties, "labels") delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/services/logs/v1api/model_update_access_token_payload.go b/services/logs/v1api/model_update_access_token_payload.go index ac5d18d8f4..7af42bd0f6 100644 --- a/services/logs/v1api/model_update_access_token_payload.go +++ b/services/logs/v1api/model_update_access_token_payload.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,9 @@ type UpdateAccessTokenPayload struct { // The description of the access token. Description *string `json:"description,omitempty"` // The displayed name of the access token. - DisplayName *string `json:"displayName,omitempty" validate:"regexp=^[a-zA-Z][\\w -]*$"` + DisplayName *string `json:"displayName,omitempty" validate:"regexp=^[a-zA-Z][\\w -]*$"` + // Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. + Labels *map[string]string `json:"labels,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,6 +111,38 @@ func (o *UpdateAccessTokenPayload) SetDisplayName(v string) { o.DisplayName = &v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateAccessTokenPayload) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAccessTokenPayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateAccessTokenPayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *UpdateAccessTokenPayload) SetLabels(v map[string]string) { + o.Labels = &v +} + func (o UpdateAccessTokenPayload) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -125,6 +159,9 @@ func (o UpdateAccessTokenPayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -149,6 +186,7 @@ func (o *UpdateAccessTokenPayload) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "description") delete(additionalProperties, "displayName") + delete(additionalProperties, "labels") o.AdditionalProperties = additionalProperties } diff --git a/services/logs/v1api/model_update_logs_instance_payload.go b/services/logs/v1api/model_update_logs_instance_payload.go index 6a851b7457..68b04e6b98 100644 --- a/services/logs/v1api/model_update_logs_instance_payload.go +++ b/services/logs/v1api/model_update_logs_instance_payload.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,6 +25,8 @@ type UpdateLogsInstancePayload struct { Description *string `json:"description,omitempty"` // The displayed name to distinguish multiple Logs instances. DisplayName *string `json:"displayName,omitempty" validate:"regexp=^[a-zA-Z][\\w -]*$"` + // Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. + Labels *map[string]string `json:"labels,omitempty"` // The log retention time in days. RetentionDays *int32 `json:"retentionDays,omitempty"` AdditionalProperties map[string]interface{} @@ -145,6 +147,38 @@ func (o *UpdateLogsInstancePayload) SetDisplayName(v string) { o.DisplayName = &v } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateLogsInstancePayload) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLogsInstancePayload) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateLogsInstancePayload) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *UpdateLogsInstancePayload) SetLabels(v map[string]string) { + o.Labels = &v +} + // GetRetentionDays returns the RetentionDays field value if set, zero value otherwise. func (o *UpdateLogsInstancePayload) GetRetentionDays() int32 { if o == nil || IsNil(o.RetentionDays) { @@ -196,6 +230,9 @@ func (o UpdateLogsInstancePayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisplayName) { toSerialize["displayName"] = o.DisplayName } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } if !IsNil(o.RetentionDays) { toSerialize["retentionDays"] = o.RetentionDays } @@ -224,6 +261,7 @@ func (o *UpdateLogsInstancePayload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "acl") delete(additionalProperties, "description") delete(additionalProperties, "displayName") + delete(additionalProperties, "labels") delete(additionalProperties, "retentionDays") o.AdditionalProperties = additionalProperties } diff --git a/services/logs/v1api/response.go b/services/logs/v1api/response.go index 0634e3afc3..b520387754 100644 --- a/services/logs/v1api/response.go +++ b/services/logs/v1api/response.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/logs/v1api/utils.go b/services/logs/v1api/utils.go index feb52d7dbf..b9f00f46df 100644 --- a/services/logs/v1api/utils.go +++ b/services/logs/v1api/utils.go @@ -3,7 +3,7 @@ STACKIT Logs API This API provides endpoints for managing STACKIT Logs. -API version: 1.2.0 +API version: 1.3.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.