-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconnectors.go
749 lines (657 loc) · 20.2 KB
/
connectors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
// This file was auto-generated by Fern from our API Definition.
package api
import (
json "encoding/json"
fmt "fmt"
internal "github.com/cohere-ai/cohere-go/v2/internal"
time "time"
)
type CreateConnectorRequest struct {
// A human-readable name for the connector.
Name string `json:"name" url:"-"`
// A description of the connector.
Description *string `json:"description,omitempty" url:"-"`
// The URL of the connector that will be used to search for documents.
Url string `json:"url" url:"-"`
// A list of fields to exclude from the prompt (fields remain in the document).
Excludes []string `json:"excludes,omitempty" url:"-"`
// The OAuth 2.0 configuration for the connector. Cannot be specified if service_auth is specified.
Oauth *CreateConnectorOAuth `json:"oauth,omitempty" url:"-"`
// Whether the connector is active or not.
Active *bool `json:"active,omitempty" url:"-"`
// Whether a chat request should continue or not if the request to this connector fails.
ContinueOnFailure *bool `json:"continue_on_failure,omitempty" url:"-"`
// The service to service authentication configuration for the connector. Cannot be specified if oauth is specified.
ServiceAuth *CreateConnectorServiceAuth `json:"service_auth,omitempty" url:"-"`
}
type ConnectorsListRequest struct {
// Maximum number of connectors to return [0, 100].
Limit *float64 `json:"-" url:"limit,omitempty"`
// Number of connectors to skip before returning results [0, inf].
Offset *float64 `json:"-" url:"offset,omitempty"`
}
type ConnectorsOAuthAuthorizeRequest struct {
// The URL to redirect to after the connector has been authorized.
AfterTokenRedirect *string `json:"-" url:"after_token_redirect,omitempty"`
}
// The token_type specifies the way the token is passed in the Authorization header. Valid values are "bearer", "basic", and "noscheme".
type AuthTokenType string
const (
AuthTokenTypeBearer AuthTokenType = "bearer"
AuthTokenTypeBasic AuthTokenType = "basic"
AuthTokenTypeNoscheme AuthTokenType = "noscheme"
)
func NewAuthTokenTypeFromString(s string) (AuthTokenType, error) {
switch s {
case "bearer":
return AuthTokenTypeBearer, nil
case "basic":
return AuthTokenTypeBasic, nil
case "noscheme":
return AuthTokenTypeNoscheme, nil
}
var t AuthTokenType
return "", fmt.Errorf("%s is not a valid %T", s, t)
}
func (a AuthTokenType) Ptr() *AuthTokenType {
return &a
}
// A connector allows you to integrate data sources with the '/chat' endpoint to create grounded generations with citations to the data source.
// documents to help answer users.
type Connector struct {
// The unique identifier of the connector (used in both `/connectors` & `/chat` endpoints).
// This is automatically created from the name of the connector upon registration.
Id string `json:"id" url:"id"`
// The organization to which this connector belongs. This is automatically set to
// the organization of the user who created the connector.
OrganizationId *string `json:"organization_id,omitempty" url:"organization_id,omitempty"`
// A human-readable name for the connector.
Name string `json:"name" url:"name"`
// A description of the connector.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// The URL of the connector that will be used to search for documents.
Url *string `json:"url,omitempty" url:"url,omitempty"`
// The UTC time at which the connector was created.
CreatedAt time.Time `json:"created_at" url:"created_at"`
// The UTC time at which the connector was last updated.
UpdatedAt time.Time `json:"updated_at" url:"updated_at"`
// A list of fields to exclude from the prompt (fields remain in the document).
Excludes []string `json:"excludes,omitempty" url:"excludes,omitempty"`
// The type of authentication/authorization used by the connector. Possible values: [oauth, service_auth]
AuthType *string `json:"auth_type,omitempty" url:"auth_type,omitempty"`
// The OAuth 2.0 configuration for the connector.
Oauth *ConnectorOAuth `json:"oauth,omitempty" url:"oauth,omitempty"`
// The OAuth status for the user making the request. One of ["valid", "expired", ""]. Empty string (field is omitted) means the user has not authorized the connector yet.
AuthStatus *ConnectorAuthStatus `json:"auth_status,omitempty" url:"auth_status,omitempty"`
// Whether the connector is active or not.
Active *bool `json:"active,omitempty" url:"active,omitempty"`
// Whether a chat request should continue or not if the request to this connector fails.
ContinueOnFailure *bool `json:"continue_on_failure,omitempty" url:"continue_on_failure,omitempty"`
extraProperties map[string]interface{}
rawJSON json.RawMessage
}
func (c *Connector) GetId() string {
if c == nil {
return ""
}
return c.Id
}
func (c *Connector) GetOrganizationId() *string {
if c == nil {
return nil
}
return c.OrganizationId
}
func (c *Connector) GetName() string {
if c == nil {
return ""
}
return c.Name
}
func (c *Connector) GetDescription() *string {
if c == nil {
return nil
}
return c.Description
}
func (c *Connector) GetUrl() *string {
if c == nil {
return nil
}
return c.Url
}
func (c *Connector) GetCreatedAt() time.Time {
if c == nil {
return time.Time{}
}
return c.CreatedAt
}
func (c *Connector) GetUpdatedAt() time.Time {
if c == nil {
return time.Time{}
}
return c.UpdatedAt
}
func (c *Connector) GetExcludes() []string {
if c == nil {
return nil
}
return c.Excludes
}
func (c *Connector) GetAuthType() *string {
if c == nil {
return nil
}
return c.AuthType
}
func (c *Connector) GetOauth() *ConnectorOAuth {
if c == nil {
return nil
}
return c.Oauth
}
func (c *Connector) GetAuthStatus() *ConnectorAuthStatus {
if c == nil {
return nil
}
return c.AuthStatus
}
func (c *Connector) GetActive() *bool {
if c == nil {
return nil
}
return c.Active
}
func (c *Connector) GetContinueOnFailure() *bool {
if c == nil {
return nil
}
return c.ContinueOnFailure
}
func (c *Connector) GetExtraProperties() map[string]interface{} {
return c.extraProperties
}
func (c *Connector) UnmarshalJSON(data []byte) error {
type embed Connector
var unmarshaler = struct {
embed
CreatedAt *internal.DateTime `json:"created_at"`
UpdatedAt *internal.DateTime `json:"updated_at"`
}{
embed: embed(*c),
}
if err := json.Unmarshal(data, &unmarshaler); err != nil {
return err
}
*c = Connector(unmarshaler.embed)
c.CreatedAt = unmarshaler.CreatedAt.Time()
c.UpdatedAt = unmarshaler.UpdatedAt.Time()
extraProperties, err := internal.ExtractExtraProperties(data, *c)
if err != nil {
return err
}
c.extraProperties = extraProperties
c.rawJSON = json.RawMessage(data)
return nil
}
func (c *Connector) MarshalJSON() ([]byte, error) {
type embed Connector
var marshaler = struct {
embed
CreatedAt *internal.DateTime `json:"created_at"`
UpdatedAt *internal.DateTime `json:"updated_at"`
}{
embed: embed(*c),
CreatedAt: internal.NewDateTime(c.CreatedAt),
UpdatedAt: internal.NewDateTime(c.UpdatedAt),
}
return json.Marshal(marshaler)
}
func (c *Connector) String() string {
if len(c.rawJSON) > 0 {
if value, err := internal.StringifyJSON(c.rawJSON); err == nil {
return value
}
}
if value, err := internal.StringifyJSON(c); err == nil {
return value
}
return fmt.Sprintf("%#v", c)
}
// The OAuth status for the user making the request. One of ["valid", "expired", ""]. Empty string (field is omitted) means the user has not authorized the connector yet.
type ConnectorAuthStatus string
const (
ConnectorAuthStatusValid ConnectorAuthStatus = "valid"
ConnectorAuthStatusExpired ConnectorAuthStatus = "expired"
)
func NewConnectorAuthStatusFromString(s string) (ConnectorAuthStatus, error) {
switch s {
case "valid":
return ConnectorAuthStatusValid, nil
case "expired":
return ConnectorAuthStatusExpired, nil
}
var t ConnectorAuthStatus
return "", fmt.Errorf("%s is not a valid %T", s, t)
}
func (c ConnectorAuthStatus) Ptr() *ConnectorAuthStatus {
return &c
}
type ConnectorOAuth struct {
// The OAuth 2.0 client ID. This field is encrypted at rest.
ClientId *string `json:"client_id,omitempty" url:"client_id,omitempty"`
// The OAuth 2.0 client Secret. This field is encrypted at rest and never returned in a response.
ClientSecret *string `json:"client_secret,omitempty" url:"client_secret,omitempty"`
// The OAuth 2.0 /authorize endpoint to use when users authorize the connector.
AuthorizeUrl string `json:"authorize_url" url:"authorize_url"`
// The OAuth 2.0 /token endpoint to use when users authorize the connector.
TokenUrl string `json:"token_url" url:"token_url"`
// The OAuth scopes to request when users authorize the connector.
Scope *string `json:"scope,omitempty" url:"scope,omitempty"`
extraProperties map[string]interface{}
rawJSON json.RawMessage
}
func (c *ConnectorOAuth) GetClientId() *string {
if c == nil {
return nil
}
return c.ClientId
}
func (c *ConnectorOAuth) GetClientSecret() *string {
if c == nil {
return nil
}
return c.ClientSecret
}
func (c *ConnectorOAuth) GetAuthorizeUrl() string {
if c == nil {
return ""
}
return c.AuthorizeUrl
}
func (c *ConnectorOAuth) GetTokenUrl() string {
if c == nil {
return ""
}
return c.TokenUrl
}
func (c *ConnectorOAuth) GetScope() *string {
if c == nil {
return nil
}
return c.Scope
}
func (c *ConnectorOAuth) GetExtraProperties() map[string]interface{} {
return c.extraProperties
}
func (c *ConnectorOAuth) UnmarshalJSON(data []byte) error {
type unmarshaler ConnectorOAuth
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*c = ConnectorOAuth(value)
extraProperties, err := internal.ExtractExtraProperties(data, *c)
if err != nil {
return err
}
c.extraProperties = extraProperties
c.rawJSON = json.RawMessage(data)
return nil
}
func (c *ConnectorOAuth) String() string {
if len(c.rawJSON) > 0 {
if value, err := internal.StringifyJSON(c.rawJSON); err == nil {
return value
}
}
if value, err := internal.StringifyJSON(c); err == nil {
return value
}
return fmt.Sprintf("%#v", c)
}
type CreateConnectorOAuth struct {
// The OAuth 2.0 client ID. This fields is encrypted at rest.
ClientId *string `json:"client_id,omitempty" url:"client_id,omitempty"`
// The OAuth 2.0 client Secret. This field is encrypted at rest and never returned in a response.
ClientSecret *string `json:"client_secret,omitempty" url:"client_secret,omitempty"`
// The OAuth 2.0 /authorize endpoint to use when users authorize the connector.
AuthorizeUrl *string `json:"authorize_url,omitempty" url:"authorize_url,omitempty"`
// The OAuth 2.0 /token endpoint to use when users authorize the connector.
TokenUrl *string `json:"token_url,omitempty" url:"token_url,omitempty"`
// The OAuth scopes to request when users authorize the connector.
Scope *string `json:"scope,omitempty" url:"scope,omitempty"`
extraProperties map[string]interface{}
rawJSON json.RawMessage
}
func (c *CreateConnectorOAuth) GetClientId() *string {
if c == nil {
return nil
}
return c.ClientId
}
func (c *CreateConnectorOAuth) GetClientSecret() *string {
if c == nil {
return nil
}
return c.ClientSecret
}
func (c *CreateConnectorOAuth) GetAuthorizeUrl() *string {
if c == nil {
return nil
}
return c.AuthorizeUrl
}
func (c *CreateConnectorOAuth) GetTokenUrl() *string {
if c == nil {
return nil
}
return c.TokenUrl
}
func (c *CreateConnectorOAuth) GetScope() *string {
if c == nil {
return nil
}
return c.Scope
}
func (c *CreateConnectorOAuth) GetExtraProperties() map[string]interface{} {
return c.extraProperties
}
func (c *CreateConnectorOAuth) UnmarshalJSON(data []byte) error {
type unmarshaler CreateConnectorOAuth
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*c = CreateConnectorOAuth(value)
extraProperties, err := internal.ExtractExtraProperties(data, *c)
if err != nil {
return err
}
c.extraProperties = extraProperties
c.rawJSON = json.RawMessage(data)
return nil
}
func (c *CreateConnectorOAuth) String() string {
if len(c.rawJSON) > 0 {
if value, err := internal.StringifyJSON(c.rawJSON); err == nil {
return value
}
}
if value, err := internal.StringifyJSON(c); err == nil {
return value
}
return fmt.Sprintf("%#v", c)
}
type CreateConnectorResponse struct {
Connector *Connector `json:"connector,omitempty" url:"connector,omitempty"`
extraProperties map[string]interface{}
rawJSON json.RawMessage
}
func (c *CreateConnectorResponse) GetConnector() *Connector {
if c == nil {
return nil
}
return c.Connector
}
func (c *CreateConnectorResponse) GetExtraProperties() map[string]interface{} {
return c.extraProperties
}
func (c *CreateConnectorResponse) UnmarshalJSON(data []byte) error {
type unmarshaler CreateConnectorResponse
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*c = CreateConnectorResponse(value)
extraProperties, err := internal.ExtractExtraProperties(data, *c)
if err != nil {
return err
}
c.extraProperties = extraProperties
c.rawJSON = json.RawMessage(data)
return nil
}
func (c *CreateConnectorResponse) String() string {
if len(c.rawJSON) > 0 {
if value, err := internal.StringifyJSON(c.rawJSON); err == nil {
return value
}
}
if value, err := internal.StringifyJSON(c); err == nil {
return value
}
return fmt.Sprintf("%#v", c)
}
type CreateConnectorServiceAuth struct {
Type AuthTokenType `json:"type" url:"type"`
// The token that will be used in the HTTP Authorization header when making requests to the connector. This field is encrypted at rest and never returned in a response.
Token string `json:"token" url:"token"`
extraProperties map[string]interface{}
rawJSON json.RawMessage
}
func (c *CreateConnectorServiceAuth) GetType() AuthTokenType {
if c == nil {
return ""
}
return c.Type
}
func (c *CreateConnectorServiceAuth) GetToken() string {
if c == nil {
return ""
}
return c.Token
}
func (c *CreateConnectorServiceAuth) GetExtraProperties() map[string]interface{} {
return c.extraProperties
}
func (c *CreateConnectorServiceAuth) UnmarshalJSON(data []byte) error {
type unmarshaler CreateConnectorServiceAuth
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*c = CreateConnectorServiceAuth(value)
extraProperties, err := internal.ExtractExtraProperties(data, *c)
if err != nil {
return err
}
c.extraProperties = extraProperties
c.rawJSON = json.RawMessage(data)
return nil
}
func (c *CreateConnectorServiceAuth) String() string {
if len(c.rawJSON) > 0 {
if value, err := internal.StringifyJSON(c.rawJSON); err == nil {
return value
}
}
if value, err := internal.StringifyJSON(c); err == nil {
return value
}
return fmt.Sprintf("%#v", c)
}
type DeleteConnectorResponse = map[string]interface{}
type GetConnectorResponse struct {
Connector *Connector `json:"connector,omitempty" url:"connector,omitempty"`
extraProperties map[string]interface{}
rawJSON json.RawMessage
}
func (g *GetConnectorResponse) GetConnector() *Connector {
if g == nil {
return nil
}
return g.Connector
}
func (g *GetConnectorResponse) GetExtraProperties() map[string]interface{} {
return g.extraProperties
}
func (g *GetConnectorResponse) UnmarshalJSON(data []byte) error {
type unmarshaler GetConnectorResponse
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*g = GetConnectorResponse(value)
extraProperties, err := internal.ExtractExtraProperties(data, *g)
if err != nil {
return err
}
g.extraProperties = extraProperties
g.rawJSON = json.RawMessage(data)
return nil
}
func (g *GetConnectorResponse) String() string {
if len(g.rawJSON) > 0 {
if value, err := internal.StringifyJSON(g.rawJSON); err == nil {
return value
}
}
if value, err := internal.StringifyJSON(g); err == nil {
return value
}
return fmt.Sprintf("%#v", g)
}
type ListConnectorsResponse struct {
Connectors []*Connector `json:"connectors,omitempty" url:"connectors,omitempty"`
// Total number of connectors.
TotalCount *float64 `json:"total_count,omitempty" url:"total_count,omitempty"`
extraProperties map[string]interface{}
rawJSON json.RawMessage
}
func (l *ListConnectorsResponse) GetConnectors() []*Connector {
if l == nil {
return nil
}
return l.Connectors
}
func (l *ListConnectorsResponse) GetTotalCount() *float64 {
if l == nil {
return nil
}
return l.TotalCount
}
func (l *ListConnectorsResponse) GetExtraProperties() map[string]interface{} {
return l.extraProperties
}
func (l *ListConnectorsResponse) UnmarshalJSON(data []byte) error {
type unmarshaler ListConnectorsResponse
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*l = ListConnectorsResponse(value)
extraProperties, err := internal.ExtractExtraProperties(data, *l)
if err != nil {
return err
}
l.extraProperties = extraProperties
l.rawJSON = json.RawMessage(data)
return nil
}
func (l *ListConnectorsResponse) String() string {
if len(l.rawJSON) > 0 {
if value, err := internal.StringifyJSON(l.rawJSON); err == nil {
return value
}
}
if value, err := internal.StringifyJSON(l); err == nil {
return value
}
return fmt.Sprintf("%#v", l)
}
type OAuthAuthorizeResponse struct {
// The OAuth 2.0 redirect url. Redirect the user to this url to authorize the connector.
RedirectUrl *string `json:"redirect_url,omitempty" url:"redirect_url,omitempty"`
extraProperties map[string]interface{}
rawJSON json.RawMessage
}
func (o *OAuthAuthorizeResponse) GetRedirectUrl() *string {
if o == nil {
return nil
}
return o.RedirectUrl
}
func (o *OAuthAuthorizeResponse) GetExtraProperties() map[string]interface{} {
return o.extraProperties
}
func (o *OAuthAuthorizeResponse) UnmarshalJSON(data []byte) error {
type unmarshaler OAuthAuthorizeResponse
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*o = OAuthAuthorizeResponse(value)
extraProperties, err := internal.ExtractExtraProperties(data, *o)
if err != nil {
return err
}
o.extraProperties = extraProperties
o.rawJSON = json.RawMessage(data)
return nil
}
func (o *OAuthAuthorizeResponse) String() string {
if len(o.rawJSON) > 0 {
if value, err := internal.StringifyJSON(o.rawJSON); err == nil {
return value
}
}
if value, err := internal.StringifyJSON(o); err == nil {
return value
}
return fmt.Sprintf("%#v", o)
}
type UpdateConnectorResponse struct {
Connector *Connector `json:"connector,omitempty" url:"connector,omitempty"`
extraProperties map[string]interface{}
rawJSON json.RawMessage
}
func (u *UpdateConnectorResponse) GetConnector() *Connector {
if u == nil {
return nil
}
return u.Connector
}
func (u *UpdateConnectorResponse) GetExtraProperties() map[string]interface{} {
return u.extraProperties
}
func (u *UpdateConnectorResponse) UnmarshalJSON(data []byte) error {
type unmarshaler UpdateConnectorResponse
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*u = UpdateConnectorResponse(value)
extraProperties, err := internal.ExtractExtraProperties(data, *u)
if err != nil {
return err
}
u.extraProperties = extraProperties
u.rawJSON = json.RawMessage(data)
return nil
}
func (u *UpdateConnectorResponse) String() string {
if len(u.rawJSON) > 0 {
if value, err := internal.StringifyJSON(u.rawJSON); err == nil {
return value
}
}
if value, err := internal.StringifyJSON(u); err == nil {
return value
}
return fmt.Sprintf("%#v", u)
}
type UpdateConnectorRequest struct {
// A human-readable name for the connector.
Name *string `json:"name,omitempty" url:"-"`
// The URL of the connector that will be used to search for documents.
Url *string `json:"url,omitempty" url:"-"`
// A list of fields to exclude from the prompt (fields remain in the document).
Excludes []string `json:"excludes,omitempty" url:"-"`
// The OAuth 2.0 configuration for the connector. Cannot be specified if service_auth is specified.
Oauth *CreateConnectorOAuth `json:"oauth,omitempty" url:"-"`
Active *bool `json:"active,omitempty" url:"-"`
ContinueOnFailure *bool `json:"continue_on_failure,omitempty" url:"-"`
// The service to service authentication configuration for the connector. Cannot be specified if oauth is specified.
ServiceAuth *CreateConnectorServiceAuth `json:"service_auth,omitempty" url:"-"`
}