Skip to content

Commit f09e10c

Browse files
committed
Apply feedback and regenerate files
1 parent efa6cc3 commit f09e10c

File tree

15 files changed

+23
-383
lines changed

15 files changed

+23
-383
lines changed

generated-usage-examples/go/atlas-sdk-go/main.snippet.line-items.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ func main() {
4545
errors.ExitWithError(fmt.Sprintf("Failed to retrieve pending invoices for %s", p.OrgId), err)
4646
}
4747

48+
if len(details) == 0 {
49+
fmt.Printf("No pending invoices found for organization: %s\n", p.OrgId)
50+
return
51+
}
4852
fmt.Printf("Found %d line items in pending invoices\n", len(details))
4953

5054
// Export invoice data to be used in other systems or for reporting

generated-usage-examples/go/atlas-sdk-go/project-copy/cmd/get_linked_orgs/main.go

Lines changed: 0 additions & 57 deletions
This file was deleted.

generated-usage-examples/go/atlas-sdk-go/project-copy/cmd/get_logs/main.go

Lines changed: 0 additions & 61 deletions
This file was deleted.

generated-usage-examples/go/atlas-sdk-go/project-copy/cmd/get_metrics_disk/main.go

Lines changed: 0 additions & 47 deletions
This file was deleted.

generated-usage-examples/go/atlas-sdk-go/project-copy/cmd/get_metrics_process/main.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

generated-usage-examples/go/atlas-sdk-go/project-copy/examples/billing/line_items/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ func main() {
4444
errors.ExitWithError(fmt.Sprintf("Failed to retrieve pending invoices for %s", p.OrgId), err)
4545
}
4646

47+
if len(details) == 0 {
48+
fmt.Printf("No pending invoices found for organization: %s\n", p.OrgId)
49+
return
50+
}
4751
fmt.Printf("Found %d line items in pending invoices\n", len(details))
4852

4953
// Export invoice data to be used in other systems or for reporting

generated-usage-examples/go/atlas-sdk-go/project-copy/internal/billing/crossorg.go

Lines changed: 0 additions & 43 deletions
This file was deleted.

generated-usage-examples/go/atlas-sdk-go/project-copy/internal/billing/linkedorgs.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

generated-usage-examples/go/atlas-sdk-go/project-copy/internal/fileutils/io.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"io"
55
"log"
66
"os"
7-
"path/filepath"
87

98
"atlas-sdk-go/internal/errors"
109
)

generated-usage-examples/go/atlas-sdk-go/project-copy/internal/logs/file.go

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)