1
1
package sdk
2
2
3
3
import (
4
- corev1connect "buf.build/gen/go/formal/core/connectrpc/go/core/v1/corev1connect"
5
4
"net/http"
5
+
6
+ corev1connect "buf.build/gen/go/formal/core/connectrpc/go/core/v1/corev1connect"
6
7
)
7
8
8
9
const (
9
10
FORMAL_HOST_URL string = "https://v2api.formalcloud.net"
10
11
)
11
12
12
13
type FormalSDK struct {
13
- AuditServiceClient corev1connect.AuditServiceClient
14
+ LogsServiceClient corev1connect.LogsServiceClient
14
15
GroupServiceClient corev1connect.GroupServiceClient
15
16
IntegrationBIServiceClient corev1connect.IntegrationBIServiceClient
16
17
IntegrationCloudServiceClient corev1connect.IntegrationCloudServiceClient
17
18
IntegrationDataCatalogServiceClient corev1connect.IntegrationDataCatalogServiceClient
18
19
IntegrationsLogServiceClient corev1connect.IntegrationsLogServiceClient
19
20
IntegrationMfaServiceClient corev1connect.IntegrationMfaServiceClient
20
21
InventoryServiceClient corev1connect.InventoryServiceClient
21
- PolicyServiceClient corev1connect.PolicyServiceClient
22
+ PoliciesServiceClient corev1connect.PoliciesServiceClient
22
23
ResourceServiceClient corev1connect.ResourceServiceClient
23
24
SatelliteServiceClient corev1connect.SatelliteServiceClient
24
25
SessionServiceClient corev1connect.SessionServiceClient
25
26
SidecarServiceClient corev1connect.SidecarServiceClient
26
- RowLevelTrackerServiceClient corev1connect.RowLevelTrackerServiceClient
27
+ TrackersServiceClient corev1connect.TrackersServiceClient
27
28
UserServiceClient corev1connect.UserServiceClient
28
29
}
29
30
@@ -33,17 +34,17 @@ func New(apiKey string) *FormalSDK {
33
34
underlyingTransport : http .DefaultTransport ,
34
35
}}
35
36
return & FormalSDK {
36
- AuditServiceClient : corev1connect .NewAuditServiceClient (httpClient , FORMAL_HOST_URL ),
37
+ LogsServiceClient : corev1connect .NewLogsServiceClient (httpClient , FORMAL_HOST_URL ),
37
38
GroupServiceClient : corev1connect .NewGroupServiceClient (httpClient , FORMAL_HOST_URL ),
38
39
IntegrationBIServiceClient : corev1connect .NewIntegrationBIServiceClient (httpClient , FORMAL_HOST_URL ),
39
40
IntegrationCloudServiceClient : corev1connect .NewIntegrationCloudServiceClient (httpClient , FORMAL_HOST_URL ),
40
41
IntegrationDataCatalogServiceClient : corev1connect .NewIntegrationDataCatalogServiceClient (httpClient , FORMAL_HOST_URL ),
41
42
IntegrationMfaServiceClient : corev1connect .NewIntegrationMfaServiceClient (httpClient , FORMAL_HOST_URL ),
42
43
IntegrationsLogServiceClient : corev1connect .NewIntegrationsLogServiceClient (httpClient , FORMAL_HOST_URL ),
43
44
InventoryServiceClient : corev1connect .NewInventoryServiceClient (httpClient , FORMAL_HOST_URL ),
44
- PolicyServiceClient : corev1connect .NewPolicyServiceClient (httpClient , FORMAL_HOST_URL ),
45
+ PoliciesServiceClient : corev1connect .NewPoliciesServiceClient (httpClient , FORMAL_HOST_URL ),
45
46
ResourceServiceClient : corev1connect .NewResourceServiceClient (httpClient , FORMAL_HOST_URL ),
46
- RowLevelTrackerServiceClient : corev1connect .NewRowLevelTrackerServiceClient (httpClient , FORMAL_HOST_URL ),
47
+ TrackersServiceClient : corev1connect .NewTrackersServiceClient (httpClient , FORMAL_HOST_URL ),
47
48
SatelliteServiceClient : corev1connect .NewSatelliteServiceClient (httpClient , FORMAL_HOST_URL ),
48
49
SessionServiceClient : corev1connect .NewSessionServiceClient (httpClient , FORMAL_HOST_URL ),
49
50
SidecarServiceClient : corev1connect .NewSidecarServiceClient (httpClient , FORMAL_HOST_URL ),
@@ -57,17 +58,17 @@ func NewWithUrl(apiKey string, url string) *FormalSDK {
57
58
underlyingTransport : http .DefaultTransport ,
58
59
}}
59
60
return & FormalSDK {
60
- AuditServiceClient : corev1connect .NewAuditServiceClient (httpClient , url ),
61
+ LogsServiceClient : corev1connect .NewLogsServiceClient (httpClient , url ),
61
62
GroupServiceClient : corev1connect .NewGroupServiceClient (httpClient , url ),
62
63
IntegrationBIServiceClient : corev1connect .NewIntegrationBIServiceClient (httpClient , url ),
63
64
IntegrationCloudServiceClient : corev1connect .NewIntegrationCloudServiceClient (httpClient , url ),
64
65
IntegrationDataCatalogServiceClient : corev1connect .NewIntegrationDataCatalogServiceClient (httpClient , url ),
65
66
IntegrationMfaServiceClient : corev1connect .NewIntegrationMfaServiceClient (httpClient , url ),
66
67
IntegrationsLogServiceClient : corev1connect .NewIntegrationsLogServiceClient (httpClient , url ),
67
68
InventoryServiceClient : corev1connect .NewInventoryServiceClient (httpClient , url ),
68
- PolicyServiceClient : corev1connect .NewPolicyServiceClient (httpClient , url ),
69
+ PoliciesServiceClient : corev1connect .NewPoliciesServiceClient (httpClient , url ),
69
70
ResourceServiceClient : corev1connect .NewResourceServiceClient (httpClient , url ),
70
- RowLevelTrackerServiceClient : corev1connect .NewRowLevelTrackerServiceClient (httpClient , url ),
71
+ TrackersServiceClient : corev1connect .NewTrackersServiceClient (httpClient , url ),
71
72
SatelliteServiceClient : corev1connect .NewSatelliteServiceClient (httpClient , url ),
72
73
SessionServiceClient : corev1connect .NewSessionServiceClient (httpClient , url ),
73
74
SidecarServiceClient : corev1connect .NewSidecarServiceClient (httpClient , url ),
0 commit comments