diff --git a/api/account/v2alpha1/account_sdk.go b/api/account/v2alpha1/account_sdk.go index 6e20dda9..135989e7 100644 --- a/api/account/v2alpha1/account_sdk.go +++ b/api/account/v2alpha1/account_sdk.go @@ -108,9 +108,9 @@ type SSHKey struct { Fingerprint string `json:"fingerprint"` - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` CreationInfo *SSHKeyCreationInfo `json:"creation_info"` diff --git a/api/baremetal/v1/baremetal_sdk.go b/api/baremetal/v1/baremetal_sdk.go index 80ee4c53..0b141129 100644 --- a/api/baremetal/v1/baremetal_sdk.go +++ b/api/baremetal/v1/baremetal_sdk.go @@ -378,7 +378,7 @@ type BMCAccess struct { // Password: the password to use for the BMC (Baseboard Management Controller) access authentification Password string `json:"password"` // ExpiresAt: the date after which the BMC (Baseboard Management Controller) access will be closed - ExpiresAt time.Time `json:"expires_at"` + ExpiresAt *time.Time `json:"expires_at"` } // CPU: cpu @@ -547,9 +547,9 @@ type Server struct { // Description: description of the server Description string `json:"description"` // UpdatedAt: date of last modification of the server - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // CreatedAt: date of creation of the server - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // Status: status of the server // // Default value: unknown @@ -583,9 +583,9 @@ type ServerEvent struct { // Action: the action that will be applied to the server Action string `json:"action"` // UpdatedAt: date of last modification of the action - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // CreatedAt: date of creation of the action - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` } type ServerInstall struct { diff --git a/api/baremetal/v1alpha1/baremetal_sdk.go b/api/baremetal/v1alpha1/baremetal_sdk.go index 8b966023..aa7cb690 100644 --- a/api/baremetal/v1alpha1/baremetal_sdk.go +++ b/api/baremetal/v1alpha1/baremetal_sdk.go @@ -654,9 +654,9 @@ type IPFailover struct { // Tags: tags associated to the IP failover Tags []string `json:"tags"` // UpdatedAt: date of last update of the IP failover - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // CreatedAt: date of creation of the IP failover - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // Status: status of the IP failover // // Default value: unknown @@ -692,9 +692,9 @@ type IPFailoverEvent struct { // Default value: unknown Action IPFailoverEventAction `json:"action"` // UpdatedAt: date of last modification of the action - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // CreatedAt: date of creation of the action - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` } // ListIPFailoverEventsResponse: list ip failover events response @@ -809,7 +809,7 @@ type RemoteServerAccess struct { // Password: the password to use for the remote access authentification Password string `json:"password"` // ExpiresAt: the date after which the remote access will be closed - ExpiresAt time.Time `json:"expires_at"` + ExpiresAt *time.Time `json:"expires_at"` } // Server: server @@ -823,9 +823,9 @@ type Server struct { // Description: description of the server Description string `json:"description"` // UpdatedAt: date of last modification of the server - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // CreatedAt: date of creation of the server - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // Status: status of the server // // Default value: unknown @@ -859,9 +859,9 @@ type ServerEvent struct { // Action: the action that will be applied to the server Action string `json:"action"` // UpdatedAt: date of last modification of the action - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // CreatedAt: date of creation of the action - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` } // ServerInstall: server install diff --git a/api/domain/v2alpha2/domain_sdk.go b/api/domain/v2alpha2/domain_sdk.go index 9cd85237..e15d8de4 100644 --- a/api/domain/v2alpha2/domain_sdk.go +++ b/api/domain/v2alpha2/domain_sdk.go @@ -1059,7 +1059,7 @@ type DNSZone struct { Message *string `json:"message"` - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` OrganizationIDs []string `json:"organization_ids"` } @@ -1117,9 +1117,9 @@ type Domain struct { Epp []string `json:"epp"` - ExpiredAt time.Time `json:"expired_at"` + ExpiredAt *time.Time `json:"expired_at"` - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` Registrar string `json:"registrar"` @@ -1178,9 +1178,9 @@ type DomainSummary struct { Epp []string `json:"epp"` - ExpiredAt time.Time `json:"expired_at"` + ExpiredAt *time.Time `json:"expired_at"` - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` Registrar string `json:"registrar"` @@ -1223,7 +1223,7 @@ type ExtensionFR struct { } type ExtensionFRAssociationInfos struct { - PublicationJo time.Time `json:"publication_jo"` + PublicationJo *time.Time `json:"publication_jo"` PublicationJoPage uint32 `json:"publication_jo_page"` } @@ -1560,7 +1560,7 @@ type RegisterExternalDomainResponse struct { ValidationToken string `json:"validation_token"` - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` } // RestoreDNSZoneVersionResponse: restore dns zone version response @@ -1584,9 +1584,9 @@ type Task struct { // Default value: unavailable Status TaskStatus `json:"status"` - StartedAt time.Time `json:"started_at"` + StartedAt *time.Time `json:"started_at"` - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` ID string `json:"id"` @@ -1640,7 +1640,7 @@ type UpdateDNSZoneRecordsResponse struct { } type Version struct { - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` } type ZoneSSL struct { @@ -1656,9 +1656,9 @@ type ZoneSSL struct { Certificate []string `json:"certificate"` - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` - ExpiredAt time.Time `json:"expired_at"` + ExpiredAt *time.Time `json:"expired_at"` } // Service API diff --git a/api/instance/v1/instance_sdk.go b/api/instance/v1/instance_sdk.go index 009d912f..b0e28311 100644 --- a/api/instance/v1/instance_sdk.go +++ b/api/instance/v1/instance_sdk.go @@ -769,9 +769,9 @@ type Image struct { // Default value: x86_64 Arch Arch `json:"arch"` - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` DefaultBootscript *Bootscript `json:"default_bootscript"` @@ -933,9 +933,9 @@ type SecurityGroup struct { // ProjectDefault: true if it is your default security group for this project id ProjectDefault bool `json:"project_default"` // CreationDate: the security group creation date - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` // ModificationDate: the security group modification date - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` // Servers: list of servers attached to this security group Servers []*ServerSummary `json:"servers"` // Stateful: true if the security group is stateful @@ -1001,7 +1001,7 @@ type Server struct { // CommercialType: the server commercial type (eg. GP1-M) CommercialType string `json:"commercial_type"` // CreationDate: the server creation date - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` // DynamicIPRequired: true if a dynamic IP is required DynamicIPRequired bool `json:"dynamic_ip_required"` // EnableIPv6: true if IPv6 is enabled @@ -1017,7 +1017,7 @@ type Server struct { // PublicIP: information about the public IP PublicIP *ServerIP `json:"public_ip"` // ModificationDate: the server modification date - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` // State: the server state // // Default value: running @@ -1174,9 +1174,9 @@ type Snapshot struct { BaseVolume *SnapshotBaseVolume `json:"base_volume"` - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` Project string `json:"project"` @@ -1198,9 +1198,9 @@ type Task struct { // Progress: the progress of the task in percent Progress int32 `json:"progress"` // StartedAt: the task start date - StartedAt time.Time `json:"started_at"` + StartedAt *time.Time `json:"started_at"` // TerminatedAt: the task end date - TerminatedAt time.Time `json:"terminated_at"` + TerminatedAt *time.Time `json:"terminated_at"` // Status: the task status // // Default value: pending @@ -1248,9 +1248,9 @@ type Volume struct { // Default value: l_ssd VolumeType VolumeVolumeType `json:"volume_type"` // CreationDate: the volumes creation date - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` // ModificationDate: the volumes modification date - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` // Organization: the volumes organization Organization string `json:"organization"` // Project: the volumes project ID @@ -1757,7 +1757,7 @@ type setServerRequest struct { // CommercialType: the server commercial type (eg. GP1-M) CommercialType string `json:"commercial_type"` // CreationDate: the server creation date - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` // DynamicIPRequired: true if a dynamic IP is required DynamicIPRequired bool `json:"dynamic_ip_required"` // EnableIPv6: true if IPv6 is enabled @@ -1773,7 +1773,7 @@ type setServerRequest struct { // PublicIP: information about the public IP PublicIP *ServerIP `json:"public_ip"` // ModificationDate: the server modification date - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` // State: the server state // // Default value: running @@ -2298,9 +2298,9 @@ type SetImageRequest struct { // Default value: x86_64 Arch Arch `json:"arch"` - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` DefaultBootscript *Bootscript `json:"default_bootscript"` @@ -2604,9 +2604,9 @@ type SetSnapshotRequest struct { BaseVolume *SnapshotBaseVolume `json:"base_volume"` - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` Project string `json:"project"` } @@ -3218,9 +3218,9 @@ type setSecurityGroupRequest struct { Name string `json:"name"` - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` Description string `json:"description"` diff --git a/api/iot/v1beta1/iot_sdk.go b/api/iot/v1beta1/iot_sdk.go index 7ec509f5..0f0193f5 100644 --- a/api/iot/v1beta1/iot_sdk.go +++ b/api/iot/v1beta1/iot_sdk.go @@ -600,7 +600,7 @@ type DatabaseRoute struct { // Topic: topic the route subscribes to (wildcards allowed). It must be a valid MQTT topic and up to 65535 characters Topic string `json:"topic"` // CreatedAt: route creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // Query: SQL query to be executed ($TOPIC and $PAYLOAD variables are available, see documentation) Query string `json:"query"` // Database: database settings @@ -636,13 +636,13 @@ type Device struct { // HubID: hub ID HubID string `json:"hub_id"` // CreatedAt: device add date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: device last modification date - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // AllowInsecure: whether to allow device to connect without TLS mutual authentication AllowInsecure bool `json:"allow_insecure"` // LastActivityAt: device last connection/activity date - LastActivityAt time.Time `json:"last_activity_at"` + LastActivityAt *time.Time `json:"last_activity_at"` // IsConnected: whether the device is connected to the Hub or not IsConnected bool `json:"is_connected"` // MessageFilters: filter-sets to restrict the topics the device can publish/subscribe to @@ -679,7 +679,7 @@ type FunctionsRoute struct { // Topic: topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters Topic string `json:"topic"` // CreatedAt: route creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // URI: uri of the function URI string `json:"uri"` } @@ -707,9 +707,9 @@ type Hub struct { // Devices should be connected to this host, port may be 1883 (MQTT), 8883 (MQTT over TLS), 80 (MQTT over Websocket) or 443 (MQTT over Websocket over TLS). Endpoint string `json:"endpoint"` // CreatedAt: hub creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: hub last modification date - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // Enabled: whether the hub has been enabled Enabled bool `json:"enabled"` // DeviceCount: number of registered devices @@ -771,7 +771,7 @@ type MetricsMetric struct { // MetricsMetricValue: metrics. metric. value type MetricsMetricValue struct { // Time: timestamp for the value - Time time.Time `json:"time"` + Time *time.Time `json:"time"` // Value: numeric value Value int64 `json:"value"` } @@ -795,7 +795,7 @@ type Network struct { // HubID: hub ID to connect the Network to HubID string `json:"hub_id"` // CreatedAt: network creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // TopicPrefix: topic prefix for the Network // // This prefix will be prepended to all topics for this Network. @@ -815,7 +815,7 @@ type RestRoute struct { // Topic: topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters Topic string `json:"topic"` // CreatedAt: route creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // Verb: HTTP Verb used to call REST URI // // Default value: get @@ -843,7 +843,7 @@ type Route struct { // Default value: unknown Type RouteRouteType `json:"type"` // CreatedAt: route creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` } // S3Route: s3 route @@ -859,7 +859,7 @@ type S3Route struct { // Topic: topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters Topic string `json:"topic"` // CreatedAt: route creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // BucketRegion: region of the S3 route's destination bucket (eg 'fr-par') BucketRegion string `json:"bucket_region"` // BucketName: name of the S3 route's destination bucket diff --git a/api/k8s/v1/k8s_sdk.go b/api/k8s/v1/k8s_sdk.go index f02c9bf0..2539f84c 100644 --- a/api/k8s/v1/k8s_sdk.go +++ b/api/k8s/v1/k8s_sdk.go @@ -570,9 +570,9 @@ type Cluster struct { // DNSWildcard: the DNS wildcard resovling all the ready nodes of the cluster DNSWildcard string `json:"dns_wildcard"` // CreatedAt: the date at which the cluster was created - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: the date at which the cluster was last updated - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // AutoscalerConfig: the autoscaler config for the cluster AutoscalerConfig *ClusterAutoscalerConfig `json:"autoscaler_config"` // DashboardEnabled: the enablement of the Kubernetes Dashboard in the cluster @@ -761,9 +761,9 @@ type Node struct { // Default value: unknown Status NodeStatus `json:"status"` // CreatedAt: the date at which the node was created - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: the date at which the node was last updated - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` } // Pool: pool @@ -773,9 +773,9 @@ type Pool struct { // ClusterID: the cluster ID of the pool ClusterID string `json:"cluster_id"` // CreatedAt: the date at which the pool was created - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: the date at which the pool was last updated - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // Name: the name of the pool Name string `json:"name"` // Status: the status of the pool diff --git a/api/k8s/v1beta3/k8s_sdk.go b/api/k8s/v1beta3/k8s_sdk.go index fedf9236..d51c1835 100644 --- a/api/k8s/v1beta3/k8s_sdk.go +++ b/api/k8s/v1beta3/k8s_sdk.go @@ -394,9 +394,9 @@ type Cluster struct { // DNSWildcard: display the dns wildcard associated with the cluster DNSWildcard string `json:"dns_wildcard"` - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` CurrentCoreCount uint32 `json:"current_core_count"` @@ -541,9 +541,9 @@ type Node struct { // Default value: unknown Status NodeStatus `json:"status"` - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` } // Pool: pool @@ -579,9 +579,9 @@ type Pool struct { // PlacementGroupID: display ID of the placement group if any PlacementGroupID *string `json:"placement_group_id"` - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` CurrentCoreCount uint32 `json:"current_core_count"` diff --git a/api/k8s/v1beta4/k8s_sdk.go b/api/k8s/v1beta4/k8s_sdk.go index 7825f072..ae538e7d 100644 --- a/api/k8s/v1beta4/k8s_sdk.go +++ b/api/k8s/v1beta4/k8s_sdk.go @@ -580,9 +580,9 @@ type Cluster struct { // DNSWildcard: the DNS wildcard resovling all the ready nodes of the cluster DNSWildcard string `json:"dns_wildcard"` // CreatedAt: the date at which the cluster was created - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: the date at which the cluster was last updated - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // CurrentCoreCount: the total number of cores of all the nodes in the cluster CurrentCoreCount uint32 `json:"current_core_count"` // CurrentNodeCount: the total number of nodes in the cluster @@ -772,9 +772,9 @@ type Node struct { // Default value: unknown Status NodeStatus `json:"status"` // CreatedAt: the date at which the node was created - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: the date at which the node was last updated - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` } // Pool: pool @@ -784,9 +784,9 @@ type Pool struct { // ClusterID: the cluster ID of the pool ClusterID string `json:"cluster_id"` // CreatedAt: the date at which the pool was created - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: the date at which the pool was last updated - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // Name: the name of the pool Name string `json:"name"` // CurrentNodeCount: the total number of nodes in the pool diff --git a/api/lb/v1/lb_sdk.go b/api/lb/v1/lb_sdk.go index f6fa6ff7..3202052d 100644 --- a/api/lb/v1/lb_sdk.go +++ b/api/lb/v1/lb_sdk.go @@ -1018,7 +1018,7 @@ type BackendServerStats struct { // Default value: stopped ServerState BackendServerStatsServerState `json:"server_state"` // ServerStateChangedAt: time since last operational change - ServerStateChangedAt time.Time `json:"server_state_changed_at"` + ServerStateChangedAt *time.Time `json:"server_state_changed_at"` // LastHealthCheckStatus: last health check status (unknown/neutral/failed/passed/condpass) // // Default value: unknown @@ -1040,9 +1040,9 @@ type Certificate struct { // Fingerprint: identifier (SHA-1) of the certificate Fingerprint string `json:"fingerprint"` // NotValidBefore: validity bounds - NotValidBefore time.Time `json:"not_valid_before"` + NotValidBefore *time.Time `json:"not_valid_before"` // NotValidAfter: validity bounds - NotValidAfter time.Time `json:"not_valid_after"` + NotValidAfter *time.Time `json:"not_valid_after"` // Status: status of certificate // // Default value: pending diff --git a/api/marketplace/v1/marketplace_sdk.go b/api/marketplace/v1/marketplace_sdk.go index 272c69a5..e82f6270 100644 --- a/api/marketplace/v1/marketplace_sdk.go +++ b/api/marketplace/v1/marketplace_sdk.go @@ -80,11 +80,11 @@ type Image struct { // Categories: list of categories this image belongs to Categories []string `json:"categories"` // CreationDate: creation date of this image - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` // ModificationDate: date of the last modification of this image - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` // ValidUntil: expiration date of this image - ValidUntil time.Time `json:"valid_until"` + ValidUntil *time.Time `json:"valid_until"` // Label: label of this image Label string `json:"label"` // Versions: list of versions of this image @@ -132,9 +132,9 @@ type Version struct { // Name: name of this version Name string `json:"name"` // CreationDate: creation date of this image version - CreationDate time.Time `json:"creation_date"` + CreationDate *time.Time `json:"creation_date"` // ModificationDate: date of the last modification of this version - ModificationDate time.Time `json:"modification_date"` + ModificationDate *time.Time `json:"modification_date"` // LocalImages: list of local images available in this version LocalImages []*LocalImage `json:"local_images"` } diff --git a/api/rdb/v1/rdb_sdk.go b/api/rdb/v1/rdb_sdk.go index aec0f8aa..34551141 100644 --- a/api/rdb/v1/rdb_sdk.go +++ b/api/rdb/v1/rdb_sdk.go @@ -714,17 +714,17 @@ type DatabaseBackup struct { // Size: size of the database backup Size *scw.Size `json:"size"` // ExpiresAt: expiration date (Format ISO 8601) - ExpiresAt time.Time `json:"expires_at"` + ExpiresAt *time.Time `json:"expires_at"` // CreatedAt: creation date (Format ISO 8601) - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: updated date (Format ISO 8601) - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // InstanceName: name of the instance of the backup InstanceName string `json:"instance_name"` // DownloadURL: URL you can download the backup from DownloadURL *string `json:"download_url"` // DownloadURLExpiresAt: expiration date of the download link - DownloadURLExpiresAt time.Time `json:"download_url_expires_at"` + DownloadURLExpiresAt *time.Time `json:"download_url_expires_at"` // Region: region of this database backup Region scw.Region `json:"region"` } @@ -788,7 +788,7 @@ type EngineVersion struct { Name string `json:"name"` - EndOfLife time.Time `json:"end_of_life"` + EndOfLife *time.Time `json:"end_of_life"` AvailableSettings []*EngineSetting `json:"available_settings"` @@ -800,7 +800,7 @@ type EngineVersion struct { // Instance: instance type Instance struct { // CreatedAt: creation date (Format ISO 8601) - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // Volume: volumes of the instance Volume *Volume `json:"volume"` // Region: region the instance is in @@ -846,9 +846,9 @@ type InstanceLog struct { // NodeName: name of the undelying node NodeName string `json:"node_name"` // ExpiresAt: expiration date (Format ISO 8601) - ExpiresAt time.Time `json:"expires_at"` + ExpiresAt *time.Time `json:"expires_at"` // CreatedAt: creation date (Format ISO 8601) - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // Region: region the instance is in Region scw.Region `json:"region"` } @@ -1133,7 +1133,7 @@ type CreateDatabaseBackupRequest struct { // Name: name of the backup Name string `json:"name"` // ExpiresAt: expiration date (Format ISO 8601) - ExpiresAt time.Time `json:"expires_at"` + ExpiresAt *time.Time `json:"expires_at"` } // CreateDatabaseBackup: create a database backup @@ -1214,7 +1214,7 @@ type UpdateDatabaseBackupRequest struct { // Name: name of the Database Backup Name *string `json:"name"` // ExpiresAt: expiration date (Format ISO 8601) - ExpiresAt time.Time `json:"expires_at"` + ExpiresAt *time.Time `json:"expires_at"` } // UpdateDatabaseBackup: update a database backup @@ -1856,9 +1856,9 @@ type PrepareInstanceLogsRequest struct { // InstanceID: UUID of the instance you want logs of InstanceID string `json:"-"` // StartDate: start datetime of your log. Format: `{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z` - StartDate time.Time `json:"start_date"` + StartDate *time.Time `json:"start_date"` // EndDate: end datetime of your log. Format: `{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z` - EndDate time.Time `json:"end_date"` + EndDate *time.Time `json:"end_date"` } // PrepareInstanceLogs: prepare logs of a given instance @@ -1989,9 +1989,9 @@ type GetInstanceMetricsRequest struct { // InstanceID: UUID of the instance InstanceID string `json:"-"` // StartDate: start date to gather metrics from - StartDate time.Time `json:"-"` + StartDate *time.Time `json:"-"` // EndDate: end date to gather metrics from - EndDate time.Time `json:"-"` + EndDate *time.Time `json:"-"` // MetricName: name of the metric to gather MetricName *string `json:"-"` } diff --git a/api/registry/v1/registry_sdk.go b/api/registry/v1/registry_sdk.go index 278db7dc..9dea6f07 100644 --- a/api/registry/v1/registry_sdk.go +++ b/api/registry/v1/registry_sdk.go @@ -336,9 +336,9 @@ type Image struct { // Image size in bytes, calculated from the size of image layers. One layer used in two tags of the same image is counted once but one layer used in two images is counted twice. Size scw.Size `json:"size"` // CreatedAt: creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: last modification date, from the user or the service - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // Tags: list of docker tags of the image Tags []string `json:"tags"` } @@ -392,9 +392,9 @@ type Namespace struct { // Size: total size of the namespace, calculated as the sum of the size of all images in the namespace Size scw.Size `json:"size"` // CreatedAt: creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: last modification date, from the user or the service - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` // ImageCount: number of images in the namespace ImageCount uint32 `json:"image_count"` // Region: region the namespace belongs to @@ -416,9 +416,9 @@ type Tag struct { // Digest: hash of the tag actual content. Several tags of a same image may have the same digest Digest string `json:"digest"` // CreatedAt: creation date - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` // UpdatedAt: last modification date, from the user or the service - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` } // Service API diff --git a/api/test/v1/test_sdk.go b/api/test/v1/test_sdk.go index a96e279b..d27f46bd 100644 --- a/api/test/v1/test_sdk.go +++ b/api/test/v1/test_sdk.go @@ -185,9 +185,9 @@ type Human struct { OrganizationID string `json:"organization_id"` - CreatedAt time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + UpdatedAt *time.Time `json:"updated_at"` Height float64 `json:"height"`