15
15
*/
16
16
17
17
/*
18
- * IBM OpenAPI SDK Code Generator Version: 3.35 .1-e449803c-20210628-211617
18
+ * IBM OpenAPI SDK Code Generator Version: 3.36 .1-694fc13e-20210723-211159
19
19
*/
20
20
21
21
// Package atrackerv1 : Operations and models for the AtrackerV1 service
@@ -34,17 +34,17 @@ import (
34
34
"github.com/go-openapi/strfmt"
35
35
)
36
36
37
- // AtrackerV1 : Activity Tracking is a platform service that you can configure in each region in your account to define
37
+ // AtrackerV1 : Activity Tracker is a platform service that you can configure in each region in your account to define
38
38
// how auditing events are collected and stored. Events are stored in a Cloud Object Storage bucket that is also
39
39
// available in the account.
40
40
//
41
- // Version: 1.0 .0
41
+ // Version: 1.1 .0
42
42
type AtrackerV1 struct {
43
43
Service * core.BaseService
44
44
}
45
45
46
46
// DefaultServiceURL is the default URL to make service requests to.
47
- const DefaultServiceURL = "https://private. us-south.atracker.cloud.ibm.com"
47
+ const DefaultServiceURL = "https://us-south.atracker.cloud.ibm.com"
48
48
49
49
// DefaultServiceName is the default key used to find external configuration information.
50
50
const DefaultServiceName = "atracker"
@@ -114,14 +114,10 @@ func NewAtrackerV1(options *AtrackerV1Options) (service *AtrackerV1, err error)
114
114
// GetServiceURLForRegion returns the service URL to be used for the specified region
115
115
func GetServiceURLForRegion (region string ) (string , error ) {
116
116
var endpoints = map [string ]string {
117
- "private.us-south" : "https://private.us-south.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracking Service in the us-south region.
118
- "private.us-east" : "https://private.us-east.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracking Service in the us-east region.
119
- "private.au-syd" : "https://private.au-syd.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracking Service in the au-syd region.
120
- "private.eu-de" : "https://private.eu-de.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracking Service in the eu-de region.
121
- "private.eu-gb" : "https://private.eu-gb.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracking Service in the eu-gb region.
122
- "private.in-che" : "https://private.in-che.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracking Service in the in-che region.
123
- "private.jp-tok" : "https://private.jp-tok.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracking Service in the jp-tok region.
124
- "private.kr-seo" : "https://private.kr-seo.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracking Service in the kr-seo region.
117
+ "us-south" : "https://us-south.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracker Service in the us-south region.
118
+ "private.us-south" : "https://private.us-south.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracker Service in the us-south region.
119
+ "us-east" : "https://us-east.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracker Service in the us-east region.
120
+ "private.us-east" : "https://private.us-east.atracker.cloud.ibm.com" , // The server for IBM Cloud Activity Tracker Service in the us-east region.
125
121
}
126
122
127
123
if url , ok := endpoints [region ]; ok {
@@ -872,8 +868,8 @@ func (atracker *AtrackerV1) DeleteRouteWithContext(ctx context.Context, deleteRo
872
868
}
873
869
874
870
// GetEndpoints : Get endpoints
875
- // Get information about the public and private endpoints that are enabled in a region when you use the Activity
876
- // Tracking API.
871
+ // Get information about the public and private endpoints that are enabled in a region when you use the Activity Tracker
872
+ // API.
877
873
func (atracker * AtrackerV1 ) GetEndpoints (getEndpointsOptions * GetEndpointsOptions ) (result * Endpoints , response * core.DetailedResponse , err error ) {
878
874
return atracker .GetEndpointsWithContext (context .Background (), getEndpointsOptions )
879
875
}
@@ -925,7 +921,7 @@ func (atracker *AtrackerV1) GetEndpointsWithContext(ctx context.Context, getEndp
925
921
}
926
922
927
923
// PatchEndpoints : Modify endpoints
928
- // Configure the public endpoint availability in a region to use the Activity Tracking API. By default, the private
924
+ // Configure the public endpoint availability in a region to use the Activity Tracker API. By default, the private
929
925
// endpoint is enabled and cannot be disabled.
930
926
func (atracker * AtrackerV1 ) PatchEndpoints (patchEndpointsOptions * PatchEndpointsOptions ) (result * Endpoints , response * core.DetailedResponse , err error ) {
931
927
return atracker .PatchEndpointsWithContext (context .Background (), patchEndpointsOptions )
@@ -991,15 +987,15 @@ func (atracker *AtrackerV1) PatchEndpointsWithContext(ctx context.Context, patch
991
987
return
992
988
}
993
989
994
- // APIEndpoint : Activity Tracking API endpoint.
990
+ // APIEndpoint : Activity Tracker API endpoint.
995
991
type APIEndpoint struct {
996
- // The public URL of Activity Tracking in a region.
992
+ // The public URL of Activity Tracker in a region.
997
993
PublicURL * string `json:"public_url" validate:"required"`
998
994
999
995
// Indicates whether or not the public endpoint is enabled in the account.
1000
996
PublicEnabled * bool `json:"public_enabled" validate:"required"`
1001
997
1002
- // The private URL of Activity Tracking . This URL cannot be disabled.
998
+ // The private URL of Activity Tracker . This URL cannot be disabled.
1003
999
PrivateURL * string `json:"private_url" validate:"required"`
1004
1000
1005
1001
// The private endpoint is always enabled.
@@ -1033,13 +1029,13 @@ func UnmarshalAPIEndpoint(m map[string]json.RawMessage, result interface{}) (err
1033
1029
type CreateRouteOptions struct {
1034
1030
// The name of the route. The name must be 1000 characters or less and cannot include any special characters other than
1035
1031
// `(space) - . _ :`.
1036
- Name * string `validate:"required"`
1032
+ Name * string `json:"name" validate:"required"`
1037
1033
1038
1034
// Indicates whether or not all global events should be forwarded to this region.
1039
- ReceiveGlobalEvents * bool `validate:"required"`
1035
+ ReceiveGlobalEvents * bool `json:"receive_global_events" validate:"required"`
1040
1036
1041
1037
// Routing rules that will be evaluated in their order of the array.
1042
- Rules []Rule `validate:"required"`
1038
+ Rules []Rule `json:"rules" validate:"required"`
1043
1039
1044
1040
// Allows users to set headers on API requests
1045
1041
Headers map [string ]string
@@ -1082,13 +1078,13 @@ func (options *CreateRouteOptions) SetHeaders(param map[string]string) *CreateRo
1082
1078
type CreateTargetOptions struct {
1083
1079
// The name of the target. The name must be 1000 characters or less, and cannot include any special characters other
1084
1080
// than `(space) - . _ :`.
1085
- Name * string `validate:"required"`
1081
+ Name * string `json:"name" validate:"required"`
1086
1082
1087
1083
// The type of the target.
1088
- TargetType * string `validate:"required"`
1084
+ TargetType * string `json:"target_type" validate:"required"`
1089
1085
1090
1086
// Property values for a Cloud Object Storage Endpoint.
1091
- CosEndpoint * CosEndpoint `validate:"required"`
1087
+ CosEndpoint * CosEndpoint `json:"cos_endpoint" validate:"required"`
1092
1088
1093
1089
// Allows users to set headers on API requests
1094
1090
Headers map [string ]string
@@ -1136,7 +1132,7 @@ func (options *CreateTargetOptions) SetHeaders(param map[string]string) *CreateT
1136
1132
// DeleteRouteOptions : The DeleteRoute options.
1137
1133
type DeleteRouteOptions struct {
1138
1134
// The v4 UUID that uniquely identifies the route.
1139
- ID * string `validate:"required,ne="`
1135
+ ID * string `json:"-" validate:"required,ne="`
1140
1136
1141
1137
// Allows users to set headers on API requests
1142
1138
Headers map [string ]string
@@ -1164,7 +1160,7 @@ func (options *DeleteRouteOptions) SetHeaders(param map[string]string) *DeleteRo
1164
1160
// DeleteTargetOptions : The DeleteTarget options.
1165
1161
type DeleteTargetOptions struct {
1166
1162
// The v4 UUID that uniquely identifies the target.
1167
- ID * string `validate:"required,ne="`
1163
+ ID * string `json:"-" validate:"required,ne="`
1168
1164
1169
1165
// Allows users to set headers on API requests
1170
1166
Headers map [string ]string
@@ -1189,9 +1185,9 @@ func (options *DeleteTargetOptions) SetHeaders(param map[string]string) *DeleteT
1189
1185
return options
1190
1186
}
1191
1187
1192
- // Endpoints : Activity Tracking endpoints.
1188
+ // Endpoints : Activity Tracker endpoints.
1193
1189
type Endpoints struct {
1194
- // Activity Tracking API endpoint.
1190
+ // Activity Tracker API endpoint.
1195
1191
APIEndpoint * APIEndpoint `json:"api_endpoint" validate:"required"`
1196
1192
}
1197
1193
@@ -1206,7 +1202,7 @@ func UnmarshalEndpoints(m map[string]json.RawMessage, result interface{}) (err e
1206
1202
return
1207
1203
}
1208
1204
1209
- // EndpointsRequestAPIEndpoint : Activity Tracking service API endpoint.
1205
+ // EndpointsRequestAPIEndpoint : Activity Tracker service API endpoint.
1210
1206
type EndpointsRequestAPIEndpoint struct {
1211
1207
// Indicate whether or not the public endpoint is enabled in an account.
1212
1208
PublicEnabled * bool `json:"public_enabled,omitempty"`
@@ -1244,7 +1240,7 @@ func (options *GetEndpointsOptions) SetHeaders(param map[string]string) *GetEndp
1244
1240
// GetRouteOptions : The GetRoute options.
1245
1241
type GetRouteOptions struct {
1246
1242
// The v4 UUID that uniquely identifies the route.
1247
- ID * string `validate:"required,ne="`
1243
+ ID * string `json:"-" validate:"required,ne="`
1248
1244
1249
1245
// Allows users to set headers on API requests
1250
1246
Headers map [string ]string
@@ -1272,7 +1268,7 @@ func (options *GetRouteOptions) SetHeaders(param map[string]string) *GetRouteOpt
1272
1268
// GetTargetOptions : The GetTarget options.
1273
1269
type GetTargetOptions struct {
1274
1270
// The v4 UUID that uniquely identifies the target.
1275
- ID * string `validate:"required,ne="`
1271
+ ID * string `json:"-" validate:"required,ne="`
1276
1272
1277
1273
// Allows users to set headers on API requests
1278
1274
Headers map [string ]string
@@ -1335,8 +1331,8 @@ func (options *ListTargetsOptions) SetHeaders(param map[string]string) *ListTarg
1335
1331
1336
1332
// PatchEndpointsOptions : The PatchEndpoints options.
1337
1333
type PatchEndpointsOptions struct {
1338
- // Activity Tracking service API endpoint.
1339
- APIEndpoint * EndpointsRequestAPIEndpoint
1334
+ // Activity Tracker service API endpoint.
1335
+ APIEndpoint * EndpointsRequestAPIEndpoint `json:"api_endpoint,omitempty"`
1340
1336
1341
1337
// Allows users to set headers on API requests
1342
1338
Headers map [string ]string
@@ -1362,17 +1358,17 @@ func (options *PatchEndpointsOptions) SetHeaders(param map[string]string) *Patch
1362
1358
// ReplaceRouteOptions : The ReplaceRoute options.
1363
1359
type ReplaceRouteOptions struct {
1364
1360
// The v4 UUID that uniquely identifies the route.
1365
- ID * string `validate:"required,ne="`
1361
+ ID * string `json:"-" validate:"required,ne="`
1366
1362
1367
1363
// The name of the route. The name must be 1000 characters or less and cannot include any special characters other than
1368
1364
// `(space) - . _ :`.
1369
- Name * string `validate:"required"`
1365
+ Name * string `json:"name" validate:"required"`
1370
1366
1371
1367
// Indicates whether or not all global events should be forwarded to this region.
1372
- ReceiveGlobalEvents * bool `validate:"required"`
1368
+ ReceiveGlobalEvents * bool `json:"receive_global_events" validate:"required"`
1373
1369
1374
1370
// Routing rules that will be evaluated in their order of the array.
1375
- Rules []Rule `validate:"required"`
1371
+ Rules []Rule `json:"rules" validate:"required"`
1376
1372
1377
1373
// Allows users to set headers on API requests
1378
1374
Headers map [string ]string
@@ -1421,17 +1417,17 @@ func (options *ReplaceRouteOptions) SetHeaders(param map[string]string) *Replace
1421
1417
// ReplaceTargetOptions : The ReplaceTarget options.
1422
1418
type ReplaceTargetOptions struct {
1423
1419
// The v4 UUID that uniquely identifies the target.
1424
- ID * string `validate:"required,ne="`
1420
+ ID * string `json:"-" validate:"required,ne="`
1425
1421
1426
1422
// The name of the target. The name must be 1000 characters or less, and cannot include any special characters other
1427
1423
// than `(space) - . _ :`.
1428
- Name * string `validate:"required"`
1424
+ Name * string `json:"name" validate:"required"`
1429
1425
1430
1426
// The type of the target.
1431
- TargetType * string `validate:"required"`
1427
+ TargetType * string `json:"target_type" validate:"required"`
1432
1428
1433
1429
// Property values for a Cloud Object Storage Endpoint.
1434
- CosEndpoint * CosEndpoint `validate:"required"`
1430
+ CosEndpoint * CosEndpoint `json:"cos_endpoint" validate:"required"`
1435
1431
1436
1432
// Allows users to set headers on API requests
1437
1433
Headers map [string ]string
@@ -1607,7 +1603,7 @@ type Target struct {
1607
1603
// The type of the target.
1608
1604
TargetType * string `json:"target_type" validate:"required"`
1609
1605
1610
- // The encryption key that is used to encrypt events before Activity Tracking services buffer them on storage. This
1606
+ // The encryption key that is used to encrypt events before Activity Tracker services buffer them on storage. This
1611
1607
// credential is masked in the response.
1612
1608
EncryptKey * string `json:"encrypt_key,omitempty"`
1613
1609
@@ -1693,7 +1689,7 @@ func UnmarshalTargetList(m map[string]json.RawMessage, result interface{}) (err
1693
1689
// ValidateTargetOptions : The ValidateTarget options.
1694
1690
type ValidateTargetOptions struct {
1695
1691
// The v4 UUID that uniquely identifies the target.
1696
- ID * string `validate:"required,ne="`
1692
+ ID * string `json:"-" validate:"required,ne="`
1697
1693
1698
1694
// Allows users to set headers on API requests
1699
1695
Headers map [string ]string
0 commit comments