/
prod_tt_sasportal-gen.go
11095 lines (10201 loc) · 364 KB
/
prod_tt_sasportal-gen.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
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package prod_tt_sasportal provides access to the SAS Portal API (Testing).
//
// For product documentation, see: https://developers.google.com/spectrum-access-system/
//
// Creating a client
//
// Usage example:
//
// import "google.golang.org/api/prod_tt_sasportal/v1alpha1"
// ...
// ctx := context.Background()
// prod_tt_sasportalService, err := prod_tt_sasportal.NewService(ctx)
//
// In this example, Google Application Default Credentials are used for authentication.
//
// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
//
// Other authentication options
//
// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
//
// prod_tt_sasportalService, err := prod_tt_sasportal.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// prod_tt_sasportalService, err := prod_tt_sasportal.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See https://godoc.org/google.golang.org/api/option/ for details on options.
package prod_tt_sasportal // import "google.golang.org/api/prod_tt_sasportal/v1alpha1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = internaloption.WithDefaultEndpoint
const apiId = "prod_tt_sasportal:v1alpha1"
const apiName = "prod_tt_sasportal"
const apiVersion = "v1alpha1"
const basePath = "https://prod-tt-sasportal.googleapis.com/"
const mtlsBasePath = "https://prod-tt-sasportal.mtls.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// View your email address
UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"
)
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
scopesOption := option.WithScopes(
"https://www.googleapis.com/auth/userinfo.email",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new Service. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Customers = NewCustomersService(s)
s.Deployments = NewDeploymentsService(s)
s.Installer = NewInstallerService(s)
s.Nodes = NewNodesService(s)
s.Policies = NewPoliciesService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Customers *CustomersService
Deployments *DeploymentsService
Installer *InstallerService
Nodes *NodesService
Policies *PoliciesService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewCustomersService(s *Service) *CustomersService {
rs := &CustomersService{s: s}
rs.Deployments = NewCustomersDeploymentsService(s)
rs.Devices = NewCustomersDevicesService(s)
rs.Nodes = NewCustomersNodesService(s)
return rs
}
type CustomersService struct {
s *Service
Deployments *CustomersDeploymentsService
Devices *CustomersDevicesService
Nodes *CustomersNodesService
}
func NewCustomersDeploymentsService(s *Service) *CustomersDeploymentsService {
rs := &CustomersDeploymentsService{s: s}
rs.Devices = NewCustomersDeploymentsDevicesService(s)
return rs
}
type CustomersDeploymentsService struct {
s *Service
Devices *CustomersDeploymentsDevicesService
}
func NewCustomersDeploymentsDevicesService(s *Service) *CustomersDeploymentsDevicesService {
rs := &CustomersDeploymentsDevicesService{s: s}
return rs
}
type CustomersDeploymentsDevicesService struct {
s *Service
}
func NewCustomersDevicesService(s *Service) *CustomersDevicesService {
rs := &CustomersDevicesService{s: s}
return rs
}
type CustomersDevicesService struct {
s *Service
}
func NewCustomersNodesService(s *Service) *CustomersNodesService {
rs := &CustomersNodesService{s: s}
rs.Nodes = NewCustomersNodesNodesService(s)
return rs
}
type CustomersNodesService struct {
s *Service
Nodes *CustomersNodesNodesService
}
func NewCustomersNodesNodesService(s *Service) *CustomersNodesNodesService {
rs := &CustomersNodesNodesService{s: s}
return rs
}
type CustomersNodesNodesService struct {
s *Service
}
func NewDeploymentsService(s *Service) *DeploymentsService {
rs := &DeploymentsService{s: s}
rs.Devices = NewDeploymentsDevicesService(s)
return rs
}
type DeploymentsService struct {
s *Service
Devices *DeploymentsDevicesService
}
func NewDeploymentsDevicesService(s *Service) *DeploymentsDevicesService {
rs := &DeploymentsDevicesService{s: s}
return rs
}
type DeploymentsDevicesService struct {
s *Service
}
func NewInstallerService(s *Service) *InstallerService {
rs := &InstallerService{s: s}
return rs
}
type InstallerService struct {
s *Service
}
func NewNodesService(s *Service) *NodesService {
rs := &NodesService{s: s}
rs.Deployments = NewNodesDeploymentsService(s)
rs.Devices = NewNodesDevicesService(s)
rs.Nodes = NewNodesNodesService(s)
return rs
}
type NodesService struct {
s *Service
Deployments *NodesDeploymentsService
Devices *NodesDevicesService
Nodes *NodesNodesService
}
func NewNodesDeploymentsService(s *Service) *NodesDeploymentsService {
rs := &NodesDeploymentsService{s: s}
rs.Devices = NewNodesDeploymentsDevicesService(s)
return rs
}
type NodesDeploymentsService struct {
s *Service
Devices *NodesDeploymentsDevicesService
}
func NewNodesDeploymentsDevicesService(s *Service) *NodesDeploymentsDevicesService {
rs := &NodesDeploymentsDevicesService{s: s}
return rs
}
type NodesDeploymentsDevicesService struct {
s *Service
}
func NewNodesDevicesService(s *Service) *NodesDevicesService {
rs := &NodesDevicesService{s: s}
return rs
}
type NodesDevicesService struct {
s *Service
}
func NewNodesNodesService(s *Service) *NodesNodesService {
rs := &NodesNodesService{s: s}
rs.Devices = NewNodesNodesDevicesService(s)
rs.Nodes = NewNodesNodesNodesService(s)
return rs
}
type NodesNodesService struct {
s *Service
Devices *NodesNodesDevicesService
Nodes *NodesNodesNodesService
}
func NewNodesNodesDevicesService(s *Service) *NodesNodesDevicesService {
rs := &NodesNodesDevicesService{s: s}
return rs
}
type NodesNodesDevicesService struct {
s *Service
}
func NewNodesNodesNodesService(s *Service) *NodesNodesNodesService {
rs := &NodesNodesNodesService{s: s}
return rs
}
type NodesNodesNodesService struct {
s *Service
}
func NewPoliciesService(s *Service) *PoliciesService {
rs := &PoliciesService{s: s}
return rs
}
type PoliciesService struct {
s *Service
}
// SasPortalAssignment: Associates `members` with a `role`.
type SasPortalAssignment struct {
// Members: The identities the role is assigned to. It can have the
// following values: * `{user_email}`: An email address that represents
// a specific Google account. For example: `alice@gmail.com`. *
// `{group_email}`: An email address that represents a Google group. For
// example, `viewers@gmail.com`.
Members []string `json:"members,omitempty"`
// Role: Required. Role that is assigned to `members`.
Role string `json:"role,omitempty"`
// ForceSendFields is a list of field names (e.g. "Members") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Members") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalAssignment) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalAssignment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalBulkCreateDeviceRequest: Request for BulkCreateDevice
// method.
type SasPortalBulkCreateDeviceRequest struct {
// Csv: Required. A csv with each row representing a [device]. Each row
// must conform to the regulations described on CreateDeviceRequest's
// device field.
Csv string `json:"csv,omitempty"`
// ForceSendFields is a list of field names (e.g. "Csv") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Csv") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalBulkCreateDeviceRequest) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalBulkCreateDeviceRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalBulkCreateDeviceResponse: Response for BulkCreateDevice
// method.
type SasPortalBulkCreateDeviceResponse struct {
// Devices: Required. The devices that were imported.
Devices []*SasPortalDevice `json:"devices,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Devices") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Devices") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalBulkCreateDeviceResponse) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalBulkCreateDeviceResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalCreateSignedDeviceRequest: Request for CreateSignedDevice
// method.
type SasPortalCreateSignedDeviceRequest struct {
// EncodedDevice: Required. JSON Web Token signed using a CPI private
// key. Payload must be the JSON encoding of the [Device]. The user_id
// field must be set.
EncodedDevice string `json:"encodedDevice,omitempty"`
// InstallerId: Required. Unique installer id (cpiId) from the Certified
// Professional Installers database.
InstallerId string `json:"installerId,omitempty"`
// ForceSendFields is a list of field names (e.g. "EncodedDevice") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EncodedDevice") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalCreateSignedDeviceRequest) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalCreateSignedDeviceRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalCustomer: Entity representing a SAS customer.
type SasPortalCustomer struct {
// DisplayName: Required. Name of the organization that the customer
// entity represents.
DisplayName string `json:"displayName,omitempty"`
// Name: Output only. Resource name of the customer.
Name string `json:"name,omitempty"`
// SasUserIds: User IDs used by the devices belonging to this customer.
SasUserIds []string `json:"sasUserIds,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalCustomer) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalCustomer
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SasPortalDevice struct {
// ActiveConfig: Output only. Current configuration of the device as
// registered to the SAS.
ActiveConfig *SasPortalDeviceConfig `json:"activeConfig,omitempty"`
// DeviceMetadata: Device parameters that can be overridden by both SAS
// Portal and SAS registration requests.
DeviceMetadata *SasPortalDeviceMetadata `json:"deviceMetadata,omitempty"`
// DisplayName: Device display name.
DisplayName string `json:"displayName,omitempty"`
// FccId: The FCC identifier of the device.
FccId string `json:"fccId,omitempty"`
// Grants: Output only. Grants held by the device.
Grants []*SasPortalDeviceGrant `json:"grants,omitempty"`
// Name: Output only. The resource path name.
Name string `json:"name,omitempty"`
// PreloadedConfig: Configuration of the device, as specified via SAS
// Portal API.
PreloadedConfig *SasPortalDeviceConfig `json:"preloadedConfig,omitempty"`
// SerialNumber: A serial number assigned to the device by the device
// manufacturer.
SerialNumber string `json:"serialNumber,omitempty"`
// State: Output only. Device state.
//
// Possible values:
// "DEVICE_STATE_UNSPECIFIED" - Unspecified state.
// "RESERVED" - Device created in the SAS Portal, however, not yet
// registered with SAS.
// "REGISTERED" - Device registered with SAS.
// "DEREGISTERED" - Device de-registered with SAS.
State string `json:"state,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ActiveConfig") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ActiveConfig") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalDevice) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalDevice
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalDeviceAirInterface: Information about the device's air
// interface.
type SasPortalDeviceAirInterface struct {
// RadioTechnology: This field specifies the radio access technology
// that is used for the CBSD. Conditional
//
// Possible values:
// "RADIO_TECHNOLOGY_UNSPECIFIED"
// "E_UTRA"
// "CAMBIUM_NETWORKS"
// "FOUR_G_BBW_SAA_1"
// "NR"
// "DOODLE_CBRS"
// "CW"
// "REDLINE"
// "TARANA_WIRELESS"
RadioTechnology string `json:"radioTechnology,omitempty"`
// SupportedSpec: This field is related to the radioTechnology field and
// provides the air interface specification that the CBSD is compliant
// with at the time of registration. Optional
SupportedSpec string `json:"supportedSpec,omitempty"`
// ForceSendFields is a list of field names (e.g. "RadioTechnology") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RadioTechnology") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SasPortalDeviceAirInterface) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalDeviceAirInterface
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalDeviceConfig: Information about the device configuration.
type SasPortalDeviceConfig struct {
// AirInterface: Information about this device's air interface.
AirInterface *SasPortalDeviceAirInterface `json:"airInterface,omitempty"`
// CallSign: The call sign of the device operator.
CallSign string `json:"callSign,omitempty"`
// Category: FCC category of the device.
//
// Possible values:
// "DEVICE_CATEGORY_UNSPECIFIED" - Unspecified device category.
// "DEVICE_CATEGORY_A" - Category A.
// "DEVICE_CATEGORY_B" - Category B.
Category string `json:"category,omitempty"`
// InstallationParams: Installation parameters for the device.
InstallationParams *SasPortalInstallationParams `json:"installationParams,omitempty"`
// IsSigned: Output-only. Whether the configuration has been signed by a
// CPI.
IsSigned bool `json:"isSigned,omitempty"`
// MeasurementCapabilities: Measurement reporting capabilities of the
// device.
//
// Possible values:
// "MEASUREMENT_CAPABILITY_UNSPECIFIED"
// "MEASUREMENT_CAPABILITY_RECEIVED_POWER_WITH_GRANT"
// "MEASUREMENT_CAPABILITY_RECEIVED_POWER_WITHOUT_GRANT"
MeasurementCapabilities []string `json:"measurementCapabilities,omitempty"`
// Model: Information about this device model.
Model *SasPortalDeviceModel `json:"model,omitempty"`
// State: State of the configuration.
//
// Possible values:
// "DEVICE_CONFIG_STATE_UNSPECIFIED"
// "DRAFT"
// "FINAL"
State string `json:"state,omitempty"`
// UpdateTime: Output-only. The last time the device configuration was
// edited.
UpdateTime string `json:"updateTime,omitempty"`
// UserId: The identifier of a device user.
UserId string `json:"userId,omitempty"`
// ForceSendFields is a list of field names (e.g. "AirInterface") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AirInterface") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalDeviceConfig) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalDeviceConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalDeviceGrant: Device grant. It is an authorization provided
// by the Spectrum Access System to a device to transmit using specified
// operating parameters after a successful heartbeat by the device.
type SasPortalDeviceGrant struct {
// ChannelType: Type of channel used.
//
// Possible values:
// "CHANNEL_TYPE_UNSPECIFIED"
// "CHANNEL_TYPE_GAA"
// "CHANNEL_TYPE_PAL"
ChannelType string `json:"channelType,omitempty"`
// ExpireTime: The expiration time of the grant.
ExpireTime string `json:"expireTime,omitempty"`
// FrequencyRange: The transmission frequency range.
FrequencyRange *SasPortalFrequencyRange `json:"frequencyRange,omitempty"`
// GrantId: Grant Id.
GrantId string `json:"grantId,omitempty"`
// MaxEirp: Maximum Equivalent Isotropically Radiated Power (EIRP)
// permitted by the grant. The maximum EIRP is in units of dBm/MHz. The
// value of maxEirp represents the average (RMS) EIRP that would be
// measured by the procedure defined in FCC part 96.41(e)(3).
MaxEirp float64 `json:"maxEirp,omitempty"`
// MoveList: The DPA move lists on which this grant appears.
MoveList []*SasPortalDpaMoveList `json:"moveList,omitempty"`
// State: State of the grant.
//
// Possible values:
// "GRANT_STATE_UNSPECIFIED"
// "GRANT_STATE_GRANTED" - The grant has been granted but the device
// is not heartbeating on it.
// "GRANT_STATE_TERMINATED" - The grant has been terminated by the
// SAS.
// "GRANT_STATE_SUSPENDED" - The grant has been suspended by the SAS.
// "GRANT_STATE_AUTHORIZED" - The device is currently transmitting.
// "GRANT_STATE_EXPIRED" - The grant has expired.
State string `json:"state,omitempty"`
// SuspensionReason: If the grant is suspended, the reason(s) for
// suspension.
SuspensionReason []string `json:"suspensionReason,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChannelType") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChannelType") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalDeviceGrant) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalDeviceGrant
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *SasPortalDeviceGrant) UnmarshalJSON(data []byte) error {
type NoMethod SasPortalDeviceGrant
var s1 struct {
MaxEirp gensupport.JSONFloat64 `json:"maxEirp"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.MaxEirp = float64(s1.MaxEirp)
return nil
}
// SasPortalDeviceMetadata: Device data overridable by both SAS Portal
// and registration requests.
type SasPortalDeviceMetadata struct {
}
// SasPortalDeviceModel: Information about the model of the device.
type SasPortalDeviceModel struct {
// FirmwareVersion: The firmware version of the device.
FirmwareVersion string `json:"firmwareVersion,omitempty"`
// HardwareVersion: The hardware version of the device.
HardwareVersion string `json:"hardwareVersion,omitempty"`
// Name: The name of the device model.
Name string `json:"name,omitempty"`
// SoftwareVersion: The software version of the device.
SoftwareVersion string `json:"softwareVersion,omitempty"`
// Vendor: The name of the device vendor.
Vendor string `json:"vendor,omitempty"`
// ForceSendFields is a list of field names (e.g. "FirmwareVersion") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FirmwareVersion") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SasPortalDeviceModel) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalDeviceModel
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalDpaMoveList: An entry in a DPA's move list.
type SasPortalDpaMoveList struct {
// DpaId: The ID of the DPA.
DpaId string `json:"dpaId,omitempty"`
// FrequencyRange: The frequency range that the move list affects.
FrequencyRange *SasPortalFrequencyRange `json:"frequencyRange,omitempty"`
// ForceSendFields is a list of field names (e.g. "DpaId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DpaId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalDpaMoveList) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalDpaMoveList
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalEmpty: A generic empty message that you can re-use to avoid
// defining duplicated empty messages in your APIs. A typical example is
// to use it as the request or the response type of an API method. For
// instance: service Foo { rpc Bar(google.protobuf.Empty) returns
// (google.protobuf.Empty); } The JSON representation for `Empty` is
// empty JSON object `{}`.
type SasPortalEmpty struct {
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
}
// SasPortalFrequencyRange: Frequency range from `low_frequency` to
// `high_frequency`.
type SasPortalFrequencyRange struct {
// HighFrequencyMhz: The highest frequency of the frequency range in
// MHz.
HighFrequencyMhz float64 `json:"highFrequencyMhz,omitempty"`
// LowFrequencyMhz: The lowest frequency of the frequency range in MHz.
LowFrequencyMhz float64 `json:"lowFrequencyMhz,omitempty"`
// ForceSendFields is a list of field names (e.g. "HighFrequencyMhz") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HighFrequencyMhz") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SasPortalFrequencyRange) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalFrequencyRange
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *SasPortalFrequencyRange) UnmarshalJSON(data []byte) error {
type NoMethod SasPortalFrequencyRange
var s1 struct {
HighFrequencyMhz gensupport.JSONFloat64 `json:"highFrequencyMhz"`
LowFrequencyMhz gensupport.JSONFloat64 `json:"lowFrequencyMhz"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.HighFrequencyMhz = float64(s1.HighFrequencyMhz)
s.LowFrequencyMhz = float64(s1.LowFrequencyMhz)
return nil
}
// SasPortalGenerateSecretRequest: Request for GenerateSecret method]
// [spectrum.sas.portal.v1alpha1.DeviceManager.GenerateSecret].
type SasPortalGenerateSecretRequest struct {
}
// SasPortalGenerateSecretResponse: Response for GenerateSecret method.
type SasPortalGenerateSecretResponse struct {
// Secret: The secret generated by the string and used by
// [ValidateInstaller] method.
Secret string `json:"secret,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Secret") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Secret") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalGenerateSecretResponse) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalGenerateSecretResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalGetPolicyRequest: Request message for `GetPolicy` method.
type SasPortalGetPolicyRequest struct {
// Resource: Required. The resource for which the policy is being
// requested.
Resource string `json:"resource,omitempty"`
// ForceSendFields is a list of field names (e.g. "Resource") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Resource") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SasPortalGetPolicyRequest) MarshalJSON() ([]byte, error) {
type NoMethod SasPortalGetPolicyRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SasPortalInstallationParams: Information about the device
// installation parameters.
type SasPortalInstallationParams struct {
// AntennaAzimuth: Boresight direction of the horizontal plane of the
// antenna in degrees with respect to true north. The value of this
// parameter is an integer with a value between 0 and 359 inclusive. A
// value of 0 degrees means true north; a value of 90 degrees means
// east. This parameter is optional for Category A devices and
// conditional for Category B devices.
AntennaAzimuth int64 `json:"antennaAzimuth,omitempty"`
// AntennaBeamwidth: 3-dB antenna beamwidth of the antenna in the
// horizontal-plane in degrees. This parameter is an unsigned integer