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 package tagmanager
57
58 import (
59 "bytes"
60 "context"
61 "encoding/json"
62 "errors"
63 "fmt"
64 "io"
65 "net/http"
66 "net/url"
67 "strconv"
68 "strings"
69
70 googleapi "google.golang.org/api/googleapi"
71 internal "google.golang.org/api/internal"
72 gensupport "google.golang.org/api/internal/gensupport"
73 option "google.golang.org/api/option"
74 internaloption "google.golang.org/api/option/internaloption"
75 htransport "google.golang.org/api/transport/http"
76 )
77
78
79
80 var _ = bytes.NewBuffer
81 var _ = strconv.Itoa
82 var _ = fmt.Sprintf
83 var _ = json.NewDecoder
84 var _ = io.Copy
85 var _ = url.Parse
86 var _ = gensupport.MarshalJSON
87 var _ = googleapi.Version
88 var _ = errors.New
89 var _ = strings.Replace
90 var _ = context.Canceled
91 var _ = internaloption.WithDefaultEndpoint
92 var _ = internal.Version
93
94 const apiId = "tagmanager:v2"
95 const apiName = "tagmanager"
96 const apiVersion = "v2"
97 const basePath = "https://tagmanager.googleapis.com/"
98 const basePathTemplate = "https://tagmanager.UNIVERSE_DOMAIN/"
99 const mtlsBasePath = "https://tagmanager.mtls.googleapis.com/"
100
101
102 const (
103
104 TagmanagerDeleteContainersScope = "https://www.googleapis.com/auth/tagmanager.delete.containers"
105
106
107
108 TagmanagerEditContainersScope = "https://www.googleapis.com/auth/tagmanager.edit.containers"
109
110
111 TagmanagerEditContainerversionsScope = "https://www.googleapis.com/auth/tagmanager.edit.containerversions"
112
113
114 TagmanagerManageAccountsScope = "https://www.googleapis.com/auth/tagmanager.manage.accounts"
115
116
117 TagmanagerManageUsersScope = "https://www.googleapis.com/auth/tagmanager.manage.users"
118
119
120 TagmanagerPublishScope = "https://www.googleapis.com/auth/tagmanager.publish"
121
122
123 TagmanagerReadonlyScope = "https://www.googleapis.com/auth/tagmanager.readonly"
124 )
125
126
127 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
128 scopesOption := internaloption.WithDefaultScopes(
129 "https://www.googleapis.com/auth/tagmanager.delete.containers",
130 "https://www.googleapis.com/auth/tagmanager.edit.containers",
131 "https://www.googleapis.com/auth/tagmanager.edit.containerversions",
132 "https://www.googleapis.com/auth/tagmanager.manage.accounts",
133 "https://www.googleapis.com/auth/tagmanager.manage.users",
134 "https://www.googleapis.com/auth/tagmanager.publish",
135 "https://www.googleapis.com/auth/tagmanager.readonly",
136 )
137
138 opts = append([]option.ClientOption{scopesOption}, opts...)
139 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
140 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
141 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
142 opts = append(opts, internaloption.EnableNewAuthLibrary())
143 client, endpoint, err := htransport.NewClient(ctx, opts...)
144 if err != nil {
145 return nil, err
146 }
147 s, err := New(client)
148 if err != nil {
149 return nil, err
150 }
151 if endpoint != "" {
152 s.BasePath = endpoint
153 }
154 return s, nil
155 }
156
157
158
159
160
161
162 func New(client *http.Client) (*Service, error) {
163 if client == nil {
164 return nil, errors.New("client is nil")
165 }
166 s := &Service{client: client, BasePath: basePath}
167 s.Accounts = NewAccountsService(s)
168 return s, nil
169 }
170
171 type Service struct {
172 client *http.Client
173 BasePath string
174 UserAgent string
175
176 Accounts *AccountsService
177 }
178
179 func (s *Service) userAgent() string {
180 if s.UserAgent == "" {
181 return googleapi.UserAgent
182 }
183 return googleapi.UserAgent + " " + s.UserAgent
184 }
185
186 func NewAccountsService(s *Service) *AccountsService {
187 rs := &AccountsService{s: s}
188 rs.Containers = NewAccountsContainersService(s)
189 rs.UserPermissions = NewAccountsUserPermissionsService(s)
190 return rs
191 }
192
193 type AccountsService struct {
194 s *Service
195
196 Containers *AccountsContainersService
197
198 UserPermissions *AccountsUserPermissionsService
199 }
200
201 func NewAccountsContainersService(s *Service) *AccountsContainersService {
202 rs := &AccountsContainersService{s: s}
203 rs.Destinations = NewAccountsContainersDestinationsService(s)
204 rs.Environments = NewAccountsContainersEnvironmentsService(s)
205 rs.VersionHeaders = NewAccountsContainersVersionHeadersService(s)
206 rs.Versions = NewAccountsContainersVersionsService(s)
207 rs.Workspaces = NewAccountsContainersWorkspacesService(s)
208 return rs
209 }
210
211 type AccountsContainersService struct {
212 s *Service
213
214 Destinations *AccountsContainersDestinationsService
215
216 Environments *AccountsContainersEnvironmentsService
217
218 VersionHeaders *AccountsContainersVersionHeadersService
219
220 Versions *AccountsContainersVersionsService
221
222 Workspaces *AccountsContainersWorkspacesService
223 }
224
225 func NewAccountsContainersDestinationsService(s *Service) *AccountsContainersDestinationsService {
226 rs := &AccountsContainersDestinationsService{s: s}
227 return rs
228 }
229
230 type AccountsContainersDestinationsService struct {
231 s *Service
232 }
233
234 func NewAccountsContainersEnvironmentsService(s *Service) *AccountsContainersEnvironmentsService {
235 rs := &AccountsContainersEnvironmentsService{s: s}
236 return rs
237 }
238
239 type AccountsContainersEnvironmentsService struct {
240 s *Service
241 }
242
243 func NewAccountsContainersVersionHeadersService(s *Service) *AccountsContainersVersionHeadersService {
244 rs := &AccountsContainersVersionHeadersService{s: s}
245 return rs
246 }
247
248 type AccountsContainersVersionHeadersService struct {
249 s *Service
250 }
251
252 func NewAccountsContainersVersionsService(s *Service) *AccountsContainersVersionsService {
253 rs := &AccountsContainersVersionsService{s: s}
254 return rs
255 }
256
257 type AccountsContainersVersionsService struct {
258 s *Service
259 }
260
261 func NewAccountsContainersWorkspacesService(s *Service) *AccountsContainersWorkspacesService {
262 rs := &AccountsContainersWorkspacesService{s: s}
263 rs.BuiltInVariables = NewAccountsContainersWorkspacesBuiltInVariablesService(s)
264 rs.Clients = NewAccountsContainersWorkspacesClientsService(s)
265 rs.Folders = NewAccountsContainersWorkspacesFoldersService(s)
266 rs.GtagConfig = NewAccountsContainersWorkspacesGtagConfigService(s)
267 rs.Tags = NewAccountsContainersWorkspacesTagsService(s)
268 rs.Templates = NewAccountsContainersWorkspacesTemplatesService(s)
269 rs.Transformations = NewAccountsContainersWorkspacesTransformationsService(s)
270 rs.Triggers = NewAccountsContainersWorkspacesTriggersService(s)
271 rs.Variables = NewAccountsContainersWorkspacesVariablesService(s)
272 rs.Zones = NewAccountsContainersWorkspacesZonesService(s)
273 return rs
274 }
275
276 type AccountsContainersWorkspacesService struct {
277 s *Service
278
279 BuiltInVariables *AccountsContainersWorkspacesBuiltInVariablesService
280
281 Clients *AccountsContainersWorkspacesClientsService
282
283 Folders *AccountsContainersWorkspacesFoldersService
284
285 GtagConfig *AccountsContainersWorkspacesGtagConfigService
286
287 Tags *AccountsContainersWorkspacesTagsService
288
289 Templates *AccountsContainersWorkspacesTemplatesService
290
291 Transformations *AccountsContainersWorkspacesTransformationsService
292
293 Triggers *AccountsContainersWorkspacesTriggersService
294
295 Variables *AccountsContainersWorkspacesVariablesService
296
297 Zones *AccountsContainersWorkspacesZonesService
298 }
299
300 func NewAccountsContainersWorkspacesBuiltInVariablesService(s *Service) *AccountsContainersWorkspacesBuiltInVariablesService {
301 rs := &AccountsContainersWorkspacesBuiltInVariablesService{s: s}
302 return rs
303 }
304
305 type AccountsContainersWorkspacesBuiltInVariablesService struct {
306 s *Service
307 }
308
309 func NewAccountsContainersWorkspacesClientsService(s *Service) *AccountsContainersWorkspacesClientsService {
310 rs := &AccountsContainersWorkspacesClientsService{s: s}
311 return rs
312 }
313
314 type AccountsContainersWorkspacesClientsService struct {
315 s *Service
316 }
317
318 func NewAccountsContainersWorkspacesFoldersService(s *Service) *AccountsContainersWorkspacesFoldersService {
319 rs := &AccountsContainersWorkspacesFoldersService{s: s}
320 return rs
321 }
322
323 type AccountsContainersWorkspacesFoldersService struct {
324 s *Service
325 }
326
327 func NewAccountsContainersWorkspacesGtagConfigService(s *Service) *AccountsContainersWorkspacesGtagConfigService {
328 rs := &AccountsContainersWorkspacesGtagConfigService{s: s}
329 return rs
330 }
331
332 type AccountsContainersWorkspacesGtagConfigService struct {
333 s *Service
334 }
335
336 func NewAccountsContainersWorkspacesTagsService(s *Service) *AccountsContainersWorkspacesTagsService {
337 rs := &AccountsContainersWorkspacesTagsService{s: s}
338 return rs
339 }
340
341 type AccountsContainersWorkspacesTagsService struct {
342 s *Service
343 }
344
345 func NewAccountsContainersWorkspacesTemplatesService(s *Service) *AccountsContainersWorkspacesTemplatesService {
346 rs := &AccountsContainersWorkspacesTemplatesService{s: s}
347 return rs
348 }
349
350 type AccountsContainersWorkspacesTemplatesService struct {
351 s *Service
352 }
353
354 func NewAccountsContainersWorkspacesTransformationsService(s *Service) *AccountsContainersWorkspacesTransformationsService {
355 rs := &AccountsContainersWorkspacesTransformationsService{s: s}
356 return rs
357 }
358
359 type AccountsContainersWorkspacesTransformationsService struct {
360 s *Service
361 }
362
363 func NewAccountsContainersWorkspacesTriggersService(s *Service) *AccountsContainersWorkspacesTriggersService {
364 rs := &AccountsContainersWorkspacesTriggersService{s: s}
365 return rs
366 }
367
368 type AccountsContainersWorkspacesTriggersService struct {
369 s *Service
370 }
371
372 func NewAccountsContainersWorkspacesVariablesService(s *Service) *AccountsContainersWorkspacesVariablesService {
373 rs := &AccountsContainersWorkspacesVariablesService{s: s}
374 return rs
375 }
376
377 type AccountsContainersWorkspacesVariablesService struct {
378 s *Service
379 }
380
381 func NewAccountsContainersWorkspacesZonesService(s *Service) *AccountsContainersWorkspacesZonesService {
382 rs := &AccountsContainersWorkspacesZonesService{s: s}
383 return rs
384 }
385
386 type AccountsContainersWorkspacesZonesService struct {
387 s *Service
388 }
389
390 func NewAccountsUserPermissionsService(s *Service) *AccountsUserPermissionsService {
391 rs := &AccountsUserPermissionsService{s: s}
392 return rs
393 }
394
395 type AccountsUserPermissionsService struct {
396 s *Service
397 }
398
399
400 type Account struct {
401
402 AccountId string `json:"accountId,omitempty"`
403
404 Features *AccountFeatures `json:"features,omitempty"`
405
406
407 Fingerprint string `json:"fingerprint,omitempty"`
408
409
410 Name string `json:"name,omitempty"`
411
412 Path string `json:"path,omitempty"`
413
414
415
416
417
418
419 ShareData bool `json:"shareData,omitempty"`
420
421 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
422
423
424 googleapi.ServerResponse `json:"-"`
425
426
427
428
429
430 ForceSendFields []string `json:"-"`
431
432
433
434
435 NullFields []string `json:"-"`
436 }
437
438 func (s *Account) MarshalJSON() ([]byte, error) {
439 type NoMethod Account
440 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
441 }
442
443
444 type AccountAccess struct {
445
446
447
448
449
450
451
452
453
454 Permission string `json:"permission,omitempty"`
455
456
457
458
459
460 ForceSendFields []string `json:"-"`
461
462
463
464
465 NullFields []string `json:"-"`
466 }
467
468 func (s *AccountAccess) MarshalJSON() ([]byte, error) {
469 type NoMethod AccountAccess
470 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
471 }
472
473 type AccountFeatures struct {
474
475
476 SupportMultipleContainers bool `json:"supportMultipleContainers,omitempty"`
477
478
479 SupportUserPermissions bool `json:"supportUserPermissions,omitempty"`
480
481
482
483
484
485 ForceSendFields []string `json:"-"`
486
487
488
489
490 NullFields []string `json:"-"`
491 }
492
493 func (s *AccountFeatures) MarshalJSON() ([]byte, error) {
494 type NoMethod AccountFeatures
495 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
496 }
497
498
499
500
501
502 type BuiltInVariable struct {
503
504 AccountId string `json:"accountId,omitempty"`
505
506 ContainerId string `json:"containerId,omitempty"`
507
508
509 Name string `json:"name,omitempty"`
510
511 Path string `json:"path,omitempty"`
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 Type string `json:"type,omitempty"`
632
633 WorkspaceId string `json:"workspaceId,omitempty"`
634
635
636
637
638
639 ForceSendFields []string `json:"-"`
640
641
642
643
644 NullFields []string `json:"-"`
645 }
646
647 func (s *BuiltInVariable) MarshalJSON() ([]byte, error) {
648 type NoMethod BuiltInVariable
649 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
650 }
651
652 type Client struct {
653
654 AccountId string `json:"accountId,omitempty"`
655
656 ClientId string `json:"clientId,omitempty"`
657
658 ContainerId string `json:"containerId,omitempty"`
659
660
661 Fingerprint string `json:"fingerprint,omitempty"`
662
663
664
665 Name string `json:"name,omitempty"`
666
667
668
669 Notes string `json:"notes,omitempty"`
670
671
672
673 Parameter []*Parameter `json:"parameter,omitempty"`
674
675 ParentFolderId string `json:"parentFolderId,omitempty"`
676
677 Path string `json:"path,omitempty"`
678
679
680
681 Priority int64 `json:"priority,omitempty"`
682
683 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
684
685
686
687 Type string `json:"type,omitempty"`
688
689 WorkspaceId string `json:"workspaceId,omitempty"`
690
691
692 googleapi.ServerResponse `json:"-"`
693
694
695
696
697
698 ForceSendFields []string `json:"-"`
699
700
701
702
703 NullFields []string `json:"-"`
704 }
705
706 func (s *Client) MarshalJSON() ([]byte, error) {
707 type NoMethod Client
708 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
709 }
710
711
712 type Condition struct {
713
714
715
716
717
718
719
720
721
722
723 Parameter []*Parameter `json:"parameter,omitempty"`
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742 Type string `json:"type,omitempty"`
743
744
745
746
747
748 ForceSendFields []string `json:"-"`
749
750
751
752
753 NullFields []string `json:"-"`
754 }
755
756 func (s *Condition) MarshalJSON() ([]byte, error) {
757 type NoMethod Condition
758 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
759 }
760
761
762
763
764 type Container struct {
765
766 AccountId string `json:"accountId,omitempty"`
767
768 ContainerId string `json:"containerId,omitempty"`
769
770
771
772 DomainName []string `json:"domainName,omitempty"`
773
774 Features *ContainerFeatures `json:"features,omitempty"`
775
776
777 Fingerprint string `json:"fingerprint,omitempty"`
778
779
780 Name string `json:"name,omitempty"`
781
782
783 Notes string `json:"notes,omitempty"`
784
785 Path string `json:"path,omitempty"`
786
787 PublicId string `json:"publicId,omitempty"`
788
789 TagIds []string `json:"tagIds,omitempty"`
790
791 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
792
793
794
795
796 TaggingServerUrls []string `json:"taggingServerUrls,omitempty"`
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811 UsageContext []string `json:"usageContext,omitempty"`
812
813
814 googleapi.ServerResponse `json:"-"`
815
816
817
818
819
820 ForceSendFields []string `json:"-"`
821
822
823
824
825 NullFields []string `json:"-"`
826 }
827
828 func (s *Container) MarshalJSON() ([]byte, error) {
829 type NoMethod Container
830 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
831 }
832
833
834
835 type ContainerAccess struct {
836
837
838
839 ContainerId string `json:"containerId,omitempty"`
840
841
842
843
844
845
846
847
848
849
850
851 Permission string `json:"permission,omitempty"`
852
853
854
855
856
857 ForceSendFields []string `json:"-"`
858
859
860
861
862 NullFields []string `json:"-"`
863 }
864
865 func (s *ContainerAccess) MarshalJSON() ([]byte, error) {
866 type NoMethod ContainerAccess
867 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
868 }
869
870 type ContainerFeatures struct {
871
872 SupportBuiltInVariables bool `json:"supportBuiltInVariables,omitempty"`
873
874 SupportClients bool `json:"supportClients,omitempty"`
875
876 SupportEnvironments bool `json:"supportEnvironments,omitempty"`
877
878 SupportFolders bool `json:"supportFolders,omitempty"`
879
880 SupportGtagConfigs bool `json:"supportGtagConfigs,omitempty"`
881
882 SupportTags bool `json:"supportTags,omitempty"`
883
884 SupportTemplates bool `json:"supportTemplates,omitempty"`
885
886 SupportTransformations bool `json:"supportTransformations,omitempty"`
887
888 SupportTriggers bool `json:"supportTriggers,omitempty"`
889
890
891 SupportUserPermissions bool `json:"supportUserPermissions,omitempty"`
892
893 SupportVariables bool `json:"supportVariables,omitempty"`
894
895 SupportVersions bool `json:"supportVersions,omitempty"`
896
897 SupportWorkspaces bool `json:"supportWorkspaces,omitempty"`
898
899 SupportZones bool `json:"supportZones,omitempty"`
900
901
902
903
904
905 ForceSendFields []string `json:"-"`
906
907
908
909
910 NullFields []string `json:"-"`
911 }
912
913 func (s *ContainerFeatures) MarshalJSON() ([]byte, error) {
914 type NoMethod ContainerFeatures
915 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
916 }
917
918
919 type ContainerVersion struct {
920
921 AccountId string `json:"accountId,omitempty"`
922
923
924 BuiltInVariable []*BuiltInVariable `json:"builtInVariable,omitempty"`
925
926 Client []*Client `json:"client,omitempty"`
927
928 Container *Container `json:"container,omitempty"`
929
930 ContainerId string `json:"containerId,omitempty"`
931
932
933 ContainerVersionId string `json:"containerVersionId,omitempty"`
934
935
936 CustomTemplate []*CustomTemplate `json:"customTemplate,omitempty"`
937
938 Deleted bool `json:"deleted,omitempty"`
939
940
941 Description string `json:"description,omitempty"`
942
943
944
945 Fingerprint string `json:"fingerprint,omitempty"`
946
947 Folder []*Folder `json:"folder,omitempty"`
948
949
950 GtagConfig []*GtagConfig `json:"gtagConfig,omitempty"`
951
952
953 Name string `json:"name,omitempty"`
954
955 Path string `json:"path,omitempty"`
956
957 Tag []*Tag `json:"tag,omitempty"`
958
959 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
960
961
962 Transformation []*Transformation `json:"transformation,omitempty"`
963
964 Trigger []*Trigger `json:"trigger,omitempty"`
965
966 Variable []*Variable `json:"variable,omitempty"`
967
968 Zone []*Zone `json:"zone,omitempty"`
969
970
971 googleapi.ServerResponse `json:"-"`
972
973
974
975
976
977 ForceSendFields []string `json:"-"`
978
979
980
981
982 NullFields []string `json:"-"`
983 }
984
985 func (s *ContainerVersion) MarshalJSON() ([]byte, error) {
986 type NoMethod ContainerVersion
987 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
988 }
989
990
991
992 type ContainerVersionHeader struct {
993
994 AccountId string `json:"accountId,omitempty"`
995
996 ContainerId string `json:"containerId,omitempty"`
997
998
999 ContainerVersionId string `json:"containerVersionId,omitempty"`
1000
1001 Deleted bool `json:"deleted,omitempty"`
1002
1003 Name string `json:"name,omitempty"`
1004
1005 NumClients string `json:"numClients,omitempty"`
1006
1007 NumCustomTemplates string `json:"numCustomTemplates,omitempty"`
1008
1009 NumGtagConfigs string `json:"numGtagConfigs,omitempty"`
1010
1011 NumMacros string `json:"numMacros,omitempty"`
1012
1013 NumRules string `json:"numRules,omitempty"`
1014
1015 NumTags string `json:"numTags,omitempty"`
1016
1017 NumTransformations string `json:"numTransformations,omitempty"`
1018
1019 NumTriggers string `json:"numTriggers,omitempty"`
1020
1021 NumVariables string `json:"numVariables,omitempty"`
1022
1023 NumZones string `json:"numZones,omitempty"`
1024
1025 Path string `json:"path,omitempty"`
1026
1027
1028 googleapi.ServerResponse `json:"-"`
1029
1030
1031
1032
1033
1034 ForceSendFields []string `json:"-"`
1035
1036
1037
1038
1039 NullFields []string `json:"-"`
1040 }
1041
1042 func (s *ContainerVersionHeader) MarshalJSON() ([]byte, error) {
1043 type NoMethod ContainerVersionHeader
1044 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1045 }
1046
1047 type CreateBuiltInVariableResponse struct {
1048
1049 BuiltInVariable []*BuiltInVariable `json:"builtInVariable,omitempty"`
1050
1051
1052 googleapi.ServerResponse `json:"-"`
1053
1054
1055
1056
1057
1058 ForceSendFields []string `json:"-"`
1059
1060
1061
1062
1063 NullFields []string `json:"-"`
1064 }
1065
1066 func (s *CreateBuiltInVariableResponse) MarshalJSON() ([]byte, error) {
1067 type NoMethod CreateBuiltInVariableResponse
1068 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1069 }
1070
1071
1072
1073 type CreateContainerVersionRequestVersionOptions struct {
1074
1075 Name string `json:"name,omitempty"`
1076
1077 Notes string `json:"notes,omitempty"`
1078
1079
1080
1081
1082
1083 ForceSendFields []string `json:"-"`
1084
1085
1086
1087
1088 NullFields []string `json:"-"`
1089 }
1090
1091 func (s *CreateContainerVersionRequestVersionOptions) MarshalJSON() ([]byte, error) {
1092 type NoMethod CreateContainerVersionRequestVersionOptions
1093 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1094 }
1095
1096
1097 type CreateContainerVersionResponse struct {
1098
1099 CompilerError bool `json:"compilerError,omitempty"`
1100
1101 ContainerVersion *ContainerVersion `json:"containerVersion,omitempty"`
1102
1103
1104
1105 NewWorkspacePath string `json:"newWorkspacePath,omitempty"`
1106
1107
1108 SyncStatus *SyncStatus `json:"syncStatus,omitempty"`
1109
1110
1111 googleapi.ServerResponse `json:"-"`
1112
1113
1114
1115
1116
1117 ForceSendFields []string `json:"-"`
1118
1119
1120
1121
1122 NullFields []string `json:"-"`
1123 }
1124
1125 func (s *CreateContainerVersionResponse) MarshalJSON() ([]byte, error) {
1126 type NoMethod CreateContainerVersionResponse
1127 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1128 }
1129
1130
1131 type CustomTemplate struct {
1132
1133 AccountId string `json:"accountId,omitempty"`
1134
1135 ContainerId string `json:"containerId,omitempty"`
1136
1137
1138 Fingerprint string `json:"fingerprint,omitempty"`
1139
1140 GalleryReference *GalleryReference `json:"galleryReference,omitempty"`
1141
1142 Name string `json:"name,omitempty"`
1143
1144 Path string `json:"path,omitempty"`
1145
1146 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
1147
1148 TemplateData string `json:"templateData,omitempty"`
1149
1150
1151 TemplateId string `json:"templateId,omitempty"`
1152
1153 WorkspaceId string `json:"workspaceId,omitempty"`
1154
1155
1156 googleapi.ServerResponse `json:"-"`
1157
1158
1159
1160
1161
1162 ForceSendFields []string `json:"-"`
1163
1164
1165
1166
1167 NullFields []string `json:"-"`
1168 }
1169
1170 func (s *CustomTemplate) MarshalJSON() ([]byte, error) {
1171 type NoMethod CustomTemplate
1172 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1173 }
1174
1175
1176 type Destination struct {
1177
1178 AccountId string `json:"accountId,omitempty"`
1179
1180 ContainerId string `json:"containerId,omitempty"`
1181
1182 DestinationId string `json:"destinationId,omitempty"`
1183
1184
1185 DestinationLinkId string `json:"destinationLinkId,omitempty"`
1186
1187
1188 Fingerprint string `json:"fingerprint,omitempty"`
1189
1190 Name string `json:"name,omitempty"`
1191
1192 Path string `json:"path,omitempty"`
1193
1194 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
1195
1196
1197 googleapi.ServerResponse `json:"-"`
1198
1199
1200
1201
1202
1203 ForceSendFields []string `json:"-"`
1204
1205
1206
1207
1208 NullFields []string `json:"-"`
1209 }
1210
1211 func (s *Destination) MarshalJSON() ([]byte, error) {
1212 type NoMethod Destination
1213 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1214 }
1215
1216
1217
1218 type Entity struct {
1219
1220 BuiltInVariable *BuiltInVariable `json:"builtInVariable,omitempty"`
1221
1222
1223
1224
1225
1226
1227
1228
1229 ChangeStatus string `json:"changeStatus,omitempty"`
1230
1231 Client *Client `json:"client,omitempty"`
1232
1233 CustomTemplate *CustomTemplate `json:"customTemplate,omitempty"`
1234
1235 Folder *Folder `json:"folder,omitempty"`
1236
1237 GtagConfig *GtagConfig `json:"gtagConfig,omitempty"`
1238
1239 Tag *Tag `json:"tag,omitempty"`
1240
1241 Transformation *Transformation `json:"transformation,omitempty"`
1242
1243 Trigger *Trigger `json:"trigger,omitempty"`
1244
1245 Variable *Variable `json:"variable,omitempty"`
1246
1247 Zone *Zone `json:"zone,omitempty"`
1248
1249
1250
1251
1252
1253 ForceSendFields []string `json:"-"`
1254
1255
1256
1257
1258 NullFields []string `json:"-"`
1259 }
1260
1261 func (s *Entity) MarshalJSON() ([]byte, error) {
1262 type NoMethod Entity
1263 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1264 }
1265
1266
1267
1268
1269 type Environment struct {
1270
1271 AccountId string `json:"accountId,omitempty"`
1272
1273 AuthorizationCode string `json:"authorizationCode,omitempty"`
1274
1275
1276 AuthorizationTimestamp string `json:"authorizationTimestamp,omitempty"`
1277
1278 ContainerId string `json:"containerId,omitempty"`
1279
1280 ContainerVersionId string `json:"containerVersionId,omitempty"`
1281
1282
1283
1284
1285 Description string `json:"description,omitempty"`
1286
1287
1288
1289 EnableDebug bool `json:"enableDebug,omitempty"`
1290
1291 EnvironmentId string `json:"environmentId,omitempty"`
1292
1293
1294 Fingerprint string `json:"fingerprint,omitempty"`
1295
1296
1297
1298 Name string `json:"name,omitempty"`
1299
1300 Path string `json:"path,omitempty"`
1301
1302 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
1303
1304
1305
1306
1307
1308
1309
1310
1311 Type string `json:"type,omitempty"`
1312
1313
1314
1315 Url string `json:"url,omitempty"`
1316
1317 WorkspaceId string `json:"workspaceId,omitempty"`
1318
1319
1320 googleapi.ServerResponse `json:"-"`
1321
1322
1323
1324
1325
1326 ForceSendFields []string `json:"-"`
1327
1328
1329
1330
1331 NullFields []string `json:"-"`
1332 }
1333
1334 func (s *Environment) MarshalJSON() ([]byte, error) {
1335 type NoMethod Environment
1336 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1337 }
1338
1339
1340 type Folder struct {
1341
1342 AccountId string `json:"accountId,omitempty"`
1343
1344 ContainerId string `json:"containerId,omitempty"`
1345
1346
1347 Fingerprint string `json:"fingerprint,omitempty"`
1348
1349 FolderId string `json:"folderId,omitempty"`
1350
1351
1352
1353 Name string `json:"name,omitempty"`
1354
1355
1356
1357 Notes string `json:"notes,omitempty"`
1358
1359 Path string `json:"path,omitempty"`
1360
1361 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
1362
1363 WorkspaceId string `json:"workspaceId,omitempty"`
1364
1365
1366 googleapi.ServerResponse `json:"-"`
1367
1368
1369
1370
1371
1372 ForceSendFields []string `json:"-"`
1373
1374
1375
1376
1377 NullFields []string `json:"-"`
1378 }
1379
1380 func (s *Folder) MarshalJSON() ([]byte, error) {
1381 type NoMethod Folder
1382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1383 }
1384
1385
1386 type FolderEntities struct {
1387
1388 NextPageToken string `json:"nextPageToken,omitempty"`
1389
1390 Tag []*Tag `json:"tag,omitempty"`
1391
1392 Trigger []*Trigger `json:"trigger,omitempty"`
1393
1394 Variable []*Variable `json:"variable,omitempty"`
1395
1396
1397 googleapi.ServerResponse `json:"-"`
1398
1399
1400
1401
1402
1403 ForceSendFields []string `json:"-"`
1404
1405
1406
1407
1408 NullFields []string `json:"-"`
1409 }
1410
1411 func (s *FolderEntities) MarshalJSON() ([]byte, error) {
1412 type NoMethod FolderEntities
1413 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1414 }
1415
1416
1417
1418 type GalleryReference struct {
1419
1420 Host string `json:"host,omitempty"`
1421
1422 IsModified bool `json:"isModified,omitempty"`
1423
1424 Owner string `json:"owner,omitempty"`
1425
1426 Repository string `json:"repository,omitempty"`
1427
1428
1429
1430 Signature string `json:"signature,omitempty"`
1431
1432 Version string `json:"version,omitempty"`
1433
1434
1435
1436
1437
1438 ForceSendFields []string `json:"-"`
1439
1440
1441
1442
1443 NullFields []string `json:"-"`
1444 }
1445
1446 func (s *GalleryReference) MarshalJSON() ([]byte, error) {
1447 type NoMethod GalleryReference
1448 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1449 }
1450
1451 type GetContainerSnippetResponse struct {
1452
1453 Snippet string `json:"snippet,omitempty"`
1454
1455
1456 googleapi.ServerResponse `json:"-"`
1457
1458
1459
1460
1461
1462 ForceSendFields []string `json:"-"`
1463
1464
1465
1466
1467 NullFields []string `json:"-"`
1468 }
1469
1470 func (s *GetContainerSnippetResponse) MarshalJSON() ([]byte, error) {
1471 type NoMethod GetContainerSnippetResponse
1472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1473 }
1474
1475
1476
1477 type GetWorkspaceStatusResponse struct {
1478
1479 MergeConflict []*MergeConflict `json:"mergeConflict,omitempty"`
1480
1481 WorkspaceChange []*Entity `json:"workspaceChange,omitempty"`
1482
1483
1484 googleapi.ServerResponse `json:"-"`
1485
1486
1487
1488
1489
1490 ForceSendFields []string `json:"-"`
1491
1492
1493
1494
1495 NullFields []string `json:"-"`
1496 }
1497
1498 func (s *GetWorkspaceStatusResponse) MarshalJSON() ([]byte, error) {
1499 type NoMethod GetWorkspaceStatusResponse
1500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1501 }
1502
1503
1504 type GtagConfig struct {
1505
1506 AccountId string `json:"accountId,omitempty"`
1507
1508 ContainerId string `json:"containerId,omitempty"`
1509
1510
1511 Fingerprint string `json:"fingerprint,omitempty"`
1512
1513 GtagConfigId string `json:"gtagConfigId,omitempty"`
1514
1515
1516
1517 Parameter []*Parameter `json:"parameter,omitempty"`
1518
1519 Path string `json:"path,omitempty"`
1520
1521 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
1522
1523
1524
1525
1526
1527 Type string `json:"type,omitempty"`
1528
1529
1530 WorkspaceId string `json:"workspaceId,omitempty"`
1531
1532
1533 googleapi.ServerResponse `json:"-"`
1534
1535
1536
1537
1538
1539 ForceSendFields []string `json:"-"`
1540
1541
1542
1543
1544 NullFields []string `json:"-"`
1545 }
1546
1547 func (s *GtagConfig) MarshalJSON() ([]byte, error) {
1548 type NoMethod GtagConfig
1549 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1550 }
1551
1552
1553 type ListAccountsResponse struct {
1554
1555 Account []*Account `json:"account,omitempty"`
1556
1557 NextPageToken string `json:"nextPageToken,omitempty"`
1558
1559
1560 googleapi.ServerResponse `json:"-"`
1561
1562
1563
1564
1565
1566 ForceSendFields []string `json:"-"`
1567
1568
1569
1570
1571 NullFields []string `json:"-"`
1572 }
1573
1574 func (s *ListAccountsResponse) MarshalJSON() ([]byte, error) {
1575 type NoMethod ListAccountsResponse
1576 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1577 }
1578
1579 type ListClientsResponse struct {
1580
1581 Client []*Client `json:"client,omitempty"`
1582
1583 NextPageToken string `json:"nextPageToken,omitempty"`
1584
1585
1586 googleapi.ServerResponse `json:"-"`
1587
1588
1589
1590
1591
1592 ForceSendFields []string `json:"-"`
1593
1594
1595
1596
1597 NullFields []string `json:"-"`
1598 }
1599
1600 func (s *ListClientsResponse) MarshalJSON() ([]byte, error) {
1601 type NoMethod ListClientsResponse
1602 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1603 }
1604
1605
1606 type ListContainerVersionsResponse struct {
1607
1608 ContainerVersionHeader []*ContainerVersionHeader `json:"containerVersionHeader,omitempty"`
1609
1610 NextPageToken string `json:"nextPageToken,omitempty"`
1611
1612
1613 googleapi.ServerResponse `json:"-"`
1614
1615
1616
1617
1618
1619 ForceSendFields []string `json:"-"`
1620
1621
1622
1623
1624 NullFields []string `json:"-"`
1625 }
1626
1627 func (s *ListContainerVersionsResponse) MarshalJSON() ([]byte, error) {
1628 type NoMethod ListContainerVersionsResponse
1629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1630 }
1631
1632
1633 type ListContainersResponse struct {
1634
1635 Container []*Container `json:"container,omitempty"`
1636
1637 NextPageToken string `json:"nextPageToken,omitempty"`
1638
1639
1640 googleapi.ServerResponse `json:"-"`
1641
1642
1643
1644
1645
1646 ForceSendFields []string `json:"-"`
1647
1648
1649
1650
1651 NullFields []string `json:"-"`
1652 }
1653
1654 func (s *ListContainersResponse) MarshalJSON() ([]byte, error) {
1655 type NoMethod ListContainersResponse
1656 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1657 }
1658
1659 type ListDestinationsResponse struct {
1660
1661 Destination []*Destination `json:"destination,omitempty"`
1662
1663 NextPageToken string `json:"nextPageToken,omitempty"`
1664
1665
1666 googleapi.ServerResponse `json:"-"`
1667
1668
1669
1670
1671
1672 ForceSendFields []string `json:"-"`
1673
1674
1675
1676
1677 NullFields []string `json:"-"`
1678 }
1679
1680 func (s *ListDestinationsResponse) MarshalJSON() ([]byte, error) {
1681 type NoMethod ListDestinationsResponse
1682 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1683 }
1684
1685
1686 type ListEnabledBuiltInVariablesResponse struct {
1687
1688 BuiltInVariable []*BuiltInVariable `json:"builtInVariable,omitempty"`
1689
1690 NextPageToken string `json:"nextPageToken,omitempty"`
1691
1692
1693 googleapi.ServerResponse `json:"-"`
1694
1695
1696
1697
1698
1699 ForceSendFields []string `json:"-"`
1700
1701
1702
1703
1704 NullFields []string `json:"-"`
1705 }
1706
1707 func (s *ListEnabledBuiltInVariablesResponse) MarshalJSON() ([]byte, error) {
1708 type NoMethod ListEnabledBuiltInVariablesResponse
1709 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1710 }
1711
1712
1713 type ListEnvironmentsResponse struct {
1714
1715 Environment []*Environment `json:"environment,omitempty"`
1716
1717 NextPageToken string `json:"nextPageToken,omitempty"`
1718
1719
1720 googleapi.ServerResponse `json:"-"`
1721
1722
1723
1724
1725
1726 ForceSendFields []string `json:"-"`
1727
1728
1729
1730
1731 NullFields []string `json:"-"`
1732 }
1733
1734 func (s *ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
1735 type NoMethod ListEnvironmentsResponse
1736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1737 }
1738
1739
1740 type ListFoldersResponse struct {
1741
1742 Folder []*Folder `json:"folder,omitempty"`
1743
1744 NextPageToken string `json:"nextPageToken,omitempty"`
1745
1746
1747 googleapi.ServerResponse `json:"-"`
1748
1749
1750
1751
1752
1753 ForceSendFields []string `json:"-"`
1754
1755
1756
1757
1758 NullFields []string `json:"-"`
1759 }
1760
1761 func (s *ListFoldersResponse) MarshalJSON() ([]byte, error) {
1762 type NoMethod ListFoldersResponse
1763 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1764 }
1765
1766 type ListGtagConfigResponse struct {
1767
1768 GtagConfig []*GtagConfig `json:"gtagConfig,omitempty"`
1769
1770 NextPageToken string `json:"nextPageToken,omitempty"`
1771
1772
1773 googleapi.ServerResponse `json:"-"`
1774
1775
1776
1777
1778
1779 ForceSendFields []string `json:"-"`
1780
1781
1782
1783
1784 NullFields []string `json:"-"`
1785 }
1786
1787 func (s *ListGtagConfigResponse) MarshalJSON() ([]byte, error) {
1788 type NoMethod ListGtagConfigResponse
1789 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1790 }
1791
1792
1793 type ListTagsResponse struct {
1794
1795 NextPageToken string `json:"nextPageToken,omitempty"`
1796
1797 Tag []*Tag `json:"tag,omitempty"`
1798
1799
1800 googleapi.ServerResponse `json:"-"`
1801
1802
1803
1804
1805
1806 ForceSendFields []string `json:"-"`
1807
1808
1809
1810
1811 NullFields []string `json:"-"`
1812 }
1813
1814 func (s *ListTagsResponse) MarshalJSON() ([]byte, error) {
1815 type NoMethod ListTagsResponse
1816 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1817 }
1818
1819 type ListTemplatesResponse struct {
1820
1821 NextPageToken string `json:"nextPageToken,omitempty"`
1822
1823 Template []*CustomTemplate `json:"template,omitempty"`
1824
1825
1826 googleapi.ServerResponse `json:"-"`
1827
1828
1829
1830
1831
1832 ForceSendFields []string `json:"-"`
1833
1834
1835
1836
1837 NullFields []string `json:"-"`
1838 }
1839
1840 func (s *ListTemplatesResponse) MarshalJSON() ([]byte, error) {
1841 type NoMethod ListTemplatesResponse
1842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1843 }
1844
1845 type ListTransformationsResponse struct {
1846
1847 NextPageToken string `json:"nextPageToken,omitempty"`
1848
1849 Transformation []*Transformation `json:"transformation,omitempty"`
1850
1851
1852 googleapi.ServerResponse `json:"-"`
1853
1854
1855
1856
1857
1858 ForceSendFields []string `json:"-"`
1859
1860
1861
1862
1863 NullFields []string `json:"-"`
1864 }
1865
1866 func (s *ListTransformationsResponse) MarshalJSON() ([]byte, error) {
1867 type NoMethod ListTransformationsResponse
1868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1869 }
1870
1871
1872 type ListTriggersResponse struct {
1873
1874 NextPageToken string `json:"nextPageToken,omitempty"`
1875
1876 Trigger []*Trigger `json:"trigger,omitempty"`
1877
1878
1879 googleapi.ServerResponse `json:"-"`
1880
1881
1882
1883
1884
1885 ForceSendFields []string `json:"-"`
1886
1887
1888
1889
1890 NullFields []string `json:"-"`
1891 }
1892
1893 func (s *ListTriggersResponse) MarshalJSON() ([]byte, error) {
1894 type NoMethod ListTriggersResponse
1895 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1896 }
1897
1898
1899 type ListUserPermissionsResponse struct {
1900
1901 NextPageToken string `json:"nextPageToken,omitempty"`
1902
1903 UserPermission []*UserPermission `json:"userPermission,omitempty"`
1904
1905
1906 googleapi.ServerResponse `json:"-"`
1907
1908
1909
1910
1911
1912 ForceSendFields []string `json:"-"`
1913
1914
1915
1916
1917 NullFields []string `json:"-"`
1918 }
1919
1920 func (s *ListUserPermissionsResponse) MarshalJSON() ([]byte, error) {
1921 type NoMethod ListUserPermissionsResponse
1922 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1923 }
1924
1925
1926 type ListVariablesResponse struct {
1927
1928 NextPageToken string `json:"nextPageToken,omitempty"`
1929
1930 Variable []*Variable `json:"variable,omitempty"`
1931
1932
1933 googleapi.ServerResponse `json:"-"`
1934
1935
1936
1937
1938
1939 ForceSendFields []string `json:"-"`
1940
1941
1942
1943
1944 NullFields []string `json:"-"`
1945 }
1946
1947 func (s *ListVariablesResponse) MarshalJSON() ([]byte, error) {
1948 type NoMethod ListVariablesResponse
1949 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1950 }
1951
1952
1953 type ListWorkspacesResponse struct {
1954
1955 NextPageToken string `json:"nextPageToken,omitempty"`
1956
1957 Workspace []*Workspace `json:"workspace,omitempty"`
1958
1959
1960 googleapi.ServerResponse `json:"-"`
1961
1962
1963
1964
1965
1966 ForceSendFields []string `json:"-"`
1967
1968
1969
1970
1971 NullFields []string `json:"-"`
1972 }
1973
1974 func (s *ListWorkspacesResponse) MarshalJSON() ([]byte, error) {
1975 type NoMethod ListWorkspacesResponse
1976 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1977 }
1978
1979 type ListZonesResponse struct {
1980
1981 NextPageToken string `json:"nextPageToken,omitempty"`
1982
1983 Zone []*Zone `json:"zone,omitempty"`
1984
1985
1986 googleapi.ServerResponse `json:"-"`
1987
1988
1989
1990
1991
1992 ForceSendFields []string `json:"-"`
1993
1994
1995
1996
1997 NullFields []string `json:"-"`
1998 }
1999
2000 func (s *ListZonesResponse) MarshalJSON() ([]byte, error) {
2001 type NoMethod ListZonesResponse
2002 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2003 }
2004
2005
2006 type MergeConflict struct {
2007
2008
2009
2010
2011 EntityInBaseVersion *Entity `json:"entityInBaseVersion,omitempty"`
2012
2013
2014
2015 EntityInWorkspace *Entity `json:"entityInWorkspace,omitempty"`
2016
2017
2018
2019
2020
2021 ForceSendFields []string `json:"-"`
2022
2023
2024
2025
2026 NullFields []string `json:"-"`
2027 }
2028
2029 func (s *MergeConflict) MarshalJSON() ([]byte, error) {
2030 type NoMethod MergeConflict
2031 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2032 }
2033
2034
2035 type Parameter struct {
2036
2037
2038
2039
2040 IsWeakReference bool `json:"isWeakReference,omitempty"`
2041
2042
2043
2044
2045
2046
2047
2048
2049 Key string `json:"key,omitempty"`
2050
2051
2052
2053
2054
2055
2056
2057 List []*Parameter `json:"list,omitempty"`
2058
2059
2060
2061
2062
2063
2064
2065 Map []*Parameter `json:"map,omitempty"`
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090 Type string `json:"type,omitempty"`
2091
2092
2093
2094
2095
2096
2097
2098
2099 Value string `json:"value,omitempty"`
2100
2101
2102
2103
2104
2105 ForceSendFields []string `json:"-"`
2106
2107
2108
2109
2110 NullFields []string `json:"-"`
2111 }
2112
2113 func (s *Parameter) MarshalJSON() ([]byte, error) {
2114 type NoMethod Parameter
2115 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2116 }
2117
2118
2119 type PublishContainerVersionResponse struct {
2120
2121 CompilerError bool `json:"compilerError,omitempty"`
2122
2123 ContainerVersion *ContainerVersion `json:"containerVersion,omitempty"`
2124
2125
2126 googleapi.ServerResponse `json:"-"`
2127
2128
2129
2130
2131
2132 ForceSendFields []string `json:"-"`
2133
2134
2135
2136
2137 NullFields []string `json:"-"`
2138 }
2139
2140 func (s *PublishContainerVersionResponse) MarshalJSON() ([]byte, error) {
2141 type NoMethod PublishContainerVersionResponse
2142 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2143 }
2144
2145
2146 type QuickPreviewResponse struct {
2147
2148 CompilerError bool `json:"compilerError,omitempty"`
2149
2150 ContainerVersion *ContainerVersion `json:"containerVersion,omitempty"`
2151
2152
2153 SyncStatus *SyncStatus `json:"syncStatus,omitempty"`
2154
2155
2156 googleapi.ServerResponse `json:"-"`
2157
2158
2159
2160
2161
2162 ForceSendFields []string `json:"-"`
2163
2164
2165
2166
2167 NullFields []string `json:"-"`
2168 }
2169
2170 func (s *QuickPreviewResponse) MarshalJSON() ([]byte, error) {
2171 type NoMethod QuickPreviewResponse
2172 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2173 }
2174
2175
2176
2177 type RevertBuiltInVariableResponse struct {
2178
2179 Enabled bool `json:"enabled,omitempty"`
2180
2181
2182 googleapi.ServerResponse `json:"-"`
2183
2184
2185
2186
2187
2188 ForceSendFields []string `json:"-"`
2189
2190
2191
2192
2193 NullFields []string `json:"-"`
2194 }
2195
2196 func (s *RevertBuiltInVariableResponse) MarshalJSON() ([]byte, error) {
2197 type NoMethod RevertBuiltInVariableResponse
2198 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2199 }
2200
2201
2202 type RevertClientResponse struct {
2203
2204
2205
2206 Client *Client `json:"client,omitempty"`
2207
2208
2209 googleapi.ServerResponse `json:"-"`
2210
2211
2212
2213
2214
2215 ForceSendFields []string `json:"-"`
2216
2217
2218
2219
2220 NullFields []string `json:"-"`
2221 }
2222
2223 func (s *RevertClientResponse) MarshalJSON() ([]byte, error) {
2224 type NoMethod RevertClientResponse
2225 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2226 }
2227
2228
2229 type RevertFolderResponse struct {
2230
2231
2232
2233 Folder *Folder `json:"folder,omitempty"`
2234
2235
2236 googleapi.ServerResponse `json:"-"`
2237
2238
2239
2240
2241
2242 ForceSendFields []string `json:"-"`
2243
2244
2245
2246
2247 NullFields []string `json:"-"`
2248 }
2249
2250 func (s *RevertFolderResponse) MarshalJSON() ([]byte, error) {
2251 type NoMethod RevertFolderResponse
2252 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2253 }
2254
2255
2256 type RevertTagResponse struct {
2257
2258
2259
2260 Tag *Tag `json:"tag,omitempty"`
2261
2262
2263 googleapi.ServerResponse `json:"-"`
2264
2265
2266
2267
2268
2269 ForceSendFields []string `json:"-"`
2270
2271
2272
2273
2274 NullFields []string `json:"-"`
2275 }
2276
2277 func (s *RevertTagResponse) MarshalJSON() ([]byte, error) {
2278 type NoMethod RevertTagResponse
2279 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2280 }
2281
2282
2283 type RevertTemplateResponse struct {
2284
2285
2286
2287 Template *CustomTemplate `json:"template,omitempty"`
2288
2289
2290 googleapi.ServerResponse `json:"-"`
2291
2292
2293
2294
2295
2296 ForceSendFields []string `json:"-"`
2297
2298
2299
2300
2301 NullFields []string `json:"-"`
2302 }
2303
2304 func (s *RevertTemplateResponse) MarshalJSON() ([]byte, error) {
2305 type NoMethod RevertTemplateResponse
2306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2307 }
2308
2309
2310
2311 type RevertTransformationResponse struct {
2312
2313
2314
2315
2316 Transformation *Transformation `json:"transformation,omitempty"`
2317
2318
2319 googleapi.ServerResponse `json:"-"`
2320
2321
2322
2323
2324
2325 ForceSendFields []string `json:"-"`
2326
2327
2328
2329
2330 NullFields []string `json:"-"`
2331 }
2332
2333 func (s *RevertTransformationResponse) MarshalJSON() ([]byte, error) {
2334 type NoMethod RevertTransformationResponse
2335 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2336 }
2337
2338
2339 type RevertTriggerResponse struct {
2340
2341
2342
2343 Trigger *Trigger `json:"trigger,omitempty"`
2344
2345
2346 googleapi.ServerResponse `json:"-"`
2347
2348
2349
2350
2351
2352 ForceSendFields []string `json:"-"`
2353
2354
2355
2356
2357 NullFields []string `json:"-"`
2358 }
2359
2360 func (s *RevertTriggerResponse) MarshalJSON() ([]byte, error) {
2361 type NoMethod RevertTriggerResponse
2362 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2363 }
2364
2365
2366 type RevertVariableResponse struct {
2367
2368
2369
2370 Variable *Variable `json:"variable,omitempty"`
2371
2372
2373 googleapi.ServerResponse `json:"-"`
2374
2375
2376
2377
2378
2379 ForceSendFields []string `json:"-"`
2380
2381
2382
2383
2384 NullFields []string `json:"-"`
2385 }
2386
2387 func (s *RevertVariableResponse) MarshalJSON() ([]byte, error) {
2388 type NoMethod RevertVariableResponse
2389 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2390 }
2391
2392
2393 type RevertZoneResponse struct {
2394
2395
2396
2397 Zone *Zone `json:"zone,omitempty"`
2398
2399
2400 googleapi.ServerResponse `json:"-"`
2401
2402
2403
2404
2405
2406 ForceSendFields []string `json:"-"`
2407
2408
2409
2410
2411 NullFields []string `json:"-"`
2412 }
2413
2414 func (s *RevertZoneResponse) MarshalJSON() ([]byte, error) {
2415 type NoMethod RevertZoneResponse
2416 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2417 }
2418
2419
2420
2421 type SetupTag struct {
2422
2423
2424
2425 StopOnSetupFailure bool `json:"stopOnSetupFailure,omitempty"`
2426
2427 TagName string `json:"tagName,omitempty"`
2428
2429
2430
2431
2432
2433 ForceSendFields []string `json:"-"`
2434
2435
2436
2437
2438 NullFields []string `json:"-"`
2439 }
2440
2441 func (s *SetupTag) MarshalJSON() ([]byte, error) {
2442 type NoMethod SetupTag
2443 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2444 }
2445
2446
2447 type SyncStatus struct {
2448
2449 MergeConflict bool `json:"mergeConflict,omitempty"`
2450
2451 SyncError bool `json:"syncError,omitempty"`
2452
2453
2454
2455
2456
2457 ForceSendFields []string `json:"-"`
2458
2459
2460
2461
2462 NullFields []string `json:"-"`
2463 }
2464
2465 func (s *SyncStatus) MarshalJSON() ([]byte, error) {
2466 type NoMethod SyncStatus
2467 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2468 }
2469
2470
2471
2472 type SyncWorkspaceResponse struct {
2473
2474
2475
2476 MergeConflict []*MergeConflict `json:"mergeConflict,omitempty"`
2477
2478
2479 SyncStatus *SyncStatus `json:"syncStatus,omitempty"`
2480
2481
2482 googleapi.ServerResponse `json:"-"`
2483
2484
2485
2486
2487
2488 ForceSendFields []string `json:"-"`
2489
2490
2491
2492
2493 NullFields []string `json:"-"`
2494 }
2495
2496 func (s *SyncWorkspaceResponse) MarshalJSON() ([]byte, error) {
2497 type NoMethod SyncWorkspaceResponse
2498 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2499 }
2500
2501
2502 type Tag struct {
2503
2504 AccountId string `json:"accountId,omitempty"`
2505
2506
2507
2508
2509 BlockingRuleId []string `json:"blockingRuleId,omitempty"`
2510
2511
2512
2513
2514 BlockingTriggerId []string `json:"blockingTriggerId,omitempty"`
2515
2516
2517
2518 ConsentSettings *TagConsentSetting `json:"consentSettings,omitempty"`
2519
2520 ContainerId string `json:"containerId,omitempty"`
2521
2522
2523 Fingerprint string `json:"fingerprint,omitempty"`
2524
2525
2526
2527
2528 FiringRuleId []string `json:"firingRuleId,omitempty"`
2529
2530
2531
2532
2533 FiringTriggerId []string `json:"firingTriggerId,omitempty"`
2534
2535
2536
2537
2538 LiveOnly bool `json:"liveOnly,omitempty"`
2539
2540
2541
2542
2543
2544
2545 MonitoringMetadata *Parameter `json:"monitoringMetadata,omitempty"`
2546
2547
2548
2549
2550 MonitoringMetadataTagNameKey string `json:"monitoringMetadataTagNameKey,omitempty"`
2551
2552
2553
2554 Name string `json:"name,omitempty"`
2555
2556
2557
2558 Notes string `json:"notes,omitempty"`
2559
2560
2561
2562 Parameter []*Parameter `json:"parameter,omitempty"`
2563
2564 ParentFolderId string `json:"parentFolderId,omitempty"`
2565
2566 Path string `json:"path,omitempty"`
2567
2568
2569
2570 Paused bool `json:"paused,omitempty"`
2571
2572
2573
2574
2575
2576 Priority *Parameter `json:"priority,omitempty"`
2577
2578
2579
2580 ScheduleEndMs int64 `json:"scheduleEndMs,omitempty,string"`
2581
2582
2583
2584 ScheduleStartMs int64 `json:"scheduleStartMs,omitempty,string"`
2585
2586 SetupTag []*SetupTag `json:"setupTag,omitempty"`
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596 TagFiringOption string `json:"tagFiringOption,omitempty"`
2597
2598 TagId string `json:"tagId,omitempty"`
2599
2600 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
2601
2602 TeardownTag []*TeardownTag `json:"teardownTag,omitempty"`
2603
2604
2605
2606 Type string `json:"type,omitempty"`
2607
2608 WorkspaceId string `json:"workspaceId,omitempty"`
2609
2610
2611 googleapi.ServerResponse `json:"-"`
2612
2613
2614
2615
2616
2617 ForceSendFields []string `json:"-"`
2618
2619
2620
2621
2622 NullFields []string `json:"-"`
2623 }
2624
2625 func (s *Tag) MarshalJSON() ([]byte, error) {
2626 type NoMethod Tag
2627 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2628 }
2629
2630 type TagConsentSetting struct {
2631
2632
2633
2634
2635
2636
2637
2638
2639 ConsentStatus string `json:"consentStatus,omitempty"`
2640
2641
2642
2643 ConsentType *Parameter `json:"consentType,omitempty"`
2644
2645
2646
2647
2648
2649 ForceSendFields []string `json:"-"`
2650
2651
2652
2653
2654 NullFields []string `json:"-"`
2655 }
2656
2657 func (s *TagConsentSetting) MarshalJSON() ([]byte, error) {
2658 type NoMethod TagConsentSetting
2659 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2660 }
2661
2662
2663
2664 type TeardownTag struct {
2665
2666
2667
2668 StopTeardownOnFailure bool `json:"stopTeardownOnFailure,omitempty"`
2669
2670 TagName string `json:"tagName,omitempty"`
2671
2672
2673
2674
2675
2676 ForceSendFields []string `json:"-"`
2677
2678
2679
2680
2681 NullFields []string `json:"-"`
2682 }
2683
2684 func (s *TeardownTag) MarshalJSON() ([]byte, error) {
2685 type NoMethod TeardownTag
2686 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2687 }
2688
2689
2690 type Transformation struct {
2691
2692 AccountId string `json:"accountId,omitempty"`
2693
2694 ContainerId string `json:"containerId,omitempty"`
2695
2696
2697
2698 Fingerprint string `json:"fingerprint,omitempty"`
2699
2700
2701
2702 Name string `json:"name,omitempty"`
2703
2704
2705
2706 Notes string `json:"notes,omitempty"`
2707
2708
2709
2710 Parameter []*Parameter `json:"parameter,omitempty"`
2711
2712 ParentFolderId string `json:"parentFolderId,omitempty"`
2713
2714 Path string `json:"path,omitempty"`
2715
2716 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
2717
2718
2719 TransformationId string `json:"transformationId,omitempty"`
2720
2721
2722
2723 Type string `json:"type,omitempty"`
2724
2725 WorkspaceId string `json:"workspaceId,omitempty"`
2726
2727
2728 googleapi.ServerResponse `json:"-"`
2729
2730
2731
2732
2733
2734 ForceSendFields []string `json:"-"`
2735
2736
2737
2738
2739 NullFields []string `json:"-"`
2740 }
2741
2742 func (s *Transformation) MarshalJSON() ([]byte, error) {
2743 type NoMethod Transformation
2744 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2745 }
2746
2747
2748 type Trigger struct {
2749
2750 AccountId string `json:"accountId,omitempty"`
2751
2752
2753
2754 AutoEventFilter []*Condition `json:"autoEventFilter,omitempty"`
2755
2756
2757
2758
2759
2760 CheckValidation *Parameter `json:"checkValidation,omitempty"`
2761
2762 ContainerId string `json:"containerId,omitempty"`
2763
2764
2765
2766
2767 ContinuousTimeMinMilliseconds *Parameter `json:"continuousTimeMinMilliseconds,omitempty"`
2768
2769
2770
2771
2772 CustomEventFilter []*Condition `json:"customEventFilter,omitempty"`
2773
2774
2775
2776 EventName *Parameter `json:"eventName,omitempty"`
2777
2778
2779
2780 Filter []*Condition `json:"filter,omitempty"`
2781
2782
2783 Fingerprint string `json:"fingerprint,omitempty"`
2784
2785
2786
2787
2788
2789 HorizontalScrollPercentageList *Parameter `json:"horizontalScrollPercentageList,omitempty"`
2790
2791
2792
2793
2794 Interval *Parameter `json:"interval,omitempty"`
2795
2796
2797
2798
2799 IntervalSeconds *Parameter `json:"intervalSeconds,omitempty"`
2800
2801
2802
2803
2804
2805 Limit *Parameter `json:"limit,omitempty"`
2806
2807
2808
2809
2810 MaxTimerLengthSeconds *Parameter `json:"maxTimerLengthSeconds,omitempty"`
2811
2812
2813
2814 Name string `json:"name,omitempty"`
2815
2816
2817
2818 Notes string `json:"notes,omitempty"`
2819
2820
2821
2822 Parameter []*Parameter `json:"parameter,omitempty"`
2823
2824 ParentFolderId string `json:"parentFolderId,omitempty"`
2825
2826 Path string `json:"path,omitempty"`
2827
2828
2829
2830
2831 Selector *Parameter `json:"selector,omitempty"`
2832
2833 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
2834
2835
2836
2837
2838 TotalTimeMinMilliseconds *Parameter `json:"totalTimeMinMilliseconds,omitempty"`
2839
2840 TriggerId string `json:"triggerId,omitempty"`
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881 Type string `json:"type,omitempty"`
2882
2883
2884
2885
2886
2887
2888
2889
2890 UniqueTriggerId *Parameter `json:"uniqueTriggerId,omitempty"`
2891
2892
2893
2894
2895
2896 VerticalScrollPercentageList *Parameter `json:"verticalScrollPercentageList,omitempty"`
2897
2898
2899
2900
2901 VisibilitySelector *Parameter `json:"visibilitySelector,omitempty"`
2902
2903
2904
2905
2906 VisiblePercentageMax *Parameter `json:"visiblePercentageMax,omitempty"`
2907
2908
2909
2910
2911 VisiblePercentageMin *Parameter `json:"visiblePercentageMin,omitempty"`
2912
2913
2914
2915
2916
2917
2918 WaitForTags *Parameter `json:"waitForTags,omitempty"`
2919
2920
2921
2922
2923
2924 WaitForTagsTimeout *Parameter `json:"waitForTagsTimeout,omitempty"`
2925
2926 WorkspaceId string `json:"workspaceId,omitempty"`
2927
2928
2929 googleapi.ServerResponse `json:"-"`
2930
2931
2932
2933
2934
2935 ForceSendFields []string `json:"-"`
2936
2937
2938
2939
2940 NullFields []string `json:"-"`
2941 }
2942
2943 func (s *Trigger) MarshalJSON() ([]byte, error) {
2944 type NoMethod Trigger
2945 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2946 }
2947
2948
2949
2950 type UserPermission struct {
2951
2952
2953
2954 AccountAccess *AccountAccess `json:"accountAccess,omitempty"`
2955
2956 AccountId string `json:"accountId,omitempty"`
2957
2958
2959
2960 ContainerAccess []*ContainerAccess `json:"containerAccess,omitempty"`
2961
2962
2963 EmailAddress string `json:"emailAddress,omitempty"`
2964
2965 Path string `json:"path,omitempty"`
2966
2967
2968 googleapi.ServerResponse `json:"-"`
2969
2970
2971
2972
2973
2974 ForceSendFields []string `json:"-"`
2975
2976
2977
2978
2979 NullFields []string `json:"-"`
2980 }
2981
2982 func (s *UserPermission) MarshalJSON() ([]byte, error) {
2983 type NoMethod UserPermission
2984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2985 }
2986
2987
2988 type Variable struct {
2989
2990 AccountId string `json:"accountId,omitempty"`
2991
2992 ContainerId string `json:"containerId,omitempty"`
2993
2994
2995
2996
2997
2998
2999 DisablingTriggerId []string `json:"disablingTriggerId,omitempty"`
3000
3001
3002
3003
3004
3005
3006 EnablingTriggerId []string `json:"enablingTriggerId,omitempty"`
3007
3008
3009 Fingerprint string `json:"fingerprint,omitempty"`
3010
3011 FormatValue *VariableFormatValue `json:"formatValue,omitempty"`
3012
3013
3014
3015 Name string `json:"name,omitempty"`
3016
3017
3018
3019 Notes string `json:"notes,omitempty"`
3020
3021
3022
3023 Parameter []*Parameter `json:"parameter,omitempty"`
3024
3025 ParentFolderId string `json:"parentFolderId,omitempty"`
3026
3027 Path string `json:"path,omitempty"`
3028
3029
3030
3031 ScheduleEndMs int64 `json:"scheduleEndMs,omitempty,string"`
3032
3033
3034
3035 ScheduleStartMs int64 `json:"scheduleStartMs,omitempty,string"`
3036
3037 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
3038
3039
3040
3041 Type string `json:"type,omitempty"`
3042
3043 VariableId string `json:"variableId,omitempty"`
3044
3045 WorkspaceId string `json:"workspaceId,omitempty"`
3046
3047
3048 googleapi.ServerResponse `json:"-"`
3049
3050
3051
3052
3053
3054 ForceSendFields []string `json:"-"`
3055
3056
3057
3058
3059 NullFields []string `json:"-"`
3060 }
3061
3062 func (s *Variable) MarshalJSON() ([]byte, error) {
3063 type NoMethod Variable
3064 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3065 }
3066
3067 type VariableFormatValue struct {
3068
3069
3070
3071
3072
3073
3074
3075 CaseConversionType string `json:"caseConversionType,omitempty"`
3076
3077 ConvertFalseToValue *Parameter `json:"convertFalseToValue,omitempty"`
3078
3079 ConvertNullToValue *Parameter `json:"convertNullToValue,omitempty"`
3080
3081 ConvertTrueToValue *Parameter `json:"convertTrueToValue,omitempty"`
3082
3083
3084 ConvertUndefinedToValue *Parameter `json:"convertUndefinedToValue,omitempty"`
3085
3086
3087
3088
3089
3090 ForceSendFields []string `json:"-"`
3091
3092
3093
3094
3095 NullFields []string `json:"-"`
3096 }
3097
3098 func (s *VariableFormatValue) MarshalJSON() ([]byte, error) {
3099 type NoMethod VariableFormatValue
3100 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3101 }
3102
3103
3104 type Workspace struct {
3105
3106 AccountId string `json:"accountId,omitempty"`
3107
3108 ContainerId string `json:"containerId,omitempty"`
3109
3110
3111
3112 Description string `json:"description,omitempty"`
3113
3114
3115 Fingerprint string `json:"fingerprint,omitempty"`
3116
3117
3118
3119 Name string `json:"name,omitempty"`
3120
3121 Path string `json:"path,omitempty"`
3122
3123 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
3124
3125 WorkspaceId string `json:"workspaceId,omitempty"`
3126
3127
3128 googleapi.ServerResponse `json:"-"`
3129
3130
3131
3132
3133
3134 ForceSendFields []string `json:"-"`
3135
3136
3137
3138
3139 NullFields []string `json:"-"`
3140 }
3141
3142 func (s *Workspace) MarshalJSON() ([]byte, error) {
3143 type NoMethod Workspace
3144 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3145 }
3146
3147
3148 type Zone struct {
3149
3150 AccountId string `json:"accountId,omitempty"`
3151
3152 Boundary *ZoneBoundary `json:"boundary,omitempty"`
3153
3154 ChildContainer []*ZoneChildContainer `json:"childContainer,omitempty"`
3155
3156 ContainerId string `json:"containerId,omitempty"`
3157
3158
3159 Fingerprint string `json:"fingerprint,omitempty"`
3160
3161 Name string `json:"name,omitempty"`
3162
3163 Notes string `json:"notes,omitempty"`
3164
3165 Path string `json:"path,omitempty"`
3166
3167 TagManagerUrl string `json:"tagManagerUrl,omitempty"`
3168
3169 TypeRestriction *ZoneTypeRestriction `json:"typeRestriction,omitempty"`
3170
3171 WorkspaceId string `json:"workspaceId,omitempty"`
3172
3173 ZoneId string `json:"zoneId,omitempty"`
3174
3175
3176 googleapi.ServerResponse `json:"-"`
3177
3178
3179
3180
3181
3182 ForceSendFields []string `json:"-"`
3183
3184
3185
3186
3187 NullFields []string `json:"-"`
3188 }
3189
3190 func (s *Zone) MarshalJSON() ([]byte, error) {
3191 type NoMethod Zone
3192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3193 }
3194
3195
3196 type ZoneBoundary struct {
3197
3198 Condition []*Condition `json:"condition,omitempty"`
3199
3200
3201 CustomEvaluationTriggerId []string `json:"customEvaluationTriggerId,omitempty"`
3202
3203
3204
3205
3206
3207 ForceSendFields []string `json:"-"`
3208
3209
3210
3211
3212 NullFields []string `json:"-"`
3213 }
3214
3215 func (s *ZoneBoundary) MarshalJSON() ([]byte, error) {
3216 type NoMethod ZoneBoundary
3217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3218 }
3219
3220
3221 type ZoneChildContainer struct {
3222
3223 Nickname string `json:"nickname,omitempty"`
3224
3225 PublicId string `json:"publicId,omitempty"`
3226
3227
3228
3229
3230
3231 ForceSendFields []string `json:"-"`
3232
3233
3234
3235
3236 NullFields []string `json:"-"`
3237 }
3238
3239 func (s *ZoneChildContainer) MarshalJSON() ([]byte, error) {
3240 type NoMethod ZoneChildContainer
3241 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3242 }
3243
3244
3245 type ZoneTypeRestriction struct {
3246
3247 Enable bool `json:"enable,omitempty"`
3248
3249
3250 WhitelistedTypeId []string `json:"whitelistedTypeId,omitempty"`
3251
3252
3253
3254
3255
3256 ForceSendFields []string `json:"-"`
3257
3258
3259
3260
3261 NullFields []string `json:"-"`
3262 }
3263
3264 func (s *ZoneTypeRestriction) MarshalJSON() ([]byte, error) {
3265 type NoMethod ZoneTypeRestriction
3266 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3267 }
3268
3269 type AccountsGetCall struct {
3270 s *Service
3271 path string
3272 urlParams_ gensupport.URLParams
3273 ifNoneMatch_ string
3274 ctx_ context.Context
3275 header_ http.Header
3276 }
3277
3278
3279
3280
3281 func (r *AccountsService) Get(path string) *AccountsGetCall {
3282 c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3283 c.path = path
3284 return c
3285 }
3286
3287
3288
3289
3290 func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall {
3291 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3292 return c
3293 }
3294
3295
3296
3297
3298 func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall {
3299 c.ifNoneMatch_ = entityTag
3300 return c
3301 }
3302
3303
3304 func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall {
3305 c.ctx_ = ctx
3306 return c
3307 }
3308
3309
3310
3311 func (c *AccountsGetCall) Header() http.Header {
3312 if c.header_ == nil {
3313 c.header_ = make(http.Header)
3314 }
3315 return c.header_
3316 }
3317
3318 func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) {
3319 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3320 if c.ifNoneMatch_ != "" {
3321 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3322 }
3323 var body io.Reader = nil
3324 c.urlParams_.Set("alt", alt)
3325 c.urlParams_.Set("prettyPrint", "false")
3326 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
3327 urls += "?" + c.urlParams_.Encode()
3328 req, err := http.NewRequest("GET", urls, body)
3329 if err != nil {
3330 return nil, err
3331 }
3332 req.Header = reqHeaders
3333 googleapi.Expand(req.URL, map[string]string{
3334 "path": c.path,
3335 })
3336 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3337 }
3338
3339
3340
3341
3342
3343
3344 func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) {
3345 gensupport.SetOptions(c.urlParams_, opts...)
3346 res, err := c.doRequest("json")
3347 if res != nil && res.StatusCode == http.StatusNotModified {
3348 if res.Body != nil {
3349 res.Body.Close()
3350 }
3351 return nil, gensupport.WrapError(&googleapi.Error{
3352 Code: res.StatusCode,
3353 Header: res.Header,
3354 })
3355 }
3356 if err != nil {
3357 return nil, err
3358 }
3359 defer googleapi.CloseBody(res)
3360 if err := googleapi.CheckResponse(res); err != nil {
3361 return nil, gensupport.WrapError(err)
3362 }
3363 ret := &Account{
3364 ServerResponse: googleapi.ServerResponse{
3365 Header: res.Header,
3366 HTTPStatusCode: res.StatusCode,
3367 },
3368 }
3369 target := &ret
3370 if err := gensupport.DecodeResponse(target, res); err != nil {
3371 return nil, err
3372 }
3373 return ret, nil
3374 }
3375
3376 type AccountsListCall struct {
3377 s *Service
3378 urlParams_ gensupport.URLParams
3379 ifNoneMatch_ string
3380 ctx_ context.Context
3381 header_ http.Header
3382 }
3383
3384
3385 func (r *AccountsService) List() *AccountsListCall {
3386 c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3387 return c
3388 }
3389
3390
3391
3392 func (c *AccountsListCall) IncludeGoogleTags(includeGoogleTags bool) *AccountsListCall {
3393 c.urlParams_.Set("includeGoogleTags", fmt.Sprint(includeGoogleTags))
3394 return c
3395 }
3396
3397
3398
3399 func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall {
3400 c.urlParams_.Set("pageToken", pageToken)
3401 return c
3402 }
3403
3404
3405
3406
3407 func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall {
3408 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3409 return c
3410 }
3411
3412
3413
3414
3415 func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall {
3416 c.ifNoneMatch_ = entityTag
3417 return c
3418 }
3419
3420
3421 func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall {
3422 c.ctx_ = ctx
3423 return c
3424 }
3425
3426
3427
3428 func (c *AccountsListCall) Header() http.Header {
3429 if c.header_ == nil {
3430 c.header_ = make(http.Header)
3431 }
3432 return c.header_
3433 }
3434
3435 func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) {
3436 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3437 if c.ifNoneMatch_ != "" {
3438 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3439 }
3440 var body io.Reader = nil
3441 c.urlParams_.Set("alt", alt)
3442 c.urlParams_.Set("prettyPrint", "false")
3443 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/accounts")
3444 urls += "?" + c.urlParams_.Encode()
3445 req, err := http.NewRequest("GET", urls, body)
3446 if err != nil {
3447 return nil, err
3448 }
3449 req.Header = reqHeaders
3450 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3451 }
3452
3453
3454
3455
3456
3457
3458
3459 func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*ListAccountsResponse, error) {
3460 gensupport.SetOptions(c.urlParams_, opts...)
3461 res, err := c.doRequest("json")
3462 if res != nil && res.StatusCode == http.StatusNotModified {
3463 if res.Body != nil {
3464 res.Body.Close()
3465 }
3466 return nil, gensupport.WrapError(&googleapi.Error{
3467 Code: res.StatusCode,
3468 Header: res.Header,
3469 })
3470 }
3471 if err != nil {
3472 return nil, err
3473 }
3474 defer googleapi.CloseBody(res)
3475 if err := googleapi.CheckResponse(res); err != nil {
3476 return nil, gensupport.WrapError(err)
3477 }
3478 ret := &ListAccountsResponse{
3479 ServerResponse: googleapi.ServerResponse{
3480 Header: res.Header,
3481 HTTPStatusCode: res.StatusCode,
3482 },
3483 }
3484 target := &ret
3485 if err := gensupport.DecodeResponse(target, res); err != nil {
3486 return nil, err
3487 }
3488 return ret, nil
3489 }
3490
3491
3492
3493
3494 func (c *AccountsListCall) Pages(ctx context.Context, f func(*ListAccountsResponse) error) error {
3495 c.ctx_ = ctx
3496 defer c.PageToken(c.urlParams_.Get("pageToken"))
3497 for {
3498 x, err := c.Do()
3499 if err != nil {
3500 return err
3501 }
3502 if err := f(x); err != nil {
3503 return err
3504 }
3505 if x.NextPageToken == "" {
3506 return nil
3507 }
3508 c.PageToken(x.NextPageToken)
3509 }
3510 }
3511
3512 type AccountsUpdateCall struct {
3513 s *Service
3514 path string
3515 account *Account
3516 urlParams_ gensupport.URLParams
3517 ctx_ context.Context
3518 header_ http.Header
3519 }
3520
3521
3522
3523
3524 func (r *AccountsService) Update(path string, account *Account) *AccountsUpdateCall {
3525 c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3526 c.path = path
3527 c.account = account
3528 return c
3529 }
3530
3531
3532
3533 func (c *AccountsUpdateCall) Fingerprint(fingerprint string) *AccountsUpdateCall {
3534 c.urlParams_.Set("fingerprint", fingerprint)
3535 return c
3536 }
3537
3538
3539
3540
3541 func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall {
3542 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3543 return c
3544 }
3545
3546
3547 func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall {
3548 c.ctx_ = ctx
3549 return c
3550 }
3551
3552
3553
3554 func (c *AccountsUpdateCall) Header() http.Header {
3555 if c.header_ == nil {
3556 c.header_ = make(http.Header)
3557 }
3558 return c.header_
3559 }
3560
3561 func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) {
3562 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3563 var body io.Reader = nil
3564 body, err := googleapi.WithoutDataWrapper.JSONReader(c.account)
3565 if err != nil {
3566 return nil, err
3567 }
3568 c.urlParams_.Set("alt", alt)
3569 c.urlParams_.Set("prettyPrint", "false")
3570 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
3571 urls += "?" + c.urlParams_.Encode()
3572 req, err := http.NewRequest("PUT", urls, body)
3573 if err != nil {
3574 return nil, err
3575 }
3576 req.Header = reqHeaders
3577 googleapi.Expand(req.URL, map[string]string{
3578 "path": c.path,
3579 })
3580 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3581 }
3582
3583
3584
3585
3586
3587
3588 func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) {
3589 gensupport.SetOptions(c.urlParams_, opts...)
3590 res, err := c.doRequest("json")
3591 if res != nil && res.StatusCode == http.StatusNotModified {
3592 if res.Body != nil {
3593 res.Body.Close()
3594 }
3595 return nil, gensupport.WrapError(&googleapi.Error{
3596 Code: res.StatusCode,
3597 Header: res.Header,
3598 })
3599 }
3600 if err != nil {
3601 return nil, err
3602 }
3603 defer googleapi.CloseBody(res)
3604 if err := googleapi.CheckResponse(res); err != nil {
3605 return nil, gensupport.WrapError(err)
3606 }
3607 ret := &Account{
3608 ServerResponse: googleapi.ServerResponse{
3609 Header: res.Header,
3610 HTTPStatusCode: res.StatusCode,
3611 },
3612 }
3613 target := &ret
3614 if err := gensupport.DecodeResponse(target, res); err != nil {
3615 return nil, err
3616 }
3617 return ret, nil
3618 }
3619
3620 type AccountsContainersCombineCall struct {
3621 s *Service
3622 path string
3623 urlParams_ gensupport.URLParams
3624 ctx_ context.Context
3625 header_ http.Header
3626 }
3627
3628
3629
3630
3631
3632 func (r *AccountsContainersService) Combine(path string) *AccountsContainersCombineCall {
3633 c := &AccountsContainersCombineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3634 c.path = path
3635 return c
3636 }
3637
3638
3639
3640
3641
3642 func (c *AccountsContainersCombineCall) AllowUserPermissionFeatureUpdate(allowUserPermissionFeatureUpdate bool) *AccountsContainersCombineCall {
3643 c.urlParams_.Set("allowUserPermissionFeatureUpdate", fmt.Sprint(allowUserPermissionFeatureUpdate))
3644 return c
3645 }
3646
3647
3648
3649 func (c *AccountsContainersCombineCall) ContainerId(containerId string) *AccountsContainersCombineCall {
3650 c.urlParams_.Set("containerId", containerId)
3651 return c
3652 }
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662 func (c *AccountsContainersCombineCall) SettingSource(settingSource string) *AccountsContainersCombineCall {
3663 c.urlParams_.Set("settingSource", settingSource)
3664 return c
3665 }
3666
3667
3668
3669
3670 func (c *AccountsContainersCombineCall) Fields(s ...googleapi.Field) *AccountsContainersCombineCall {
3671 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3672 return c
3673 }
3674
3675
3676 func (c *AccountsContainersCombineCall) Context(ctx context.Context) *AccountsContainersCombineCall {
3677 c.ctx_ = ctx
3678 return c
3679 }
3680
3681
3682
3683 func (c *AccountsContainersCombineCall) Header() http.Header {
3684 if c.header_ == nil {
3685 c.header_ = make(http.Header)
3686 }
3687 return c.header_
3688 }
3689
3690 func (c *AccountsContainersCombineCall) doRequest(alt string) (*http.Response, error) {
3691 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3692 var body io.Reader = nil
3693 c.urlParams_.Set("alt", alt)
3694 c.urlParams_.Set("prettyPrint", "false")
3695 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:combine")
3696 urls += "?" + c.urlParams_.Encode()
3697 req, err := http.NewRequest("POST", urls, body)
3698 if err != nil {
3699 return nil, err
3700 }
3701 req.Header = reqHeaders
3702 googleapi.Expand(req.URL, map[string]string{
3703 "path": c.path,
3704 })
3705 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3706 }
3707
3708
3709
3710
3711
3712
3713 func (c *AccountsContainersCombineCall) Do(opts ...googleapi.CallOption) (*Container, error) {
3714 gensupport.SetOptions(c.urlParams_, opts...)
3715 res, err := c.doRequest("json")
3716 if res != nil && res.StatusCode == http.StatusNotModified {
3717 if res.Body != nil {
3718 res.Body.Close()
3719 }
3720 return nil, gensupport.WrapError(&googleapi.Error{
3721 Code: res.StatusCode,
3722 Header: res.Header,
3723 })
3724 }
3725 if err != nil {
3726 return nil, err
3727 }
3728 defer googleapi.CloseBody(res)
3729 if err := googleapi.CheckResponse(res); err != nil {
3730 return nil, gensupport.WrapError(err)
3731 }
3732 ret := &Container{
3733 ServerResponse: googleapi.ServerResponse{
3734 Header: res.Header,
3735 HTTPStatusCode: res.StatusCode,
3736 },
3737 }
3738 target := &ret
3739 if err := gensupport.DecodeResponse(target, res); err != nil {
3740 return nil, err
3741 }
3742 return ret, nil
3743 }
3744
3745 type AccountsContainersCreateCall struct {
3746 s *Service
3747 parent string
3748 container *Container
3749 urlParams_ gensupport.URLParams
3750 ctx_ context.Context
3751 header_ http.Header
3752 }
3753
3754
3755
3756
3757 func (r *AccountsContainersService) Create(parent string, container *Container) *AccountsContainersCreateCall {
3758 c := &AccountsContainersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3759 c.parent = parent
3760 c.container = container
3761 return c
3762 }
3763
3764
3765
3766
3767 func (c *AccountsContainersCreateCall) Fields(s ...googleapi.Field) *AccountsContainersCreateCall {
3768 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3769 return c
3770 }
3771
3772
3773 func (c *AccountsContainersCreateCall) Context(ctx context.Context) *AccountsContainersCreateCall {
3774 c.ctx_ = ctx
3775 return c
3776 }
3777
3778
3779
3780 func (c *AccountsContainersCreateCall) Header() http.Header {
3781 if c.header_ == nil {
3782 c.header_ = make(http.Header)
3783 }
3784 return c.header_
3785 }
3786
3787 func (c *AccountsContainersCreateCall) doRequest(alt string) (*http.Response, error) {
3788 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3789 var body io.Reader = nil
3790 body, err := googleapi.WithoutDataWrapper.JSONReader(c.container)
3791 if err != nil {
3792 return nil, err
3793 }
3794 c.urlParams_.Set("alt", alt)
3795 c.urlParams_.Set("prettyPrint", "false")
3796 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/containers")
3797 urls += "?" + c.urlParams_.Encode()
3798 req, err := http.NewRequest("POST", urls, body)
3799 if err != nil {
3800 return nil, err
3801 }
3802 req.Header = reqHeaders
3803 googleapi.Expand(req.URL, map[string]string{
3804 "parent": c.parent,
3805 })
3806 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3807 }
3808
3809
3810
3811
3812
3813
3814 func (c *AccountsContainersCreateCall) Do(opts ...googleapi.CallOption) (*Container, error) {
3815 gensupport.SetOptions(c.urlParams_, opts...)
3816 res, err := c.doRequest("json")
3817 if res != nil && res.StatusCode == http.StatusNotModified {
3818 if res.Body != nil {
3819 res.Body.Close()
3820 }
3821 return nil, gensupport.WrapError(&googleapi.Error{
3822 Code: res.StatusCode,
3823 Header: res.Header,
3824 })
3825 }
3826 if err != nil {
3827 return nil, err
3828 }
3829 defer googleapi.CloseBody(res)
3830 if err := googleapi.CheckResponse(res); err != nil {
3831 return nil, gensupport.WrapError(err)
3832 }
3833 ret := &Container{
3834 ServerResponse: googleapi.ServerResponse{
3835 Header: res.Header,
3836 HTTPStatusCode: res.StatusCode,
3837 },
3838 }
3839 target := &ret
3840 if err := gensupport.DecodeResponse(target, res); err != nil {
3841 return nil, err
3842 }
3843 return ret, nil
3844 }
3845
3846 type AccountsContainersDeleteCall struct {
3847 s *Service
3848 path string
3849 urlParams_ gensupport.URLParams
3850 ctx_ context.Context
3851 header_ http.Header
3852 }
3853
3854
3855
3856
3857
3858 func (r *AccountsContainersService) Delete(path string) *AccountsContainersDeleteCall {
3859 c := &AccountsContainersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3860 c.path = path
3861 return c
3862 }
3863
3864
3865
3866
3867 func (c *AccountsContainersDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersDeleteCall {
3868 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3869 return c
3870 }
3871
3872
3873 func (c *AccountsContainersDeleteCall) Context(ctx context.Context) *AccountsContainersDeleteCall {
3874 c.ctx_ = ctx
3875 return c
3876 }
3877
3878
3879
3880 func (c *AccountsContainersDeleteCall) Header() http.Header {
3881 if c.header_ == nil {
3882 c.header_ = make(http.Header)
3883 }
3884 return c.header_
3885 }
3886
3887 func (c *AccountsContainersDeleteCall) doRequest(alt string) (*http.Response, error) {
3888 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3889 var body io.Reader = nil
3890 c.urlParams_.Set("alt", alt)
3891 c.urlParams_.Set("prettyPrint", "false")
3892 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
3893 urls += "?" + c.urlParams_.Encode()
3894 req, err := http.NewRequest("DELETE", urls, body)
3895 if err != nil {
3896 return nil, err
3897 }
3898 req.Header = reqHeaders
3899 googleapi.Expand(req.URL, map[string]string{
3900 "path": c.path,
3901 })
3902 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3903 }
3904
3905
3906 func (c *AccountsContainersDeleteCall) Do(opts ...googleapi.CallOption) error {
3907 gensupport.SetOptions(c.urlParams_, opts...)
3908 res, err := c.doRequest("json")
3909 if err != nil {
3910 return err
3911 }
3912 defer googleapi.CloseBody(res)
3913 if err := googleapi.CheckResponse(res); err != nil {
3914 return gensupport.WrapError(err)
3915 }
3916 return nil
3917 }
3918
3919 type AccountsContainersGetCall struct {
3920 s *Service
3921 path string
3922 urlParams_ gensupport.URLParams
3923 ifNoneMatch_ string
3924 ctx_ context.Context
3925 header_ http.Header
3926 }
3927
3928
3929
3930
3931
3932 func (r *AccountsContainersService) Get(path string) *AccountsContainersGetCall {
3933 c := &AccountsContainersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3934 c.path = path
3935 return c
3936 }
3937
3938
3939
3940
3941 func (c *AccountsContainersGetCall) Fields(s ...googleapi.Field) *AccountsContainersGetCall {
3942 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3943 return c
3944 }
3945
3946
3947
3948
3949 func (c *AccountsContainersGetCall) IfNoneMatch(entityTag string) *AccountsContainersGetCall {
3950 c.ifNoneMatch_ = entityTag
3951 return c
3952 }
3953
3954
3955 func (c *AccountsContainersGetCall) Context(ctx context.Context) *AccountsContainersGetCall {
3956 c.ctx_ = ctx
3957 return c
3958 }
3959
3960
3961
3962 func (c *AccountsContainersGetCall) Header() http.Header {
3963 if c.header_ == nil {
3964 c.header_ = make(http.Header)
3965 }
3966 return c.header_
3967 }
3968
3969 func (c *AccountsContainersGetCall) doRequest(alt string) (*http.Response, error) {
3970 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3971 if c.ifNoneMatch_ != "" {
3972 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3973 }
3974 var body io.Reader = nil
3975 c.urlParams_.Set("alt", alt)
3976 c.urlParams_.Set("prettyPrint", "false")
3977 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
3978 urls += "?" + c.urlParams_.Encode()
3979 req, err := http.NewRequest("GET", urls, body)
3980 if err != nil {
3981 return nil, err
3982 }
3983 req.Header = reqHeaders
3984 googleapi.Expand(req.URL, map[string]string{
3985 "path": c.path,
3986 })
3987 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3988 }
3989
3990
3991
3992
3993
3994
3995 func (c *AccountsContainersGetCall) Do(opts ...googleapi.CallOption) (*Container, error) {
3996 gensupport.SetOptions(c.urlParams_, opts...)
3997 res, err := c.doRequest("json")
3998 if res != nil && res.StatusCode == http.StatusNotModified {
3999 if res.Body != nil {
4000 res.Body.Close()
4001 }
4002 return nil, gensupport.WrapError(&googleapi.Error{
4003 Code: res.StatusCode,
4004 Header: res.Header,
4005 })
4006 }
4007 if err != nil {
4008 return nil, err
4009 }
4010 defer googleapi.CloseBody(res)
4011 if err := googleapi.CheckResponse(res); err != nil {
4012 return nil, gensupport.WrapError(err)
4013 }
4014 ret := &Container{
4015 ServerResponse: googleapi.ServerResponse{
4016 Header: res.Header,
4017 HTTPStatusCode: res.StatusCode,
4018 },
4019 }
4020 target := &ret
4021 if err := gensupport.DecodeResponse(target, res); err != nil {
4022 return nil, err
4023 }
4024 return ret, nil
4025 }
4026
4027 type AccountsContainersListCall struct {
4028 s *Service
4029 parent string
4030 urlParams_ gensupport.URLParams
4031 ifNoneMatch_ string
4032 ctx_ context.Context
4033 header_ http.Header
4034 }
4035
4036
4037
4038
4039 func (r *AccountsContainersService) List(parent string) *AccountsContainersListCall {
4040 c := &AccountsContainersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4041 c.parent = parent
4042 return c
4043 }
4044
4045
4046
4047 func (c *AccountsContainersListCall) PageToken(pageToken string) *AccountsContainersListCall {
4048 c.urlParams_.Set("pageToken", pageToken)
4049 return c
4050 }
4051
4052
4053
4054
4055 func (c *AccountsContainersListCall) Fields(s ...googleapi.Field) *AccountsContainersListCall {
4056 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4057 return c
4058 }
4059
4060
4061
4062
4063 func (c *AccountsContainersListCall) IfNoneMatch(entityTag string) *AccountsContainersListCall {
4064 c.ifNoneMatch_ = entityTag
4065 return c
4066 }
4067
4068
4069 func (c *AccountsContainersListCall) Context(ctx context.Context) *AccountsContainersListCall {
4070 c.ctx_ = ctx
4071 return c
4072 }
4073
4074
4075
4076 func (c *AccountsContainersListCall) Header() http.Header {
4077 if c.header_ == nil {
4078 c.header_ = make(http.Header)
4079 }
4080 return c.header_
4081 }
4082
4083 func (c *AccountsContainersListCall) doRequest(alt string) (*http.Response, error) {
4084 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4085 if c.ifNoneMatch_ != "" {
4086 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4087 }
4088 var body io.Reader = nil
4089 c.urlParams_.Set("alt", alt)
4090 c.urlParams_.Set("prettyPrint", "false")
4091 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/containers")
4092 urls += "?" + c.urlParams_.Encode()
4093 req, err := http.NewRequest("GET", urls, body)
4094 if err != nil {
4095 return nil, err
4096 }
4097 req.Header = reqHeaders
4098 googleapi.Expand(req.URL, map[string]string{
4099 "parent": c.parent,
4100 })
4101 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4102 }
4103
4104
4105
4106
4107
4108
4109
4110 func (c *AccountsContainersListCall) Do(opts ...googleapi.CallOption) (*ListContainersResponse, error) {
4111 gensupport.SetOptions(c.urlParams_, opts...)
4112 res, err := c.doRequest("json")
4113 if res != nil && res.StatusCode == http.StatusNotModified {
4114 if res.Body != nil {
4115 res.Body.Close()
4116 }
4117 return nil, gensupport.WrapError(&googleapi.Error{
4118 Code: res.StatusCode,
4119 Header: res.Header,
4120 })
4121 }
4122 if err != nil {
4123 return nil, err
4124 }
4125 defer googleapi.CloseBody(res)
4126 if err := googleapi.CheckResponse(res); err != nil {
4127 return nil, gensupport.WrapError(err)
4128 }
4129 ret := &ListContainersResponse{
4130 ServerResponse: googleapi.ServerResponse{
4131 Header: res.Header,
4132 HTTPStatusCode: res.StatusCode,
4133 },
4134 }
4135 target := &ret
4136 if err := gensupport.DecodeResponse(target, res); err != nil {
4137 return nil, err
4138 }
4139 return ret, nil
4140 }
4141
4142
4143
4144
4145 func (c *AccountsContainersListCall) Pages(ctx context.Context, f func(*ListContainersResponse) error) error {
4146 c.ctx_ = ctx
4147 defer c.PageToken(c.urlParams_.Get("pageToken"))
4148 for {
4149 x, err := c.Do()
4150 if err != nil {
4151 return err
4152 }
4153 if err := f(x); err != nil {
4154 return err
4155 }
4156 if x.NextPageToken == "" {
4157 return nil
4158 }
4159 c.PageToken(x.NextPageToken)
4160 }
4161 }
4162
4163 type AccountsContainersLookupCall struct {
4164 s *Service
4165 urlParams_ gensupport.URLParams
4166 ifNoneMatch_ string
4167 ctx_ context.Context
4168 header_ http.Header
4169 }
4170
4171
4172 func (r *AccountsContainersService) Lookup() *AccountsContainersLookupCall {
4173 c := &AccountsContainersLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4174 return c
4175 }
4176
4177
4178
4179
4180 func (c *AccountsContainersLookupCall) DestinationId(destinationId string) *AccountsContainersLookupCall {
4181 c.urlParams_.Set("destinationId", destinationId)
4182 return c
4183 }
4184
4185
4186
4187
4188 func (c *AccountsContainersLookupCall) Fields(s ...googleapi.Field) *AccountsContainersLookupCall {
4189 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4190 return c
4191 }
4192
4193
4194
4195
4196 func (c *AccountsContainersLookupCall) IfNoneMatch(entityTag string) *AccountsContainersLookupCall {
4197 c.ifNoneMatch_ = entityTag
4198 return c
4199 }
4200
4201
4202 func (c *AccountsContainersLookupCall) Context(ctx context.Context) *AccountsContainersLookupCall {
4203 c.ctx_ = ctx
4204 return c
4205 }
4206
4207
4208
4209 func (c *AccountsContainersLookupCall) Header() http.Header {
4210 if c.header_ == nil {
4211 c.header_ = make(http.Header)
4212 }
4213 return c.header_
4214 }
4215
4216 func (c *AccountsContainersLookupCall) doRequest(alt string) (*http.Response, error) {
4217 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4218 if c.ifNoneMatch_ != "" {
4219 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4220 }
4221 var body io.Reader = nil
4222 c.urlParams_.Set("alt", alt)
4223 c.urlParams_.Set("prettyPrint", "false")
4224 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/accounts/containers:lookup")
4225 urls += "?" + c.urlParams_.Encode()
4226 req, err := http.NewRequest("GET", urls, body)
4227 if err != nil {
4228 return nil, err
4229 }
4230 req.Header = reqHeaders
4231 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4232 }
4233
4234
4235
4236
4237
4238
4239 func (c *AccountsContainersLookupCall) Do(opts ...googleapi.CallOption) (*Container, error) {
4240 gensupport.SetOptions(c.urlParams_, opts...)
4241 res, err := c.doRequest("json")
4242 if res != nil && res.StatusCode == http.StatusNotModified {
4243 if res.Body != nil {
4244 res.Body.Close()
4245 }
4246 return nil, gensupport.WrapError(&googleapi.Error{
4247 Code: res.StatusCode,
4248 Header: res.Header,
4249 })
4250 }
4251 if err != nil {
4252 return nil, err
4253 }
4254 defer googleapi.CloseBody(res)
4255 if err := googleapi.CheckResponse(res); err != nil {
4256 return nil, gensupport.WrapError(err)
4257 }
4258 ret := &Container{
4259 ServerResponse: googleapi.ServerResponse{
4260 Header: res.Header,
4261 HTTPStatusCode: res.StatusCode,
4262 },
4263 }
4264 target := &ret
4265 if err := gensupport.DecodeResponse(target, res); err != nil {
4266 return nil, err
4267 }
4268 return ret, nil
4269 }
4270
4271 type AccountsContainersMoveTagIdCall struct {
4272 s *Service
4273 path string
4274 urlParams_ gensupport.URLParams
4275 ctx_ context.Context
4276 header_ http.Header
4277 }
4278
4279
4280
4281
4282
4283 func (r *AccountsContainersService) MoveTagId(path string) *AccountsContainersMoveTagIdCall {
4284 c := &AccountsContainersMoveTagIdCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4285 c.path = path
4286 return c
4287 }
4288
4289
4290
4291
4292
4293 func (c *AccountsContainersMoveTagIdCall) AllowUserPermissionFeatureUpdate(allowUserPermissionFeatureUpdate bool) *AccountsContainersMoveTagIdCall {
4294 c.urlParams_.Set("allowUserPermissionFeatureUpdate", fmt.Sprint(allowUserPermissionFeatureUpdate))
4295 return c
4296 }
4297
4298
4299
4300 func (c *AccountsContainersMoveTagIdCall) CopySettings(copySettings bool) *AccountsContainersMoveTagIdCall {
4301 c.urlParams_.Set("copySettings", fmt.Sprint(copySettings))
4302 return c
4303 }
4304
4305
4306
4307
4308
4309 func (c *AccountsContainersMoveTagIdCall) CopyTermsOfService(copyTermsOfService bool) *AccountsContainersMoveTagIdCall {
4310 c.urlParams_.Set("copyTermsOfService", fmt.Sprint(copyTermsOfService))
4311 return c
4312 }
4313
4314
4315
4316 func (c *AccountsContainersMoveTagIdCall) CopyUsers(copyUsers bool) *AccountsContainersMoveTagIdCall {
4317 c.urlParams_.Set("copyUsers", fmt.Sprint(copyUsers))
4318 return c
4319 }
4320
4321
4322
4323 func (c *AccountsContainersMoveTagIdCall) TagId(tagId string) *AccountsContainersMoveTagIdCall {
4324 c.urlParams_.Set("tagId", tagId)
4325 return c
4326 }
4327
4328
4329
4330 func (c *AccountsContainersMoveTagIdCall) TagName(tagName string) *AccountsContainersMoveTagIdCall {
4331 c.urlParams_.Set("tagName", tagName)
4332 return c
4333 }
4334
4335
4336
4337
4338 func (c *AccountsContainersMoveTagIdCall) Fields(s ...googleapi.Field) *AccountsContainersMoveTagIdCall {
4339 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4340 return c
4341 }
4342
4343
4344 func (c *AccountsContainersMoveTagIdCall) Context(ctx context.Context) *AccountsContainersMoveTagIdCall {
4345 c.ctx_ = ctx
4346 return c
4347 }
4348
4349
4350
4351 func (c *AccountsContainersMoveTagIdCall) Header() http.Header {
4352 if c.header_ == nil {
4353 c.header_ = make(http.Header)
4354 }
4355 return c.header_
4356 }
4357
4358 func (c *AccountsContainersMoveTagIdCall) doRequest(alt string) (*http.Response, error) {
4359 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4360 var body io.Reader = nil
4361 c.urlParams_.Set("alt", alt)
4362 c.urlParams_.Set("prettyPrint", "false")
4363 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:move_tag_id")
4364 urls += "?" + c.urlParams_.Encode()
4365 req, err := http.NewRequest("POST", urls, body)
4366 if err != nil {
4367 return nil, err
4368 }
4369 req.Header = reqHeaders
4370 googleapi.Expand(req.URL, map[string]string{
4371 "path": c.path,
4372 })
4373 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4374 }
4375
4376
4377
4378
4379
4380
4381 func (c *AccountsContainersMoveTagIdCall) Do(opts ...googleapi.CallOption) (*Container, error) {
4382 gensupport.SetOptions(c.urlParams_, opts...)
4383 res, err := c.doRequest("json")
4384 if res != nil && res.StatusCode == http.StatusNotModified {
4385 if res.Body != nil {
4386 res.Body.Close()
4387 }
4388 return nil, gensupport.WrapError(&googleapi.Error{
4389 Code: res.StatusCode,
4390 Header: res.Header,
4391 })
4392 }
4393 if err != nil {
4394 return nil, err
4395 }
4396 defer googleapi.CloseBody(res)
4397 if err := googleapi.CheckResponse(res); err != nil {
4398 return nil, gensupport.WrapError(err)
4399 }
4400 ret := &Container{
4401 ServerResponse: googleapi.ServerResponse{
4402 Header: res.Header,
4403 HTTPStatusCode: res.StatusCode,
4404 },
4405 }
4406 target := &ret
4407 if err := gensupport.DecodeResponse(target, res); err != nil {
4408 return nil, err
4409 }
4410 return ret, nil
4411 }
4412
4413 type AccountsContainersSnippetCall struct {
4414 s *Service
4415 path string
4416 urlParams_ gensupport.URLParams
4417 ifNoneMatch_ string
4418 ctx_ context.Context
4419 header_ http.Header
4420 }
4421
4422
4423
4424
4425
4426 func (r *AccountsContainersService) Snippet(path string) *AccountsContainersSnippetCall {
4427 c := &AccountsContainersSnippetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4428 c.path = path
4429 return c
4430 }
4431
4432
4433
4434
4435 func (c *AccountsContainersSnippetCall) Fields(s ...googleapi.Field) *AccountsContainersSnippetCall {
4436 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4437 return c
4438 }
4439
4440
4441
4442
4443 func (c *AccountsContainersSnippetCall) IfNoneMatch(entityTag string) *AccountsContainersSnippetCall {
4444 c.ifNoneMatch_ = entityTag
4445 return c
4446 }
4447
4448
4449 func (c *AccountsContainersSnippetCall) Context(ctx context.Context) *AccountsContainersSnippetCall {
4450 c.ctx_ = ctx
4451 return c
4452 }
4453
4454
4455
4456 func (c *AccountsContainersSnippetCall) Header() http.Header {
4457 if c.header_ == nil {
4458 c.header_ = make(http.Header)
4459 }
4460 return c.header_
4461 }
4462
4463 func (c *AccountsContainersSnippetCall) doRequest(alt string) (*http.Response, error) {
4464 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4465 if c.ifNoneMatch_ != "" {
4466 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4467 }
4468 var body io.Reader = nil
4469 c.urlParams_.Set("alt", alt)
4470 c.urlParams_.Set("prettyPrint", "false")
4471 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:snippet")
4472 urls += "?" + c.urlParams_.Encode()
4473 req, err := http.NewRequest("GET", urls, body)
4474 if err != nil {
4475 return nil, err
4476 }
4477 req.Header = reqHeaders
4478 googleapi.Expand(req.URL, map[string]string{
4479 "path": c.path,
4480 })
4481 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4482 }
4483
4484
4485
4486
4487
4488
4489
4490 func (c *AccountsContainersSnippetCall) Do(opts ...googleapi.CallOption) (*GetContainerSnippetResponse, error) {
4491 gensupport.SetOptions(c.urlParams_, opts...)
4492 res, err := c.doRequest("json")
4493 if res != nil && res.StatusCode == http.StatusNotModified {
4494 if res.Body != nil {
4495 res.Body.Close()
4496 }
4497 return nil, gensupport.WrapError(&googleapi.Error{
4498 Code: res.StatusCode,
4499 Header: res.Header,
4500 })
4501 }
4502 if err != nil {
4503 return nil, err
4504 }
4505 defer googleapi.CloseBody(res)
4506 if err := googleapi.CheckResponse(res); err != nil {
4507 return nil, gensupport.WrapError(err)
4508 }
4509 ret := &GetContainerSnippetResponse{
4510 ServerResponse: googleapi.ServerResponse{
4511 Header: res.Header,
4512 HTTPStatusCode: res.StatusCode,
4513 },
4514 }
4515 target := &ret
4516 if err := gensupport.DecodeResponse(target, res); err != nil {
4517 return nil, err
4518 }
4519 return ret, nil
4520 }
4521
4522 type AccountsContainersUpdateCall struct {
4523 s *Service
4524 path string
4525 container *Container
4526 urlParams_ gensupport.URLParams
4527 ctx_ context.Context
4528 header_ http.Header
4529 }
4530
4531
4532
4533
4534
4535 func (r *AccountsContainersService) Update(path string, container *Container) *AccountsContainersUpdateCall {
4536 c := &AccountsContainersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4537 c.path = path
4538 c.container = container
4539 return c
4540 }
4541
4542
4543
4544 func (c *AccountsContainersUpdateCall) Fingerprint(fingerprint string) *AccountsContainersUpdateCall {
4545 c.urlParams_.Set("fingerprint", fingerprint)
4546 return c
4547 }
4548
4549
4550
4551
4552 func (c *AccountsContainersUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersUpdateCall {
4553 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4554 return c
4555 }
4556
4557
4558 func (c *AccountsContainersUpdateCall) Context(ctx context.Context) *AccountsContainersUpdateCall {
4559 c.ctx_ = ctx
4560 return c
4561 }
4562
4563
4564
4565 func (c *AccountsContainersUpdateCall) Header() http.Header {
4566 if c.header_ == nil {
4567 c.header_ = make(http.Header)
4568 }
4569 return c.header_
4570 }
4571
4572 func (c *AccountsContainersUpdateCall) doRequest(alt string) (*http.Response, error) {
4573 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4574 var body io.Reader = nil
4575 body, err := googleapi.WithoutDataWrapper.JSONReader(c.container)
4576 if err != nil {
4577 return nil, err
4578 }
4579 c.urlParams_.Set("alt", alt)
4580 c.urlParams_.Set("prettyPrint", "false")
4581 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
4582 urls += "?" + c.urlParams_.Encode()
4583 req, err := http.NewRequest("PUT", urls, body)
4584 if err != nil {
4585 return nil, err
4586 }
4587 req.Header = reqHeaders
4588 googleapi.Expand(req.URL, map[string]string{
4589 "path": c.path,
4590 })
4591 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4592 }
4593
4594
4595
4596
4597
4598
4599 func (c *AccountsContainersUpdateCall) Do(opts ...googleapi.CallOption) (*Container, error) {
4600 gensupport.SetOptions(c.urlParams_, opts...)
4601 res, err := c.doRequest("json")
4602 if res != nil && res.StatusCode == http.StatusNotModified {
4603 if res.Body != nil {
4604 res.Body.Close()
4605 }
4606 return nil, gensupport.WrapError(&googleapi.Error{
4607 Code: res.StatusCode,
4608 Header: res.Header,
4609 })
4610 }
4611 if err != nil {
4612 return nil, err
4613 }
4614 defer googleapi.CloseBody(res)
4615 if err := googleapi.CheckResponse(res); err != nil {
4616 return nil, gensupport.WrapError(err)
4617 }
4618 ret := &Container{
4619 ServerResponse: googleapi.ServerResponse{
4620 Header: res.Header,
4621 HTTPStatusCode: res.StatusCode,
4622 },
4623 }
4624 target := &ret
4625 if err := gensupport.DecodeResponse(target, res); err != nil {
4626 return nil, err
4627 }
4628 return ret, nil
4629 }
4630
4631 type AccountsContainersDestinationsGetCall struct {
4632 s *Service
4633 path string
4634 urlParams_ gensupport.URLParams
4635 ifNoneMatch_ string
4636 ctx_ context.Context
4637 header_ http.Header
4638 }
4639
4640
4641
4642
4643
4644
4645 func (r *AccountsContainersDestinationsService) Get(path string) *AccountsContainersDestinationsGetCall {
4646 c := &AccountsContainersDestinationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4647 c.path = path
4648 return c
4649 }
4650
4651
4652
4653
4654 func (c *AccountsContainersDestinationsGetCall) Fields(s ...googleapi.Field) *AccountsContainersDestinationsGetCall {
4655 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4656 return c
4657 }
4658
4659
4660
4661
4662 func (c *AccountsContainersDestinationsGetCall) IfNoneMatch(entityTag string) *AccountsContainersDestinationsGetCall {
4663 c.ifNoneMatch_ = entityTag
4664 return c
4665 }
4666
4667
4668 func (c *AccountsContainersDestinationsGetCall) Context(ctx context.Context) *AccountsContainersDestinationsGetCall {
4669 c.ctx_ = ctx
4670 return c
4671 }
4672
4673
4674
4675 func (c *AccountsContainersDestinationsGetCall) Header() http.Header {
4676 if c.header_ == nil {
4677 c.header_ = make(http.Header)
4678 }
4679 return c.header_
4680 }
4681
4682 func (c *AccountsContainersDestinationsGetCall) doRequest(alt string) (*http.Response, error) {
4683 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4684 if c.ifNoneMatch_ != "" {
4685 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4686 }
4687 var body io.Reader = nil
4688 c.urlParams_.Set("alt", alt)
4689 c.urlParams_.Set("prettyPrint", "false")
4690 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
4691 urls += "?" + c.urlParams_.Encode()
4692 req, err := http.NewRequest("GET", urls, body)
4693 if err != nil {
4694 return nil, err
4695 }
4696 req.Header = reqHeaders
4697 googleapi.Expand(req.URL, map[string]string{
4698 "path": c.path,
4699 })
4700 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4701 }
4702
4703
4704
4705
4706
4707
4708 func (c *AccountsContainersDestinationsGetCall) Do(opts ...googleapi.CallOption) (*Destination, error) {
4709 gensupport.SetOptions(c.urlParams_, opts...)
4710 res, err := c.doRequest("json")
4711 if res != nil && res.StatusCode == http.StatusNotModified {
4712 if res.Body != nil {
4713 res.Body.Close()
4714 }
4715 return nil, gensupport.WrapError(&googleapi.Error{
4716 Code: res.StatusCode,
4717 Header: res.Header,
4718 })
4719 }
4720 if err != nil {
4721 return nil, err
4722 }
4723 defer googleapi.CloseBody(res)
4724 if err := googleapi.CheckResponse(res); err != nil {
4725 return nil, gensupport.WrapError(err)
4726 }
4727 ret := &Destination{
4728 ServerResponse: googleapi.ServerResponse{
4729 Header: res.Header,
4730 HTTPStatusCode: res.StatusCode,
4731 },
4732 }
4733 target := &ret
4734 if err := gensupport.DecodeResponse(target, res); err != nil {
4735 return nil, err
4736 }
4737 return ret, nil
4738 }
4739
4740 type AccountsContainersDestinationsLinkCall struct {
4741 s *Service
4742 parent string
4743 urlParams_ gensupport.URLParams
4744 ctx_ context.Context
4745 header_ http.Header
4746 }
4747
4748
4749
4750
4751
4752
4753 func (r *AccountsContainersDestinationsService) Link(parent string) *AccountsContainersDestinationsLinkCall {
4754 c := &AccountsContainersDestinationsLinkCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4755 c.parent = parent
4756 return c
4757 }
4758
4759
4760
4761
4762
4763 func (c *AccountsContainersDestinationsLinkCall) AllowUserPermissionFeatureUpdate(allowUserPermissionFeatureUpdate bool) *AccountsContainersDestinationsLinkCall {
4764 c.urlParams_.Set("allowUserPermissionFeatureUpdate", fmt.Sprint(allowUserPermissionFeatureUpdate))
4765 return c
4766 }
4767
4768
4769
4770 func (c *AccountsContainersDestinationsLinkCall) DestinationId(destinationId string) *AccountsContainersDestinationsLinkCall {
4771 c.urlParams_.Set("destinationId", destinationId)
4772 return c
4773 }
4774
4775
4776
4777
4778 func (c *AccountsContainersDestinationsLinkCall) Fields(s ...googleapi.Field) *AccountsContainersDestinationsLinkCall {
4779 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4780 return c
4781 }
4782
4783
4784 func (c *AccountsContainersDestinationsLinkCall) Context(ctx context.Context) *AccountsContainersDestinationsLinkCall {
4785 c.ctx_ = ctx
4786 return c
4787 }
4788
4789
4790
4791 func (c *AccountsContainersDestinationsLinkCall) Header() http.Header {
4792 if c.header_ == nil {
4793 c.header_ = make(http.Header)
4794 }
4795 return c.header_
4796 }
4797
4798 func (c *AccountsContainersDestinationsLinkCall) doRequest(alt string) (*http.Response, error) {
4799 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4800 var body io.Reader = nil
4801 c.urlParams_.Set("alt", alt)
4802 c.urlParams_.Set("prettyPrint", "false")
4803 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/destinations:link")
4804 urls += "?" + c.urlParams_.Encode()
4805 req, err := http.NewRequest("POST", urls, body)
4806 if err != nil {
4807 return nil, err
4808 }
4809 req.Header = reqHeaders
4810 googleapi.Expand(req.URL, map[string]string{
4811 "parent": c.parent,
4812 })
4813 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4814 }
4815
4816
4817
4818
4819
4820
4821 func (c *AccountsContainersDestinationsLinkCall) Do(opts ...googleapi.CallOption) (*Destination, error) {
4822 gensupport.SetOptions(c.urlParams_, opts...)
4823 res, err := c.doRequest("json")
4824 if res != nil && res.StatusCode == http.StatusNotModified {
4825 if res.Body != nil {
4826 res.Body.Close()
4827 }
4828 return nil, gensupport.WrapError(&googleapi.Error{
4829 Code: res.StatusCode,
4830 Header: res.Header,
4831 })
4832 }
4833 if err != nil {
4834 return nil, err
4835 }
4836 defer googleapi.CloseBody(res)
4837 if err := googleapi.CheckResponse(res); err != nil {
4838 return nil, gensupport.WrapError(err)
4839 }
4840 ret := &Destination{
4841 ServerResponse: googleapi.ServerResponse{
4842 Header: res.Header,
4843 HTTPStatusCode: res.StatusCode,
4844 },
4845 }
4846 target := &ret
4847 if err := gensupport.DecodeResponse(target, res); err != nil {
4848 return nil, err
4849 }
4850 return ret, nil
4851 }
4852
4853 type AccountsContainersDestinationsListCall struct {
4854 s *Service
4855 parent string
4856 urlParams_ gensupport.URLParams
4857 ifNoneMatch_ string
4858 ctx_ context.Context
4859 header_ http.Header
4860 }
4861
4862
4863
4864
4865
4866 func (r *AccountsContainersDestinationsService) List(parent string) *AccountsContainersDestinationsListCall {
4867 c := &AccountsContainersDestinationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4868 c.parent = parent
4869 return c
4870 }
4871
4872
4873
4874
4875 func (c *AccountsContainersDestinationsListCall) Fields(s ...googleapi.Field) *AccountsContainersDestinationsListCall {
4876 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4877 return c
4878 }
4879
4880
4881
4882
4883 func (c *AccountsContainersDestinationsListCall) IfNoneMatch(entityTag string) *AccountsContainersDestinationsListCall {
4884 c.ifNoneMatch_ = entityTag
4885 return c
4886 }
4887
4888
4889 func (c *AccountsContainersDestinationsListCall) Context(ctx context.Context) *AccountsContainersDestinationsListCall {
4890 c.ctx_ = ctx
4891 return c
4892 }
4893
4894
4895
4896 func (c *AccountsContainersDestinationsListCall) Header() http.Header {
4897 if c.header_ == nil {
4898 c.header_ = make(http.Header)
4899 }
4900 return c.header_
4901 }
4902
4903 func (c *AccountsContainersDestinationsListCall) doRequest(alt string) (*http.Response, error) {
4904 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4905 if c.ifNoneMatch_ != "" {
4906 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4907 }
4908 var body io.Reader = nil
4909 c.urlParams_.Set("alt", alt)
4910 c.urlParams_.Set("prettyPrint", "false")
4911 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/destinations")
4912 urls += "?" + c.urlParams_.Encode()
4913 req, err := http.NewRequest("GET", urls, body)
4914 if err != nil {
4915 return nil, err
4916 }
4917 req.Header = reqHeaders
4918 googleapi.Expand(req.URL, map[string]string{
4919 "parent": c.parent,
4920 })
4921 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4922 }
4923
4924
4925
4926
4927
4928
4929
4930 func (c *AccountsContainersDestinationsListCall) Do(opts ...googleapi.CallOption) (*ListDestinationsResponse, error) {
4931 gensupport.SetOptions(c.urlParams_, opts...)
4932 res, err := c.doRequest("json")
4933 if res != nil && res.StatusCode == http.StatusNotModified {
4934 if res.Body != nil {
4935 res.Body.Close()
4936 }
4937 return nil, gensupport.WrapError(&googleapi.Error{
4938 Code: res.StatusCode,
4939 Header: res.Header,
4940 })
4941 }
4942 if err != nil {
4943 return nil, err
4944 }
4945 defer googleapi.CloseBody(res)
4946 if err := googleapi.CheckResponse(res); err != nil {
4947 return nil, gensupport.WrapError(err)
4948 }
4949 ret := &ListDestinationsResponse{
4950 ServerResponse: googleapi.ServerResponse{
4951 Header: res.Header,
4952 HTTPStatusCode: res.StatusCode,
4953 },
4954 }
4955 target := &ret
4956 if err := gensupport.DecodeResponse(target, res); err != nil {
4957 return nil, err
4958 }
4959 return ret, nil
4960 }
4961
4962 type AccountsContainersEnvironmentsCreateCall struct {
4963 s *Service
4964 parent string
4965 environment *Environment
4966 urlParams_ gensupport.URLParams
4967 ctx_ context.Context
4968 header_ http.Header
4969 }
4970
4971
4972
4973
4974
4975 func (r *AccountsContainersEnvironmentsService) Create(parent string, environment *Environment) *AccountsContainersEnvironmentsCreateCall {
4976 c := &AccountsContainersEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4977 c.parent = parent
4978 c.environment = environment
4979 return c
4980 }
4981
4982
4983
4984
4985 func (c *AccountsContainersEnvironmentsCreateCall) Fields(s ...googleapi.Field) *AccountsContainersEnvironmentsCreateCall {
4986 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4987 return c
4988 }
4989
4990
4991 func (c *AccountsContainersEnvironmentsCreateCall) Context(ctx context.Context) *AccountsContainersEnvironmentsCreateCall {
4992 c.ctx_ = ctx
4993 return c
4994 }
4995
4996
4997
4998 func (c *AccountsContainersEnvironmentsCreateCall) Header() http.Header {
4999 if c.header_ == nil {
5000 c.header_ = make(http.Header)
5001 }
5002 return c.header_
5003 }
5004
5005 func (c *AccountsContainersEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
5006 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5007 var body io.Reader = nil
5008 body, err := googleapi.WithoutDataWrapper.JSONReader(c.environment)
5009 if err != nil {
5010 return nil, err
5011 }
5012 c.urlParams_.Set("alt", alt)
5013 c.urlParams_.Set("prettyPrint", "false")
5014 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/environments")
5015 urls += "?" + c.urlParams_.Encode()
5016 req, err := http.NewRequest("POST", urls, body)
5017 if err != nil {
5018 return nil, err
5019 }
5020 req.Header = reqHeaders
5021 googleapi.Expand(req.URL, map[string]string{
5022 "parent": c.parent,
5023 })
5024 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5025 }
5026
5027
5028
5029
5030
5031
5032 func (c *AccountsContainersEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*Environment, error) {
5033 gensupport.SetOptions(c.urlParams_, opts...)
5034 res, err := c.doRequest("json")
5035 if res != nil && res.StatusCode == http.StatusNotModified {
5036 if res.Body != nil {
5037 res.Body.Close()
5038 }
5039 return nil, gensupport.WrapError(&googleapi.Error{
5040 Code: res.StatusCode,
5041 Header: res.Header,
5042 })
5043 }
5044 if err != nil {
5045 return nil, err
5046 }
5047 defer googleapi.CloseBody(res)
5048 if err := googleapi.CheckResponse(res); err != nil {
5049 return nil, gensupport.WrapError(err)
5050 }
5051 ret := &Environment{
5052 ServerResponse: googleapi.ServerResponse{
5053 Header: res.Header,
5054 HTTPStatusCode: res.StatusCode,
5055 },
5056 }
5057 target := &ret
5058 if err := gensupport.DecodeResponse(target, res); err != nil {
5059 return nil, err
5060 }
5061 return ret, nil
5062 }
5063
5064 type AccountsContainersEnvironmentsDeleteCall struct {
5065 s *Service
5066 path string
5067 urlParams_ gensupport.URLParams
5068 ctx_ context.Context
5069 header_ http.Header
5070 }
5071
5072
5073
5074
5075
5076
5077 func (r *AccountsContainersEnvironmentsService) Delete(path string) *AccountsContainersEnvironmentsDeleteCall {
5078 c := &AccountsContainersEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5079 c.path = path
5080 return c
5081 }
5082
5083
5084
5085
5086 func (c *AccountsContainersEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersEnvironmentsDeleteCall {
5087 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5088 return c
5089 }
5090
5091
5092 func (c *AccountsContainersEnvironmentsDeleteCall) Context(ctx context.Context) *AccountsContainersEnvironmentsDeleteCall {
5093 c.ctx_ = ctx
5094 return c
5095 }
5096
5097
5098
5099 func (c *AccountsContainersEnvironmentsDeleteCall) Header() http.Header {
5100 if c.header_ == nil {
5101 c.header_ = make(http.Header)
5102 }
5103 return c.header_
5104 }
5105
5106 func (c *AccountsContainersEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
5107 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5108 var body io.Reader = nil
5109 c.urlParams_.Set("alt", alt)
5110 c.urlParams_.Set("prettyPrint", "false")
5111 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
5112 urls += "?" + c.urlParams_.Encode()
5113 req, err := http.NewRequest("DELETE", urls, body)
5114 if err != nil {
5115 return nil, err
5116 }
5117 req.Header = reqHeaders
5118 googleapi.Expand(req.URL, map[string]string{
5119 "path": c.path,
5120 })
5121 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5122 }
5123
5124
5125 func (c *AccountsContainersEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) error {
5126 gensupport.SetOptions(c.urlParams_, opts...)
5127 res, err := c.doRequest("json")
5128 if err != nil {
5129 return err
5130 }
5131 defer googleapi.CloseBody(res)
5132 if err := googleapi.CheckResponse(res); err != nil {
5133 return gensupport.WrapError(err)
5134 }
5135 return nil
5136 }
5137
5138 type AccountsContainersEnvironmentsGetCall struct {
5139 s *Service
5140 path string
5141 urlParams_ gensupport.URLParams
5142 ifNoneMatch_ string
5143 ctx_ context.Context
5144 header_ http.Header
5145 }
5146
5147
5148
5149
5150
5151
5152 func (r *AccountsContainersEnvironmentsService) Get(path string) *AccountsContainersEnvironmentsGetCall {
5153 c := &AccountsContainersEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5154 c.path = path
5155 return c
5156 }
5157
5158
5159
5160
5161 func (c *AccountsContainersEnvironmentsGetCall) Fields(s ...googleapi.Field) *AccountsContainersEnvironmentsGetCall {
5162 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5163 return c
5164 }
5165
5166
5167
5168
5169 func (c *AccountsContainersEnvironmentsGetCall) IfNoneMatch(entityTag string) *AccountsContainersEnvironmentsGetCall {
5170 c.ifNoneMatch_ = entityTag
5171 return c
5172 }
5173
5174
5175 func (c *AccountsContainersEnvironmentsGetCall) Context(ctx context.Context) *AccountsContainersEnvironmentsGetCall {
5176 c.ctx_ = ctx
5177 return c
5178 }
5179
5180
5181
5182 func (c *AccountsContainersEnvironmentsGetCall) Header() http.Header {
5183 if c.header_ == nil {
5184 c.header_ = make(http.Header)
5185 }
5186 return c.header_
5187 }
5188
5189 func (c *AccountsContainersEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
5190 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5191 if c.ifNoneMatch_ != "" {
5192 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5193 }
5194 var body io.Reader = nil
5195 c.urlParams_.Set("alt", alt)
5196 c.urlParams_.Set("prettyPrint", "false")
5197 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
5198 urls += "?" + c.urlParams_.Encode()
5199 req, err := http.NewRequest("GET", urls, body)
5200 if err != nil {
5201 return nil, err
5202 }
5203 req.Header = reqHeaders
5204 googleapi.Expand(req.URL, map[string]string{
5205 "path": c.path,
5206 })
5207 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5208 }
5209
5210
5211
5212
5213
5214
5215 func (c *AccountsContainersEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*Environment, error) {
5216 gensupport.SetOptions(c.urlParams_, opts...)
5217 res, err := c.doRequest("json")
5218 if res != nil && res.StatusCode == http.StatusNotModified {
5219 if res.Body != nil {
5220 res.Body.Close()
5221 }
5222 return nil, gensupport.WrapError(&googleapi.Error{
5223 Code: res.StatusCode,
5224 Header: res.Header,
5225 })
5226 }
5227 if err != nil {
5228 return nil, err
5229 }
5230 defer googleapi.CloseBody(res)
5231 if err := googleapi.CheckResponse(res); err != nil {
5232 return nil, gensupport.WrapError(err)
5233 }
5234 ret := &Environment{
5235 ServerResponse: googleapi.ServerResponse{
5236 Header: res.Header,
5237 HTTPStatusCode: res.StatusCode,
5238 },
5239 }
5240 target := &ret
5241 if err := gensupport.DecodeResponse(target, res); err != nil {
5242 return nil, err
5243 }
5244 return ret, nil
5245 }
5246
5247 type AccountsContainersEnvironmentsListCall struct {
5248 s *Service
5249 parent string
5250 urlParams_ gensupport.URLParams
5251 ifNoneMatch_ string
5252 ctx_ context.Context
5253 header_ http.Header
5254 }
5255
5256
5257
5258
5259
5260 func (r *AccountsContainersEnvironmentsService) List(parent string) *AccountsContainersEnvironmentsListCall {
5261 c := &AccountsContainersEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5262 c.parent = parent
5263 return c
5264 }
5265
5266
5267
5268 func (c *AccountsContainersEnvironmentsListCall) PageToken(pageToken string) *AccountsContainersEnvironmentsListCall {
5269 c.urlParams_.Set("pageToken", pageToken)
5270 return c
5271 }
5272
5273
5274
5275
5276 func (c *AccountsContainersEnvironmentsListCall) Fields(s ...googleapi.Field) *AccountsContainersEnvironmentsListCall {
5277 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5278 return c
5279 }
5280
5281
5282
5283
5284 func (c *AccountsContainersEnvironmentsListCall) IfNoneMatch(entityTag string) *AccountsContainersEnvironmentsListCall {
5285 c.ifNoneMatch_ = entityTag
5286 return c
5287 }
5288
5289
5290 func (c *AccountsContainersEnvironmentsListCall) Context(ctx context.Context) *AccountsContainersEnvironmentsListCall {
5291 c.ctx_ = ctx
5292 return c
5293 }
5294
5295
5296
5297 func (c *AccountsContainersEnvironmentsListCall) Header() http.Header {
5298 if c.header_ == nil {
5299 c.header_ = make(http.Header)
5300 }
5301 return c.header_
5302 }
5303
5304 func (c *AccountsContainersEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
5305 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5306 if c.ifNoneMatch_ != "" {
5307 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5308 }
5309 var body io.Reader = nil
5310 c.urlParams_.Set("alt", alt)
5311 c.urlParams_.Set("prettyPrint", "false")
5312 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/environments")
5313 urls += "?" + c.urlParams_.Encode()
5314 req, err := http.NewRequest("GET", urls, body)
5315 if err != nil {
5316 return nil, err
5317 }
5318 req.Header = reqHeaders
5319 googleapi.Expand(req.URL, map[string]string{
5320 "parent": c.parent,
5321 })
5322 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5323 }
5324
5325
5326
5327
5328
5329
5330
5331 func (c *AccountsContainersEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*ListEnvironmentsResponse, error) {
5332 gensupport.SetOptions(c.urlParams_, opts...)
5333 res, err := c.doRequest("json")
5334 if res != nil && res.StatusCode == http.StatusNotModified {
5335 if res.Body != nil {
5336 res.Body.Close()
5337 }
5338 return nil, gensupport.WrapError(&googleapi.Error{
5339 Code: res.StatusCode,
5340 Header: res.Header,
5341 })
5342 }
5343 if err != nil {
5344 return nil, err
5345 }
5346 defer googleapi.CloseBody(res)
5347 if err := googleapi.CheckResponse(res); err != nil {
5348 return nil, gensupport.WrapError(err)
5349 }
5350 ret := &ListEnvironmentsResponse{
5351 ServerResponse: googleapi.ServerResponse{
5352 Header: res.Header,
5353 HTTPStatusCode: res.StatusCode,
5354 },
5355 }
5356 target := &ret
5357 if err := gensupport.DecodeResponse(target, res); err != nil {
5358 return nil, err
5359 }
5360 return ret, nil
5361 }
5362
5363
5364
5365
5366 func (c *AccountsContainersEnvironmentsListCall) Pages(ctx context.Context, f func(*ListEnvironmentsResponse) error) error {
5367 c.ctx_ = ctx
5368 defer c.PageToken(c.urlParams_.Get("pageToken"))
5369 for {
5370 x, err := c.Do()
5371 if err != nil {
5372 return err
5373 }
5374 if err := f(x); err != nil {
5375 return err
5376 }
5377 if x.NextPageToken == "" {
5378 return nil
5379 }
5380 c.PageToken(x.NextPageToken)
5381 }
5382 }
5383
5384 type AccountsContainersEnvironmentsReauthorizeCall struct {
5385 s *Service
5386 path string
5387 environment *Environment
5388 urlParams_ gensupport.URLParams
5389 ctx_ context.Context
5390 header_ http.Header
5391 }
5392
5393
5394
5395
5396
5397
5398 func (r *AccountsContainersEnvironmentsService) Reauthorize(path string, environment *Environment) *AccountsContainersEnvironmentsReauthorizeCall {
5399 c := &AccountsContainersEnvironmentsReauthorizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5400 c.path = path
5401 c.environment = environment
5402 return c
5403 }
5404
5405
5406
5407
5408 func (c *AccountsContainersEnvironmentsReauthorizeCall) Fields(s ...googleapi.Field) *AccountsContainersEnvironmentsReauthorizeCall {
5409 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5410 return c
5411 }
5412
5413
5414 func (c *AccountsContainersEnvironmentsReauthorizeCall) Context(ctx context.Context) *AccountsContainersEnvironmentsReauthorizeCall {
5415 c.ctx_ = ctx
5416 return c
5417 }
5418
5419
5420
5421 func (c *AccountsContainersEnvironmentsReauthorizeCall) Header() http.Header {
5422 if c.header_ == nil {
5423 c.header_ = make(http.Header)
5424 }
5425 return c.header_
5426 }
5427
5428 func (c *AccountsContainersEnvironmentsReauthorizeCall) doRequest(alt string) (*http.Response, error) {
5429 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5430 var body io.Reader = nil
5431 body, err := googleapi.WithoutDataWrapper.JSONReader(c.environment)
5432 if err != nil {
5433 return nil, err
5434 }
5435 c.urlParams_.Set("alt", alt)
5436 c.urlParams_.Set("prettyPrint", "false")
5437 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:reauthorize")
5438 urls += "?" + c.urlParams_.Encode()
5439 req, err := http.NewRequest("POST", urls, body)
5440 if err != nil {
5441 return nil, err
5442 }
5443 req.Header = reqHeaders
5444 googleapi.Expand(req.URL, map[string]string{
5445 "path": c.path,
5446 })
5447 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5448 }
5449
5450
5451
5452
5453
5454
5455 func (c *AccountsContainersEnvironmentsReauthorizeCall) Do(opts ...googleapi.CallOption) (*Environment, error) {
5456 gensupport.SetOptions(c.urlParams_, opts...)
5457 res, err := c.doRequest("json")
5458 if res != nil && res.StatusCode == http.StatusNotModified {
5459 if res.Body != nil {
5460 res.Body.Close()
5461 }
5462 return nil, gensupport.WrapError(&googleapi.Error{
5463 Code: res.StatusCode,
5464 Header: res.Header,
5465 })
5466 }
5467 if err != nil {
5468 return nil, err
5469 }
5470 defer googleapi.CloseBody(res)
5471 if err := googleapi.CheckResponse(res); err != nil {
5472 return nil, gensupport.WrapError(err)
5473 }
5474 ret := &Environment{
5475 ServerResponse: googleapi.ServerResponse{
5476 Header: res.Header,
5477 HTTPStatusCode: res.StatusCode,
5478 },
5479 }
5480 target := &ret
5481 if err := gensupport.DecodeResponse(target, res); err != nil {
5482 return nil, err
5483 }
5484 return ret, nil
5485 }
5486
5487 type AccountsContainersEnvironmentsUpdateCall struct {
5488 s *Service
5489 path string
5490 environment *Environment
5491 urlParams_ gensupport.URLParams
5492 ctx_ context.Context
5493 header_ http.Header
5494 }
5495
5496
5497
5498
5499
5500
5501 func (r *AccountsContainersEnvironmentsService) Update(path string, environment *Environment) *AccountsContainersEnvironmentsUpdateCall {
5502 c := &AccountsContainersEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5503 c.path = path
5504 c.environment = environment
5505 return c
5506 }
5507
5508
5509
5510 func (c *AccountsContainersEnvironmentsUpdateCall) Fingerprint(fingerprint string) *AccountsContainersEnvironmentsUpdateCall {
5511 c.urlParams_.Set("fingerprint", fingerprint)
5512 return c
5513 }
5514
5515
5516
5517
5518 func (c *AccountsContainersEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersEnvironmentsUpdateCall {
5519 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5520 return c
5521 }
5522
5523
5524 func (c *AccountsContainersEnvironmentsUpdateCall) Context(ctx context.Context) *AccountsContainersEnvironmentsUpdateCall {
5525 c.ctx_ = ctx
5526 return c
5527 }
5528
5529
5530
5531 func (c *AccountsContainersEnvironmentsUpdateCall) Header() http.Header {
5532 if c.header_ == nil {
5533 c.header_ = make(http.Header)
5534 }
5535 return c.header_
5536 }
5537
5538 func (c *AccountsContainersEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) {
5539 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5540 var body io.Reader = nil
5541 body, err := googleapi.WithoutDataWrapper.JSONReader(c.environment)
5542 if err != nil {
5543 return nil, err
5544 }
5545 c.urlParams_.Set("alt", alt)
5546 c.urlParams_.Set("prettyPrint", "false")
5547 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
5548 urls += "?" + c.urlParams_.Encode()
5549 req, err := http.NewRequest("PUT", urls, body)
5550 if err != nil {
5551 return nil, err
5552 }
5553 req.Header = reqHeaders
5554 googleapi.Expand(req.URL, map[string]string{
5555 "path": c.path,
5556 })
5557 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5558 }
5559
5560
5561
5562
5563
5564
5565 func (c *AccountsContainersEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*Environment, error) {
5566 gensupport.SetOptions(c.urlParams_, opts...)
5567 res, err := c.doRequest("json")
5568 if res != nil && res.StatusCode == http.StatusNotModified {
5569 if res.Body != nil {
5570 res.Body.Close()
5571 }
5572 return nil, gensupport.WrapError(&googleapi.Error{
5573 Code: res.StatusCode,
5574 Header: res.Header,
5575 })
5576 }
5577 if err != nil {
5578 return nil, err
5579 }
5580 defer googleapi.CloseBody(res)
5581 if err := googleapi.CheckResponse(res); err != nil {
5582 return nil, gensupport.WrapError(err)
5583 }
5584 ret := &Environment{
5585 ServerResponse: googleapi.ServerResponse{
5586 Header: res.Header,
5587 HTTPStatusCode: res.StatusCode,
5588 },
5589 }
5590 target := &ret
5591 if err := gensupport.DecodeResponse(target, res); err != nil {
5592 return nil, err
5593 }
5594 return ret, nil
5595 }
5596
5597 type AccountsContainersVersionHeadersLatestCall struct {
5598 s *Service
5599 parent string
5600 urlParams_ gensupport.URLParams
5601 ifNoneMatch_ string
5602 ctx_ context.Context
5603 header_ http.Header
5604 }
5605
5606
5607
5608
5609
5610 func (r *AccountsContainersVersionHeadersService) Latest(parent string) *AccountsContainersVersionHeadersLatestCall {
5611 c := &AccountsContainersVersionHeadersLatestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5612 c.parent = parent
5613 return c
5614 }
5615
5616
5617
5618
5619 func (c *AccountsContainersVersionHeadersLatestCall) Fields(s ...googleapi.Field) *AccountsContainersVersionHeadersLatestCall {
5620 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5621 return c
5622 }
5623
5624
5625
5626
5627 func (c *AccountsContainersVersionHeadersLatestCall) IfNoneMatch(entityTag string) *AccountsContainersVersionHeadersLatestCall {
5628 c.ifNoneMatch_ = entityTag
5629 return c
5630 }
5631
5632
5633 func (c *AccountsContainersVersionHeadersLatestCall) Context(ctx context.Context) *AccountsContainersVersionHeadersLatestCall {
5634 c.ctx_ = ctx
5635 return c
5636 }
5637
5638
5639
5640 func (c *AccountsContainersVersionHeadersLatestCall) Header() http.Header {
5641 if c.header_ == nil {
5642 c.header_ = make(http.Header)
5643 }
5644 return c.header_
5645 }
5646
5647 func (c *AccountsContainersVersionHeadersLatestCall) doRequest(alt string) (*http.Response, error) {
5648 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5649 if c.ifNoneMatch_ != "" {
5650 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5651 }
5652 var body io.Reader = nil
5653 c.urlParams_.Set("alt", alt)
5654 c.urlParams_.Set("prettyPrint", "false")
5655 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/version_headers:latest")
5656 urls += "?" + c.urlParams_.Encode()
5657 req, err := http.NewRequest("GET", urls, body)
5658 if err != nil {
5659 return nil, err
5660 }
5661 req.Header = reqHeaders
5662 googleapi.Expand(req.URL, map[string]string{
5663 "parent": c.parent,
5664 })
5665 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5666 }
5667
5668
5669
5670
5671
5672
5673
5674 func (c *AccountsContainersVersionHeadersLatestCall) Do(opts ...googleapi.CallOption) (*ContainerVersionHeader, error) {
5675 gensupport.SetOptions(c.urlParams_, opts...)
5676 res, err := c.doRequest("json")
5677 if res != nil && res.StatusCode == http.StatusNotModified {
5678 if res.Body != nil {
5679 res.Body.Close()
5680 }
5681 return nil, gensupport.WrapError(&googleapi.Error{
5682 Code: res.StatusCode,
5683 Header: res.Header,
5684 })
5685 }
5686 if err != nil {
5687 return nil, err
5688 }
5689 defer googleapi.CloseBody(res)
5690 if err := googleapi.CheckResponse(res); err != nil {
5691 return nil, gensupport.WrapError(err)
5692 }
5693 ret := &ContainerVersionHeader{
5694 ServerResponse: googleapi.ServerResponse{
5695 Header: res.Header,
5696 HTTPStatusCode: res.StatusCode,
5697 },
5698 }
5699 target := &ret
5700 if err := gensupport.DecodeResponse(target, res); err != nil {
5701 return nil, err
5702 }
5703 return ret, nil
5704 }
5705
5706 type AccountsContainersVersionHeadersListCall struct {
5707 s *Service
5708 parent string
5709 urlParams_ gensupport.URLParams
5710 ifNoneMatch_ string
5711 ctx_ context.Context
5712 header_ http.Header
5713 }
5714
5715
5716
5717
5718
5719 func (r *AccountsContainersVersionHeadersService) List(parent string) *AccountsContainersVersionHeadersListCall {
5720 c := &AccountsContainersVersionHeadersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5721 c.parent = parent
5722 return c
5723 }
5724
5725
5726
5727 func (c *AccountsContainersVersionHeadersListCall) IncludeDeleted(includeDeleted bool) *AccountsContainersVersionHeadersListCall {
5728 c.urlParams_.Set("includeDeleted", fmt.Sprint(includeDeleted))
5729 return c
5730 }
5731
5732
5733
5734 func (c *AccountsContainersVersionHeadersListCall) PageToken(pageToken string) *AccountsContainersVersionHeadersListCall {
5735 c.urlParams_.Set("pageToken", pageToken)
5736 return c
5737 }
5738
5739
5740
5741
5742 func (c *AccountsContainersVersionHeadersListCall) Fields(s ...googleapi.Field) *AccountsContainersVersionHeadersListCall {
5743 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5744 return c
5745 }
5746
5747
5748
5749
5750 func (c *AccountsContainersVersionHeadersListCall) IfNoneMatch(entityTag string) *AccountsContainersVersionHeadersListCall {
5751 c.ifNoneMatch_ = entityTag
5752 return c
5753 }
5754
5755
5756 func (c *AccountsContainersVersionHeadersListCall) Context(ctx context.Context) *AccountsContainersVersionHeadersListCall {
5757 c.ctx_ = ctx
5758 return c
5759 }
5760
5761
5762
5763 func (c *AccountsContainersVersionHeadersListCall) Header() http.Header {
5764 if c.header_ == nil {
5765 c.header_ = make(http.Header)
5766 }
5767 return c.header_
5768 }
5769
5770 func (c *AccountsContainersVersionHeadersListCall) doRequest(alt string) (*http.Response, error) {
5771 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5772 if c.ifNoneMatch_ != "" {
5773 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5774 }
5775 var body io.Reader = nil
5776 c.urlParams_.Set("alt", alt)
5777 c.urlParams_.Set("prettyPrint", "false")
5778 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/version_headers")
5779 urls += "?" + c.urlParams_.Encode()
5780 req, err := http.NewRequest("GET", urls, body)
5781 if err != nil {
5782 return nil, err
5783 }
5784 req.Header = reqHeaders
5785 googleapi.Expand(req.URL, map[string]string{
5786 "parent": c.parent,
5787 })
5788 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5789 }
5790
5791
5792
5793
5794
5795
5796
5797 func (c *AccountsContainersVersionHeadersListCall) Do(opts ...googleapi.CallOption) (*ListContainerVersionsResponse, error) {
5798 gensupport.SetOptions(c.urlParams_, opts...)
5799 res, err := c.doRequest("json")
5800 if res != nil && res.StatusCode == http.StatusNotModified {
5801 if res.Body != nil {
5802 res.Body.Close()
5803 }
5804 return nil, gensupport.WrapError(&googleapi.Error{
5805 Code: res.StatusCode,
5806 Header: res.Header,
5807 })
5808 }
5809 if err != nil {
5810 return nil, err
5811 }
5812 defer googleapi.CloseBody(res)
5813 if err := googleapi.CheckResponse(res); err != nil {
5814 return nil, gensupport.WrapError(err)
5815 }
5816 ret := &ListContainerVersionsResponse{
5817 ServerResponse: googleapi.ServerResponse{
5818 Header: res.Header,
5819 HTTPStatusCode: res.StatusCode,
5820 },
5821 }
5822 target := &ret
5823 if err := gensupport.DecodeResponse(target, res); err != nil {
5824 return nil, err
5825 }
5826 return ret, nil
5827 }
5828
5829
5830
5831
5832 func (c *AccountsContainersVersionHeadersListCall) Pages(ctx context.Context, f func(*ListContainerVersionsResponse) error) error {
5833 c.ctx_ = ctx
5834 defer c.PageToken(c.urlParams_.Get("pageToken"))
5835 for {
5836 x, err := c.Do()
5837 if err != nil {
5838 return err
5839 }
5840 if err := f(x); err != nil {
5841 return err
5842 }
5843 if x.NextPageToken == "" {
5844 return nil
5845 }
5846 c.PageToken(x.NextPageToken)
5847 }
5848 }
5849
5850 type AccountsContainersVersionsDeleteCall struct {
5851 s *Service
5852 path string
5853 urlParams_ gensupport.URLParams
5854 ctx_ context.Context
5855 header_ http.Header
5856 }
5857
5858
5859
5860
5861
5862 func (r *AccountsContainersVersionsService) Delete(path string) *AccountsContainersVersionsDeleteCall {
5863 c := &AccountsContainersVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5864 c.path = path
5865 return c
5866 }
5867
5868
5869
5870
5871 func (c *AccountsContainersVersionsDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersVersionsDeleteCall {
5872 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5873 return c
5874 }
5875
5876
5877 func (c *AccountsContainersVersionsDeleteCall) Context(ctx context.Context) *AccountsContainersVersionsDeleteCall {
5878 c.ctx_ = ctx
5879 return c
5880 }
5881
5882
5883
5884 func (c *AccountsContainersVersionsDeleteCall) Header() http.Header {
5885 if c.header_ == nil {
5886 c.header_ = make(http.Header)
5887 }
5888 return c.header_
5889 }
5890
5891 func (c *AccountsContainersVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
5892 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5893 var body io.Reader = nil
5894 c.urlParams_.Set("alt", alt)
5895 c.urlParams_.Set("prettyPrint", "false")
5896 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
5897 urls += "?" + c.urlParams_.Encode()
5898 req, err := http.NewRequest("DELETE", urls, body)
5899 if err != nil {
5900 return nil, err
5901 }
5902 req.Header = reqHeaders
5903 googleapi.Expand(req.URL, map[string]string{
5904 "path": c.path,
5905 })
5906 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5907 }
5908
5909
5910 func (c *AccountsContainersVersionsDeleteCall) Do(opts ...googleapi.CallOption) error {
5911 gensupport.SetOptions(c.urlParams_, opts...)
5912 res, err := c.doRequest("json")
5913 if err != nil {
5914 return err
5915 }
5916 defer googleapi.CloseBody(res)
5917 if err := googleapi.CheckResponse(res); err != nil {
5918 return gensupport.WrapError(err)
5919 }
5920 return nil
5921 }
5922
5923 type AccountsContainersVersionsGetCall struct {
5924 s *Service
5925 path string
5926 urlParams_ gensupport.URLParams
5927 ifNoneMatch_ string
5928 ctx_ context.Context
5929 header_ http.Header
5930 }
5931
5932
5933
5934
5935
5936 func (r *AccountsContainersVersionsService) Get(path string) *AccountsContainersVersionsGetCall {
5937 c := &AccountsContainersVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5938 c.path = path
5939 return c
5940 }
5941
5942
5943
5944
5945 func (c *AccountsContainersVersionsGetCall) ContainerVersionId(containerVersionId string) *AccountsContainersVersionsGetCall {
5946 c.urlParams_.Set("containerVersionId", containerVersionId)
5947 return c
5948 }
5949
5950
5951
5952
5953 func (c *AccountsContainersVersionsGetCall) Fields(s ...googleapi.Field) *AccountsContainersVersionsGetCall {
5954 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5955 return c
5956 }
5957
5958
5959
5960
5961 func (c *AccountsContainersVersionsGetCall) IfNoneMatch(entityTag string) *AccountsContainersVersionsGetCall {
5962 c.ifNoneMatch_ = entityTag
5963 return c
5964 }
5965
5966
5967 func (c *AccountsContainersVersionsGetCall) Context(ctx context.Context) *AccountsContainersVersionsGetCall {
5968 c.ctx_ = ctx
5969 return c
5970 }
5971
5972
5973
5974 func (c *AccountsContainersVersionsGetCall) Header() http.Header {
5975 if c.header_ == nil {
5976 c.header_ = make(http.Header)
5977 }
5978 return c.header_
5979 }
5980
5981 func (c *AccountsContainersVersionsGetCall) doRequest(alt string) (*http.Response, error) {
5982 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5983 if c.ifNoneMatch_ != "" {
5984 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5985 }
5986 var body io.Reader = nil
5987 c.urlParams_.Set("alt", alt)
5988 c.urlParams_.Set("prettyPrint", "false")
5989 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
5990 urls += "?" + c.urlParams_.Encode()
5991 req, err := http.NewRequest("GET", urls, body)
5992 if err != nil {
5993 return nil, err
5994 }
5995 req.Header = reqHeaders
5996 googleapi.Expand(req.URL, map[string]string{
5997 "path": c.path,
5998 })
5999 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6000 }
6001
6002
6003
6004
6005
6006
6007
6008 func (c *AccountsContainersVersionsGetCall) Do(opts ...googleapi.CallOption) (*ContainerVersion, error) {
6009 gensupport.SetOptions(c.urlParams_, opts...)
6010 res, err := c.doRequest("json")
6011 if res != nil && res.StatusCode == http.StatusNotModified {
6012 if res.Body != nil {
6013 res.Body.Close()
6014 }
6015 return nil, gensupport.WrapError(&googleapi.Error{
6016 Code: res.StatusCode,
6017 Header: res.Header,
6018 })
6019 }
6020 if err != nil {
6021 return nil, err
6022 }
6023 defer googleapi.CloseBody(res)
6024 if err := googleapi.CheckResponse(res); err != nil {
6025 return nil, gensupport.WrapError(err)
6026 }
6027 ret := &ContainerVersion{
6028 ServerResponse: googleapi.ServerResponse{
6029 Header: res.Header,
6030 HTTPStatusCode: res.StatusCode,
6031 },
6032 }
6033 target := &ret
6034 if err := gensupport.DecodeResponse(target, res); err != nil {
6035 return nil, err
6036 }
6037 return ret, nil
6038 }
6039
6040 type AccountsContainersVersionsLiveCall struct {
6041 s *Service
6042 parent string
6043 urlParams_ gensupport.URLParams
6044 ifNoneMatch_ string
6045 ctx_ context.Context
6046 header_ http.Header
6047 }
6048
6049
6050
6051
6052
6053 func (r *AccountsContainersVersionsService) Live(parent string) *AccountsContainersVersionsLiveCall {
6054 c := &AccountsContainersVersionsLiveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6055 c.parent = parent
6056 return c
6057 }
6058
6059
6060
6061
6062 func (c *AccountsContainersVersionsLiveCall) Fields(s ...googleapi.Field) *AccountsContainersVersionsLiveCall {
6063 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6064 return c
6065 }
6066
6067
6068
6069
6070 func (c *AccountsContainersVersionsLiveCall) IfNoneMatch(entityTag string) *AccountsContainersVersionsLiveCall {
6071 c.ifNoneMatch_ = entityTag
6072 return c
6073 }
6074
6075
6076 func (c *AccountsContainersVersionsLiveCall) Context(ctx context.Context) *AccountsContainersVersionsLiveCall {
6077 c.ctx_ = ctx
6078 return c
6079 }
6080
6081
6082
6083 func (c *AccountsContainersVersionsLiveCall) Header() http.Header {
6084 if c.header_ == nil {
6085 c.header_ = make(http.Header)
6086 }
6087 return c.header_
6088 }
6089
6090 func (c *AccountsContainersVersionsLiveCall) doRequest(alt string) (*http.Response, error) {
6091 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6092 if c.ifNoneMatch_ != "" {
6093 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6094 }
6095 var body io.Reader = nil
6096 c.urlParams_.Set("alt", alt)
6097 c.urlParams_.Set("prettyPrint", "false")
6098 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/versions:live")
6099 urls += "?" + c.urlParams_.Encode()
6100 req, err := http.NewRequest("GET", urls, body)
6101 if err != nil {
6102 return nil, err
6103 }
6104 req.Header = reqHeaders
6105 googleapi.Expand(req.URL, map[string]string{
6106 "parent": c.parent,
6107 })
6108 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6109 }
6110
6111
6112
6113
6114
6115
6116
6117 func (c *AccountsContainersVersionsLiveCall) Do(opts ...googleapi.CallOption) (*ContainerVersion, error) {
6118 gensupport.SetOptions(c.urlParams_, opts...)
6119 res, err := c.doRequest("json")
6120 if res != nil && res.StatusCode == http.StatusNotModified {
6121 if res.Body != nil {
6122 res.Body.Close()
6123 }
6124 return nil, gensupport.WrapError(&googleapi.Error{
6125 Code: res.StatusCode,
6126 Header: res.Header,
6127 })
6128 }
6129 if err != nil {
6130 return nil, err
6131 }
6132 defer googleapi.CloseBody(res)
6133 if err := googleapi.CheckResponse(res); err != nil {
6134 return nil, gensupport.WrapError(err)
6135 }
6136 ret := &ContainerVersion{
6137 ServerResponse: googleapi.ServerResponse{
6138 Header: res.Header,
6139 HTTPStatusCode: res.StatusCode,
6140 },
6141 }
6142 target := &ret
6143 if err := gensupport.DecodeResponse(target, res); err != nil {
6144 return nil, err
6145 }
6146 return ret, nil
6147 }
6148
6149 type AccountsContainersVersionsPublishCall struct {
6150 s *Service
6151 path string
6152 urlParams_ gensupport.URLParams
6153 ctx_ context.Context
6154 header_ http.Header
6155 }
6156
6157
6158
6159
6160
6161 func (r *AccountsContainersVersionsService) Publish(path string) *AccountsContainersVersionsPublishCall {
6162 c := &AccountsContainersVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6163 c.path = path
6164 return c
6165 }
6166
6167
6168
6169 func (c *AccountsContainersVersionsPublishCall) Fingerprint(fingerprint string) *AccountsContainersVersionsPublishCall {
6170 c.urlParams_.Set("fingerprint", fingerprint)
6171 return c
6172 }
6173
6174
6175
6176
6177 func (c *AccountsContainersVersionsPublishCall) Fields(s ...googleapi.Field) *AccountsContainersVersionsPublishCall {
6178 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6179 return c
6180 }
6181
6182
6183 func (c *AccountsContainersVersionsPublishCall) Context(ctx context.Context) *AccountsContainersVersionsPublishCall {
6184 c.ctx_ = ctx
6185 return c
6186 }
6187
6188
6189
6190 func (c *AccountsContainersVersionsPublishCall) Header() http.Header {
6191 if c.header_ == nil {
6192 c.header_ = make(http.Header)
6193 }
6194 return c.header_
6195 }
6196
6197 func (c *AccountsContainersVersionsPublishCall) doRequest(alt string) (*http.Response, error) {
6198 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6199 var body io.Reader = nil
6200 c.urlParams_.Set("alt", alt)
6201 c.urlParams_.Set("prettyPrint", "false")
6202 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:publish")
6203 urls += "?" + c.urlParams_.Encode()
6204 req, err := http.NewRequest("POST", urls, body)
6205 if err != nil {
6206 return nil, err
6207 }
6208 req.Header = reqHeaders
6209 googleapi.Expand(req.URL, map[string]string{
6210 "path": c.path,
6211 })
6212 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6213 }
6214
6215
6216
6217
6218
6219
6220
6221 func (c *AccountsContainersVersionsPublishCall) Do(opts ...googleapi.CallOption) (*PublishContainerVersionResponse, error) {
6222 gensupport.SetOptions(c.urlParams_, opts...)
6223 res, err := c.doRequest("json")
6224 if res != nil && res.StatusCode == http.StatusNotModified {
6225 if res.Body != nil {
6226 res.Body.Close()
6227 }
6228 return nil, gensupport.WrapError(&googleapi.Error{
6229 Code: res.StatusCode,
6230 Header: res.Header,
6231 })
6232 }
6233 if err != nil {
6234 return nil, err
6235 }
6236 defer googleapi.CloseBody(res)
6237 if err := googleapi.CheckResponse(res); err != nil {
6238 return nil, gensupport.WrapError(err)
6239 }
6240 ret := &PublishContainerVersionResponse{
6241 ServerResponse: googleapi.ServerResponse{
6242 Header: res.Header,
6243 HTTPStatusCode: res.StatusCode,
6244 },
6245 }
6246 target := &ret
6247 if err := gensupport.DecodeResponse(target, res); err != nil {
6248 return nil, err
6249 }
6250 return ret, nil
6251 }
6252
6253 type AccountsContainersVersionsSetLatestCall struct {
6254 s *Service
6255 path string
6256 urlParams_ gensupport.URLParams
6257 ctx_ context.Context
6258 header_ http.Header
6259 }
6260
6261
6262
6263
6264
6265
6266 func (r *AccountsContainersVersionsService) SetLatest(path string) *AccountsContainersVersionsSetLatestCall {
6267 c := &AccountsContainersVersionsSetLatestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6268 c.path = path
6269 return c
6270 }
6271
6272
6273
6274
6275 func (c *AccountsContainersVersionsSetLatestCall) Fields(s ...googleapi.Field) *AccountsContainersVersionsSetLatestCall {
6276 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6277 return c
6278 }
6279
6280
6281 func (c *AccountsContainersVersionsSetLatestCall) Context(ctx context.Context) *AccountsContainersVersionsSetLatestCall {
6282 c.ctx_ = ctx
6283 return c
6284 }
6285
6286
6287
6288 func (c *AccountsContainersVersionsSetLatestCall) Header() http.Header {
6289 if c.header_ == nil {
6290 c.header_ = make(http.Header)
6291 }
6292 return c.header_
6293 }
6294
6295 func (c *AccountsContainersVersionsSetLatestCall) doRequest(alt string) (*http.Response, error) {
6296 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6297 var body io.Reader = nil
6298 c.urlParams_.Set("alt", alt)
6299 c.urlParams_.Set("prettyPrint", "false")
6300 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:set_latest")
6301 urls += "?" + c.urlParams_.Encode()
6302 req, err := http.NewRequest("POST", urls, body)
6303 if err != nil {
6304 return nil, err
6305 }
6306 req.Header = reqHeaders
6307 googleapi.Expand(req.URL, map[string]string{
6308 "path": c.path,
6309 })
6310 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6311 }
6312
6313
6314
6315
6316
6317
6318
6319 func (c *AccountsContainersVersionsSetLatestCall) Do(opts ...googleapi.CallOption) (*ContainerVersion, error) {
6320 gensupport.SetOptions(c.urlParams_, opts...)
6321 res, err := c.doRequest("json")
6322 if res != nil && res.StatusCode == http.StatusNotModified {
6323 if res.Body != nil {
6324 res.Body.Close()
6325 }
6326 return nil, gensupport.WrapError(&googleapi.Error{
6327 Code: res.StatusCode,
6328 Header: res.Header,
6329 })
6330 }
6331 if err != nil {
6332 return nil, err
6333 }
6334 defer googleapi.CloseBody(res)
6335 if err := googleapi.CheckResponse(res); err != nil {
6336 return nil, gensupport.WrapError(err)
6337 }
6338 ret := &ContainerVersion{
6339 ServerResponse: googleapi.ServerResponse{
6340 Header: res.Header,
6341 HTTPStatusCode: res.StatusCode,
6342 },
6343 }
6344 target := &ret
6345 if err := gensupport.DecodeResponse(target, res); err != nil {
6346 return nil, err
6347 }
6348 return ret, nil
6349 }
6350
6351 type AccountsContainersVersionsUndeleteCall struct {
6352 s *Service
6353 path string
6354 urlParams_ gensupport.URLParams
6355 ctx_ context.Context
6356 header_ http.Header
6357 }
6358
6359
6360
6361
6362
6363 func (r *AccountsContainersVersionsService) Undelete(path string) *AccountsContainersVersionsUndeleteCall {
6364 c := &AccountsContainersVersionsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6365 c.path = path
6366 return c
6367 }
6368
6369
6370
6371
6372 func (c *AccountsContainersVersionsUndeleteCall) Fields(s ...googleapi.Field) *AccountsContainersVersionsUndeleteCall {
6373 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6374 return c
6375 }
6376
6377
6378 func (c *AccountsContainersVersionsUndeleteCall) Context(ctx context.Context) *AccountsContainersVersionsUndeleteCall {
6379 c.ctx_ = ctx
6380 return c
6381 }
6382
6383
6384
6385 func (c *AccountsContainersVersionsUndeleteCall) Header() http.Header {
6386 if c.header_ == nil {
6387 c.header_ = make(http.Header)
6388 }
6389 return c.header_
6390 }
6391
6392 func (c *AccountsContainersVersionsUndeleteCall) doRequest(alt string) (*http.Response, error) {
6393 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6394 var body io.Reader = nil
6395 c.urlParams_.Set("alt", alt)
6396 c.urlParams_.Set("prettyPrint", "false")
6397 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:undelete")
6398 urls += "?" + c.urlParams_.Encode()
6399 req, err := http.NewRequest("POST", urls, body)
6400 if err != nil {
6401 return nil, err
6402 }
6403 req.Header = reqHeaders
6404 googleapi.Expand(req.URL, map[string]string{
6405 "path": c.path,
6406 })
6407 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6408 }
6409
6410
6411
6412
6413
6414
6415
6416 func (c *AccountsContainersVersionsUndeleteCall) Do(opts ...googleapi.CallOption) (*ContainerVersion, error) {
6417 gensupport.SetOptions(c.urlParams_, opts...)
6418 res, err := c.doRequest("json")
6419 if res != nil && res.StatusCode == http.StatusNotModified {
6420 if res.Body != nil {
6421 res.Body.Close()
6422 }
6423 return nil, gensupport.WrapError(&googleapi.Error{
6424 Code: res.StatusCode,
6425 Header: res.Header,
6426 })
6427 }
6428 if err != nil {
6429 return nil, err
6430 }
6431 defer googleapi.CloseBody(res)
6432 if err := googleapi.CheckResponse(res); err != nil {
6433 return nil, gensupport.WrapError(err)
6434 }
6435 ret := &ContainerVersion{
6436 ServerResponse: googleapi.ServerResponse{
6437 Header: res.Header,
6438 HTTPStatusCode: res.StatusCode,
6439 },
6440 }
6441 target := &ret
6442 if err := gensupport.DecodeResponse(target, res); err != nil {
6443 return nil, err
6444 }
6445 return ret, nil
6446 }
6447
6448 type AccountsContainersVersionsUpdateCall struct {
6449 s *Service
6450 path string
6451 containerversion *ContainerVersion
6452 urlParams_ gensupport.URLParams
6453 ctx_ context.Context
6454 header_ http.Header
6455 }
6456
6457
6458
6459
6460
6461 func (r *AccountsContainersVersionsService) Update(path string, containerversion *ContainerVersion) *AccountsContainersVersionsUpdateCall {
6462 c := &AccountsContainersVersionsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6463 c.path = path
6464 c.containerversion = containerversion
6465 return c
6466 }
6467
6468
6469
6470 func (c *AccountsContainersVersionsUpdateCall) Fingerprint(fingerprint string) *AccountsContainersVersionsUpdateCall {
6471 c.urlParams_.Set("fingerprint", fingerprint)
6472 return c
6473 }
6474
6475
6476
6477
6478 func (c *AccountsContainersVersionsUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersVersionsUpdateCall {
6479 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6480 return c
6481 }
6482
6483
6484 func (c *AccountsContainersVersionsUpdateCall) Context(ctx context.Context) *AccountsContainersVersionsUpdateCall {
6485 c.ctx_ = ctx
6486 return c
6487 }
6488
6489
6490
6491 func (c *AccountsContainersVersionsUpdateCall) Header() http.Header {
6492 if c.header_ == nil {
6493 c.header_ = make(http.Header)
6494 }
6495 return c.header_
6496 }
6497
6498 func (c *AccountsContainersVersionsUpdateCall) doRequest(alt string) (*http.Response, error) {
6499 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6500 var body io.Reader = nil
6501 body, err := googleapi.WithoutDataWrapper.JSONReader(c.containerversion)
6502 if err != nil {
6503 return nil, err
6504 }
6505 c.urlParams_.Set("alt", alt)
6506 c.urlParams_.Set("prettyPrint", "false")
6507 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
6508 urls += "?" + c.urlParams_.Encode()
6509 req, err := http.NewRequest("PUT", urls, body)
6510 if err != nil {
6511 return nil, err
6512 }
6513 req.Header = reqHeaders
6514 googleapi.Expand(req.URL, map[string]string{
6515 "path": c.path,
6516 })
6517 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6518 }
6519
6520
6521
6522
6523
6524
6525
6526 func (c *AccountsContainersVersionsUpdateCall) Do(opts ...googleapi.CallOption) (*ContainerVersion, error) {
6527 gensupport.SetOptions(c.urlParams_, opts...)
6528 res, err := c.doRequest("json")
6529 if res != nil && res.StatusCode == http.StatusNotModified {
6530 if res.Body != nil {
6531 res.Body.Close()
6532 }
6533 return nil, gensupport.WrapError(&googleapi.Error{
6534 Code: res.StatusCode,
6535 Header: res.Header,
6536 })
6537 }
6538 if err != nil {
6539 return nil, err
6540 }
6541 defer googleapi.CloseBody(res)
6542 if err := googleapi.CheckResponse(res); err != nil {
6543 return nil, gensupport.WrapError(err)
6544 }
6545 ret := &ContainerVersion{
6546 ServerResponse: googleapi.ServerResponse{
6547 Header: res.Header,
6548 HTTPStatusCode: res.StatusCode,
6549 },
6550 }
6551 target := &ret
6552 if err := gensupport.DecodeResponse(target, res); err != nil {
6553 return nil, err
6554 }
6555 return ret, nil
6556 }
6557
6558 type AccountsContainersWorkspacesCreateCall struct {
6559 s *Service
6560 parent string
6561 workspace *Workspace
6562 urlParams_ gensupport.URLParams
6563 ctx_ context.Context
6564 header_ http.Header
6565 }
6566
6567
6568
6569
6570
6571 func (r *AccountsContainersWorkspacesService) Create(parent string, workspace *Workspace) *AccountsContainersWorkspacesCreateCall {
6572 c := &AccountsContainersWorkspacesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6573 c.parent = parent
6574 c.workspace = workspace
6575 return c
6576 }
6577
6578
6579
6580
6581 func (c *AccountsContainersWorkspacesCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesCreateCall {
6582 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6583 return c
6584 }
6585
6586
6587 func (c *AccountsContainersWorkspacesCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesCreateCall {
6588 c.ctx_ = ctx
6589 return c
6590 }
6591
6592
6593
6594 func (c *AccountsContainersWorkspacesCreateCall) Header() http.Header {
6595 if c.header_ == nil {
6596 c.header_ = make(http.Header)
6597 }
6598 return c.header_
6599 }
6600
6601 func (c *AccountsContainersWorkspacesCreateCall) doRequest(alt string) (*http.Response, error) {
6602 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6603 var body io.Reader = nil
6604 body, err := googleapi.WithoutDataWrapper.JSONReader(c.workspace)
6605 if err != nil {
6606 return nil, err
6607 }
6608 c.urlParams_.Set("alt", alt)
6609 c.urlParams_.Set("prettyPrint", "false")
6610 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/workspaces")
6611 urls += "?" + c.urlParams_.Encode()
6612 req, err := http.NewRequest("POST", urls, body)
6613 if err != nil {
6614 return nil, err
6615 }
6616 req.Header = reqHeaders
6617 googleapi.Expand(req.URL, map[string]string{
6618 "parent": c.parent,
6619 })
6620 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6621 }
6622
6623
6624
6625
6626
6627
6628 func (c *AccountsContainersWorkspacesCreateCall) Do(opts ...googleapi.CallOption) (*Workspace, error) {
6629 gensupport.SetOptions(c.urlParams_, opts...)
6630 res, err := c.doRequest("json")
6631 if res != nil && res.StatusCode == http.StatusNotModified {
6632 if res.Body != nil {
6633 res.Body.Close()
6634 }
6635 return nil, gensupport.WrapError(&googleapi.Error{
6636 Code: res.StatusCode,
6637 Header: res.Header,
6638 })
6639 }
6640 if err != nil {
6641 return nil, err
6642 }
6643 defer googleapi.CloseBody(res)
6644 if err := googleapi.CheckResponse(res); err != nil {
6645 return nil, gensupport.WrapError(err)
6646 }
6647 ret := &Workspace{
6648 ServerResponse: googleapi.ServerResponse{
6649 Header: res.Header,
6650 HTTPStatusCode: res.StatusCode,
6651 },
6652 }
6653 target := &ret
6654 if err := gensupport.DecodeResponse(target, res); err != nil {
6655 return nil, err
6656 }
6657 return ret, nil
6658 }
6659
6660 type AccountsContainersWorkspacesCreateVersionCall struct {
6661 s *Service
6662 path string
6663 createcontainerversionrequestversionoptions *CreateContainerVersionRequestVersionOptions
6664 urlParams_ gensupport.URLParams
6665 ctx_ context.Context
6666 header_ http.Header
6667 }
6668
6669
6670
6671
6672
6673
6674
6675 func (r *AccountsContainersWorkspacesService) CreateVersion(path string, createcontainerversionrequestversionoptions *CreateContainerVersionRequestVersionOptions) *AccountsContainersWorkspacesCreateVersionCall {
6676 c := &AccountsContainersWorkspacesCreateVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6677 c.path = path
6678 c.createcontainerversionrequestversionoptions = createcontainerversionrequestversionoptions
6679 return c
6680 }
6681
6682
6683
6684
6685 func (c *AccountsContainersWorkspacesCreateVersionCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesCreateVersionCall {
6686 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6687 return c
6688 }
6689
6690
6691 func (c *AccountsContainersWorkspacesCreateVersionCall) Context(ctx context.Context) *AccountsContainersWorkspacesCreateVersionCall {
6692 c.ctx_ = ctx
6693 return c
6694 }
6695
6696
6697
6698 func (c *AccountsContainersWorkspacesCreateVersionCall) Header() http.Header {
6699 if c.header_ == nil {
6700 c.header_ = make(http.Header)
6701 }
6702 return c.header_
6703 }
6704
6705 func (c *AccountsContainersWorkspacesCreateVersionCall) doRequest(alt string) (*http.Response, error) {
6706 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6707 var body io.Reader = nil
6708 body, err := googleapi.WithoutDataWrapper.JSONReader(c.createcontainerversionrequestversionoptions)
6709 if err != nil {
6710 return nil, err
6711 }
6712 c.urlParams_.Set("alt", alt)
6713 c.urlParams_.Set("prettyPrint", "false")
6714 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:create_version")
6715 urls += "?" + c.urlParams_.Encode()
6716 req, err := http.NewRequest("POST", urls, body)
6717 if err != nil {
6718 return nil, err
6719 }
6720 req.Header = reqHeaders
6721 googleapi.Expand(req.URL, map[string]string{
6722 "path": c.path,
6723 })
6724 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6725 }
6726
6727
6728
6729
6730
6731
6732
6733 func (c *AccountsContainersWorkspacesCreateVersionCall) Do(opts ...googleapi.CallOption) (*CreateContainerVersionResponse, error) {
6734 gensupport.SetOptions(c.urlParams_, opts...)
6735 res, err := c.doRequest("json")
6736 if res != nil && res.StatusCode == http.StatusNotModified {
6737 if res.Body != nil {
6738 res.Body.Close()
6739 }
6740 return nil, gensupport.WrapError(&googleapi.Error{
6741 Code: res.StatusCode,
6742 Header: res.Header,
6743 })
6744 }
6745 if err != nil {
6746 return nil, err
6747 }
6748 defer googleapi.CloseBody(res)
6749 if err := googleapi.CheckResponse(res); err != nil {
6750 return nil, gensupport.WrapError(err)
6751 }
6752 ret := &CreateContainerVersionResponse{
6753 ServerResponse: googleapi.ServerResponse{
6754 Header: res.Header,
6755 HTTPStatusCode: res.StatusCode,
6756 },
6757 }
6758 target := &ret
6759 if err := gensupport.DecodeResponse(target, res); err != nil {
6760 return nil, err
6761 }
6762 return ret, nil
6763 }
6764
6765 type AccountsContainersWorkspacesDeleteCall struct {
6766 s *Service
6767 path string
6768 urlParams_ gensupport.URLParams
6769 ctx_ context.Context
6770 header_ http.Header
6771 }
6772
6773
6774
6775
6776
6777 func (r *AccountsContainersWorkspacesService) Delete(path string) *AccountsContainersWorkspacesDeleteCall {
6778 c := &AccountsContainersWorkspacesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6779 c.path = path
6780 return c
6781 }
6782
6783
6784
6785
6786 func (c *AccountsContainersWorkspacesDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesDeleteCall {
6787 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6788 return c
6789 }
6790
6791
6792 func (c *AccountsContainersWorkspacesDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesDeleteCall {
6793 c.ctx_ = ctx
6794 return c
6795 }
6796
6797
6798
6799 func (c *AccountsContainersWorkspacesDeleteCall) Header() http.Header {
6800 if c.header_ == nil {
6801 c.header_ = make(http.Header)
6802 }
6803 return c.header_
6804 }
6805
6806 func (c *AccountsContainersWorkspacesDeleteCall) doRequest(alt string) (*http.Response, error) {
6807 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6808 var body io.Reader = nil
6809 c.urlParams_.Set("alt", alt)
6810 c.urlParams_.Set("prettyPrint", "false")
6811 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
6812 urls += "?" + c.urlParams_.Encode()
6813 req, err := http.NewRequest("DELETE", urls, body)
6814 if err != nil {
6815 return nil, err
6816 }
6817 req.Header = reqHeaders
6818 googleapi.Expand(req.URL, map[string]string{
6819 "path": c.path,
6820 })
6821 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6822 }
6823
6824
6825 func (c *AccountsContainersWorkspacesDeleteCall) Do(opts ...googleapi.CallOption) error {
6826 gensupport.SetOptions(c.urlParams_, opts...)
6827 res, err := c.doRequest("json")
6828 if err != nil {
6829 return err
6830 }
6831 defer googleapi.CloseBody(res)
6832 if err := googleapi.CheckResponse(res); err != nil {
6833 return gensupport.WrapError(err)
6834 }
6835 return nil
6836 }
6837
6838 type AccountsContainersWorkspacesGetCall struct {
6839 s *Service
6840 path string
6841 urlParams_ gensupport.URLParams
6842 ifNoneMatch_ string
6843 ctx_ context.Context
6844 header_ http.Header
6845 }
6846
6847
6848
6849
6850
6851 func (r *AccountsContainersWorkspacesService) Get(path string) *AccountsContainersWorkspacesGetCall {
6852 c := &AccountsContainersWorkspacesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6853 c.path = path
6854 return c
6855 }
6856
6857
6858
6859
6860 func (c *AccountsContainersWorkspacesGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesGetCall {
6861 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6862 return c
6863 }
6864
6865
6866
6867
6868 func (c *AccountsContainersWorkspacesGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesGetCall {
6869 c.ifNoneMatch_ = entityTag
6870 return c
6871 }
6872
6873
6874 func (c *AccountsContainersWorkspacesGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesGetCall {
6875 c.ctx_ = ctx
6876 return c
6877 }
6878
6879
6880
6881 func (c *AccountsContainersWorkspacesGetCall) Header() http.Header {
6882 if c.header_ == nil {
6883 c.header_ = make(http.Header)
6884 }
6885 return c.header_
6886 }
6887
6888 func (c *AccountsContainersWorkspacesGetCall) doRequest(alt string) (*http.Response, error) {
6889 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6890 if c.ifNoneMatch_ != "" {
6891 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6892 }
6893 var body io.Reader = nil
6894 c.urlParams_.Set("alt", alt)
6895 c.urlParams_.Set("prettyPrint", "false")
6896 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
6897 urls += "?" + c.urlParams_.Encode()
6898 req, err := http.NewRequest("GET", urls, body)
6899 if err != nil {
6900 return nil, err
6901 }
6902 req.Header = reqHeaders
6903 googleapi.Expand(req.URL, map[string]string{
6904 "path": c.path,
6905 })
6906 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6907 }
6908
6909
6910
6911
6912
6913
6914 func (c *AccountsContainersWorkspacesGetCall) Do(opts ...googleapi.CallOption) (*Workspace, error) {
6915 gensupport.SetOptions(c.urlParams_, opts...)
6916 res, err := c.doRequest("json")
6917 if res != nil && res.StatusCode == http.StatusNotModified {
6918 if res.Body != nil {
6919 res.Body.Close()
6920 }
6921 return nil, gensupport.WrapError(&googleapi.Error{
6922 Code: res.StatusCode,
6923 Header: res.Header,
6924 })
6925 }
6926 if err != nil {
6927 return nil, err
6928 }
6929 defer googleapi.CloseBody(res)
6930 if err := googleapi.CheckResponse(res); err != nil {
6931 return nil, gensupport.WrapError(err)
6932 }
6933 ret := &Workspace{
6934 ServerResponse: googleapi.ServerResponse{
6935 Header: res.Header,
6936 HTTPStatusCode: res.StatusCode,
6937 },
6938 }
6939 target := &ret
6940 if err := gensupport.DecodeResponse(target, res); err != nil {
6941 return nil, err
6942 }
6943 return ret, nil
6944 }
6945
6946 type AccountsContainersWorkspacesGetStatusCall struct {
6947 s *Service
6948 path string
6949 urlParams_ gensupport.URLParams
6950 ifNoneMatch_ string
6951 ctx_ context.Context
6952 header_ http.Header
6953 }
6954
6955
6956
6957
6958
6959 func (r *AccountsContainersWorkspacesService) GetStatus(path string) *AccountsContainersWorkspacesGetStatusCall {
6960 c := &AccountsContainersWorkspacesGetStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6961 c.path = path
6962 return c
6963 }
6964
6965
6966
6967
6968 func (c *AccountsContainersWorkspacesGetStatusCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesGetStatusCall {
6969 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6970 return c
6971 }
6972
6973
6974
6975
6976 func (c *AccountsContainersWorkspacesGetStatusCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesGetStatusCall {
6977 c.ifNoneMatch_ = entityTag
6978 return c
6979 }
6980
6981
6982 func (c *AccountsContainersWorkspacesGetStatusCall) Context(ctx context.Context) *AccountsContainersWorkspacesGetStatusCall {
6983 c.ctx_ = ctx
6984 return c
6985 }
6986
6987
6988
6989 func (c *AccountsContainersWorkspacesGetStatusCall) Header() http.Header {
6990 if c.header_ == nil {
6991 c.header_ = make(http.Header)
6992 }
6993 return c.header_
6994 }
6995
6996 func (c *AccountsContainersWorkspacesGetStatusCall) doRequest(alt string) (*http.Response, error) {
6997 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6998 if c.ifNoneMatch_ != "" {
6999 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7000 }
7001 var body io.Reader = nil
7002 c.urlParams_.Set("alt", alt)
7003 c.urlParams_.Set("prettyPrint", "false")
7004 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}/status")
7005 urls += "?" + c.urlParams_.Encode()
7006 req, err := http.NewRequest("GET", urls, body)
7007 if err != nil {
7008 return nil, err
7009 }
7010 req.Header = reqHeaders
7011 googleapi.Expand(req.URL, map[string]string{
7012 "path": c.path,
7013 })
7014 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7015 }
7016
7017
7018
7019
7020
7021
7022
7023 func (c *AccountsContainersWorkspacesGetStatusCall) Do(opts ...googleapi.CallOption) (*GetWorkspaceStatusResponse, error) {
7024 gensupport.SetOptions(c.urlParams_, opts...)
7025 res, err := c.doRequest("json")
7026 if res != nil && res.StatusCode == http.StatusNotModified {
7027 if res.Body != nil {
7028 res.Body.Close()
7029 }
7030 return nil, gensupport.WrapError(&googleapi.Error{
7031 Code: res.StatusCode,
7032 Header: res.Header,
7033 })
7034 }
7035 if err != nil {
7036 return nil, err
7037 }
7038 defer googleapi.CloseBody(res)
7039 if err := googleapi.CheckResponse(res); err != nil {
7040 return nil, gensupport.WrapError(err)
7041 }
7042 ret := &GetWorkspaceStatusResponse{
7043 ServerResponse: googleapi.ServerResponse{
7044 Header: res.Header,
7045 HTTPStatusCode: res.StatusCode,
7046 },
7047 }
7048 target := &ret
7049 if err := gensupport.DecodeResponse(target, res); err != nil {
7050 return nil, err
7051 }
7052 return ret, nil
7053 }
7054
7055 type AccountsContainersWorkspacesListCall struct {
7056 s *Service
7057 parent string
7058 urlParams_ gensupport.URLParams
7059 ifNoneMatch_ string
7060 ctx_ context.Context
7061 header_ http.Header
7062 }
7063
7064
7065
7066
7067
7068 func (r *AccountsContainersWorkspacesService) List(parent string) *AccountsContainersWorkspacesListCall {
7069 c := &AccountsContainersWorkspacesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7070 c.parent = parent
7071 return c
7072 }
7073
7074
7075
7076 func (c *AccountsContainersWorkspacesListCall) PageToken(pageToken string) *AccountsContainersWorkspacesListCall {
7077 c.urlParams_.Set("pageToken", pageToken)
7078 return c
7079 }
7080
7081
7082
7083
7084 func (c *AccountsContainersWorkspacesListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesListCall {
7085 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7086 return c
7087 }
7088
7089
7090
7091
7092 func (c *AccountsContainersWorkspacesListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesListCall {
7093 c.ifNoneMatch_ = entityTag
7094 return c
7095 }
7096
7097
7098 func (c *AccountsContainersWorkspacesListCall) Context(ctx context.Context) *AccountsContainersWorkspacesListCall {
7099 c.ctx_ = ctx
7100 return c
7101 }
7102
7103
7104
7105 func (c *AccountsContainersWorkspacesListCall) Header() http.Header {
7106 if c.header_ == nil {
7107 c.header_ = make(http.Header)
7108 }
7109 return c.header_
7110 }
7111
7112 func (c *AccountsContainersWorkspacesListCall) doRequest(alt string) (*http.Response, error) {
7113 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7114 if c.ifNoneMatch_ != "" {
7115 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7116 }
7117 var body io.Reader = nil
7118 c.urlParams_.Set("alt", alt)
7119 c.urlParams_.Set("prettyPrint", "false")
7120 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/workspaces")
7121 urls += "?" + c.urlParams_.Encode()
7122 req, err := http.NewRequest("GET", urls, body)
7123 if err != nil {
7124 return nil, err
7125 }
7126 req.Header = reqHeaders
7127 googleapi.Expand(req.URL, map[string]string{
7128 "parent": c.parent,
7129 })
7130 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7131 }
7132
7133
7134
7135
7136
7137
7138
7139 func (c *AccountsContainersWorkspacesListCall) Do(opts ...googleapi.CallOption) (*ListWorkspacesResponse, error) {
7140 gensupport.SetOptions(c.urlParams_, opts...)
7141 res, err := c.doRequest("json")
7142 if res != nil && res.StatusCode == http.StatusNotModified {
7143 if res.Body != nil {
7144 res.Body.Close()
7145 }
7146 return nil, gensupport.WrapError(&googleapi.Error{
7147 Code: res.StatusCode,
7148 Header: res.Header,
7149 })
7150 }
7151 if err != nil {
7152 return nil, err
7153 }
7154 defer googleapi.CloseBody(res)
7155 if err := googleapi.CheckResponse(res); err != nil {
7156 return nil, gensupport.WrapError(err)
7157 }
7158 ret := &ListWorkspacesResponse{
7159 ServerResponse: googleapi.ServerResponse{
7160 Header: res.Header,
7161 HTTPStatusCode: res.StatusCode,
7162 },
7163 }
7164 target := &ret
7165 if err := gensupport.DecodeResponse(target, res); err != nil {
7166 return nil, err
7167 }
7168 return ret, nil
7169 }
7170
7171
7172
7173
7174 func (c *AccountsContainersWorkspacesListCall) Pages(ctx context.Context, f func(*ListWorkspacesResponse) error) error {
7175 c.ctx_ = ctx
7176 defer c.PageToken(c.urlParams_.Get("pageToken"))
7177 for {
7178 x, err := c.Do()
7179 if err != nil {
7180 return err
7181 }
7182 if err := f(x); err != nil {
7183 return err
7184 }
7185 if x.NextPageToken == "" {
7186 return nil
7187 }
7188 c.PageToken(x.NextPageToken)
7189 }
7190 }
7191
7192 type AccountsContainersWorkspacesQuickPreviewCall struct {
7193 s *Service
7194 path string
7195 urlParams_ gensupport.URLParams
7196 ctx_ context.Context
7197 header_ http.Header
7198 }
7199
7200
7201
7202
7203
7204
7205 func (r *AccountsContainersWorkspacesService) QuickPreview(path string) *AccountsContainersWorkspacesQuickPreviewCall {
7206 c := &AccountsContainersWorkspacesQuickPreviewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7207 c.path = path
7208 return c
7209 }
7210
7211
7212
7213
7214 func (c *AccountsContainersWorkspacesQuickPreviewCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesQuickPreviewCall {
7215 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7216 return c
7217 }
7218
7219
7220 func (c *AccountsContainersWorkspacesQuickPreviewCall) Context(ctx context.Context) *AccountsContainersWorkspacesQuickPreviewCall {
7221 c.ctx_ = ctx
7222 return c
7223 }
7224
7225
7226
7227 func (c *AccountsContainersWorkspacesQuickPreviewCall) Header() http.Header {
7228 if c.header_ == nil {
7229 c.header_ = make(http.Header)
7230 }
7231 return c.header_
7232 }
7233
7234 func (c *AccountsContainersWorkspacesQuickPreviewCall) doRequest(alt string) (*http.Response, error) {
7235 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7236 var body io.Reader = nil
7237 c.urlParams_.Set("alt", alt)
7238 c.urlParams_.Set("prettyPrint", "false")
7239 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:quick_preview")
7240 urls += "?" + c.urlParams_.Encode()
7241 req, err := http.NewRequest("POST", urls, body)
7242 if err != nil {
7243 return nil, err
7244 }
7245 req.Header = reqHeaders
7246 googleapi.Expand(req.URL, map[string]string{
7247 "path": c.path,
7248 })
7249 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7250 }
7251
7252
7253
7254
7255
7256
7257
7258 func (c *AccountsContainersWorkspacesQuickPreviewCall) Do(opts ...googleapi.CallOption) (*QuickPreviewResponse, error) {
7259 gensupport.SetOptions(c.urlParams_, opts...)
7260 res, err := c.doRequest("json")
7261 if res != nil && res.StatusCode == http.StatusNotModified {
7262 if res.Body != nil {
7263 res.Body.Close()
7264 }
7265 return nil, gensupport.WrapError(&googleapi.Error{
7266 Code: res.StatusCode,
7267 Header: res.Header,
7268 })
7269 }
7270 if err != nil {
7271 return nil, err
7272 }
7273 defer googleapi.CloseBody(res)
7274 if err := googleapi.CheckResponse(res); err != nil {
7275 return nil, gensupport.WrapError(err)
7276 }
7277 ret := &QuickPreviewResponse{
7278 ServerResponse: googleapi.ServerResponse{
7279 Header: res.Header,
7280 HTTPStatusCode: res.StatusCode,
7281 },
7282 }
7283 target := &ret
7284 if err := gensupport.DecodeResponse(target, res); err != nil {
7285 return nil, err
7286 }
7287 return ret, nil
7288 }
7289
7290 type AccountsContainersWorkspacesResolveConflictCall struct {
7291 s *Service
7292 path string
7293 entity *Entity
7294 urlParams_ gensupport.URLParams
7295 ctx_ context.Context
7296 header_ http.Header
7297 }
7298
7299
7300
7301
7302
7303
7304 func (r *AccountsContainersWorkspacesService) ResolveConflict(path string, entity *Entity) *AccountsContainersWorkspacesResolveConflictCall {
7305 c := &AccountsContainersWorkspacesResolveConflictCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7306 c.path = path
7307 c.entity = entity
7308 return c
7309 }
7310
7311
7312
7313
7314 func (c *AccountsContainersWorkspacesResolveConflictCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesResolveConflictCall {
7315 c.urlParams_.Set("fingerprint", fingerprint)
7316 return c
7317 }
7318
7319
7320
7321
7322 func (c *AccountsContainersWorkspacesResolveConflictCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesResolveConflictCall {
7323 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7324 return c
7325 }
7326
7327
7328 func (c *AccountsContainersWorkspacesResolveConflictCall) Context(ctx context.Context) *AccountsContainersWorkspacesResolveConflictCall {
7329 c.ctx_ = ctx
7330 return c
7331 }
7332
7333
7334
7335 func (c *AccountsContainersWorkspacesResolveConflictCall) Header() http.Header {
7336 if c.header_ == nil {
7337 c.header_ = make(http.Header)
7338 }
7339 return c.header_
7340 }
7341
7342 func (c *AccountsContainersWorkspacesResolveConflictCall) doRequest(alt string) (*http.Response, error) {
7343 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7344 var body io.Reader = nil
7345 body, err := googleapi.WithoutDataWrapper.JSONReader(c.entity)
7346 if err != nil {
7347 return nil, err
7348 }
7349 c.urlParams_.Set("alt", alt)
7350 c.urlParams_.Set("prettyPrint", "false")
7351 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:resolve_conflict")
7352 urls += "?" + c.urlParams_.Encode()
7353 req, err := http.NewRequest("POST", urls, body)
7354 if err != nil {
7355 return nil, err
7356 }
7357 req.Header = reqHeaders
7358 googleapi.Expand(req.URL, map[string]string{
7359 "path": c.path,
7360 })
7361 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7362 }
7363
7364
7365 func (c *AccountsContainersWorkspacesResolveConflictCall) Do(opts ...googleapi.CallOption) error {
7366 gensupport.SetOptions(c.urlParams_, opts...)
7367 res, err := c.doRequest("json")
7368 if err != nil {
7369 return err
7370 }
7371 defer googleapi.CloseBody(res)
7372 if err := googleapi.CheckResponse(res); err != nil {
7373 return gensupport.WrapError(err)
7374 }
7375 return nil
7376 }
7377
7378 type AccountsContainersWorkspacesSyncCall struct {
7379 s *Service
7380 path string
7381 urlParams_ gensupport.URLParams
7382 ctx_ context.Context
7383 header_ http.Header
7384 }
7385
7386
7387
7388
7389
7390
7391
7392 func (r *AccountsContainersWorkspacesService) Sync(path string) *AccountsContainersWorkspacesSyncCall {
7393 c := &AccountsContainersWorkspacesSyncCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7394 c.path = path
7395 return c
7396 }
7397
7398
7399
7400
7401 func (c *AccountsContainersWorkspacesSyncCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesSyncCall {
7402 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7403 return c
7404 }
7405
7406
7407 func (c *AccountsContainersWorkspacesSyncCall) Context(ctx context.Context) *AccountsContainersWorkspacesSyncCall {
7408 c.ctx_ = ctx
7409 return c
7410 }
7411
7412
7413
7414 func (c *AccountsContainersWorkspacesSyncCall) Header() http.Header {
7415 if c.header_ == nil {
7416 c.header_ = make(http.Header)
7417 }
7418 return c.header_
7419 }
7420
7421 func (c *AccountsContainersWorkspacesSyncCall) doRequest(alt string) (*http.Response, error) {
7422 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7423 var body io.Reader = nil
7424 c.urlParams_.Set("alt", alt)
7425 c.urlParams_.Set("prettyPrint", "false")
7426 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:sync")
7427 urls += "?" + c.urlParams_.Encode()
7428 req, err := http.NewRequest("POST", urls, body)
7429 if err != nil {
7430 return nil, err
7431 }
7432 req.Header = reqHeaders
7433 googleapi.Expand(req.URL, map[string]string{
7434 "path": c.path,
7435 })
7436 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7437 }
7438
7439
7440
7441
7442
7443
7444
7445 func (c *AccountsContainersWorkspacesSyncCall) Do(opts ...googleapi.CallOption) (*SyncWorkspaceResponse, error) {
7446 gensupport.SetOptions(c.urlParams_, opts...)
7447 res, err := c.doRequest("json")
7448 if res != nil && res.StatusCode == http.StatusNotModified {
7449 if res.Body != nil {
7450 res.Body.Close()
7451 }
7452 return nil, gensupport.WrapError(&googleapi.Error{
7453 Code: res.StatusCode,
7454 Header: res.Header,
7455 })
7456 }
7457 if err != nil {
7458 return nil, err
7459 }
7460 defer googleapi.CloseBody(res)
7461 if err := googleapi.CheckResponse(res); err != nil {
7462 return nil, gensupport.WrapError(err)
7463 }
7464 ret := &SyncWorkspaceResponse{
7465 ServerResponse: googleapi.ServerResponse{
7466 Header: res.Header,
7467 HTTPStatusCode: res.StatusCode,
7468 },
7469 }
7470 target := &ret
7471 if err := gensupport.DecodeResponse(target, res); err != nil {
7472 return nil, err
7473 }
7474 return ret, nil
7475 }
7476
7477 type AccountsContainersWorkspacesUpdateCall struct {
7478 s *Service
7479 path string
7480 workspace *Workspace
7481 urlParams_ gensupport.URLParams
7482 ctx_ context.Context
7483 header_ http.Header
7484 }
7485
7486
7487
7488
7489
7490 func (r *AccountsContainersWorkspacesService) Update(path string, workspace *Workspace) *AccountsContainersWorkspacesUpdateCall {
7491 c := &AccountsContainersWorkspacesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7492 c.path = path
7493 c.workspace = workspace
7494 return c
7495 }
7496
7497
7498
7499 func (c *AccountsContainersWorkspacesUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesUpdateCall {
7500 c.urlParams_.Set("fingerprint", fingerprint)
7501 return c
7502 }
7503
7504
7505
7506
7507 func (c *AccountsContainersWorkspacesUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesUpdateCall {
7508 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7509 return c
7510 }
7511
7512
7513 func (c *AccountsContainersWorkspacesUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesUpdateCall {
7514 c.ctx_ = ctx
7515 return c
7516 }
7517
7518
7519
7520 func (c *AccountsContainersWorkspacesUpdateCall) Header() http.Header {
7521 if c.header_ == nil {
7522 c.header_ = make(http.Header)
7523 }
7524 return c.header_
7525 }
7526
7527 func (c *AccountsContainersWorkspacesUpdateCall) doRequest(alt string) (*http.Response, error) {
7528 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7529 var body io.Reader = nil
7530 body, err := googleapi.WithoutDataWrapper.JSONReader(c.workspace)
7531 if err != nil {
7532 return nil, err
7533 }
7534 c.urlParams_.Set("alt", alt)
7535 c.urlParams_.Set("prettyPrint", "false")
7536 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
7537 urls += "?" + c.urlParams_.Encode()
7538 req, err := http.NewRequest("PUT", urls, body)
7539 if err != nil {
7540 return nil, err
7541 }
7542 req.Header = reqHeaders
7543 googleapi.Expand(req.URL, map[string]string{
7544 "path": c.path,
7545 })
7546 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7547 }
7548
7549
7550
7551
7552
7553
7554 func (c *AccountsContainersWorkspacesUpdateCall) Do(opts ...googleapi.CallOption) (*Workspace, error) {
7555 gensupport.SetOptions(c.urlParams_, opts...)
7556 res, err := c.doRequest("json")
7557 if res != nil && res.StatusCode == http.StatusNotModified {
7558 if res.Body != nil {
7559 res.Body.Close()
7560 }
7561 return nil, gensupport.WrapError(&googleapi.Error{
7562 Code: res.StatusCode,
7563 Header: res.Header,
7564 })
7565 }
7566 if err != nil {
7567 return nil, err
7568 }
7569 defer googleapi.CloseBody(res)
7570 if err := googleapi.CheckResponse(res); err != nil {
7571 return nil, gensupport.WrapError(err)
7572 }
7573 ret := &Workspace{
7574 ServerResponse: googleapi.ServerResponse{
7575 Header: res.Header,
7576 HTTPStatusCode: res.StatusCode,
7577 },
7578 }
7579 target := &ret
7580 if err := gensupport.DecodeResponse(target, res); err != nil {
7581 return nil, err
7582 }
7583 return ret, nil
7584 }
7585
7586 type AccountsContainersWorkspacesBuiltInVariablesCreateCall struct {
7587 s *Service
7588 parent string
7589 urlParams_ gensupport.URLParams
7590 ctx_ context.Context
7591 header_ http.Header
7592 }
7593
7594
7595
7596
7597
7598 func (r *AccountsContainersWorkspacesBuiltInVariablesService) Create(parent string) *AccountsContainersWorkspacesBuiltInVariablesCreateCall {
7599 c := &AccountsContainersWorkspacesBuiltInVariablesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7600 c.parent = parent
7601 return c
7602 }
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723 func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) Type(type_ ...string) *AccountsContainersWorkspacesBuiltInVariablesCreateCall {
7724 c.urlParams_.SetMulti("type", append([]string{}, type_...))
7725 return c
7726 }
7727
7728
7729
7730
7731 func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesBuiltInVariablesCreateCall {
7732 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7733 return c
7734 }
7735
7736
7737 func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesBuiltInVariablesCreateCall {
7738 c.ctx_ = ctx
7739 return c
7740 }
7741
7742
7743
7744 func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) Header() http.Header {
7745 if c.header_ == nil {
7746 c.header_ = make(http.Header)
7747 }
7748 return c.header_
7749 }
7750
7751 func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) doRequest(alt string) (*http.Response, error) {
7752 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7753 var body io.Reader = nil
7754 c.urlParams_.Set("alt", alt)
7755 c.urlParams_.Set("prettyPrint", "false")
7756 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/built_in_variables")
7757 urls += "?" + c.urlParams_.Encode()
7758 req, err := http.NewRequest("POST", urls, body)
7759 if err != nil {
7760 return nil, err
7761 }
7762 req.Header = reqHeaders
7763 googleapi.Expand(req.URL, map[string]string{
7764 "parent": c.parent,
7765 })
7766 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7767 }
7768
7769
7770
7771
7772
7773
7774
7775 func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) Do(opts ...googleapi.CallOption) (*CreateBuiltInVariableResponse, error) {
7776 gensupport.SetOptions(c.urlParams_, opts...)
7777 res, err := c.doRequest("json")
7778 if res != nil && res.StatusCode == http.StatusNotModified {
7779 if res.Body != nil {
7780 res.Body.Close()
7781 }
7782 return nil, gensupport.WrapError(&googleapi.Error{
7783 Code: res.StatusCode,
7784 Header: res.Header,
7785 })
7786 }
7787 if err != nil {
7788 return nil, err
7789 }
7790 defer googleapi.CloseBody(res)
7791 if err := googleapi.CheckResponse(res); err != nil {
7792 return nil, gensupport.WrapError(err)
7793 }
7794 ret := &CreateBuiltInVariableResponse{
7795 ServerResponse: googleapi.ServerResponse{
7796 Header: res.Header,
7797 HTTPStatusCode: res.StatusCode,
7798 },
7799 }
7800 target := &ret
7801 if err := gensupport.DecodeResponse(target, res); err != nil {
7802 return nil, err
7803 }
7804 return ret, nil
7805 }
7806
7807 type AccountsContainersWorkspacesBuiltInVariablesDeleteCall struct {
7808 s *Service
7809 path string
7810 urlParams_ gensupport.URLParams
7811 ctx_ context.Context
7812 header_ http.Header
7813 }
7814
7815
7816
7817
7818
7819
7820 func (r *AccountsContainersWorkspacesBuiltInVariablesService) Delete(path string) *AccountsContainersWorkspacesBuiltInVariablesDeleteCall {
7821 c := &AccountsContainersWorkspacesBuiltInVariablesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7822 c.path = path
7823 return c
7824 }
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945 func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) Type(type_ ...string) *AccountsContainersWorkspacesBuiltInVariablesDeleteCall {
7946 c.urlParams_.SetMulti("type", append([]string{}, type_...))
7947 return c
7948 }
7949
7950
7951
7952
7953 func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesBuiltInVariablesDeleteCall {
7954 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7955 return c
7956 }
7957
7958
7959 func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesBuiltInVariablesDeleteCall {
7960 c.ctx_ = ctx
7961 return c
7962 }
7963
7964
7965
7966 func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) Header() http.Header {
7967 if c.header_ == nil {
7968 c.header_ = make(http.Header)
7969 }
7970 return c.header_
7971 }
7972
7973 func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) doRequest(alt string) (*http.Response, error) {
7974 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7975 var body io.Reader = nil
7976 c.urlParams_.Set("alt", alt)
7977 c.urlParams_.Set("prettyPrint", "false")
7978 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
7979 urls += "?" + c.urlParams_.Encode()
7980 req, err := http.NewRequest("DELETE", urls, body)
7981 if err != nil {
7982 return nil, err
7983 }
7984 req.Header = reqHeaders
7985 googleapi.Expand(req.URL, map[string]string{
7986 "path": c.path,
7987 })
7988 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7989 }
7990
7991
7992 func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) Do(opts ...googleapi.CallOption) error {
7993 gensupport.SetOptions(c.urlParams_, opts...)
7994 res, err := c.doRequest("json")
7995 if err != nil {
7996 return err
7997 }
7998 defer googleapi.CloseBody(res)
7999 if err := googleapi.CheckResponse(res); err != nil {
8000 return gensupport.WrapError(err)
8001 }
8002 return nil
8003 }
8004
8005 type AccountsContainersWorkspacesBuiltInVariablesListCall struct {
8006 s *Service
8007 parent string
8008 urlParams_ gensupport.URLParams
8009 ifNoneMatch_ string
8010 ctx_ context.Context
8011 header_ http.Header
8012 }
8013
8014
8015
8016
8017
8018 func (r *AccountsContainersWorkspacesBuiltInVariablesService) List(parent string) *AccountsContainersWorkspacesBuiltInVariablesListCall {
8019 c := &AccountsContainersWorkspacesBuiltInVariablesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8020 c.parent = parent
8021 return c
8022 }
8023
8024
8025
8026 func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) PageToken(pageToken string) *AccountsContainersWorkspacesBuiltInVariablesListCall {
8027 c.urlParams_.Set("pageToken", pageToken)
8028 return c
8029 }
8030
8031
8032
8033
8034 func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesBuiltInVariablesListCall {
8035 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8036 return c
8037 }
8038
8039
8040
8041
8042 func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesBuiltInVariablesListCall {
8043 c.ifNoneMatch_ = entityTag
8044 return c
8045 }
8046
8047
8048 func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) Context(ctx context.Context) *AccountsContainersWorkspacesBuiltInVariablesListCall {
8049 c.ctx_ = ctx
8050 return c
8051 }
8052
8053
8054
8055 func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) Header() http.Header {
8056 if c.header_ == nil {
8057 c.header_ = make(http.Header)
8058 }
8059 return c.header_
8060 }
8061
8062 func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) doRequest(alt string) (*http.Response, error) {
8063 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8064 if c.ifNoneMatch_ != "" {
8065 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8066 }
8067 var body io.Reader = nil
8068 c.urlParams_.Set("alt", alt)
8069 c.urlParams_.Set("prettyPrint", "false")
8070 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/built_in_variables")
8071 urls += "?" + c.urlParams_.Encode()
8072 req, err := http.NewRequest("GET", urls, body)
8073 if err != nil {
8074 return nil, err
8075 }
8076 req.Header = reqHeaders
8077 googleapi.Expand(req.URL, map[string]string{
8078 "parent": c.parent,
8079 })
8080 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8081 }
8082
8083
8084
8085
8086
8087
8088
8089 func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) Do(opts ...googleapi.CallOption) (*ListEnabledBuiltInVariablesResponse, error) {
8090 gensupport.SetOptions(c.urlParams_, opts...)
8091 res, err := c.doRequest("json")
8092 if res != nil && res.StatusCode == http.StatusNotModified {
8093 if res.Body != nil {
8094 res.Body.Close()
8095 }
8096 return nil, gensupport.WrapError(&googleapi.Error{
8097 Code: res.StatusCode,
8098 Header: res.Header,
8099 })
8100 }
8101 if err != nil {
8102 return nil, err
8103 }
8104 defer googleapi.CloseBody(res)
8105 if err := googleapi.CheckResponse(res); err != nil {
8106 return nil, gensupport.WrapError(err)
8107 }
8108 ret := &ListEnabledBuiltInVariablesResponse{
8109 ServerResponse: googleapi.ServerResponse{
8110 Header: res.Header,
8111 HTTPStatusCode: res.StatusCode,
8112 },
8113 }
8114 target := &ret
8115 if err := gensupport.DecodeResponse(target, res); err != nil {
8116 return nil, err
8117 }
8118 return ret, nil
8119 }
8120
8121
8122
8123
8124 func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) Pages(ctx context.Context, f func(*ListEnabledBuiltInVariablesResponse) error) error {
8125 c.ctx_ = ctx
8126 defer c.PageToken(c.urlParams_.Get("pageToken"))
8127 for {
8128 x, err := c.Do()
8129 if err != nil {
8130 return err
8131 }
8132 if err := f(x); err != nil {
8133 return err
8134 }
8135 if x.NextPageToken == "" {
8136 return nil
8137 }
8138 c.PageToken(x.NextPageToken)
8139 }
8140 }
8141
8142 type AccountsContainersWorkspacesBuiltInVariablesRevertCall struct {
8143 s *Service
8144 path string
8145 urlParams_ gensupport.URLParams
8146 ctx_ context.Context
8147 header_ http.Header
8148 }
8149
8150
8151
8152
8153
8154
8155 func (r *AccountsContainersWorkspacesBuiltInVariablesService) Revert(path string) *AccountsContainersWorkspacesBuiltInVariablesRevertCall {
8156 c := &AccountsContainersWorkspacesBuiltInVariablesRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8157 c.path = path
8158 return c
8159 }
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280 func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) Type(type_ string) *AccountsContainersWorkspacesBuiltInVariablesRevertCall {
8281 c.urlParams_.Set("type", type_)
8282 return c
8283 }
8284
8285
8286
8287
8288 func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesBuiltInVariablesRevertCall {
8289 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8290 return c
8291 }
8292
8293
8294 func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) Context(ctx context.Context) *AccountsContainersWorkspacesBuiltInVariablesRevertCall {
8295 c.ctx_ = ctx
8296 return c
8297 }
8298
8299
8300
8301 func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) Header() http.Header {
8302 if c.header_ == nil {
8303 c.header_ = make(http.Header)
8304 }
8305 return c.header_
8306 }
8307
8308 func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) doRequest(alt string) (*http.Response, error) {
8309 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8310 var body io.Reader = nil
8311 c.urlParams_.Set("alt", alt)
8312 c.urlParams_.Set("prettyPrint", "false")
8313 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}/built_in_variables:revert")
8314 urls += "?" + c.urlParams_.Encode()
8315 req, err := http.NewRequest("POST", urls, body)
8316 if err != nil {
8317 return nil, err
8318 }
8319 req.Header = reqHeaders
8320 googleapi.Expand(req.URL, map[string]string{
8321 "path": c.path,
8322 })
8323 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8324 }
8325
8326
8327
8328
8329
8330
8331
8332 func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) Do(opts ...googleapi.CallOption) (*RevertBuiltInVariableResponse, error) {
8333 gensupport.SetOptions(c.urlParams_, opts...)
8334 res, err := c.doRequest("json")
8335 if res != nil && res.StatusCode == http.StatusNotModified {
8336 if res.Body != nil {
8337 res.Body.Close()
8338 }
8339 return nil, gensupport.WrapError(&googleapi.Error{
8340 Code: res.StatusCode,
8341 Header: res.Header,
8342 })
8343 }
8344 if err != nil {
8345 return nil, err
8346 }
8347 defer googleapi.CloseBody(res)
8348 if err := googleapi.CheckResponse(res); err != nil {
8349 return nil, gensupport.WrapError(err)
8350 }
8351 ret := &RevertBuiltInVariableResponse{
8352 ServerResponse: googleapi.ServerResponse{
8353 Header: res.Header,
8354 HTTPStatusCode: res.StatusCode,
8355 },
8356 }
8357 target := &ret
8358 if err := gensupport.DecodeResponse(target, res); err != nil {
8359 return nil, err
8360 }
8361 return ret, nil
8362 }
8363
8364 type AccountsContainersWorkspacesClientsCreateCall struct {
8365 s *Service
8366 parent string
8367 client *Client
8368 urlParams_ gensupport.URLParams
8369 ctx_ context.Context
8370 header_ http.Header
8371 }
8372
8373
8374
8375
8376
8377 func (r *AccountsContainersWorkspacesClientsService) Create(parent string, client *Client) *AccountsContainersWorkspacesClientsCreateCall {
8378 c := &AccountsContainersWorkspacesClientsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8379 c.parent = parent
8380 c.client = client
8381 return c
8382 }
8383
8384
8385
8386
8387 func (c *AccountsContainersWorkspacesClientsCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesClientsCreateCall {
8388 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8389 return c
8390 }
8391
8392
8393 func (c *AccountsContainersWorkspacesClientsCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesClientsCreateCall {
8394 c.ctx_ = ctx
8395 return c
8396 }
8397
8398
8399
8400 func (c *AccountsContainersWorkspacesClientsCreateCall) Header() http.Header {
8401 if c.header_ == nil {
8402 c.header_ = make(http.Header)
8403 }
8404 return c.header_
8405 }
8406
8407 func (c *AccountsContainersWorkspacesClientsCreateCall) doRequest(alt string) (*http.Response, error) {
8408 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8409 var body io.Reader = nil
8410 body, err := googleapi.WithoutDataWrapper.JSONReader(c.client)
8411 if err != nil {
8412 return nil, err
8413 }
8414 c.urlParams_.Set("alt", alt)
8415 c.urlParams_.Set("prettyPrint", "false")
8416 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/clients")
8417 urls += "?" + c.urlParams_.Encode()
8418 req, err := http.NewRequest("POST", urls, body)
8419 if err != nil {
8420 return nil, err
8421 }
8422 req.Header = reqHeaders
8423 googleapi.Expand(req.URL, map[string]string{
8424 "parent": c.parent,
8425 })
8426 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8427 }
8428
8429
8430
8431
8432
8433
8434 func (c *AccountsContainersWorkspacesClientsCreateCall) Do(opts ...googleapi.CallOption) (*Client, error) {
8435 gensupport.SetOptions(c.urlParams_, opts...)
8436 res, err := c.doRequest("json")
8437 if res != nil && res.StatusCode == http.StatusNotModified {
8438 if res.Body != nil {
8439 res.Body.Close()
8440 }
8441 return nil, gensupport.WrapError(&googleapi.Error{
8442 Code: res.StatusCode,
8443 Header: res.Header,
8444 })
8445 }
8446 if err != nil {
8447 return nil, err
8448 }
8449 defer googleapi.CloseBody(res)
8450 if err := googleapi.CheckResponse(res); err != nil {
8451 return nil, gensupport.WrapError(err)
8452 }
8453 ret := &Client{
8454 ServerResponse: googleapi.ServerResponse{
8455 Header: res.Header,
8456 HTTPStatusCode: res.StatusCode,
8457 },
8458 }
8459 target := &ret
8460 if err := gensupport.DecodeResponse(target, res); err != nil {
8461 return nil, err
8462 }
8463 return ret, nil
8464 }
8465
8466 type AccountsContainersWorkspacesClientsDeleteCall struct {
8467 s *Service
8468 path string
8469 urlParams_ gensupport.URLParams
8470 ctx_ context.Context
8471 header_ http.Header
8472 }
8473
8474
8475
8476
8477
8478
8479 func (r *AccountsContainersWorkspacesClientsService) Delete(path string) *AccountsContainersWorkspacesClientsDeleteCall {
8480 c := &AccountsContainersWorkspacesClientsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8481 c.path = path
8482 return c
8483 }
8484
8485
8486
8487
8488 func (c *AccountsContainersWorkspacesClientsDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesClientsDeleteCall {
8489 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8490 return c
8491 }
8492
8493
8494 func (c *AccountsContainersWorkspacesClientsDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesClientsDeleteCall {
8495 c.ctx_ = ctx
8496 return c
8497 }
8498
8499
8500
8501 func (c *AccountsContainersWorkspacesClientsDeleteCall) Header() http.Header {
8502 if c.header_ == nil {
8503 c.header_ = make(http.Header)
8504 }
8505 return c.header_
8506 }
8507
8508 func (c *AccountsContainersWorkspacesClientsDeleteCall) doRequest(alt string) (*http.Response, error) {
8509 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8510 var body io.Reader = nil
8511 c.urlParams_.Set("alt", alt)
8512 c.urlParams_.Set("prettyPrint", "false")
8513 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
8514 urls += "?" + c.urlParams_.Encode()
8515 req, err := http.NewRequest("DELETE", urls, body)
8516 if err != nil {
8517 return nil, err
8518 }
8519 req.Header = reqHeaders
8520 googleapi.Expand(req.URL, map[string]string{
8521 "path": c.path,
8522 })
8523 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8524 }
8525
8526
8527 func (c *AccountsContainersWorkspacesClientsDeleteCall) Do(opts ...googleapi.CallOption) error {
8528 gensupport.SetOptions(c.urlParams_, opts...)
8529 res, err := c.doRequest("json")
8530 if err != nil {
8531 return err
8532 }
8533 defer googleapi.CloseBody(res)
8534 if err := googleapi.CheckResponse(res); err != nil {
8535 return gensupport.WrapError(err)
8536 }
8537 return nil
8538 }
8539
8540 type AccountsContainersWorkspacesClientsGetCall struct {
8541 s *Service
8542 path string
8543 urlParams_ gensupport.URLParams
8544 ifNoneMatch_ string
8545 ctx_ context.Context
8546 header_ http.Header
8547 }
8548
8549
8550
8551
8552
8553
8554 func (r *AccountsContainersWorkspacesClientsService) Get(path string) *AccountsContainersWorkspacesClientsGetCall {
8555 c := &AccountsContainersWorkspacesClientsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8556 c.path = path
8557 return c
8558 }
8559
8560
8561
8562
8563 func (c *AccountsContainersWorkspacesClientsGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesClientsGetCall {
8564 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8565 return c
8566 }
8567
8568
8569
8570
8571 func (c *AccountsContainersWorkspacesClientsGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesClientsGetCall {
8572 c.ifNoneMatch_ = entityTag
8573 return c
8574 }
8575
8576
8577 func (c *AccountsContainersWorkspacesClientsGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesClientsGetCall {
8578 c.ctx_ = ctx
8579 return c
8580 }
8581
8582
8583
8584 func (c *AccountsContainersWorkspacesClientsGetCall) Header() http.Header {
8585 if c.header_ == nil {
8586 c.header_ = make(http.Header)
8587 }
8588 return c.header_
8589 }
8590
8591 func (c *AccountsContainersWorkspacesClientsGetCall) doRequest(alt string) (*http.Response, error) {
8592 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8593 if c.ifNoneMatch_ != "" {
8594 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8595 }
8596 var body io.Reader = nil
8597 c.urlParams_.Set("alt", alt)
8598 c.urlParams_.Set("prettyPrint", "false")
8599 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
8600 urls += "?" + c.urlParams_.Encode()
8601 req, err := http.NewRequest("GET", urls, body)
8602 if err != nil {
8603 return nil, err
8604 }
8605 req.Header = reqHeaders
8606 googleapi.Expand(req.URL, map[string]string{
8607 "path": c.path,
8608 })
8609 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8610 }
8611
8612
8613
8614
8615
8616
8617 func (c *AccountsContainersWorkspacesClientsGetCall) Do(opts ...googleapi.CallOption) (*Client, error) {
8618 gensupport.SetOptions(c.urlParams_, opts...)
8619 res, err := c.doRequest("json")
8620 if res != nil && res.StatusCode == http.StatusNotModified {
8621 if res.Body != nil {
8622 res.Body.Close()
8623 }
8624 return nil, gensupport.WrapError(&googleapi.Error{
8625 Code: res.StatusCode,
8626 Header: res.Header,
8627 })
8628 }
8629 if err != nil {
8630 return nil, err
8631 }
8632 defer googleapi.CloseBody(res)
8633 if err := googleapi.CheckResponse(res); err != nil {
8634 return nil, gensupport.WrapError(err)
8635 }
8636 ret := &Client{
8637 ServerResponse: googleapi.ServerResponse{
8638 Header: res.Header,
8639 HTTPStatusCode: res.StatusCode,
8640 },
8641 }
8642 target := &ret
8643 if err := gensupport.DecodeResponse(target, res); err != nil {
8644 return nil, err
8645 }
8646 return ret, nil
8647 }
8648
8649 type AccountsContainersWorkspacesClientsListCall struct {
8650 s *Service
8651 parent string
8652 urlParams_ gensupport.URLParams
8653 ifNoneMatch_ string
8654 ctx_ context.Context
8655 header_ http.Header
8656 }
8657
8658
8659
8660
8661
8662 func (r *AccountsContainersWorkspacesClientsService) List(parent string) *AccountsContainersWorkspacesClientsListCall {
8663 c := &AccountsContainersWorkspacesClientsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8664 c.parent = parent
8665 return c
8666 }
8667
8668
8669
8670 func (c *AccountsContainersWorkspacesClientsListCall) PageToken(pageToken string) *AccountsContainersWorkspacesClientsListCall {
8671 c.urlParams_.Set("pageToken", pageToken)
8672 return c
8673 }
8674
8675
8676
8677
8678 func (c *AccountsContainersWorkspacesClientsListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesClientsListCall {
8679 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8680 return c
8681 }
8682
8683
8684
8685
8686 func (c *AccountsContainersWorkspacesClientsListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesClientsListCall {
8687 c.ifNoneMatch_ = entityTag
8688 return c
8689 }
8690
8691
8692 func (c *AccountsContainersWorkspacesClientsListCall) Context(ctx context.Context) *AccountsContainersWorkspacesClientsListCall {
8693 c.ctx_ = ctx
8694 return c
8695 }
8696
8697
8698
8699 func (c *AccountsContainersWorkspacesClientsListCall) Header() http.Header {
8700 if c.header_ == nil {
8701 c.header_ = make(http.Header)
8702 }
8703 return c.header_
8704 }
8705
8706 func (c *AccountsContainersWorkspacesClientsListCall) doRequest(alt string) (*http.Response, error) {
8707 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8708 if c.ifNoneMatch_ != "" {
8709 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8710 }
8711 var body io.Reader = nil
8712 c.urlParams_.Set("alt", alt)
8713 c.urlParams_.Set("prettyPrint", "false")
8714 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/clients")
8715 urls += "?" + c.urlParams_.Encode()
8716 req, err := http.NewRequest("GET", urls, body)
8717 if err != nil {
8718 return nil, err
8719 }
8720 req.Header = reqHeaders
8721 googleapi.Expand(req.URL, map[string]string{
8722 "parent": c.parent,
8723 })
8724 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8725 }
8726
8727
8728
8729
8730
8731
8732
8733 func (c *AccountsContainersWorkspacesClientsListCall) Do(opts ...googleapi.CallOption) (*ListClientsResponse, error) {
8734 gensupport.SetOptions(c.urlParams_, opts...)
8735 res, err := c.doRequest("json")
8736 if res != nil && res.StatusCode == http.StatusNotModified {
8737 if res.Body != nil {
8738 res.Body.Close()
8739 }
8740 return nil, gensupport.WrapError(&googleapi.Error{
8741 Code: res.StatusCode,
8742 Header: res.Header,
8743 })
8744 }
8745 if err != nil {
8746 return nil, err
8747 }
8748 defer googleapi.CloseBody(res)
8749 if err := googleapi.CheckResponse(res); err != nil {
8750 return nil, gensupport.WrapError(err)
8751 }
8752 ret := &ListClientsResponse{
8753 ServerResponse: googleapi.ServerResponse{
8754 Header: res.Header,
8755 HTTPStatusCode: res.StatusCode,
8756 },
8757 }
8758 target := &ret
8759 if err := gensupport.DecodeResponse(target, res); err != nil {
8760 return nil, err
8761 }
8762 return ret, nil
8763 }
8764
8765
8766
8767
8768 func (c *AccountsContainersWorkspacesClientsListCall) Pages(ctx context.Context, f func(*ListClientsResponse) error) error {
8769 c.ctx_ = ctx
8770 defer c.PageToken(c.urlParams_.Get("pageToken"))
8771 for {
8772 x, err := c.Do()
8773 if err != nil {
8774 return err
8775 }
8776 if err := f(x); err != nil {
8777 return err
8778 }
8779 if x.NextPageToken == "" {
8780 return nil
8781 }
8782 c.PageToken(x.NextPageToken)
8783 }
8784 }
8785
8786 type AccountsContainersWorkspacesClientsRevertCall struct {
8787 s *Service
8788 path string
8789 urlParams_ gensupport.URLParams
8790 ctx_ context.Context
8791 header_ http.Header
8792 }
8793
8794
8795
8796
8797
8798
8799 func (r *AccountsContainersWorkspacesClientsService) Revert(path string) *AccountsContainersWorkspacesClientsRevertCall {
8800 c := &AccountsContainersWorkspacesClientsRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8801 c.path = path
8802 return c
8803 }
8804
8805
8806
8807 func (c *AccountsContainersWorkspacesClientsRevertCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesClientsRevertCall {
8808 c.urlParams_.Set("fingerprint", fingerprint)
8809 return c
8810 }
8811
8812
8813
8814
8815 func (c *AccountsContainersWorkspacesClientsRevertCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesClientsRevertCall {
8816 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8817 return c
8818 }
8819
8820
8821 func (c *AccountsContainersWorkspacesClientsRevertCall) Context(ctx context.Context) *AccountsContainersWorkspacesClientsRevertCall {
8822 c.ctx_ = ctx
8823 return c
8824 }
8825
8826
8827
8828 func (c *AccountsContainersWorkspacesClientsRevertCall) Header() http.Header {
8829 if c.header_ == nil {
8830 c.header_ = make(http.Header)
8831 }
8832 return c.header_
8833 }
8834
8835 func (c *AccountsContainersWorkspacesClientsRevertCall) doRequest(alt string) (*http.Response, error) {
8836 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8837 var body io.Reader = nil
8838 c.urlParams_.Set("alt", alt)
8839 c.urlParams_.Set("prettyPrint", "false")
8840 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:revert")
8841 urls += "?" + c.urlParams_.Encode()
8842 req, err := http.NewRequest("POST", urls, body)
8843 if err != nil {
8844 return nil, err
8845 }
8846 req.Header = reqHeaders
8847 googleapi.Expand(req.URL, map[string]string{
8848 "path": c.path,
8849 })
8850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8851 }
8852
8853
8854
8855
8856
8857
8858
8859 func (c *AccountsContainersWorkspacesClientsRevertCall) Do(opts ...googleapi.CallOption) (*RevertClientResponse, error) {
8860 gensupport.SetOptions(c.urlParams_, opts...)
8861 res, err := c.doRequest("json")
8862 if res != nil && res.StatusCode == http.StatusNotModified {
8863 if res.Body != nil {
8864 res.Body.Close()
8865 }
8866 return nil, gensupport.WrapError(&googleapi.Error{
8867 Code: res.StatusCode,
8868 Header: res.Header,
8869 })
8870 }
8871 if err != nil {
8872 return nil, err
8873 }
8874 defer googleapi.CloseBody(res)
8875 if err := googleapi.CheckResponse(res); err != nil {
8876 return nil, gensupport.WrapError(err)
8877 }
8878 ret := &RevertClientResponse{
8879 ServerResponse: googleapi.ServerResponse{
8880 Header: res.Header,
8881 HTTPStatusCode: res.StatusCode,
8882 },
8883 }
8884 target := &ret
8885 if err := gensupport.DecodeResponse(target, res); err != nil {
8886 return nil, err
8887 }
8888 return ret, nil
8889 }
8890
8891 type AccountsContainersWorkspacesClientsUpdateCall struct {
8892 s *Service
8893 path string
8894 client *Client
8895 urlParams_ gensupport.URLParams
8896 ctx_ context.Context
8897 header_ http.Header
8898 }
8899
8900
8901
8902
8903
8904
8905 func (r *AccountsContainersWorkspacesClientsService) Update(path string, client *Client) *AccountsContainersWorkspacesClientsUpdateCall {
8906 c := &AccountsContainersWorkspacesClientsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8907 c.path = path
8908 c.client = client
8909 return c
8910 }
8911
8912
8913
8914 func (c *AccountsContainersWorkspacesClientsUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesClientsUpdateCall {
8915 c.urlParams_.Set("fingerprint", fingerprint)
8916 return c
8917 }
8918
8919
8920
8921
8922 func (c *AccountsContainersWorkspacesClientsUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesClientsUpdateCall {
8923 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8924 return c
8925 }
8926
8927
8928 func (c *AccountsContainersWorkspacesClientsUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesClientsUpdateCall {
8929 c.ctx_ = ctx
8930 return c
8931 }
8932
8933
8934
8935 func (c *AccountsContainersWorkspacesClientsUpdateCall) Header() http.Header {
8936 if c.header_ == nil {
8937 c.header_ = make(http.Header)
8938 }
8939 return c.header_
8940 }
8941
8942 func (c *AccountsContainersWorkspacesClientsUpdateCall) doRequest(alt string) (*http.Response, error) {
8943 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8944 var body io.Reader = nil
8945 body, err := googleapi.WithoutDataWrapper.JSONReader(c.client)
8946 if err != nil {
8947 return nil, err
8948 }
8949 c.urlParams_.Set("alt", alt)
8950 c.urlParams_.Set("prettyPrint", "false")
8951 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
8952 urls += "?" + c.urlParams_.Encode()
8953 req, err := http.NewRequest("PUT", urls, body)
8954 if err != nil {
8955 return nil, err
8956 }
8957 req.Header = reqHeaders
8958 googleapi.Expand(req.URL, map[string]string{
8959 "path": c.path,
8960 })
8961 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8962 }
8963
8964
8965
8966
8967
8968
8969 func (c *AccountsContainersWorkspacesClientsUpdateCall) Do(opts ...googleapi.CallOption) (*Client, error) {
8970 gensupport.SetOptions(c.urlParams_, opts...)
8971 res, err := c.doRequest("json")
8972 if res != nil && res.StatusCode == http.StatusNotModified {
8973 if res.Body != nil {
8974 res.Body.Close()
8975 }
8976 return nil, gensupport.WrapError(&googleapi.Error{
8977 Code: res.StatusCode,
8978 Header: res.Header,
8979 })
8980 }
8981 if err != nil {
8982 return nil, err
8983 }
8984 defer googleapi.CloseBody(res)
8985 if err := googleapi.CheckResponse(res); err != nil {
8986 return nil, gensupport.WrapError(err)
8987 }
8988 ret := &Client{
8989 ServerResponse: googleapi.ServerResponse{
8990 Header: res.Header,
8991 HTTPStatusCode: res.StatusCode,
8992 },
8993 }
8994 target := &ret
8995 if err := gensupport.DecodeResponse(target, res); err != nil {
8996 return nil, err
8997 }
8998 return ret, nil
8999 }
9000
9001 type AccountsContainersWorkspacesFoldersCreateCall struct {
9002 s *Service
9003 parent string
9004 folder *Folder
9005 urlParams_ gensupport.URLParams
9006 ctx_ context.Context
9007 header_ http.Header
9008 }
9009
9010
9011
9012
9013
9014 func (r *AccountsContainersWorkspacesFoldersService) Create(parent string, folder *Folder) *AccountsContainersWorkspacesFoldersCreateCall {
9015 c := &AccountsContainersWorkspacesFoldersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9016 c.parent = parent
9017 c.folder = folder
9018 return c
9019 }
9020
9021
9022
9023
9024 func (c *AccountsContainersWorkspacesFoldersCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesFoldersCreateCall {
9025 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9026 return c
9027 }
9028
9029
9030 func (c *AccountsContainersWorkspacesFoldersCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesFoldersCreateCall {
9031 c.ctx_ = ctx
9032 return c
9033 }
9034
9035
9036
9037 func (c *AccountsContainersWorkspacesFoldersCreateCall) Header() http.Header {
9038 if c.header_ == nil {
9039 c.header_ = make(http.Header)
9040 }
9041 return c.header_
9042 }
9043
9044 func (c *AccountsContainersWorkspacesFoldersCreateCall) doRequest(alt string) (*http.Response, error) {
9045 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9046 var body io.Reader = nil
9047 body, err := googleapi.WithoutDataWrapper.JSONReader(c.folder)
9048 if err != nil {
9049 return nil, err
9050 }
9051 c.urlParams_.Set("alt", alt)
9052 c.urlParams_.Set("prettyPrint", "false")
9053 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/folders")
9054 urls += "?" + c.urlParams_.Encode()
9055 req, err := http.NewRequest("POST", urls, body)
9056 if err != nil {
9057 return nil, err
9058 }
9059 req.Header = reqHeaders
9060 googleapi.Expand(req.URL, map[string]string{
9061 "parent": c.parent,
9062 })
9063 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9064 }
9065
9066
9067
9068
9069
9070
9071 func (c *AccountsContainersWorkspacesFoldersCreateCall) Do(opts ...googleapi.CallOption) (*Folder, error) {
9072 gensupport.SetOptions(c.urlParams_, opts...)
9073 res, err := c.doRequest("json")
9074 if res != nil && res.StatusCode == http.StatusNotModified {
9075 if res.Body != nil {
9076 res.Body.Close()
9077 }
9078 return nil, gensupport.WrapError(&googleapi.Error{
9079 Code: res.StatusCode,
9080 Header: res.Header,
9081 })
9082 }
9083 if err != nil {
9084 return nil, err
9085 }
9086 defer googleapi.CloseBody(res)
9087 if err := googleapi.CheckResponse(res); err != nil {
9088 return nil, gensupport.WrapError(err)
9089 }
9090 ret := &Folder{
9091 ServerResponse: googleapi.ServerResponse{
9092 Header: res.Header,
9093 HTTPStatusCode: res.StatusCode,
9094 },
9095 }
9096 target := &ret
9097 if err := gensupport.DecodeResponse(target, res); err != nil {
9098 return nil, err
9099 }
9100 return ret, nil
9101 }
9102
9103 type AccountsContainersWorkspacesFoldersDeleteCall struct {
9104 s *Service
9105 path string
9106 urlParams_ gensupport.URLParams
9107 ctx_ context.Context
9108 header_ http.Header
9109 }
9110
9111
9112
9113
9114
9115
9116 func (r *AccountsContainersWorkspacesFoldersService) Delete(path string) *AccountsContainersWorkspacesFoldersDeleteCall {
9117 c := &AccountsContainersWorkspacesFoldersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9118 c.path = path
9119 return c
9120 }
9121
9122
9123
9124
9125 func (c *AccountsContainersWorkspacesFoldersDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesFoldersDeleteCall {
9126 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9127 return c
9128 }
9129
9130
9131 func (c *AccountsContainersWorkspacesFoldersDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesFoldersDeleteCall {
9132 c.ctx_ = ctx
9133 return c
9134 }
9135
9136
9137
9138 func (c *AccountsContainersWorkspacesFoldersDeleteCall) Header() http.Header {
9139 if c.header_ == nil {
9140 c.header_ = make(http.Header)
9141 }
9142 return c.header_
9143 }
9144
9145 func (c *AccountsContainersWorkspacesFoldersDeleteCall) doRequest(alt string) (*http.Response, error) {
9146 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9147 var body io.Reader = nil
9148 c.urlParams_.Set("alt", alt)
9149 c.urlParams_.Set("prettyPrint", "false")
9150 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
9151 urls += "?" + c.urlParams_.Encode()
9152 req, err := http.NewRequest("DELETE", urls, body)
9153 if err != nil {
9154 return nil, err
9155 }
9156 req.Header = reqHeaders
9157 googleapi.Expand(req.URL, map[string]string{
9158 "path": c.path,
9159 })
9160 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9161 }
9162
9163
9164 func (c *AccountsContainersWorkspacesFoldersDeleteCall) Do(opts ...googleapi.CallOption) error {
9165 gensupport.SetOptions(c.urlParams_, opts...)
9166 res, err := c.doRequest("json")
9167 if err != nil {
9168 return err
9169 }
9170 defer googleapi.CloseBody(res)
9171 if err := googleapi.CheckResponse(res); err != nil {
9172 return gensupport.WrapError(err)
9173 }
9174 return nil
9175 }
9176
9177 type AccountsContainersWorkspacesFoldersEntitiesCall struct {
9178 s *Service
9179 path string
9180 urlParams_ gensupport.URLParams
9181 ctx_ context.Context
9182 header_ http.Header
9183 }
9184
9185
9186
9187
9188
9189
9190 func (r *AccountsContainersWorkspacesFoldersService) Entities(path string) *AccountsContainersWorkspacesFoldersEntitiesCall {
9191 c := &AccountsContainersWorkspacesFoldersEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9192 c.path = path
9193 return c
9194 }
9195
9196
9197
9198 func (c *AccountsContainersWorkspacesFoldersEntitiesCall) PageToken(pageToken string) *AccountsContainersWorkspacesFoldersEntitiesCall {
9199 c.urlParams_.Set("pageToken", pageToken)
9200 return c
9201 }
9202
9203
9204
9205
9206 func (c *AccountsContainersWorkspacesFoldersEntitiesCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesFoldersEntitiesCall {
9207 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9208 return c
9209 }
9210
9211
9212 func (c *AccountsContainersWorkspacesFoldersEntitiesCall) Context(ctx context.Context) *AccountsContainersWorkspacesFoldersEntitiesCall {
9213 c.ctx_ = ctx
9214 return c
9215 }
9216
9217
9218
9219 func (c *AccountsContainersWorkspacesFoldersEntitiesCall) Header() http.Header {
9220 if c.header_ == nil {
9221 c.header_ = make(http.Header)
9222 }
9223 return c.header_
9224 }
9225
9226 func (c *AccountsContainersWorkspacesFoldersEntitiesCall) doRequest(alt string) (*http.Response, error) {
9227 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9228 var body io.Reader = nil
9229 c.urlParams_.Set("alt", alt)
9230 c.urlParams_.Set("prettyPrint", "false")
9231 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:entities")
9232 urls += "?" + c.urlParams_.Encode()
9233 req, err := http.NewRequest("POST", urls, body)
9234 if err != nil {
9235 return nil, err
9236 }
9237 req.Header = reqHeaders
9238 googleapi.Expand(req.URL, map[string]string{
9239 "path": c.path,
9240 })
9241 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9242 }
9243
9244
9245
9246
9247
9248
9249 func (c *AccountsContainersWorkspacesFoldersEntitiesCall) Do(opts ...googleapi.CallOption) (*FolderEntities, error) {
9250 gensupport.SetOptions(c.urlParams_, opts...)
9251 res, err := c.doRequest("json")
9252 if res != nil && res.StatusCode == http.StatusNotModified {
9253 if res.Body != nil {
9254 res.Body.Close()
9255 }
9256 return nil, gensupport.WrapError(&googleapi.Error{
9257 Code: res.StatusCode,
9258 Header: res.Header,
9259 })
9260 }
9261 if err != nil {
9262 return nil, err
9263 }
9264 defer googleapi.CloseBody(res)
9265 if err := googleapi.CheckResponse(res); err != nil {
9266 return nil, gensupport.WrapError(err)
9267 }
9268 ret := &FolderEntities{
9269 ServerResponse: googleapi.ServerResponse{
9270 Header: res.Header,
9271 HTTPStatusCode: res.StatusCode,
9272 },
9273 }
9274 target := &ret
9275 if err := gensupport.DecodeResponse(target, res); err != nil {
9276 return nil, err
9277 }
9278 return ret, nil
9279 }
9280
9281
9282
9283
9284 func (c *AccountsContainersWorkspacesFoldersEntitiesCall) Pages(ctx context.Context, f func(*FolderEntities) error) error {
9285 c.ctx_ = ctx
9286 defer c.PageToken(c.urlParams_.Get("pageToken"))
9287 for {
9288 x, err := c.Do()
9289 if err != nil {
9290 return err
9291 }
9292 if err := f(x); err != nil {
9293 return err
9294 }
9295 if x.NextPageToken == "" {
9296 return nil
9297 }
9298 c.PageToken(x.NextPageToken)
9299 }
9300 }
9301
9302 type AccountsContainersWorkspacesFoldersGetCall struct {
9303 s *Service
9304 path string
9305 urlParams_ gensupport.URLParams
9306 ifNoneMatch_ string
9307 ctx_ context.Context
9308 header_ http.Header
9309 }
9310
9311
9312
9313
9314
9315
9316 func (r *AccountsContainersWorkspacesFoldersService) Get(path string) *AccountsContainersWorkspacesFoldersGetCall {
9317 c := &AccountsContainersWorkspacesFoldersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9318 c.path = path
9319 return c
9320 }
9321
9322
9323
9324
9325 func (c *AccountsContainersWorkspacesFoldersGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesFoldersGetCall {
9326 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9327 return c
9328 }
9329
9330
9331
9332
9333 func (c *AccountsContainersWorkspacesFoldersGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesFoldersGetCall {
9334 c.ifNoneMatch_ = entityTag
9335 return c
9336 }
9337
9338
9339 func (c *AccountsContainersWorkspacesFoldersGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesFoldersGetCall {
9340 c.ctx_ = ctx
9341 return c
9342 }
9343
9344
9345
9346 func (c *AccountsContainersWorkspacesFoldersGetCall) Header() http.Header {
9347 if c.header_ == nil {
9348 c.header_ = make(http.Header)
9349 }
9350 return c.header_
9351 }
9352
9353 func (c *AccountsContainersWorkspacesFoldersGetCall) doRequest(alt string) (*http.Response, error) {
9354 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9355 if c.ifNoneMatch_ != "" {
9356 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9357 }
9358 var body io.Reader = nil
9359 c.urlParams_.Set("alt", alt)
9360 c.urlParams_.Set("prettyPrint", "false")
9361 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
9362 urls += "?" + c.urlParams_.Encode()
9363 req, err := http.NewRequest("GET", urls, body)
9364 if err != nil {
9365 return nil, err
9366 }
9367 req.Header = reqHeaders
9368 googleapi.Expand(req.URL, map[string]string{
9369 "path": c.path,
9370 })
9371 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9372 }
9373
9374
9375
9376
9377
9378
9379 func (c *AccountsContainersWorkspacesFoldersGetCall) Do(opts ...googleapi.CallOption) (*Folder, error) {
9380 gensupport.SetOptions(c.urlParams_, opts...)
9381 res, err := c.doRequest("json")
9382 if res != nil && res.StatusCode == http.StatusNotModified {
9383 if res.Body != nil {
9384 res.Body.Close()
9385 }
9386 return nil, gensupport.WrapError(&googleapi.Error{
9387 Code: res.StatusCode,
9388 Header: res.Header,
9389 })
9390 }
9391 if err != nil {
9392 return nil, err
9393 }
9394 defer googleapi.CloseBody(res)
9395 if err := googleapi.CheckResponse(res); err != nil {
9396 return nil, gensupport.WrapError(err)
9397 }
9398 ret := &Folder{
9399 ServerResponse: googleapi.ServerResponse{
9400 Header: res.Header,
9401 HTTPStatusCode: res.StatusCode,
9402 },
9403 }
9404 target := &ret
9405 if err := gensupport.DecodeResponse(target, res); err != nil {
9406 return nil, err
9407 }
9408 return ret, nil
9409 }
9410
9411 type AccountsContainersWorkspacesFoldersListCall struct {
9412 s *Service
9413 parent string
9414 urlParams_ gensupport.URLParams
9415 ifNoneMatch_ string
9416 ctx_ context.Context
9417 header_ http.Header
9418 }
9419
9420
9421
9422
9423
9424 func (r *AccountsContainersWorkspacesFoldersService) List(parent string) *AccountsContainersWorkspacesFoldersListCall {
9425 c := &AccountsContainersWorkspacesFoldersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9426 c.parent = parent
9427 return c
9428 }
9429
9430
9431
9432 func (c *AccountsContainersWorkspacesFoldersListCall) PageToken(pageToken string) *AccountsContainersWorkspacesFoldersListCall {
9433 c.urlParams_.Set("pageToken", pageToken)
9434 return c
9435 }
9436
9437
9438
9439
9440 func (c *AccountsContainersWorkspacesFoldersListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesFoldersListCall {
9441 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9442 return c
9443 }
9444
9445
9446
9447
9448 func (c *AccountsContainersWorkspacesFoldersListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesFoldersListCall {
9449 c.ifNoneMatch_ = entityTag
9450 return c
9451 }
9452
9453
9454 func (c *AccountsContainersWorkspacesFoldersListCall) Context(ctx context.Context) *AccountsContainersWorkspacesFoldersListCall {
9455 c.ctx_ = ctx
9456 return c
9457 }
9458
9459
9460
9461 func (c *AccountsContainersWorkspacesFoldersListCall) Header() http.Header {
9462 if c.header_ == nil {
9463 c.header_ = make(http.Header)
9464 }
9465 return c.header_
9466 }
9467
9468 func (c *AccountsContainersWorkspacesFoldersListCall) doRequest(alt string) (*http.Response, error) {
9469 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9470 if c.ifNoneMatch_ != "" {
9471 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9472 }
9473 var body io.Reader = nil
9474 c.urlParams_.Set("alt", alt)
9475 c.urlParams_.Set("prettyPrint", "false")
9476 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/folders")
9477 urls += "?" + c.urlParams_.Encode()
9478 req, err := http.NewRequest("GET", urls, body)
9479 if err != nil {
9480 return nil, err
9481 }
9482 req.Header = reqHeaders
9483 googleapi.Expand(req.URL, map[string]string{
9484 "parent": c.parent,
9485 })
9486 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9487 }
9488
9489
9490
9491
9492
9493
9494
9495 func (c *AccountsContainersWorkspacesFoldersListCall) Do(opts ...googleapi.CallOption) (*ListFoldersResponse, error) {
9496 gensupport.SetOptions(c.urlParams_, opts...)
9497 res, err := c.doRequest("json")
9498 if res != nil && res.StatusCode == http.StatusNotModified {
9499 if res.Body != nil {
9500 res.Body.Close()
9501 }
9502 return nil, gensupport.WrapError(&googleapi.Error{
9503 Code: res.StatusCode,
9504 Header: res.Header,
9505 })
9506 }
9507 if err != nil {
9508 return nil, err
9509 }
9510 defer googleapi.CloseBody(res)
9511 if err := googleapi.CheckResponse(res); err != nil {
9512 return nil, gensupport.WrapError(err)
9513 }
9514 ret := &ListFoldersResponse{
9515 ServerResponse: googleapi.ServerResponse{
9516 Header: res.Header,
9517 HTTPStatusCode: res.StatusCode,
9518 },
9519 }
9520 target := &ret
9521 if err := gensupport.DecodeResponse(target, res); err != nil {
9522 return nil, err
9523 }
9524 return ret, nil
9525 }
9526
9527
9528
9529
9530 func (c *AccountsContainersWorkspacesFoldersListCall) Pages(ctx context.Context, f func(*ListFoldersResponse) error) error {
9531 c.ctx_ = ctx
9532 defer c.PageToken(c.urlParams_.Get("pageToken"))
9533 for {
9534 x, err := c.Do()
9535 if err != nil {
9536 return err
9537 }
9538 if err := f(x); err != nil {
9539 return err
9540 }
9541 if x.NextPageToken == "" {
9542 return nil
9543 }
9544 c.PageToken(x.NextPageToken)
9545 }
9546 }
9547
9548 type AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall struct {
9549 s *Service
9550 path string
9551 folder *Folder
9552 urlParams_ gensupport.URLParams
9553 ctx_ context.Context
9554 header_ http.Header
9555 }
9556
9557
9558
9559
9560
9561
9562
9563
9564 func (r *AccountsContainersWorkspacesFoldersService) MoveEntitiesToFolder(path string, folder *Folder) *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall {
9565 c := &AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9566 c.path = path
9567 c.folder = folder
9568 return c
9569 }
9570
9571
9572
9573 func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) TagId(tagId ...string) *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall {
9574 c.urlParams_.SetMulti("tagId", append([]string{}, tagId...))
9575 return c
9576 }
9577
9578
9579
9580 func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) TriggerId(triggerId ...string) *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall {
9581 c.urlParams_.SetMulti("triggerId", append([]string{}, triggerId...))
9582 return c
9583 }
9584
9585
9586
9587 func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) VariableId(variableId ...string) *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall {
9588 c.urlParams_.SetMulti("variableId", append([]string{}, variableId...))
9589 return c
9590 }
9591
9592
9593
9594
9595 func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall {
9596 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9597 return c
9598 }
9599
9600
9601 func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) Context(ctx context.Context) *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall {
9602 c.ctx_ = ctx
9603 return c
9604 }
9605
9606
9607
9608 func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) Header() http.Header {
9609 if c.header_ == nil {
9610 c.header_ = make(http.Header)
9611 }
9612 return c.header_
9613 }
9614
9615 func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) doRequest(alt string) (*http.Response, error) {
9616 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9617 var body io.Reader = nil
9618 body, err := googleapi.WithoutDataWrapper.JSONReader(c.folder)
9619 if err != nil {
9620 return nil, err
9621 }
9622 c.urlParams_.Set("alt", alt)
9623 c.urlParams_.Set("prettyPrint", "false")
9624 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:move_entities_to_folder")
9625 urls += "?" + c.urlParams_.Encode()
9626 req, err := http.NewRequest("POST", urls, body)
9627 if err != nil {
9628 return nil, err
9629 }
9630 req.Header = reqHeaders
9631 googleapi.Expand(req.URL, map[string]string{
9632 "path": c.path,
9633 })
9634 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9635 }
9636
9637
9638 func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) Do(opts ...googleapi.CallOption) error {
9639 gensupport.SetOptions(c.urlParams_, opts...)
9640 res, err := c.doRequest("json")
9641 if err != nil {
9642 return err
9643 }
9644 defer googleapi.CloseBody(res)
9645 if err := googleapi.CheckResponse(res); err != nil {
9646 return gensupport.WrapError(err)
9647 }
9648 return nil
9649 }
9650
9651 type AccountsContainersWorkspacesFoldersRevertCall struct {
9652 s *Service
9653 path string
9654 urlParams_ gensupport.URLParams
9655 ctx_ context.Context
9656 header_ http.Header
9657 }
9658
9659
9660
9661
9662
9663
9664 func (r *AccountsContainersWorkspacesFoldersService) Revert(path string) *AccountsContainersWorkspacesFoldersRevertCall {
9665 c := &AccountsContainersWorkspacesFoldersRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9666 c.path = path
9667 return c
9668 }
9669
9670
9671
9672 func (c *AccountsContainersWorkspacesFoldersRevertCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesFoldersRevertCall {
9673 c.urlParams_.Set("fingerprint", fingerprint)
9674 return c
9675 }
9676
9677
9678
9679
9680 func (c *AccountsContainersWorkspacesFoldersRevertCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesFoldersRevertCall {
9681 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9682 return c
9683 }
9684
9685
9686 func (c *AccountsContainersWorkspacesFoldersRevertCall) Context(ctx context.Context) *AccountsContainersWorkspacesFoldersRevertCall {
9687 c.ctx_ = ctx
9688 return c
9689 }
9690
9691
9692
9693 func (c *AccountsContainersWorkspacesFoldersRevertCall) Header() http.Header {
9694 if c.header_ == nil {
9695 c.header_ = make(http.Header)
9696 }
9697 return c.header_
9698 }
9699
9700 func (c *AccountsContainersWorkspacesFoldersRevertCall) doRequest(alt string) (*http.Response, error) {
9701 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9702 var body io.Reader = nil
9703 c.urlParams_.Set("alt", alt)
9704 c.urlParams_.Set("prettyPrint", "false")
9705 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:revert")
9706 urls += "?" + c.urlParams_.Encode()
9707 req, err := http.NewRequest("POST", urls, body)
9708 if err != nil {
9709 return nil, err
9710 }
9711 req.Header = reqHeaders
9712 googleapi.Expand(req.URL, map[string]string{
9713 "path": c.path,
9714 })
9715 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9716 }
9717
9718
9719
9720
9721
9722
9723
9724 func (c *AccountsContainersWorkspacesFoldersRevertCall) Do(opts ...googleapi.CallOption) (*RevertFolderResponse, error) {
9725 gensupport.SetOptions(c.urlParams_, opts...)
9726 res, err := c.doRequest("json")
9727 if res != nil && res.StatusCode == http.StatusNotModified {
9728 if res.Body != nil {
9729 res.Body.Close()
9730 }
9731 return nil, gensupport.WrapError(&googleapi.Error{
9732 Code: res.StatusCode,
9733 Header: res.Header,
9734 })
9735 }
9736 if err != nil {
9737 return nil, err
9738 }
9739 defer googleapi.CloseBody(res)
9740 if err := googleapi.CheckResponse(res); err != nil {
9741 return nil, gensupport.WrapError(err)
9742 }
9743 ret := &RevertFolderResponse{
9744 ServerResponse: googleapi.ServerResponse{
9745 Header: res.Header,
9746 HTTPStatusCode: res.StatusCode,
9747 },
9748 }
9749 target := &ret
9750 if err := gensupport.DecodeResponse(target, res); err != nil {
9751 return nil, err
9752 }
9753 return ret, nil
9754 }
9755
9756 type AccountsContainersWorkspacesFoldersUpdateCall struct {
9757 s *Service
9758 path string
9759 folder *Folder
9760 urlParams_ gensupport.URLParams
9761 ctx_ context.Context
9762 header_ http.Header
9763 }
9764
9765
9766
9767
9768
9769
9770 func (r *AccountsContainersWorkspacesFoldersService) Update(path string, folder *Folder) *AccountsContainersWorkspacesFoldersUpdateCall {
9771 c := &AccountsContainersWorkspacesFoldersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9772 c.path = path
9773 c.folder = folder
9774 return c
9775 }
9776
9777
9778
9779 func (c *AccountsContainersWorkspacesFoldersUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesFoldersUpdateCall {
9780 c.urlParams_.Set("fingerprint", fingerprint)
9781 return c
9782 }
9783
9784
9785
9786
9787 func (c *AccountsContainersWorkspacesFoldersUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesFoldersUpdateCall {
9788 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9789 return c
9790 }
9791
9792
9793 func (c *AccountsContainersWorkspacesFoldersUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesFoldersUpdateCall {
9794 c.ctx_ = ctx
9795 return c
9796 }
9797
9798
9799
9800 func (c *AccountsContainersWorkspacesFoldersUpdateCall) Header() http.Header {
9801 if c.header_ == nil {
9802 c.header_ = make(http.Header)
9803 }
9804 return c.header_
9805 }
9806
9807 func (c *AccountsContainersWorkspacesFoldersUpdateCall) doRequest(alt string) (*http.Response, error) {
9808 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9809 var body io.Reader = nil
9810 body, err := googleapi.WithoutDataWrapper.JSONReader(c.folder)
9811 if err != nil {
9812 return nil, err
9813 }
9814 c.urlParams_.Set("alt", alt)
9815 c.urlParams_.Set("prettyPrint", "false")
9816 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
9817 urls += "?" + c.urlParams_.Encode()
9818 req, err := http.NewRequest("PUT", urls, body)
9819 if err != nil {
9820 return nil, err
9821 }
9822 req.Header = reqHeaders
9823 googleapi.Expand(req.URL, map[string]string{
9824 "path": c.path,
9825 })
9826 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9827 }
9828
9829
9830
9831
9832
9833
9834 func (c *AccountsContainersWorkspacesFoldersUpdateCall) Do(opts ...googleapi.CallOption) (*Folder, error) {
9835 gensupport.SetOptions(c.urlParams_, opts...)
9836 res, err := c.doRequest("json")
9837 if res != nil && res.StatusCode == http.StatusNotModified {
9838 if res.Body != nil {
9839 res.Body.Close()
9840 }
9841 return nil, gensupport.WrapError(&googleapi.Error{
9842 Code: res.StatusCode,
9843 Header: res.Header,
9844 })
9845 }
9846 if err != nil {
9847 return nil, err
9848 }
9849 defer googleapi.CloseBody(res)
9850 if err := googleapi.CheckResponse(res); err != nil {
9851 return nil, gensupport.WrapError(err)
9852 }
9853 ret := &Folder{
9854 ServerResponse: googleapi.ServerResponse{
9855 Header: res.Header,
9856 HTTPStatusCode: res.StatusCode,
9857 },
9858 }
9859 target := &ret
9860 if err := gensupport.DecodeResponse(target, res); err != nil {
9861 return nil, err
9862 }
9863 return ret, nil
9864 }
9865
9866 type AccountsContainersWorkspacesGtagConfigCreateCall struct {
9867 s *Service
9868 parent string
9869 gtagconfig *GtagConfig
9870 urlParams_ gensupport.URLParams
9871 ctx_ context.Context
9872 header_ http.Header
9873 }
9874
9875
9876
9877
9878
9879 func (r *AccountsContainersWorkspacesGtagConfigService) Create(parent string, gtagconfig *GtagConfig) *AccountsContainersWorkspacesGtagConfigCreateCall {
9880 c := &AccountsContainersWorkspacesGtagConfigCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9881 c.parent = parent
9882 c.gtagconfig = gtagconfig
9883 return c
9884 }
9885
9886
9887
9888
9889 func (c *AccountsContainersWorkspacesGtagConfigCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesGtagConfigCreateCall {
9890 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9891 return c
9892 }
9893
9894
9895 func (c *AccountsContainersWorkspacesGtagConfigCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesGtagConfigCreateCall {
9896 c.ctx_ = ctx
9897 return c
9898 }
9899
9900
9901
9902 func (c *AccountsContainersWorkspacesGtagConfigCreateCall) Header() http.Header {
9903 if c.header_ == nil {
9904 c.header_ = make(http.Header)
9905 }
9906 return c.header_
9907 }
9908
9909 func (c *AccountsContainersWorkspacesGtagConfigCreateCall) doRequest(alt string) (*http.Response, error) {
9910 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9911 var body io.Reader = nil
9912 body, err := googleapi.WithoutDataWrapper.JSONReader(c.gtagconfig)
9913 if err != nil {
9914 return nil, err
9915 }
9916 c.urlParams_.Set("alt", alt)
9917 c.urlParams_.Set("prettyPrint", "false")
9918 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/gtag_config")
9919 urls += "?" + c.urlParams_.Encode()
9920 req, err := http.NewRequest("POST", urls, body)
9921 if err != nil {
9922 return nil, err
9923 }
9924 req.Header = reqHeaders
9925 googleapi.Expand(req.URL, map[string]string{
9926 "parent": c.parent,
9927 })
9928 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9929 }
9930
9931
9932
9933
9934
9935
9936 func (c *AccountsContainersWorkspacesGtagConfigCreateCall) Do(opts ...googleapi.CallOption) (*GtagConfig, error) {
9937 gensupport.SetOptions(c.urlParams_, opts...)
9938 res, err := c.doRequest("json")
9939 if res != nil && res.StatusCode == http.StatusNotModified {
9940 if res.Body != nil {
9941 res.Body.Close()
9942 }
9943 return nil, gensupport.WrapError(&googleapi.Error{
9944 Code: res.StatusCode,
9945 Header: res.Header,
9946 })
9947 }
9948 if err != nil {
9949 return nil, err
9950 }
9951 defer googleapi.CloseBody(res)
9952 if err := googleapi.CheckResponse(res); err != nil {
9953 return nil, gensupport.WrapError(err)
9954 }
9955 ret := &GtagConfig{
9956 ServerResponse: googleapi.ServerResponse{
9957 Header: res.Header,
9958 HTTPStatusCode: res.StatusCode,
9959 },
9960 }
9961 target := &ret
9962 if err := gensupport.DecodeResponse(target, res); err != nil {
9963 return nil, err
9964 }
9965 return ret, nil
9966 }
9967
9968 type AccountsContainersWorkspacesGtagConfigDeleteCall struct {
9969 s *Service
9970 path string
9971 urlParams_ gensupport.URLParams
9972 ctx_ context.Context
9973 header_ http.Header
9974 }
9975
9976
9977
9978
9979
9980
9981 func (r *AccountsContainersWorkspacesGtagConfigService) Delete(path string) *AccountsContainersWorkspacesGtagConfigDeleteCall {
9982 c := &AccountsContainersWorkspacesGtagConfigDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9983 c.path = path
9984 return c
9985 }
9986
9987
9988
9989
9990 func (c *AccountsContainersWorkspacesGtagConfigDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesGtagConfigDeleteCall {
9991 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9992 return c
9993 }
9994
9995
9996 func (c *AccountsContainersWorkspacesGtagConfigDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesGtagConfigDeleteCall {
9997 c.ctx_ = ctx
9998 return c
9999 }
10000
10001
10002
10003 func (c *AccountsContainersWorkspacesGtagConfigDeleteCall) Header() http.Header {
10004 if c.header_ == nil {
10005 c.header_ = make(http.Header)
10006 }
10007 return c.header_
10008 }
10009
10010 func (c *AccountsContainersWorkspacesGtagConfigDeleteCall) doRequest(alt string) (*http.Response, error) {
10011 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10012 var body io.Reader = nil
10013 c.urlParams_.Set("alt", alt)
10014 c.urlParams_.Set("prettyPrint", "false")
10015 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
10016 urls += "?" + c.urlParams_.Encode()
10017 req, err := http.NewRequest("DELETE", urls, body)
10018 if err != nil {
10019 return nil, err
10020 }
10021 req.Header = reqHeaders
10022 googleapi.Expand(req.URL, map[string]string{
10023 "path": c.path,
10024 })
10025 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10026 }
10027
10028
10029 func (c *AccountsContainersWorkspacesGtagConfigDeleteCall) Do(opts ...googleapi.CallOption) error {
10030 gensupport.SetOptions(c.urlParams_, opts...)
10031 res, err := c.doRequest("json")
10032 if err != nil {
10033 return err
10034 }
10035 defer googleapi.CloseBody(res)
10036 if err := googleapi.CheckResponse(res); err != nil {
10037 return gensupport.WrapError(err)
10038 }
10039 return nil
10040 }
10041
10042 type AccountsContainersWorkspacesGtagConfigGetCall struct {
10043 s *Service
10044 path string
10045 urlParams_ gensupport.URLParams
10046 ifNoneMatch_ string
10047 ctx_ context.Context
10048 header_ http.Header
10049 }
10050
10051
10052
10053
10054
10055
10056 func (r *AccountsContainersWorkspacesGtagConfigService) Get(path string) *AccountsContainersWorkspacesGtagConfigGetCall {
10057 c := &AccountsContainersWorkspacesGtagConfigGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10058 c.path = path
10059 return c
10060 }
10061
10062
10063
10064
10065 func (c *AccountsContainersWorkspacesGtagConfigGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesGtagConfigGetCall {
10066 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10067 return c
10068 }
10069
10070
10071
10072
10073 func (c *AccountsContainersWorkspacesGtagConfigGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesGtagConfigGetCall {
10074 c.ifNoneMatch_ = entityTag
10075 return c
10076 }
10077
10078
10079 func (c *AccountsContainersWorkspacesGtagConfigGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesGtagConfigGetCall {
10080 c.ctx_ = ctx
10081 return c
10082 }
10083
10084
10085
10086 func (c *AccountsContainersWorkspacesGtagConfigGetCall) Header() http.Header {
10087 if c.header_ == nil {
10088 c.header_ = make(http.Header)
10089 }
10090 return c.header_
10091 }
10092
10093 func (c *AccountsContainersWorkspacesGtagConfigGetCall) doRequest(alt string) (*http.Response, error) {
10094 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10095 if c.ifNoneMatch_ != "" {
10096 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10097 }
10098 var body io.Reader = nil
10099 c.urlParams_.Set("alt", alt)
10100 c.urlParams_.Set("prettyPrint", "false")
10101 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
10102 urls += "?" + c.urlParams_.Encode()
10103 req, err := http.NewRequest("GET", urls, body)
10104 if err != nil {
10105 return nil, err
10106 }
10107 req.Header = reqHeaders
10108 googleapi.Expand(req.URL, map[string]string{
10109 "path": c.path,
10110 })
10111 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10112 }
10113
10114
10115
10116
10117
10118
10119 func (c *AccountsContainersWorkspacesGtagConfigGetCall) Do(opts ...googleapi.CallOption) (*GtagConfig, error) {
10120 gensupport.SetOptions(c.urlParams_, opts...)
10121 res, err := c.doRequest("json")
10122 if res != nil && res.StatusCode == http.StatusNotModified {
10123 if res.Body != nil {
10124 res.Body.Close()
10125 }
10126 return nil, gensupport.WrapError(&googleapi.Error{
10127 Code: res.StatusCode,
10128 Header: res.Header,
10129 })
10130 }
10131 if err != nil {
10132 return nil, err
10133 }
10134 defer googleapi.CloseBody(res)
10135 if err := googleapi.CheckResponse(res); err != nil {
10136 return nil, gensupport.WrapError(err)
10137 }
10138 ret := &GtagConfig{
10139 ServerResponse: googleapi.ServerResponse{
10140 Header: res.Header,
10141 HTTPStatusCode: res.StatusCode,
10142 },
10143 }
10144 target := &ret
10145 if err := gensupport.DecodeResponse(target, res); err != nil {
10146 return nil, err
10147 }
10148 return ret, nil
10149 }
10150
10151 type AccountsContainersWorkspacesGtagConfigListCall struct {
10152 s *Service
10153 parent string
10154 urlParams_ gensupport.URLParams
10155 ifNoneMatch_ string
10156 ctx_ context.Context
10157 header_ http.Header
10158 }
10159
10160
10161
10162
10163
10164 func (r *AccountsContainersWorkspacesGtagConfigService) List(parent string) *AccountsContainersWorkspacesGtagConfigListCall {
10165 c := &AccountsContainersWorkspacesGtagConfigListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10166 c.parent = parent
10167 return c
10168 }
10169
10170
10171
10172 func (c *AccountsContainersWorkspacesGtagConfigListCall) PageToken(pageToken string) *AccountsContainersWorkspacesGtagConfigListCall {
10173 c.urlParams_.Set("pageToken", pageToken)
10174 return c
10175 }
10176
10177
10178
10179
10180 func (c *AccountsContainersWorkspacesGtagConfigListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesGtagConfigListCall {
10181 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10182 return c
10183 }
10184
10185
10186
10187
10188 func (c *AccountsContainersWorkspacesGtagConfigListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesGtagConfigListCall {
10189 c.ifNoneMatch_ = entityTag
10190 return c
10191 }
10192
10193
10194 func (c *AccountsContainersWorkspacesGtagConfigListCall) Context(ctx context.Context) *AccountsContainersWorkspacesGtagConfigListCall {
10195 c.ctx_ = ctx
10196 return c
10197 }
10198
10199
10200
10201 func (c *AccountsContainersWorkspacesGtagConfigListCall) Header() http.Header {
10202 if c.header_ == nil {
10203 c.header_ = make(http.Header)
10204 }
10205 return c.header_
10206 }
10207
10208 func (c *AccountsContainersWorkspacesGtagConfigListCall) doRequest(alt string) (*http.Response, error) {
10209 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10210 if c.ifNoneMatch_ != "" {
10211 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10212 }
10213 var body io.Reader = nil
10214 c.urlParams_.Set("alt", alt)
10215 c.urlParams_.Set("prettyPrint", "false")
10216 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/gtag_config")
10217 urls += "?" + c.urlParams_.Encode()
10218 req, err := http.NewRequest("GET", urls, body)
10219 if err != nil {
10220 return nil, err
10221 }
10222 req.Header = reqHeaders
10223 googleapi.Expand(req.URL, map[string]string{
10224 "parent": c.parent,
10225 })
10226 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10227 }
10228
10229
10230
10231
10232
10233
10234
10235 func (c *AccountsContainersWorkspacesGtagConfigListCall) Do(opts ...googleapi.CallOption) (*ListGtagConfigResponse, error) {
10236 gensupport.SetOptions(c.urlParams_, opts...)
10237 res, err := c.doRequest("json")
10238 if res != nil && res.StatusCode == http.StatusNotModified {
10239 if res.Body != nil {
10240 res.Body.Close()
10241 }
10242 return nil, gensupport.WrapError(&googleapi.Error{
10243 Code: res.StatusCode,
10244 Header: res.Header,
10245 })
10246 }
10247 if err != nil {
10248 return nil, err
10249 }
10250 defer googleapi.CloseBody(res)
10251 if err := googleapi.CheckResponse(res); err != nil {
10252 return nil, gensupport.WrapError(err)
10253 }
10254 ret := &ListGtagConfigResponse{
10255 ServerResponse: googleapi.ServerResponse{
10256 Header: res.Header,
10257 HTTPStatusCode: res.StatusCode,
10258 },
10259 }
10260 target := &ret
10261 if err := gensupport.DecodeResponse(target, res); err != nil {
10262 return nil, err
10263 }
10264 return ret, nil
10265 }
10266
10267
10268
10269
10270 func (c *AccountsContainersWorkspacesGtagConfigListCall) Pages(ctx context.Context, f func(*ListGtagConfigResponse) error) error {
10271 c.ctx_ = ctx
10272 defer c.PageToken(c.urlParams_.Get("pageToken"))
10273 for {
10274 x, err := c.Do()
10275 if err != nil {
10276 return err
10277 }
10278 if err := f(x); err != nil {
10279 return err
10280 }
10281 if x.NextPageToken == "" {
10282 return nil
10283 }
10284 c.PageToken(x.NextPageToken)
10285 }
10286 }
10287
10288 type AccountsContainersWorkspacesGtagConfigUpdateCall struct {
10289 s *Service
10290 path string
10291 gtagconfig *GtagConfig
10292 urlParams_ gensupport.URLParams
10293 ctx_ context.Context
10294 header_ http.Header
10295 }
10296
10297
10298
10299
10300
10301
10302 func (r *AccountsContainersWorkspacesGtagConfigService) Update(path string, gtagconfig *GtagConfig) *AccountsContainersWorkspacesGtagConfigUpdateCall {
10303 c := &AccountsContainersWorkspacesGtagConfigUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10304 c.path = path
10305 c.gtagconfig = gtagconfig
10306 return c
10307 }
10308
10309
10310
10311 func (c *AccountsContainersWorkspacesGtagConfigUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesGtagConfigUpdateCall {
10312 c.urlParams_.Set("fingerprint", fingerprint)
10313 return c
10314 }
10315
10316
10317
10318
10319 func (c *AccountsContainersWorkspacesGtagConfigUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesGtagConfigUpdateCall {
10320 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10321 return c
10322 }
10323
10324
10325 func (c *AccountsContainersWorkspacesGtagConfigUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesGtagConfigUpdateCall {
10326 c.ctx_ = ctx
10327 return c
10328 }
10329
10330
10331
10332 func (c *AccountsContainersWorkspacesGtagConfigUpdateCall) Header() http.Header {
10333 if c.header_ == nil {
10334 c.header_ = make(http.Header)
10335 }
10336 return c.header_
10337 }
10338
10339 func (c *AccountsContainersWorkspacesGtagConfigUpdateCall) doRequest(alt string) (*http.Response, error) {
10340 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10341 var body io.Reader = nil
10342 body, err := googleapi.WithoutDataWrapper.JSONReader(c.gtagconfig)
10343 if err != nil {
10344 return nil, err
10345 }
10346 c.urlParams_.Set("alt", alt)
10347 c.urlParams_.Set("prettyPrint", "false")
10348 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
10349 urls += "?" + c.urlParams_.Encode()
10350 req, err := http.NewRequest("PUT", urls, body)
10351 if err != nil {
10352 return nil, err
10353 }
10354 req.Header = reqHeaders
10355 googleapi.Expand(req.URL, map[string]string{
10356 "path": c.path,
10357 })
10358 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10359 }
10360
10361
10362
10363
10364
10365
10366 func (c *AccountsContainersWorkspacesGtagConfigUpdateCall) Do(opts ...googleapi.CallOption) (*GtagConfig, error) {
10367 gensupport.SetOptions(c.urlParams_, opts...)
10368 res, err := c.doRequest("json")
10369 if res != nil && res.StatusCode == http.StatusNotModified {
10370 if res.Body != nil {
10371 res.Body.Close()
10372 }
10373 return nil, gensupport.WrapError(&googleapi.Error{
10374 Code: res.StatusCode,
10375 Header: res.Header,
10376 })
10377 }
10378 if err != nil {
10379 return nil, err
10380 }
10381 defer googleapi.CloseBody(res)
10382 if err := googleapi.CheckResponse(res); err != nil {
10383 return nil, gensupport.WrapError(err)
10384 }
10385 ret := &GtagConfig{
10386 ServerResponse: googleapi.ServerResponse{
10387 Header: res.Header,
10388 HTTPStatusCode: res.StatusCode,
10389 },
10390 }
10391 target := &ret
10392 if err := gensupport.DecodeResponse(target, res); err != nil {
10393 return nil, err
10394 }
10395 return ret, nil
10396 }
10397
10398 type AccountsContainersWorkspacesTagsCreateCall struct {
10399 s *Service
10400 parent string
10401 tag *Tag
10402 urlParams_ gensupport.URLParams
10403 ctx_ context.Context
10404 header_ http.Header
10405 }
10406
10407
10408
10409
10410
10411 func (r *AccountsContainersWorkspacesTagsService) Create(parent string, tag *Tag) *AccountsContainersWorkspacesTagsCreateCall {
10412 c := &AccountsContainersWorkspacesTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10413 c.parent = parent
10414 c.tag = tag
10415 return c
10416 }
10417
10418
10419
10420
10421 func (c *AccountsContainersWorkspacesTagsCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTagsCreateCall {
10422 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10423 return c
10424 }
10425
10426
10427 func (c *AccountsContainersWorkspacesTagsCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesTagsCreateCall {
10428 c.ctx_ = ctx
10429 return c
10430 }
10431
10432
10433
10434 func (c *AccountsContainersWorkspacesTagsCreateCall) Header() http.Header {
10435 if c.header_ == nil {
10436 c.header_ = make(http.Header)
10437 }
10438 return c.header_
10439 }
10440
10441 func (c *AccountsContainersWorkspacesTagsCreateCall) doRequest(alt string) (*http.Response, error) {
10442 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10443 var body io.Reader = nil
10444 body, err := googleapi.WithoutDataWrapper.JSONReader(c.tag)
10445 if err != nil {
10446 return nil, err
10447 }
10448 c.urlParams_.Set("alt", alt)
10449 c.urlParams_.Set("prettyPrint", "false")
10450 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/tags")
10451 urls += "?" + c.urlParams_.Encode()
10452 req, err := http.NewRequest("POST", urls, body)
10453 if err != nil {
10454 return nil, err
10455 }
10456 req.Header = reqHeaders
10457 googleapi.Expand(req.URL, map[string]string{
10458 "parent": c.parent,
10459 })
10460 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10461 }
10462
10463
10464
10465
10466
10467
10468 func (c *AccountsContainersWorkspacesTagsCreateCall) Do(opts ...googleapi.CallOption) (*Tag, error) {
10469 gensupport.SetOptions(c.urlParams_, opts...)
10470 res, err := c.doRequest("json")
10471 if res != nil && res.StatusCode == http.StatusNotModified {
10472 if res.Body != nil {
10473 res.Body.Close()
10474 }
10475 return nil, gensupport.WrapError(&googleapi.Error{
10476 Code: res.StatusCode,
10477 Header: res.Header,
10478 })
10479 }
10480 if err != nil {
10481 return nil, err
10482 }
10483 defer googleapi.CloseBody(res)
10484 if err := googleapi.CheckResponse(res); err != nil {
10485 return nil, gensupport.WrapError(err)
10486 }
10487 ret := &Tag{
10488 ServerResponse: googleapi.ServerResponse{
10489 Header: res.Header,
10490 HTTPStatusCode: res.StatusCode,
10491 },
10492 }
10493 target := &ret
10494 if err := gensupport.DecodeResponse(target, res); err != nil {
10495 return nil, err
10496 }
10497 return ret, nil
10498 }
10499
10500 type AccountsContainersWorkspacesTagsDeleteCall struct {
10501 s *Service
10502 path string
10503 urlParams_ gensupport.URLParams
10504 ctx_ context.Context
10505 header_ http.Header
10506 }
10507
10508
10509
10510
10511
10512
10513 func (r *AccountsContainersWorkspacesTagsService) Delete(path string) *AccountsContainersWorkspacesTagsDeleteCall {
10514 c := &AccountsContainersWorkspacesTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10515 c.path = path
10516 return c
10517 }
10518
10519
10520
10521
10522 func (c *AccountsContainersWorkspacesTagsDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTagsDeleteCall {
10523 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10524 return c
10525 }
10526
10527
10528 func (c *AccountsContainersWorkspacesTagsDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesTagsDeleteCall {
10529 c.ctx_ = ctx
10530 return c
10531 }
10532
10533
10534
10535 func (c *AccountsContainersWorkspacesTagsDeleteCall) Header() http.Header {
10536 if c.header_ == nil {
10537 c.header_ = make(http.Header)
10538 }
10539 return c.header_
10540 }
10541
10542 func (c *AccountsContainersWorkspacesTagsDeleteCall) doRequest(alt string) (*http.Response, error) {
10543 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10544 var body io.Reader = nil
10545 c.urlParams_.Set("alt", alt)
10546 c.urlParams_.Set("prettyPrint", "false")
10547 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
10548 urls += "?" + c.urlParams_.Encode()
10549 req, err := http.NewRequest("DELETE", urls, body)
10550 if err != nil {
10551 return nil, err
10552 }
10553 req.Header = reqHeaders
10554 googleapi.Expand(req.URL, map[string]string{
10555 "path": c.path,
10556 })
10557 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10558 }
10559
10560
10561 func (c *AccountsContainersWorkspacesTagsDeleteCall) Do(opts ...googleapi.CallOption) error {
10562 gensupport.SetOptions(c.urlParams_, opts...)
10563 res, err := c.doRequest("json")
10564 if err != nil {
10565 return err
10566 }
10567 defer googleapi.CloseBody(res)
10568 if err := googleapi.CheckResponse(res); err != nil {
10569 return gensupport.WrapError(err)
10570 }
10571 return nil
10572 }
10573
10574 type AccountsContainersWorkspacesTagsGetCall struct {
10575 s *Service
10576 path string
10577 urlParams_ gensupport.URLParams
10578 ifNoneMatch_ string
10579 ctx_ context.Context
10580 header_ http.Header
10581 }
10582
10583
10584
10585
10586
10587
10588 func (r *AccountsContainersWorkspacesTagsService) Get(path string) *AccountsContainersWorkspacesTagsGetCall {
10589 c := &AccountsContainersWorkspacesTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10590 c.path = path
10591 return c
10592 }
10593
10594
10595
10596
10597 func (c *AccountsContainersWorkspacesTagsGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTagsGetCall {
10598 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10599 return c
10600 }
10601
10602
10603
10604
10605 func (c *AccountsContainersWorkspacesTagsGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesTagsGetCall {
10606 c.ifNoneMatch_ = entityTag
10607 return c
10608 }
10609
10610
10611 func (c *AccountsContainersWorkspacesTagsGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesTagsGetCall {
10612 c.ctx_ = ctx
10613 return c
10614 }
10615
10616
10617
10618 func (c *AccountsContainersWorkspacesTagsGetCall) Header() http.Header {
10619 if c.header_ == nil {
10620 c.header_ = make(http.Header)
10621 }
10622 return c.header_
10623 }
10624
10625 func (c *AccountsContainersWorkspacesTagsGetCall) doRequest(alt string) (*http.Response, error) {
10626 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10627 if c.ifNoneMatch_ != "" {
10628 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10629 }
10630 var body io.Reader = nil
10631 c.urlParams_.Set("alt", alt)
10632 c.urlParams_.Set("prettyPrint", "false")
10633 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
10634 urls += "?" + c.urlParams_.Encode()
10635 req, err := http.NewRequest("GET", urls, body)
10636 if err != nil {
10637 return nil, err
10638 }
10639 req.Header = reqHeaders
10640 googleapi.Expand(req.URL, map[string]string{
10641 "path": c.path,
10642 })
10643 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10644 }
10645
10646
10647
10648
10649
10650
10651 func (c *AccountsContainersWorkspacesTagsGetCall) Do(opts ...googleapi.CallOption) (*Tag, error) {
10652 gensupport.SetOptions(c.urlParams_, opts...)
10653 res, err := c.doRequest("json")
10654 if res != nil && res.StatusCode == http.StatusNotModified {
10655 if res.Body != nil {
10656 res.Body.Close()
10657 }
10658 return nil, gensupport.WrapError(&googleapi.Error{
10659 Code: res.StatusCode,
10660 Header: res.Header,
10661 })
10662 }
10663 if err != nil {
10664 return nil, err
10665 }
10666 defer googleapi.CloseBody(res)
10667 if err := googleapi.CheckResponse(res); err != nil {
10668 return nil, gensupport.WrapError(err)
10669 }
10670 ret := &Tag{
10671 ServerResponse: googleapi.ServerResponse{
10672 Header: res.Header,
10673 HTTPStatusCode: res.StatusCode,
10674 },
10675 }
10676 target := &ret
10677 if err := gensupport.DecodeResponse(target, res); err != nil {
10678 return nil, err
10679 }
10680 return ret, nil
10681 }
10682
10683 type AccountsContainersWorkspacesTagsListCall struct {
10684 s *Service
10685 parent string
10686 urlParams_ gensupport.URLParams
10687 ifNoneMatch_ string
10688 ctx_ context.Context
10689 header_ http.Header
10690 }
10691
10692
10693
10694
10695
10696 func (r *AccountsContainersWorkspacesTagsService) List(parent string) *AccountsContainersWorkspacesTagsListCall {
10697 c := &AccountsContainersWorkspacesTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10698 c.parent = parent
10699 return c
10700 }
10701
10702
10703
10704 func (c *AccountsContainersWorkspacesTagsListCall) PageToken(pageToken string) *AccountsContainersWorkspacesTagsListCall {
10705 c.urlParams_.Set("pageToken", pageToken)
10706 return c
10707 }
10708
10709
10710
10711
10712 func (c *AccountsContainersWorkspacesTagsListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTagsListCall {
10713 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10714 return c
10715 }
10716
10717
10718
10719
10720 func (c *AccountsContainersWorkspacesTagsListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesTagsListCall {
10721 c.ifNoneMatch_ = entityTag
10722 return c
10723 }
10724
10725
10726 func (c *AccountsContainersWorkspacesTagsListCall) Context(ctx context.Context) *AccountsContainersWorkspacesTagsListCall {
10727 c.ctx_ = ctx
10728 return c
10729 }
10730
10731
10732
10733 func (c *AccountsContainersWorkspacesTagsListCall) Header() http.Header {
10734 if c.header_ == nil {
10735 c.header_ = make(http.Header)
10736 }
10737 return c.header_
10738 }
10739
10740 func (c *AccountsContainersWorkspacesTagsListCall) doRequest(alt string) (*http.Response, error) {
10741 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10742 if c.ifNoneMatch_ != "" {
10743 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10744 }
10745 var body io.Reader = nil
10746 c.urlParams_.Set("alt", alt)
10747 c.urlParams_.Set("prettyPrint", "false")
10748 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/tags")
10749 urls += "?" + c.urlParams_.Encode()
10750 req, err := http.NewRequest("GET", urls, body)
10751 if err != nil {
10752 return nil, err
10753 }
10754 req.Header = reqHeaders
10755 googleapi.Expand(req.URL, map[string]string{
10756 "parent": c.parent,
10757 })
10758 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10759 }
10760
10761
10762
10763
10764
10765
10766
10767 func (c *AccountsContainersWorkspacesTagsListCall) Do(opts ...googleapi.CallOption) (*ListTagsResponse, error) {
10768 gensupport.SetOptions(c.urlParams_, opts...)
10769 res, err := c.doRequest("json")
10770 if res != nil && res.StatusCode == http.StatusNotModified {
10771 if res.Body != nil {
10772 res.Body.Close()
10773 }
10774 return nil, gensupport.WrapError(&googleapi.Error{
10775 Code: res.StatusCode,
10776 Header: res.Header,
10777 })
10778 }
10779 if err != nil {
10780 return nil, err
10781 }
10782 defer googleapi.CloseBody(res)
10783 if err := googleapi.CheckResponse(res); err != nil {
10784 return nil, gensupport.WrapError(err)
10785 }
10786 ret := &ListTagsResponse{
10787 ServerResponse: googleapi.ServerResponse{
10788 Header: res.Header,
10789 HTTPStatusCode: res.StatusCode,
10790 },
10791 }
10792 target := &ret
10793 if err := gensupport.DecodeResponse(target, res); err != nil {
10794 return nil, err
10795 }
10796 return ret, nil
10797 }
10798
10799
10800
10801
10802 func (c *AccountsContainersWorkspacesTagsListCall) Pages(ctx context.Context, f func(*ListTagsResponse) error) error {
10803 c.ctx_ = ctx
10804 defer c.PageToken(c.urlParams_.Get("pageToken"))
10805 for {
10806 x, err := c.Do()
10807 if err != nil {
10808 return err
10809 }
10810 if err := f(x); err != nil {
10811 return err
10812 }
10813 if x.NextPageToken == "" {
10814 return nil
10815 }
10816 c.PageToken(x.NextPageToken)
10817 }
10818 }
10819
10820 type AccountsContainersWorkspacesTagsRevertCall struct {
10821 s *Service
10822 path string
10823 urlParams_ gensupport.URLParams
10824 ctx_ context.Context
10825 header_ http.Header
10826 }
10827
10828
10829
10830
10831
10832
10833 func (r *AccountsContainersWorkspacesTagsService) Revert(path string) *AccountsContainersWorkspacesTagsRevertCall {
10834 c := &AccountsContainersWorkspacesTagsRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10835 c.path = path
10836 return c
10837 }
10838
10839
10840
10841 func (c *AccountsContainersWorkspacesTagsRevertCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesTagsRevertCall {
10842 c.urlParams_.Set("fingerprint", fingerprint)
10843 return c
10844 }
10845
10846
10847
10848
10849 func (c *AccountsContainersWorkspacesTagsRevertCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTagsRevertCall {
10850 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10851 return c
10852 }
10853
10854
10855 func (c *AccountsContainersWorkspacesTagsRevertCall) Context(ctx context.Context) *AccountsContainersWorkspacesTagsRevertCall {
10856 c.ctx_ = ctx
10857 return c
10858 }
10859
10860
10861
10862 func (c *AccountsContainersWorkspacesTagsRevertCall) Header() http.Header {
10863 if c.header_ == nil {
10864 c.header_ = make(http.Header)
10865 }
10866 return c.header_
10867 }
10868
10869 func (c *AccountsContainersWorkspacesTagsRevertCall) doRequest(alt string) (*http.Response, error) {
10870 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10871 var body io.Reader = nil
10872 c.urlParams_.Set("alt", alt)
10873 c.urlParams_.Set("prettyPrint", "false")
10874 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:revert")
10875 urls += "?" + c.urlParams_.Encode()
10876 req, err := http.NewRequest("POST", urls, body)
10877 if err != nil {
10878 return nil, err
10879 }
10880 req.Header = reqHeaders
10881 googleapi.Expand(req.URL, map[string]string{
10882 "path": c.path,
10883 })
10884 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10885 }
10886
10887
10888
10889
10890
10891
10892
10893 func (c *AccountsContainersWorkspacesTagsRevertCall) Do(opts ...googleapi.CallOption) (*RevertTagResponse, error) {
10894 gensupport.SetOptions(c.urlParams_, opts...)
10895 res, err := c.doRequest("json")
10896 if res != nil && res.StatusCode == http.StatusNotModified {
10897 if res.Body != nil {
10898 res.Body.Close()
10899 }
10900 return nil, gensupport.WrapError(&googleapi.Error{
10901 Code: res.StatusCode,
10902 Header: res.Header,
10903 })
10904 }
10905 if err != nil {
10906 return nil, err
10907 }
10908 defer googleapi.CloseBody(res)
10909 if err := googleapi.CheckResponse(res); err != nil {
10910 return nil, gensupport.WrapError(err)
10911 }
10912 ret := &RevertTagResponse{
10913 ServerResponse: googleapi.ServerResponse{
10914 Header: res.Header,
10915 HTTPStatusCode: res.StatusCode,
10916 },
10917 }
10918 target := &ret
10919 if err := gensupport.DecodeResponse(target, res); err != nil {
10920 return nil, err
10921 }
10922 return ret, nil
10923 }
10924
10925 type AccountsContainersWorkspacesTagsUpdateCall struct {
10926 s *Service
10927 path string
10928 tag *Tag
10929 urlParams_ gensupport.URLParams
10930 ctx_ context.Context
10931 header_ http.Header
10932 }
10933
10934
10935
10936
10937
10938
10939 func (r *AccountsContainersWorkspacesTagsService) Update(path string, tag *Tag) *AccountsContainersWorkspacesTagsUpdateCall {
10940 c := &AccountsContainersWorkspacesTagsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10941 c.path = path
10942 c.tag = tag
10943 return c
10944 }
10945
10946
10947
10948 func (c *AccountsContainersWorkspacesTagsUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesTagsUpdateCall {
10949 c.urlParams_.Set("fingerprint", fingerprint)
10950 return c
10951 }
10952
10953
10954
10955
10956 func (c *AccountsContainersWorkspacesTagsUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTagsUpdateCall {
10957 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10958 return c
10959 }
10960
10961
10962 func (c *AccountsContainersWorkspacesTagsUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesTagsUpdateCall {
10963 c.ctx_ = ctx
10964 return c
10965 }
10966
10967
10968
10969 func (c *AccountsContainersWorkspacesTagsUpdateCall) Header() http.Header {
10970 if c.header_ == nil {
10971 c.header_ = make(http.Header)
10972 }
10973 return c.header_
10974 }
10975
10976 func (c *AccountsContainersWorkspacesTagsUpdateCall) doRequest(alt string) (*http.Response, error) {
10977 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10978 var body io.Reader = nil
10979 body, err := googleapi.WithoutDataWrapper.JSONReader(c.tag)
10980 if err != nil {
10981 return nil, err
10982 }
10983 c.urlParams_.Set("alt", alt)
10984 c.urlParams_.Set("prettyPrint", "false")
10985 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
10986 urls += "?" + c.urlParams_.Encode()
10987 req, err := http.NewRequest("PUT", urls, body)
10988 if err != nil {
10989 return nil, err
10990 }
10991 req.Header = reqHeaders
10992 googleapi.Expand(req.URL, map[string]string{
10993 "path": c.path,
10994 })
10995 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10996 }
10997
10998
10999
11000
11001
11002
11003 func (c *AccountsContainersWorkspacesTagsUpdateCall) Do(opts ...googleapi.CallOption) (*Tag, error) {
11004 gensupport.SetOptions(c.urlParams_, opts...)
11005 res, err := c.doRequest("json")
11006 if res != nil && res.StatusCode == http.StatusNotModified {
11007 if res.Body != nil {
11008 res.Body.Close()
11009 }
11010 return nil, gensupport.WrapError(&googleapi.Error{
11011 Code: res.StatusCode,
11012 Header: res.Header,
11013 })
11014 }
11015 if err != nil {
11016 return nil, err
11017 }
11018 defer googleapi.CloseBody(res)
11019 if err := googleapi.CheckResponse(res); err != nil {
11020 return nil, gensupport.WrapError(err)
11021 }
11022 ret := &Tag{
11023 ServerResponse: googleapi.ServerResponse{
11024 Header: res.Header,
11025 HTTPStatusCode: res.StatusCode,
11026 },
11027 }
11028 target := &ret
11029 if err := gensupport.DecodeResponse(target, res); err != nil {
11030 return nil, err
11031 }
11032 return ret, nil
11033 }
11034
11035 type AccountsContainersWorkspacesTemplatesCreateCall struct {
11036 s *Service
11037 parent string
11038 customtemplate *CustomTemplate
11039 urlParams_ gensupport.URLParams
11040 ctx_ context.Context
11041 header_ http.Header
11042 }
11043
11044
11045
11046
11047
11048 func (r *AccountsContainersWorkspacesTemplatesService) Create(parent string, customtemplate *CustomTemplate) *AccountsContainersWorkspacesTemplatesCreateCall {
11049 c := &AccountsContainersWorkspacesTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11050 c.parent = parent
11051 c.customtemplate = customtemplate
11052 return c
11053 }
11054
11055
11056
11057
11058 func (c *AccountsContainersWorkspacesTemplatesCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTemplatesCreateCall {
11059 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11060 return c
11061 }
11062
11063
11064 func (c *AccountsContainersWorkspacesTemplatesCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesTemplatesCreateCall {
11065 c.ctx_ = ctx
11066 return c
11067 }
11068
11069
11070
11071 func (c *AccountsContainersWorkspacesTemplatesCreateCall) Header() http.Header {
11072 if c.header_ == nil {
11073 c.header_ = make(http.Header)
11074 }
11075 return c.header_
11076 }
11077
11078 func (c *AccountsContainersWorkspacesTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
11079 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11080 var body io.Reader = nil
11081 body, err := googleapi.WithoutDataWrapper.JSONReader(c.customtemplate)
11082 if err != nil {
11083 return nil, err
11084 }
11085 c.urlParams_.Set("alt", alt)
11086 c.urlParams_.Set("prettyPrint", "false")
11087 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/templates")
11088 urls += "?" + c.urlParams_.Encode()
11089 req, err := http.NewRequest("POST", urls, body)
11090 if err != nil {
11091 return nil, err
11092 }
11093 req.Header = reqHeaders
11094 googleapi.Expand(req.URL, map[string]string{
11095 "parent": c.parent,
11096 })
11097 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11098 }
11099
11100
11101
11102
11103
11104
11105 func (c *AccountsContainersWorkspacesTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*CustomTemplate, error) {
11106 gensupport.SetOptions(c.urlParams_, opts...)
11107 res, err := c.doRequest("json")
11108 if res != nil && res.StatusCode == http.StatusNotModified {
11109 if res.Body != nil {
11110 res.Body.Close()
11111 }
11112 return nil, gensupport.WrapError(&googleapi.Error{
11113 Code: res.StatusCode,
11114 Header: res.Header,
11115 })
11116 }
11117 if err != nil {
11118 return nil, err
11119 }
11120 defer googleapi.CloseBody(res)
11121 if err := googleapi.CheckResponse(res); err != nil {
11122 return nil, gensupport.WrapError(err)
11123 }
11124 ret := &CustomTemplate{
11125 ServerResponse: googleapi.ServerResponse{
11126 Header: res.Header,
11127 HTTPStatusCode: res.StatusCode,
11128 },
11129 }
11130 target := &ret
11131 if err := gensupport.DecodeResponse(target, res); err != nil {
11132 return nil, err
11133 }
11134 return ret, nil
11135 }
11136
11137 type AccountsContainersWorkspacesTemplatesDeleteCall struct {
11138 s *Service
11139 path string
11140 urlParams_ gensupport.URLParams
11141 ctx_ context.Context
11142 header_ http.Header
11143 }
11144
11145
11146
11147
11148
11149
11150 func (r *AccountsContainersWorkspacesTemplatesService) Delete(path string) *AccountsContainersWorkspacesTemplatesDeleteCall {
11151 c := &AccountsContainersWorkspacesTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11152 c.path = path
11153 return c
11154 }
11155
11156
11157
11158
11159 func (c *AccountsContainersWorkspacesTemplatesDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTemplatesDeleteCall {
11160 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11161 return c
11162 }
11163
11164
11165 func (c *AccountsContainersWorkspacesTemplatesDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesTemplatesDeleteCall {
11166 c.ctx_ = ctx
11167 return c
11168 }
11169
11170
11171
11172 func (c *AccountsContainersWorkspacesTemplatesDeleteCall) Header() http.Header {
11173 if c.header_ == nil {
11174 c.header_ = make(http.Header)
11175 }
11176 return c.header_
11177 }
11178
11179 func (c *AccountsContainersWorkspacesTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
11180 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11181 var body io.Reader = nil
11182 c.urlParams_.Set("alt", alt)
11183 c.urlParams_.Set("prettyPrint", "false")
11184 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
11185 urls += "?" + c.urlParams_.Encode()
11186 req, err := http.NewRequest("DELETE", urls, body)
11187 if err != nil {
11188 return nil, err
11189 }
11190 req.Header = reqHeaders
11191 googleapi.Expand(req.URL, map[string]string{
11192 "path": c.path,
11193 })
11194 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11195 }
11196
11197
11198 func (c *AccountsContainersWorkspacesTemplatesDeleteCall) Do(opts ...googleapi.CallOption) error {
11199 gensupport.SetOptions(c.urlParams_, opts...)
11200 res, err := c.doRequest("json")
11201 if err != nil {
11202 return err
11203 }
11204 defer googleapi.CloseBody(res)
11205 if err := googleapi.CheckResponse(res); err != nil {
11206 return gensupport.WrapError(err)
11207 }
11208 return nil
11209 }
11210
11211 type AccountsContainersWorkspacesTemplatesGetCall struct {
11212 s *Service
11213 path string
11214 urlParams_ gensupport.URLParams
11215 ifNoneMatch_ string
11216 ctx_ context.Context
11217 header_ http.Header
11218 }
11219
11220
11221
11222
11223
11224
11225 func (r *AccountsContainersWorkspacesTemplatesService) Get(path string) *AccountsContainersWorkspacesTemplatesGetCall {
11226 c := &AccountsContainersWorkspacesTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11227 c.path = path
11228 return c
11229 }
11230
11231
11232
11233
11234 func (c *AccountsContainersWorkspacesTemplatesGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTemplatesGetCall {
11235 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11236 return c
11237 }
11238
11239
11240
11241
11242 func (c *AccountsContainersWorkspacesTemplatesGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesTemplatesGetCall {
11243 c.ifNoneMatch_ = entityTag
11244 return c
11245 }
11246
11247
11248 func (c *AccountsContainersWorkspacesTemplatesGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesTemplatesGetCall {
11249 c.ctx_ = ctx
11250 return c
11251 }
11252
11253
11254
11255 func (c *AccountsContainersWorkspacesTemplatesGetCall) Header() http.Header {
11256 if c.header_ == nil {
11257 c.header_ = make(http.Header)
11258 }
11259 return c.header_
11260 }
11261
11262 func (c *AccountsContainersWorkspacesTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
11263 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11264 if c.ifNoneMatch_ != "" {
11265 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11266 }
11267 var body io.Reader = nil
11268 c.urlParams_.Set("alt", alt)
11269 c.urlParams_.Set("prettyPrint", "false")
11270 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
11271 urls += "?" + c.urlParams_.Encode()
11272 req, err := http.NewRequest("GET", urls, body)
11273 if err != nil {
11274 return nil, err
11275 }
11276 req.Header = reqHeaders
11277 googleapi.Expand(req.URL, map[string]string{
11278 "path": c.path,
11279 })
11280 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11281 }
11282
11283
11284
11285
11286
11287
11288 func (c *AccountsContainersWorkspacesTemplatesGetCall) Do(opts ...googleapi.CallOption) (*CustomTemplate, error) {
11289 gensupport.SetOptions(c.urlParams_, opts...)
11290 res, err := c.doRequest("json")
11291 if res != nil && res.StatusCode == http.StatusNotModified {
11292 if res.Body != nil {
11293 res.Body.Close()
11294 }
11295 return nil, gensupport.WrapError(&googleapi.Error{
11296 Code: res.StatusCode,
11297 Header: res.Header,
11298 })
11299 }
11300 if err != nil {
11301 return nil, err
11302 }
11303 defer googleapi.CloseBody(res)
11304 if err := googleapi.CheckResponse(res); err != nil {
11305 return nil, gensupport.WrapError(err)
11306 }
11307 ret := &CustomTemplate{
11308 ServerResponse: googleapi.ServerResponse{
11309 Header: res.Header,
11310 HTTPStatusCode: res.StatusCode,
11311 },
11312 }
11313 target := &ret
11314 if err := gensupport.DecodeResponse(target, res); err != nil {
11315 return nil, err
11316 }
11317 return ret, nil
11318 }
11319
11320 type AccountsContainersWorkspacesTemplatesListCall struct {
11321 s *Service
11322 parent string
11323 urlParams_ gensupport.URLParams
11324 ifNoneMatch_ string
11325 ctx_ context.Context
11326 header_ http.Header
11327 }
11328
11329
11330
11331
11332
11333 func (r *AccountsContainersWorkspacesTemplatesService) List(parent string) *AccountsContainersWorkspacesTemplatesListCall {
11334 c := &AccountsContainersWorkspacesTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11335 c.parent = parent
11336 return c
11337 }
11338
11339
11340
11341 func (c *AccountsContainersWorkspacesTemplatesListCall) PageToken(pageToken string) *AccountsContainersWorkspacesTemplatesListCall {
11342 c.urlParams_.Set("pageToken", pageToken)
11343 return c
11344 }
11345
11346
11347
11348
11349 func (c *AccountsContainersWorkspacesTemplatesListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTemplatesListCall {
11350 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11351 return c
11352 }
11353
11354
11355
11356
11357 func (c *AccountsContainersWorkspacesTemplatesListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesTemplatesListCall {
11358 c.ifNoneMatch_ = entityTag
11359 return c
11360 }
11361
11362
11363 func (c *AccountsContainersWorkspacesTemplatesListCall) Context(ctx context.Context) *AccountsContainersWorkspacesTemplatesListCall {
11364 c.ctx_ = ctx
11365 return c
11366 }
11367
11368
11369
11370 func (c *AccountsContainersWorkspacesTemplatesListCall) Header() http.Header {
11371 if c.header_ == nil {
11372 c.header_ = make(http.Header)
11373 }
11374 return c.header_
11375 }
11376
11377 func (c *AccountsContainersWorkspacesTemplatesListCall) doRequest(alt string) (*http.Response, error) {
11378 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11379 if c.ifNoneMatch_ != "" {
11380 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11381 }
11382 var body io.Reader = nil
11383 c.urlParams_.Set("alt", alt)
11384 c.urlParams_.Set("prettyPrint", "false")
11385 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/templates")
11386 urls += "?" + c.urlParams_.Encode()
11387 req, err := http.NewRequest("GET", urls, body)
11388 if err != nil {
11389 return nil, err
11390 }
11391 req.Header = reqHeaders
11392 googleapi.Expand(req.URL, map[string]string{
11393 "parent": c.parent,
11394 })
11395 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11396 }
11397
11398
11399
11400
11401
11402
11403
11404 func (c *AccountsContainersWorkspacesTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListTemplatesResponse, error) {
11405 gensupport.SetOptions(c.urlParams_, opts...)
11406 res, err := c.doRequest("json")
11407 if res != nil && res.StatusCode == http.StatusNotModified {
11408 if res.Body != nil {
11409 res.Body.Close()
11410 }
11411 return nil, gensupport.WrapError(&googleapi.Error{
11412 Code: res.StatusCode,
11413 Header: res.Header,
11414 })
11415 }
11416 if err != nil {
11417 return nil, err
11418 }
11419 defer googleapi.CloseBody(res)
11420 if err := googleapi.CheckResponse(res); err != nil {
11421 return nil, gensupport.WrapError(err)
11422 }
11423 ret := &ListTemplatesResponse{
11424 ServerResponse: googleapi.ServerResponse{
11425 Header: res.Header,
11426 HTTPStatusCode: res.StatusCode,
11427 },
11428 }
11429 target := &ret
11430 if err := gensupport.DecodeResponse(target, res); err != nil {
11431 return nil, err
11432 }
11433 return ret, nil
11434 }
11435
11436
11437
11438
11439 func (c *AccountsContainersWorkspacesTemplatesListCall) Pages(ctx context.Context, f func(*ListTemplatesResponse) error) error {
11440 c.ctx_ = ctx
11441 defer c.PageToken(c.urlParams_.Get("pageToken"))
11442 for {
11443 x, err := c.Do()
11444 if err != nil {
11445 return err
11446 }
11447 if err := f(x); err != nil {
11448 return err
11449 }
11450 if x.NextPageToken == "" {
11451 return nil
11452 }
11453 c.PageToken(x.NextPageToken)
11454 }
11455 }
11456
11457 type AccountsContainersWorkspacesTemplatesRevertCall struct {
11458 s *Service
11459 path string
11460 urlParams_ gensupport.URLParams
11461 ctx_ context.Context
11462 header_ http.Header
11463 }
11464
11465
11466
11467
11468
11469
11470 func (r *AccountsContainersWorkspacesTemplatesService) Revert(path string) *AccountsContainersWorkspacesTemplatesRevertCall {
11471 c := &AccountsContainersWorkspacesTemplatesRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11472 c.path = path
11473 return c
11474 }
11475
11476
11477
11478 func (c *AccountsContainersWorkspacesTemplatesRevertCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesTemplatesRevertCall {
11479 c.urlParams_.Set("fingerprint", fingerprint)
11480 return c
11481 }
11482
11483
11484
11485
11486 func (c *AccountsContainersWorkspacesTemplatesRevertCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTemplatesRevertCall {
11487 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11488 return c
11489 }
11490
11491
11492 func (c *AccountsContainersWorkspacesTemplatesRevertCall) Context(ctx context.Context) *AccountsContainersWorkspacesTemplatesRevertCall {
11493 c.ctx_ = ctx
11494 return c
11495 }
11496
11497
11498
11499 func (c *AccountsContainersWorkspacesTemplatesRevertCall) Header() http.Header {
11500 if c.header_ == nil {
11501 c.header_ = make(http.Header)
11502 }
11503 return c.header_
11504 }
11505
11506 func (c *AccountsContainersWorkspacesTemplatesRevertCall) doRequest(alt string) (*http.Response, error) {
11507 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11508 var body io.Reader = nil
11509 c.urlParams_.Set("alt", alt)
11510 c.urlParams_.Set("prettyPrint", "false")
11511 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:revert")
11512 urls += "?" + c.urlParams_.Encode()
11513 req, err := http.NewRequest("POST", urls, body)
11514 if err != nil {
11515 return nil, err
11516 }
11517 req.Header = reqHeaders
11518 googleapi.Expand(req.URL, map[string]string{
11519 "path": c.path,
11520 })
11521 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11522 }
11523
11524
11525
11526
11527
11528
11529
11530 func (c *AccountsContainersWorkspacesTemplatesRevertCall) Do(opts ...googleapi.CallOption) (*RevertTemplateResponse, error) {
11531 gensupport.SetOptions(c.urlParams_, opts...)
11532 res, err := c.doRequest("json")
11533 if res != nil && res.StatusCode == http.StatusNotModified {
11534 if res.Body != nil {
11535 res.Body.Close()
11536 }
11537 return nil, gensupport.WrapError(&googleapi.Error{
11538 Code: res.StatusCode,
11539 Header: res.Header,
11540 })
11541 }
11542 if err != nil {
11543 return nil, err
11544 }
11545 defer googleapi.CloseBody(res)
11546 if err := googleapi.CheckResponse(res); err != nil {
11547 return nil, gensupport.WrapError(err)
11548 }
11549 ret := &RevertTemplateResponse{
11550 ServerResponse: googleapi.ServerResponse{
11551 Header: res.Header,
11552 HTTPStatusCode: res.StatusCode,
11553 },
11554 }
11555 target := &ret
11556 if err := gensupport.DecodeResponse(target, res); err != nil {
11557 return nil, err
11558 }
11559 return ret, nil
11560 }
11561
11562 type AccountsContainersWorkspacesTemplatesUpdateCall struct {
11563 s *Service
11564 path string
11565 customtemplate *CustomTemplate
11566 urlParams_ gensupport.URLParams
11567 ctx_ context.Context
11568 header_ http.Header
11569 }
11570
11571
11572
11573
11574
11575
11576 func (r *AccountsContainersWorkspacesTemplatesService) Update(path string, customtemplate *CustomTemplate) *AccountsContainersWorkspacesTemplatesUpdateCall {
11577 c := &AccountsContainersWorkspacesTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11578 c.path = path
11579 c.customtemplate = customtemplate
11580 return c
11581 }
11582
11583
11584
11585 func (c *AccountsContainersWorkspacesTemplatesUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesTemplatesUpdateCall {
11586 c.urlParams_.Set("fingerprint", fingerprint)
11587 return c
11588 }
11589
11590
11591
11592
11593 func (c *AccountsContainersWorkspacesTemplatesUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTemplatesUpdateCall {
11594 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11595 return c
11596 }
11597
11598
11599 func (c *AccountsContainersWorkspacesTemplatesUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesTemplatesUpdateCall {
11600 c.ctx_ = ctx
11601 return c
11602 }
11603
11604
11605
11606 func (c *AccountsContainersWorkspacesTemplatesUpdateCall) Header() http.Header {
11607 if c.header_ == nil {
11608 c.header_ = make(http.Header)
11609 }
11610 return c.header_
11611 }
11612
11613 func (c *AccountsContainersWorkspacesTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) {
11614 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11615 var body io.Reader = nil
11616 body, err := googleapi.WithoutDataWrapper.JSONReader(c.customtemplate)
11617 if err != nil {
11618 return nil, err
11619 }
11620 c.urlParams_.Set("alt", alt)
11621 c.urlParams_.Set("prettyPrint", "false")
11622 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
11623 urls += "?" + c.urlParams_.Encode()
11624 req, err := http.NewRequest("PUT", urls, body)
11625 if err != nil {
11626 return nil, err
11627 }
11628 req.Header = reqHeaders
11629 googleapi.Expand(req.URL, map[string]string{
11630 "path": c.path,
11631 })
11632 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11633 }
11634
11635
11636
11637
11638
11639
11640 func (c *AccountsContainersWorkspacesTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*CustomTemplate, error) {
11641 gensupport.SetOptions(c.urlParams_, opts...)
11642 res, err := c.doRequest("json")
11643 if res != nil && res.StatusCode == http.StatusNotModified {
11644 if res.Body != nil {
11645 res.Body.Close()
11646 }
11647 return nil, gensupport.WrapError(&googleapi.Error{
11648 Code: res.StatusCode,
11649 Header: res.Header,
11650 })
11651 }
11652 if err != nil {
11653 return nil, err
11654 }
11655 defer googleapi.CloseBody(res)
11656 if err := googleapi.CheckResponse(res); err != nil {
11657 return nil, gensupport.WrapError(err)
11658 }
11659 ret := &CustomTemplate{
11660 ServerResponse: googleapi.ServerResponse{
11661 Header: res.Header,
11662 HTTPStatusCode: res.StatusCode,
11663 },
11664 }
11665 target := &ret
11666 if err := gensupport.DecodeResponse(target, res); err != nil {
11667 return nil, err
11668 }
11669 return ret, nil
11670 }
11671
11672 type AccountsContainersWorkspacesTransformationsCreateCall struct {
11673 s *Service
11674 parent string
11675 transformation *Transformation
11676 urlParams_ gensupport.URLParams
11677 ctx_ context.Context
11678 header_ http.Header
11679 }
11680
11681
11682
11683
11684
11685 func (r *AccountsContainersWorkspacesTransformationsService) Create(parent string, transformation *Transformation) *AccountsContainersWorkspacesTransformationsCreateCall {
11686 c := &AccountsContainersWorkspacesTransformationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11687 c.parent = parent
11688 c.transformation = transformation
11689 return c
11690 }
11691
11692
11693
11694
11695 func (c *AccountsContainersWorkspacesTransformationsCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTransformationsCreateCall {
11696 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11697 return c
11698 }
11699
11700
11701 func (c *AccountsContainersWorkspacesTransformationsCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesTransformationsCreateCall {
11702 c.ctx_ = ctx
11703 return c
11704 }
11705
11706
11707
11708 func (c *AccountsContainersWorkspacesTransformationsCreateCall) Header() http.Header {
11709 if c.header_ == nil {
11710 c.header_ = make(http.Header)
11711 }
11712 return c.header_
11713 }
11714
11715 func (c *AccountsContainersWorkspacesTransformationsCreateCall) doRequest(alt string) (*http.Response, error) {
11716 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11717 var body io.Reader = nil
11718 body, err := googleapi.WithoutDataWrapper.JSONReader(c.transformation)
11719 if err != nil {
11720 return nil, err
11721 }
11722 c.urlParams_.Set("alt", alt)
11723 c.urlParams_.Set("prettyPrint", "false")
11724 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/transformations")
11725 urls += "?" + c.urlParams_.Encode()
11726 req, err := http.NewRequest("POST", urls, body)
11727 if err != nil {
11728 return nil, err
11729 }
11730 req.Header = reqHeaders
11731 googleapi.Expand(req.URL, map[string]string{
11732 "parent": c.parent,
11733 })
11734 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11735 }
11736
11737
11738
11739
11740
11741
11742 func (c *AccountsContainersWorkspacesTransformationsCreateCall) Do(opts ...googleapi.CallOption) (*Transformation, error) {
11743 gensupport.SetOptions(c.urlParams_, opts...)
11744 res, err := c.doRequest("json")
11745 if res != nil && res.StatusCode == http.StatusNotModified {
11746 if res.Body != nil {
11747 res.Body.Close()
11748 }
11749 return nil, gensupport.WrapError(&googleapi.Error{
11750 Code: res.StatusCode,
11751 Header: res.Header,
11752 })
11753 }
11754 if err != nil {
11755 return nil, err
11756 }
11757 defer googleapi.CloseBody(res)
11758 if err := googleapi.CheckResponse(res); err != nil {
11759 return nil, gensupport.WrapError(err)
11760 }
11761 ret := &Transformation{
11762 ServerResponse: googleapi.ServerResponse{
11763 Header: res.Header,
11764 HTTPStatusCode: res.StatusCode,
11765 },
11766 }
11767 target := &ret
11768 if err := gensupport.DecodeResponse(target, res); err != nil {
11769 return nil, err
11770 }
11771 return ret, nil
11772 }
11773
11774 type AccountsContainersWorkspacesTransformationsDeleteCall struct {
11775 s *Service
11776 path string
11777 urlParams_ gensupport.URLParams
11778 ctx_ context.Context
11779 header_ http.Header
11780 }
11781
11782
11783
11784
11785
11786
11787 func (r *AccountsContainersWorkspacesTransformationsService) Delete(path string) *AccountsContainersWorkspacesTransformationsDeleteCall {
11788 c := &AccountsContainersWorkspacesTransformationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11789 c.path = path
11790 return c
11791 }
11792
11793
11794
11795
11796 func (c *AccountsContainersWorkspacesTransformationsDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTransformationsDeleteCall {
11797 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11798 return c
11799 }
11800
11801
11802 func (c *AccountsContainersWorkspacesTransformationsDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesTransformationsDeleteCall {
11803 c.ctx_ = ctx
11804 return c
11805 }
11806
11807
11808
11809 func (c *AccountsContainersWorkspacesTransformationsDeleteCall) Header() http.Header {
11810 if c.header_ == nil {
11811 c.header_ = make(http.Header)
11812 }
11813 return c.header_
11814 }
11815
11816 func (c *AccountsContainersWorkspacesTransformationsDeleteCall) doRequest(alt string) (*http.Response, error) {
11817 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11818 var body io.Reader = nil
11819 c.urlParams_.Set("alt", alt)
11820 c.urlParams_.Set("prettyPrint", "false")
11821 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
11822 urls += "?" + c.urlParams_.Encode()
11823 req, err := http.NewRequest("DELETE", urls, body)
11824 if err != nil {
11825 return nil, err
11826 }
11827 req.Header = reqHeaders
11828 googleapi.Expand(req.URL, map[string]string{
11829 "path": c.path,
11830 })
11831 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11832 }
11833
11834
11835 func (c *AccountsContainersWorkspacesTransformationsDeleteCall) Do(opts ...googleapi.CallOption) error {
11836 gensupport.SetOptions(c.urlParams_, opts...)
11837 res, err := c.doRequest("json")
11838 if err != nil {
11839 return err
11840 }
11841 defer googleapi.CloseBody(res)
11842 if err := googleapi.CheckResponse(res); err != nil {
11843 return gensupport.WrapError(err)
11844 }
11845 return nil
11846 }
11847
11848 type AccountsContainersWorkspacesTransformationsGetCall struct {
11849 s *Service
11850 path string
11851 urlParams_ gensupport.URLParams
11852 ifNoneMatch_ string
11853 ctx_ context.Context
11854 header_ http.Header
11855 }
11856
11857
11858
11859
11860
11861
11862 func (r *AccountsContainersWorkspacesTransformationsService) Get(path string) *AccountsContainersWorkspacesTransformationsGetCall {
11863 c := &AccountsContainersWorkspacesTransformationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11864 c.path = path
11865 return c
11866 }
11867
11868
11869
11870
11871 func (c *AccountsContainersWorkspacesTransformationsGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTransformationsGetCall {
11872 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11873 return c
11874 }
11875
11876
11877
11878
11879 func (c *AccountsContainersWorkspacesTransformationsGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesTransformationsGetCall {
11880 c.ifNoneMatch_ = entityTag
11881 return c
11882 }
11883
11884
11885 func (c *AccountsContainersWorkspacesTransformationsGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesTransformationsGetCall {
11886 c.ctx_ = ctx
11887 return c
11888 }
11889
11890
11891
11892 func (c *AccountsContainersWorkspacesTransformationsGetCall) Header() http.Header {
11893 if c.header_ == nil {
11894 c.header_ = make(http.Header)
11895 }
11896 return c.header_
11897 }
11898
11899 func (c *AccountsContainersWorkspacesTransformationsGetCall) doRequest(alt string) (*http.Response, error) {
11900 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11901 if c.ifNoneMatch_ != "" {
11902 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11903 }
11904 var body io.Reader = nil
11905 c.urlParams_.Set("alt", alt)
11906 c.urlParams_.Set("prettyPrint", "false")
11907 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
11908 urls += "?" + c.urlParams_.Encode()
11909 req, err := http.NewRequest("GET", urls, body)
11910 if err != nil {
11911 return nil, err
11912 }
11913 req.Header = reqHeaders
11914 googleapi.Expand(req.URL, map[string]string{
11915 "path": c.path,
11916 })
11917 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11918 }
11919
11920
11921
11922
11923
11924
11925 func (c *AccountsContainersWorkspacesTransformationsGetCall) Do(opts ...googleapi.CallOption) (*Transformation, error) {
11926 gensupport.SetOptions(c.urlParams_, opts...)
11927 res, err := c.doRequest("json")
11928 if res != nil && res.StatusCode == http.StatusNotModified {
11929 if res.Body != nil {
11930 res.Body.Close()
11931 }
11932 return nil, gensupport.WrapError(&googleapi.Error{
11933 Code: res.StatusCode,
11934 Header: res.Header,
11935 })
11936 }
11937 if err != nil {
11938 return nil, err
11939 }
11940 defer googleapi.CloseBody(res)
11941 if err := googleapi.CheckResponse(res); err != nil {
11942 return nil, gensupport.WrapError(err)
11943 }
11944 ret := &Transformation{
11945 ServerResponse: googleapi.ServerResponse{
11946 Header: res.Header,
11947 HTTPStatusCode: res.StatusCode,
11948 },
11949 }
11950 target := &ret
11951 if err := gensupport.DecodeResponse(target, res); err != nil {
11952 return nil, err
11953 }
11954 return ret, nil
11955 }
11956
11957 type AccountsContainersWorkspacesTransformationsListCall struct {
11958 s *Service
11959 parent string
11960 urlParams_ gensupport.URLParams
11961 ifNoneMatch_ string
11962 ctx_ context.Context
11963 header_ http.Header
11964 }
11965
11966
11967
11968
11969
11970 func (r *AccountsContainersWorkspacesTransformationsService) List(parent string) *AccountsContainersWorkspacesTransformationsListCall {
11971 c := &AccountsContainersWorkspacesTransformationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11972 c.parent = parent
11973 return c
11974 }
11975
11976
11977
11978 func (c *AccountsContainersWorkspacesTransformationsListCall) PageToken(pageToken string) *AccountsContainersWorkspacesTransformationsListCall {
11979 c.urlParams_.Set("pageToken", pageToken)
11980 return c
11981 }
11982
11983
11984
11985
11986 func (c *AccountsContainersWorkspacesTransformationsListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTransformationsListCall {
11987 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11988 return c
11989 }
11990
11991
11992
11993
11994 func (c *AccountsContainersWorkspacesTransformationsListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesTransformationsListCall {
11995 c.ifNoneMatch_ = entityTag
11996 return c
11997 }
11998
11999
12000 func (c *AccountsContainersWorkspacesTransformationsListCall) Context(ctx context.Context) *AccountsContainersWorkspacesTransformationsListCall {
12001 c.ctx_ = ctx
12002 return c
12003 }
12004
12005
12006
12007 func (c *AccountsContainersWorkspacesTransformationsListCall) Header() http.Header {
12008 if c.header_ == nil {
12009 c.header_ = make(http.Header)
12010 }
12011 return c.header_
12012 }
12013
12014 func (c *AccountsContainersWorkspacesTransformationsListCall) doRequest(alt string) (*http.Response, error) {
12015 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12016 if c.ifNoneMatch_ != "" {
12017 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12018 }
12019 var body io.Reader = nil
12020 c.urlParams_.Set("alt", alt)
12021 c.urlParams_.Set("prettyPrint", "false")
12022 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/transformations")
12023 urls += "?" + c.urlParams_.Encode()
12024 req, err := http.NewRequest("GET", urls, body)
12025 if err != nil {
12026 return nil, err
12027 }
12028 req.Header = reqHeaders
12029 googleapi.Expand(req.URL, map[string]string{
12030 "parent": c.parent,
12031 })
12032 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12033 }
12034
12035
12036
12037
12038
12039
12040
12041 func (c *AccountsContainersWorkspacesTransformationsListCall) Do(opts ...googleapi.CallOption) (*ListTransformationsResponse, error) {
12042 gensupport.SetOptions(c.urlParams_, opts...)
12043 res, err := c.doRequest("json")
12044 if res != nil && res.StatusCode == http.StatusNotModified {
12045 if res.Body != nil {
12046 res.Body.Close()
12047 }
12048 return nil, gensupport.WrapError(&googleapi.Error{
12049 Code: res.StatusCode,
12050 Header: res.Header,
12051 })
12052 }
12053 if err != nil {
12054 return nil, err
12055 }
12056 defer googleapi.CloseBody(res)
12057 if err := googleapi.CheckResponse(res); err != nil {
12058 return nil, gensupport.WrapError(err)
12059 }
12060 ret := &ListTransformationsResponse{
12061 ServerResponse: googleapi.ServerResponse{
12062 Header: res.Header,
12063 HTTPStatusCode: res.StatusCode,
12064 },
12065 }
12066 target := &ret
12067 if err := gensupport.DecodeResponse(target, res); err != nil {
12068 return nil, err
12069 }
12070 return ret, nil
12071 }
12072
12073
12074
12075
12076 func (c *AccountsContainersWorkspacesTransformationsListCall) Pages(ctx context.Context, f func(*ListTransformationsResponse) error) error {
12077 c.ctx_ = ctx
12078 defer c.PageToken(c.urlParams_.Get("pageToken"))
12079 for {
12080 x, err := c.Do()
12081 if err != nil {
12082 return err
12083 }
12084 if err := f(x); err != nil {
12085 return err
12086 }
12087 if x.NextPageToken == "" {
12088 return nil
12089 }
12090 c.PageToken(x.NextPageToken)
12091 }
12092 }
12093
12094 type AccountsContainersWorkspacesTransformationsRevertCall struct {
12095 s *Service
12096 path string
12097 urlParams_ gensupport.URLParams
12098 ctx_ context.Context
12099 header_ http.Header
12100 }
12101
12102
12103
12104
12105
12106
12107 func (r *AccountsContainersWorkspacesTransformationsService) Revert(path string) *AccountsContainersWorkspacesTransformationsRevertCall {
12108 c := &AccountsContainersWorkspacesTransformationsRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12109 c.path = path
12110 return c
12111 }
12112
12113
12114
12115 func (c *AccountsContainersWorkspacesTransformationsRevertCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesTransformationsRevertCall {
12116 c.urlParams_.Set("fingerprint", fingerprint)
12117 return c
12118 }
12119
12120
12121
12122
12123 func (c *AccountsContainersWorkspacesTransformationsRevertCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTransformationsRevertCall {
12124 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12125 return c
12126 }
12127
12128
12129 func (c *AccountsContainersWorkspacesTransformationsRevertCall) Context(ctx context.Context) *AccountsContainersWorkspacesTransformationsRevertCall {
12130 c.ctx_ = ctx
12131 return c
12132 }
12133
12134
12135
12136 func (c *AccountsContainersWorkspacesTransformationsRevertCall) Header() http.Header {
12137 if c.header_ == nil {
12138 c.header_ = make(http.Header)
12139 }
12140 return c.header_
12141 }
12142
12143 func (c *AccountsContainersWorkspacesTransformationsRevertCall) doRequest(alt string) (*http.Response, error) {
12144 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12145 var body io.Reader = nil
12146 c.urlParams_.Set("alt", alt)
12147 c.urlParams_.Set("prettyPrint", "false")
12148 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:revert")
12149 urls += "?" + c.urlParams_.Encode()
12150 req, err := http.NewRequest("POST", urls, body)
12151 if err != nil {
12152 return nil, err
12153 }
12154 req.Header = reqHeaders
12155 googleapi.Expand(req.URL, map[string]string{
12156 "path": c.path,
12157 })
12158 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12159 }
12160
12161
12162
12163
12164
12165
12166
12167 func (c *AccountsContainersWorkspacesTransformationsRevertCall) Do(opts ...googleapi.CallOption) (*RevertTransformationResponse, error) {
12168 gensupport.SetOptions(c.urlParams_, opts...)
12169 res, err := c.doRequest("json")
12170 if res != nil && res.StatusCode == http.StatusNotModified {
12171 if res.Body != nil {
12172 res.Body.Close()
12173 }
12174 return nil, gensupport.WrapError(&googleapi.Error{
12175 Code: res.StatusCode,
12176 Header: res.Header,
12177 })
12178 }
12179 if err != nil {
12180 return nil, err
12181 }
12182 defer googleapi.CloseBody(res)
12183 if err := googleapi.CheckResponse(res); err != nil {
12184 return nil, gensupport.WrapError(err)
12185 }
12186 ret := &RevertTransformationResponse{
12187 ServerResponse: googleapi.ServerResponse{
12188 Header: res.Header,
12189 HTTPStatusCode: res.StatusCode,
12190 },
12191 }
12192 target := &ret
12193 if err := gensupport.DecodeResponse(target, res); err != nil {
12194 return nil, err
12195 }
12196 return ret, nil
12197 }
12198
12199 type AccountsContainersWorkspacesTransformationsUpdateCall struct {
12200 s *Service
12201 path string
12202 transformation *Transformation
12203 urlParams_ gensupport.URLParams
12204 ctx_ context.Context
12205 header_ http.Header
12206 }
12207
12208
12209
12210
12211
12212
12213 func (r *AccountsContainersWorkspacesTransformationsService) Update(path string, transformation *Transformation) *AccountsContainersWorkspacesTransformationsUpdateCall {
12214 c := &AccountsContainersWorkspacesTransformationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12215 c.path = path
12216 c.transformation = transformation
12217 return c
12218 }
12219
12220
12221
12222 func (c *AccountsContainersWorkspacesTransformationsUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesTransformationsUpdateCall {
12223 c.urlParams_.Set("fingerprint", fingerprint)
12224 return c
12225 }
12226
12227
12228
12229
12230 func (c *AccountsContainersWorkspacesTransformationsUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTransformationsUpdateCall {
12231 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12232 return c
12233 }
12234
12235
12236 func (c *AccountsContainersWorkspacesTransformationsUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesTransformationsUpdateCall {
12237 c.ctx_ = ctx
12238 return c
12239 }
12240
12241
12242
12243 func (c *AccountsContainersWorkspacesTransformationsUpdateCall) Header() http.Header {
12244 if c.header_ == nil {
12245 c.header_ = make(http.Header)
12246 }
12247 return c.header_
12248 }
12249
12250 func (c *AccountsContainersWorkspacesTransformationsUpdateCall) doRequest(alt string) (*http.Response, error) {
12251 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12252 var body io.Reader = nil
12253 body, err := googleapi.WithoutDataWrapper.JSONReader(c.transformation)
12254 if err != nil {
12255 return nil, err
12256 }
12257 c.urlParams_.Set("alt", alt)
12258 c.urlParams_.Set("prettyPrint", "false")
12259 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
12260 urls += "?" + c.urlParams_.Encode()
12261 req, err := http.NewRequest("PUT", urls, body)
12262 if err != nil {
12263 return nil, err
12264 }
12265 req.Header = reqHeaders
12266 googleapi.Expand(req.URL, map[string]string{
12267 "path": c.path,
12268 })
12269 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12270 }
12271
12272
12273
12274
12275
12276
12277 func (c *AccountsContainersWorkspacesTransformationsUpdateCall) Do(opts ...googleapi.CallOption) (*Transformation, error) {
12278 gensupport.SetOptions(c.urlParams_, opts...)
12279 res, err := c.doRequest("json")
12280 if res != nil && res.StatusCode == http.StatusNotModified {
12281 if res.Body != nil {
12282 res.Body.Close()
12283 }
12284 return nil, gensupport.WrapError(&googleapi.Error{
12285 Code: res.StatusCode,
12286 Header: res.Header,
12287 })
12288 }
12289 if err != nil {
12290 return nil, err
12291 }
12292 defer googleapi.CloseBody(res)
12293 if err := googleapi.CheckResponse(res); err != nil {
12294 return nil, gensupport.WrapError(err)
12295 }
12296 ret := &Transformation{
12297 ServerResponse: googleapi.ServerResponse{
12298 Header: res.Header,
12299 HTTPStatusCode: res.StatusCode,
12300 },
12301 }
12302 target := &ret
12303 if err := gensupport.DecodeResponse(target, res); err != nil {
12304 return nil, err
12305 }
12306 return ret, nil
12307 }
12308
12309 type AccountsContainersWorkspacesTriggersCreateCall struct {
12310 s *Service
12311 parent string
12312 trigger *Trigger
12313 urlParams_ gensupport.URLParams
12314 ctx_ context.Context
12315 header_ http.Header
12316 }
12317
12318
12319
12320
12321
12322 func (r *AccountsContainersWorkspacesTriggersService) Create(parent string, trigger *Trigger) *AccountsContainersWorkspacesTriggersCreateCall {
12323 c := &AccountsContainersWorkspacesTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12324 c.parent = parent
12325 c.trigger = trigger
12326 return c
12327 }
12328
12329
12330
12331
12332 func (c *AccountsContainersWorkspacesTriggersCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTriggersCreateCall {
12333 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12334 return c
12335 }
12336
12337
12338 func (c *AccountsContainersWorkspacesTriggersCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesTriggersCreateCall {
12339 c.ctx_ = ctx
12340 return c
12341 }
12342
12343
12344
12345 func (c *AccountsContainersWorkspacesTriggersCreateCall) Header() http.Header {
12346 if c.header_ == nil {
12347 c.header_ = make(http.Header)
12348 }
12349 return c.header_
12350 }
12351
12352 func (c *AccountsContainersWorkspacesTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
12353 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12354 var body io.Reader = nil
12355 body, err := googleapi.WithoutDataWrapper.JSONReader(c.trigger)
12356 if err != nil {
12357 return nil, err
12358 }
12359 c.urlParams_.Set("alt", alt)
12360 c.urlParams_.Set("prettyPrint", "false")
12361 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/triggers")
12362 urls += "?" + c.urlParams_.Encode()
12363 req, err := http.NewRequest("POST", urls, body)
12364 if err != nil {
12365 return nil, err
12366 }
12367 req.Header = reqHeaders
12368 googleapi.Expand(req.URL, map[string]string{
12369 "parent": c.parent,
12370 })
12371 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12372 }
12373
12374
12375
12376
12377
12378
12379 func (c *AccountsContainersWorkspacesTriggersCreateCall) Do(opts ...googleapi.CallOption) (*Trigger, error) {
12380 gensupport.SetOptions(c.urlParams_, opts...)
12381 res, err := c.doRequest("json")
12382 if res != nil && res.StatusCode == http.StatusNotModified {
12383 if res.Body != nil {
12384 res.Body.Close()
12385 }
12386 return nil, gensupport.WrapError(&googleapi.Error{
12387 Code: res.StatusCode,
12388 Header: res.Header,
12389 })
12390 }
12391 if err != nil {
12392 return nil, err
12393 }
12394 defer googleapi.CloseBody(res)
12395 if err := googleapi.CheckResponse(res); err != nil {
12396 return nil, gensupport.WrapError(err)
12397 }
12398 ret := &Trigger{
12399 ServerResponse: googleapi.ServerResponse{
12400 Header: res.Header,
12401 HTTPStatusCode: res.StatusCode,
12402 },
12403 }
12404 target := &ret
12405 if err := gensupport.DecodeResponse(target, res); err != nil {
12406 return nil, err
12407 }
12408 return ret, nil
12409 }
12410
12411 type AccountsContainersWorkspacesTriggersDeleteCall struct {
12412 s *Service
12413 path string
12414 urlParams_ gensupport.URLParams
12415 ctx_ context.Context
12416 header_ http.Header
12417 }
12418
12419
12420
12421
12422
12423
12424 func (r *AccountsContainersWorkspacesTriggersService) Delete(path string) *AccountsContainersWorkspacesTriggersDeleteCall {
12425 c := &AccountsContainersWorkspacesTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12426 c.path = path
12427 return c
12428 }
12429
12430
12431
12432
12433 func (c *AccountsContainersWorkspacesTriggersDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTriggersDeleteCall {
12434 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12435 return c
12436 }
12437
12438
12439 func (c *AccountsContainersWorkspacesTriggersDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesTriggersDeleteCall {
12440 c.ctx_ = ctx
12441 return c
12442 }
12443
12444
12445
12446 func (c *AccountsContainersWorkspacesTriggersDeleteCall) Header() http.Header {
12447 if c.header_ == nil {
12448 c.header_ = make(http.Header)
12449 }
12450 return c.header_
12451 }
12452
12453 func (c *AccountsContainersWorkspacesTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
12454 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12455 var body io.Reader = nil
12456 c.urlParams_.Set("alt", alt)
12457 c.urlParams_.Set("prettyPrint", "false")
12458 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
12459 urls += "?" + c.urlParams_.Encode()
12460 req, err := http.NewRequest("DELETE", urls, body)
12461 if err != nil {
12462 return nil, err
12463 }
12464 req.Header = reqHeaders
12465 googleapi.Expand(req.URL, map[string]string{
12466 "path": c.path,
12467 })
12468 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12469 }
12470
12471
12472 func (c *AccountsContainersWorkspacesTriggersDeleteCall) Do(opts ...googleapi.CallOption) error {
12473 gensupport.SetOptions(c.urlParams_, opts...)
12474 res, err := c.doRequest("json")
12475 if err != nil {
12476 return err
12477 }
12478 defer googleapi.CloseBody(res)
12479 if err := googleapi.CheckResponse(res); err != nil {
12480 return gensupport.WrapError(err)
12481 }
12482 return nil
12483 }
12484
12485 type AccountsContainersWorkspacesTriggersGetCall struct {
12486 s *Service
12487 path string
12488 urlParams_ gensupport.URLParams
12489 ifNoneMatch_ string
12490 ctx_ context.Context
12491 header_ http.Header
12492 }
12493
12494
12495
12496
12497
12498
12499 func (r *AccountsContainersWorkspacesTriggersService) Get(path string) *AccountsContainersWorkspacesTriggersGetCall {
12500 c := &AccountsContainersWorkspacesTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12501 c.path = path
12502 return c
12503 }
12504
12505
12506
12507
12508 func (c *AccountsContainersWorkspacesTriggersGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTriggersGetCall {
12509 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12510 return c
12511 }
12512
12513
12514
12515
12516 func (c *AccountsContainersWorkspacesTriggersGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesTriggersGetCall {
12517 c.ifNoneMatch_ = entityTag
12518 return c
12519 }
12520
12521
12522 func (c *AccountsContainersWorkspacesTriggersGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesTriggersGetCall {
12523 c.ctx_ = ctx
12524 return c
12525 }
12526
12527
12528
12529 func (c *AccountsContainersWorkspacesTriggersGetCall) Header() http.Header {
12530 if c.header_ == nil {
12531 c.header_ = make(http.Header)
12532 }
12533 return c.header_
12534 }
12535
12536 func (c *AccountsContainersWorkspacesTriggersGetCall) doRequest(alt string) (*http.Response, error) {
12537 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12538 if c.ifNoneMatch_ != "" {
12539 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12540 }
12541 var body io.Reader = nil
12542 c.urlParams_.Set("alt", alt)
12543 c.urlParams_.Set("prettyPrint", "false")
12544 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
12545 urls += "?" + c.urlParams_.Encode()
12546 req, err := http.NewRequest("GET", urls, body)
12547 if err != nil {
12548 return nil, err
12549 }
12550 req.Header = reqHeaders
12551 googleapi.Expand(req.URL, map[string]string{
12552 "path": c.path,
12553 })
12554 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12555 }
12556
12557
12558
12559
12560
12561
12562 func (c *AccountsContainersWorkspacesTriggersGetCall) Do(opts ...googleapi.CallOption) (*Trigger, error) {
12563 gensupport.SetOptions(c.urlParams_, opts...)
12564 res, err := c.doRequest("json")
12565 if res != nil && res.StatusCode == http.StatusNotModified {
12566 if res.Body != nil {
12567 res.Body.Close()
12568 }
12569 return nil, gensupport.WrapError(&googleapi.Error{
12570 Code: res.StatusCode,
12571 Header: res.Header,
12572 })
12573 }
12574 if err != nil {
12575 return nil, err
12576 }
12577 defer googleapi.CloseBody(res)
12578 if err := googleapi.CheckResponse(res); err != nil {
12579 return nil, gensupport.WrapError(err)
12580 }
12581 ret := &Trigger{
12582 ServerResponse: googleapi.ServerResponse{
12583 Header: res.Header,
12584 HTTPStatusCode: res.StatusCode,
12585 },
12586 }
12587 target := &ret
12588 if err := gensupport.DecodeResponse(target, res); err != nil {
12589 return nil, err
12590 }
12591 return ret, nil
12592 }
12593
12594 type AccountsContainersWorkspacesTriggersListCall struct {
12595 s *Service
12596 parent string
12597 urlParams_ gensupport.URLParams
12598 ifNoneMatch_ string
12599 ctx_ context.Context
12600 header_ http.Header
12601 }
12602
12603
12604
12605
12606
12607 func (r *AccountsContainersWorkspacesTriggersService) List(parent string) *AccountsContainersWorkspacesTriggersListCall {
12608 c := &AccountsContainersWorkspacesTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12609 c.parent = parent
12610 return c
12611 }
12612
12613
12614
12615 func (c *AccountsContainersWorkspacesTriggersListCall) PageToken(pageToken string) *AccountsContainersWorkspacesTriggersListCall {
12616 c.urlParams_.Set("pageToken", pageToken)
12617 return c
12618 }
12619
12620
12621
12622
12623 func (c *AccountsContainersWorkspacesTriggersListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTriggersListCall {
12624 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12625 return c
12626 }
12627
12628
12629
12630
12631 func (c *AccountsContainersWorkspacesTriggersListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesTriggersListCall {
12632 c.ifNoneMatch_ = entityTag
12633 return c
12634 }
12635
12636
12637 func (c *AccountsContainersWorkspacesTriggersListCall) Context(ctx context.Context) *AccountsContainersWorkspacesTriggersListCall {
12638 c.ctx_ = ctx
12639 return c
12640 }
12641
12642
12643
12644 func (c *AccountsContainersWorkspacesTriggersListCall) Header() http.Header {
12645 if c.header_ == nil {
12646 c.header_ = make(http.Header)
12647 }
12648 return c.header_
12649 }
12650
12651 func (c *AccountsContainersWorkspacesTriggersListCall) doRequest(alt string) (*http.Response, error) {
12652 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12653 if c.ifNoneMatch_ != "" {
12654 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12655 }
12656 var body io.Reader = nil
12657 c.urlParams_.Set("alt", alt)
12658 c.urlParams_.Set("prettyPrint", "false")
12659 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/triggers")
12660 urls += "?" + c.urlParams_.Encode()
12661 req, err := http.NewRequest("GET", urls, body)
12662 if err != nil {
12663 return nil, err
12664 }
12665 req.Header = reqHeaders
12666 googleapi.Expand(req.URL, map[string]string{
12667 "parent": c.parent,
12668 })
12669 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12670 }
12671
12672
12673
12674
12675
12676
12677
12678 func (c *AccountsContainersWorkspacesTriggersListCall) Do(opts ...googleapi.CallOption) (*ListTriggersResponse, error) {
12679 gensupport.SetOptions(c.urlParams_, opts...)
12680 res, err := c.doRequest("json")
12681 if res != nil && res.StatusCode == http.StatusNotModified {
12682 if res.Body != nil {
12683 res.Body.Close()
12684 }
12685 return nil, gensupport.WrapError(&googleapi.Error{
12686 Code: res.StatusCode,
12687 Header: res.Header,
12688 })
12689 }
12690 if err != nil {
12691 return nil, err
12692 }
12693 defer googleapi.CloseBody(res)
12694 if err := googleapi.CheckResponse(res); err != nil {
12695 return nil, gensupport.WrapError(err)
12696 }
12697 ret := &ListTriggersResponse{
12698 ServerResponse: googleapi.ServerResponse{
12699 Header: res.Header,
12700 HTTPStatusCode: res.StatusCode,
12701 },
12702 }
12703 target := &ret
12704 if err := gensupport.DecodeResponse(target, res); err != nil {
12705 return nil, err
12706 }
12707 return ret, nil
12708 }
12709
12710
12711
12712
12713 func (c *AccountsContainersWorkspacesTriggersListCall) Pages(ctx context.Context, f func(*ListTriggersResponse) error) error {
12714 c.ctx_ = ctx
12715 defer c.PageToken(c.urlParams_.Get("pageToken"))
12716 for {
12717 x, err := c.Do()
12718 if err != nil {
12719 return err
12720 }
12721 if err := f(x); err != nil {
12722 return err
12723 }
12724 if x.NextPageToken == "" {
12725 return nil
12726 }
12727 c.PageToken(x.NextPageToken)
12728 }
12729 }
12730
12731 type AccountsContainersWorkspacesTriggersRevertCall struct {
12732 s *Service
12733 path string
12734 urlParams_ gensupport.URLParams
12735 ctx_ context.Context
12736 header_ http.Header
12737 }
12738
12739
12740
12741
12742
12743
12744 func (r *AccountsContainersWorkspacesTriggersService) Revert(path string) *AccountsContainersWorkspacesTriggersRevertCall {
12745 c := &AccountsContainersWorkspacesTriggersRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12746 c.path = path
12747 return c
12748 }
12749
12750
12751
12752 func (c *AccountsContainersWorkspacesTriggersRevertCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesTriggersRevertCall {
12753 c.urlParams_.Set("fingerprint", fingerprint)
12754 return c
12755 }
12756
12757
12758
12759
12760 func (c *AccountsContainersWorkspacesTriggersRevertCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTriggersRevertCall {
12761 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12762 return c
12763 }
12764
12765
12766 func (c *AccountsContainersWorkspacesTriggersRevertCall) Context(ctx context.Context) *AccountsContainersWorkspacesTriggersRevertCall {
12767 c.ctx_ = ctx
12768 return c
12769 }
12770
12771
12772
12773 func (c *AccountsContainersWorkspacesTriggersRevertCall) Header() http.Header {
12774 if c.header_ == nil {
12775 c.header_ = make(http.Header)
12776 }
12777 return c.header_
12778 }
12779
12780 func (c *AccountsContainersWorkspacesTriggersRevertCall) doRequest(alt string) (*http.Response, error) {
12781 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12782 var body io.Reader = nil
12783 c.urlParams_.Set("alt", alt)
12784 c.urlParams_.Set("prettyPrint", "false")
12785 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:revert")
12786 urls += "?" + c.urlParams_.Encode()
12787 req, err := http.NewRequest("POST", urls, body)
12788 if err != nil {
12789 return nil, err
12790 }
12791 req.Header = reqHeaders
12792 googleapi.Expand(req.URL, map[string]string{
12793 "path": c.path,
12794 })
12795 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12796 }
12797
12798
12799
12800
12801
12802
12803
12804 func (c *AccountsContainersWorkspacesTriggersRevertCall) Do(opts ...googleapi.CallOption) (*RevertTriggerResponse, error) {
12805 gensupport.SetOptions(c.urlParams_, opts...)
12806 res, err := c.doRequest("json")
12807 if res != nil && res.StatusCode == http.StatusNotModified {
12808 if res.Body != nil {
12809 res.Body.Close()
12810 }
12811 return nil, gensupport.WrapError(&googleapi.Error{
12812 Code: res.StatusCode,
12813 Header: res.Header,
12814 })
12815 }
12816 if err != nil {
12817 return nil, err
12818 }
12819 defer googleapi.CloseBody(res)
12820 if err := googleapi.CheckResponse(res); err != nil {
12821 return nil, gensupport.WrapError(err)
12822 }
12823 ret := &RevertTriggerResponse{
12824 ServerResponse: googleapi.ServerResponse{
12825 Header: res.Header,
12826 HTTPStatusCode: res.StatusCode,
12827 },
12828 }
12829 target := &ret
12830 if err := gensupport.DecodeResponse(target, res); err != nil {
12831 return nil, err
12832 }
12833 return ret, nil
12834 }
12835
12836 type AccountsContainersWorkspacesTriggersUpdateCall struct {
12837 s *Service
12838 path string
12839 trigger *Trigger
12840 urlParams_ gensupport.URLParams
12841 ctx_ context.Context
12842 header_ http.Header
12843 }
12844
12845
12846
12847
12848
12849
12850 func (r *AccountsContainersWorkspacesTriggersService) Update(path string, trigger *Trigger) *AccountsContainersWorkspacesTriggersUpdateCall {
12851 c := &AccountsContainersWorkspacesTriggersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12852 c.path = path
12853 c.trigger = trigger
12854 return c
12855 }
12856
12857
12858
12859 func (c *AccountsContainersWorkspacesTriggersUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesTriggersUpdateCall {
12860 c.urlParams_.Set("fingerprint", fingerprint)
12861 return c
12862 }
12863
12864
12865
12866
12867 func (c *AccountsContainersWorkspacesTriggersUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesTriggersUpdateCall {
12868 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12869 return c
12870 }
12871
12872
12873 func (c *AccountsContainersWorkspacesTriggersUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesTriggersUpdateCall {
12874 c.ctx_ = ctx
12875 return c
12876 }
12877
12878
12879
12880 func (c *AccountsContainersWorkspacesTriggersUpdateCall) Header() http.Header {
12881 if c.header_ == nil {
12882 c.header_ = make(http.Header)
12883 }
12884 return c.header_
12885 }
12886
12887 func (c *AccountsContainersWorkspacesTriggersUpdateCall) doRequest(alt string) (*http.Response, error) {
12888 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12889 var body io.Reader = nil
12890 body, err := googleapi.WithoutDataWrapper.JSONReader(c.trigger)
12891 if err != nil {
12892 return nil, err
12893 }
12894 c.urlParams_.Set("alt", alt)
12895 c.urlParams_.Set("prettyPrint", "false")
12896 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
12897 urls += "?" + c.urlParams_.Encode()
12898 req, err := http.NewRequest("PUT", urls, body)
12899 if err != nil {
12900 return nil, err
12901 }
12902 req.Header = reqHeaders
12903 googleapi.Expand(req.URL, map[string]string{
12904 "path": c.path,
12905 })
12906 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12907 }
12908
12909
12910
12911
12912
12913
12914 func (c *AccountsContainersWorkspacesTriggersUpdateCall) Do(opts ...googleapi.CallOption) (*Trigger, error) {
12915 gensupport.SetOptions(c.urlParams_, opts...)
12916 res, err := c.doRequest("json")
12917 if res != nil && res.StatusCode == http.StatusNotModified {
12918 if res.Body != nil {
12919 res.Body.Close()
12920 }
12921 return nil, gensupport.WrapError(&googleapi.Error{
12922 Code: res.StatusCode,
12923 Header: res.Header,
12924 })
12925 }
12926 if err != nil {
12927 return nil, err
12928 }
12929 defer googleapi.CloseBody(res)
12930 if err := googleapi.CheckResponse(res); err != nil {
12931 return nil, gensupport.WrapError(err)
12932 }
12933 ret := &Trigger{
12934 ServerResponse: googleapi.ServerResponse{
12935 Header: res.Header,
12936 HTTPStatusCode: res.StatusCode,
12937 },
12938 }
12939 target := &ret
12940 if err := gensupport.DecodeResponse(target, res); err != nil {
12941 return nil, err
12942 }
12943 return ret, nil
12944 }
12945
12946 type AccountsContainersWorkspacesVariablesCreateCall struct {
12947 s *Service
12948 parent string
12949 variable *Variable
12950 urlParams_ gensupport.URLParams
12951 ctx_ context.Context
12952 header_ http.Header
12953 }
12954
12955
12956
12957
12958
12959 func (r *AccountsContainersWorkspacesVariablesService) Create(parent string, variable *Variable) *AccountsContainersWorkspacesVariablesCreateCall {
12960 c := &AccountsContainersWorkspacesVariablesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12961 c.parent = parent
12962 c.variable = variable
12963 return c
12964 }
12965
12966
12967
12968
12969 func (c *AccountsContainersWorkspacesVariablesCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesVariablesCreateCall {
12970 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12971 return c
12972 }
12973
12974
12975 func (c *AccountsContainersWorkspacesVariablesCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesVariablesCreateCall {
12976 c.ctx_ = ctx
12977 return c
12978 }
12979
12980
12981
12982 func (c *AccountsContainersWorkspacesVariablesCreateCall) Header() http.Header {
12983 if c.header_ == nil {
12984 c.header_ = make(http.Header)
12985 }
12986 return c.header_
12987 }
12988
12989 func (c *AccountsContainersWorkspacesVariablesCreateCall) doRequest(alt string) (*http.Response, error) {
12990 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12991 var body io.Reader = nil
12992 body, err := googleapi.WithoutDataWrapper.JSONReader(c.variable)
12993 if err != nil {
12994 return nil, err
12995 }
12996 c.urlParams_.Set("alt", alt)
12997 c.urlParams_.Set("prettyPrint", "false")
12998 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/variables")
12999 urls += "?" + c.urlParams_.Encode()
13000 req, err := http.NewRequest("POST", urls, body)
13001 if err != nil {
13002 return nil, err
13003 }
13004 req.Header = reqHeaders
13005 googleapi.Expand(req.URL, map[string]string{
13006 "parent": c.parent,
13007 })
13008 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13009 }
13010
13011
13012
13013
13014
13015
13016 func (c *AccountsContainersWorkspacesVariablesCreateCall) Do(opts ...googleapi.CallOption) (*Variable, error) {
13017 gensupport.SetOptions(c.urlParams_, opts...)
13018 res, err := c.doRequest("json")
13019 if res != nil && res.StatusCode == http.StatusNotModified {
13020 if res.Body != nil {
13021 res.Body.Close()
13022 }
13023 return nil, gensupport.WrapError(&googleapi.Error{
13024 Code: res.StatusCode,
13025 Header: res.Header,
13026 })
13027 }
13028 if err != nil {
13029 return nil, err
13030 }
13031 defer googleapi.CloseBody(res)
13032 if err := googleapi.CheckResponse(res); err != nil {
13033 return nil, gensupport.WrapError(err)
13034 }
13035 ret := &Variable{
13036 ServerResponse: googleapi.ServerResponse{
13037 Header: res.Header,
13038 HTTPStatusCode: res.StatusCode,
13039 },
13040 }
13041 target := &ret
13042 if err := gensupport.DecodeResponse(target, res); err != nil {
13043 return nil, err
13044 }
13045 return ret, nil
13046 }
13047
13048 type AccountsContainersWorkspacesVariablesDeleteCall struct {
13049 s *Service
13050 path string
13051 urlParams_ gensupport.URLParams
13052 ctx_ context.Context
13053 header_ http.Header
13054 }
13055
13056
13057
13058
13059
13060
13061 func (r *AccountsContainersWorkspacesVariablesService) Delete(path string) *AccountsContainersWorkspacesVariablesDeleteCall {
13062 c := &AccountsContainersWorkspacesVariablesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13063 c.path = path
13064 return c
13065 }
13066
13067
13068
13069
13070 func (c *AccountsContainersWorkspacesVariablesDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesVariablesDeleteCall {
13071 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13072 return c
13073 }
13074
13075
13076 func (c *AccountsContainersWorkspacesVariablesDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesVariablesDeleteCall {
13077 c.ctx_ = ctx
13078 return c
13079 }
13080
13081
13082
13083 func (c *AccountsContainersWorkspacesVariablesDeleteCall) Header() http.Header {
13084 if c.header_ == nil {
13085 c.header_ = make(http.Header)
13086 }
13087 return c.header_
13088 }
13089
13090 func (c *AccountsContainersWorkspacesVariablesDeleteCall) doRequest(alt string) (*http.Response, error) {
13091 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13092 var body io.Reader = nil
13093 c.urlParams_.Set("alt", alt)
13094 c.urlParams_.Set("prettyPrint", "false")
13095 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
13096 urls += "?" + c.urlParams_.Encode()
13097 req, err := http.NewRequest("DELETE", urls, body)
13098 if err != nil {
13099 return nil, err
13100 }
13101 req.Header = reqHeaders
13102 googleapi.Expand(req.URL, map[string]string{
13103 "path": c.path,
13104 })
13105 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13106 }
13107
13108
13109 func (c *AccountsContainersWorkspacesVariablesDeleteCall) Do(opts ...googleapi.CallOption) error {
13110 gensupport.SetOptions(c.urlParams_, opts...)
13111 res, err := c.doRequest("json")
13112 if err != nil {
13113 return err
13114 }
13115 defer googleapi.CloseBody(res)
13116 if err := googleapi.CheckResponse(res); err != nil {
13117 return gensupport.WrapError(err)
13118 }
13119 return nil
13120 }
13121
13122 type AccountsContainersWorkspacesVariablesGetCall struct {
13123 s *Service
13124 path string
13125 urlParams_ gensupport.URLParams
13126 ifNoneMatch_ string
13127 ctx_ context.Context
13128 header_ http.Header
13129 }
13130
13131
13132
13133
13134
13135
13136 func (r *AccountsContainersWorkspacesVariablesService) Get(path string) *AccountsContainersWorkspacesVariablesGetCall {
13137 c := &AccountsContainersWorkspacesVariablesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13138 c.path = path
13139 return c
13140 }
13141
13142
13143
13144
13145 func (c *AccountsContainersWorkspacesVariablesGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesVariablesGetCall {
13146 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13147 return c
13148 }
13149
13150
13151
13152
13153 func (c *AccountsContainersWorkspacesVariablesGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesVariablesGetCall {
13154 c.ifNoneMatch_ = entityTag
13155 return c
13156 }
13157
13158
13159 func (c *AccountsContainersWorkspacesVariablesGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesVariablesGetCall {
13160 c.ctx_ = ctx
13161 return c
13162 }
13163
13164
13165
13166 func (c *AccountsContainersWorkspacesVariablesGetCall) Header() http.Header {
13167 if c.header_ == nil {
13168 c.header_ = make(http.Header)
13169 }
13170 return c.header_
13171 }
13172
13173 func (c *AccountsContainersWorkspacesVariablesGetCall) doRequest(alt string) (*http.Response, error) {
13174 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13175 if c.ifNoneMatch_ != "" {
13176 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13177 }
13178 var body io.Reader = nil
13179 c.urlParams_.Set("alt", alt)
13180 c.urlParams_.Set("prettyPrint", "false")
13181 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
13182 urls += "?" + c.urlParams_.Encode()
13183 req, err := http.NewRequest("GET", urls, body)
13184 if err != nil {
13185 return nil, err
13186 }
13187 req.Header = reqHeaders
13188 googleapi.Expand(req.URL, map[string]string{
13189 "path": c.path,
13190 })
13191 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13192 }
13193
13194
13195
13196
13197
13198
13199 func (c *AccountsContainersWorkspacesVariablesGetCall) Do(opts ...googleapi.CallOption) (*Variable, error) {
13200 gensupport.SetOptions(c.urlParams_, opts...)
13201 res, err := c.doRequest("json")
13202 if res != nil && res.StatusCode == http.StatusNotModified {
13203 if res.Body != nil {
13204 res.Body.Close()
13205 }
13206 return nil, gensupport.WrapError(&googleapi.Error{
13207 Code: res.StatusCode,
13208 Header: res.Header,
13209 })
13210 }
13211 if err != nil {
13212 return nil, err
13213 }
13214 defer googleapi.CloseBody(res)
13215 if err := googleapi.CheckResponse(res); err != nil {
13216 return nil, gensupport.WrapError(err)
13217 }
13218 ret := &Variable{
13219 ServerResponse: googleapi.ServerResponse{
13220 Header: res.Header,
13221 HTTPStatusCode: res.StatusCode,
13222 },
13223 }
13224 target := &ret
13225 if err := gensupport.DecodeResponse(target, res); err != nil {
13226 return nil, err
13227 }
13228 return ret, nil
13229 }
13230
13231 type AccountsContainersWorkspacesVariablesListCall struct {
13232 s *Service
13233 parent string
13234 urlParams_ gensupport.URLParams
13235 ifNoneMatch_ string
13236 ctx_ context.Context
13237 header_ http.Header
13238 }
13239
13240
13241
13242
13243
13244 func (r *AccountsContainersWorkspacesVariablesService) List(parent string) *AccountsContainersWorkspacesVariablesListCall {
13245 c := &AccountsContainersWorkspacesVariablesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13246 c.parent = parent
13247 return c
13248 }
13249
13250
13251
13252 func (c *AccountsContainersWorkspacesVariablesListCall) PageToken(pageToken string) *AccountsContainersWorkspacesVariablesListCall {
13253 c.urlParams_.Set("pageToken", pageToken)
13254 return c
13255 }
13256
13257
13258
13259
13260 func (c *AccountsContainersWorkspacesVariablesListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesVariablesListCall {
13261 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13262 return c
13263 }
13264
13265
13266
13267
13268 func (c *AccountsContainersWorkspacesVariablesListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesVariablesListCall {
13269 c.ifNoneMatch_ = entityTag
13270 return c
13271 }
13272
13273
13274 func (c *AccountsContainersWorkspacesVariablesListCall) Context(ctx context.Context) *AccountsContainersWorkspacesVariablesListCall {
13275 c.ctx_ = ctx
13276 return c
13277 }
13278
13279
13280
13281 func (c *AccountsContainersWorkspacesVariablesListCall) Header() http.Header {
13282 if c.header_ == nil {
13283 c.header_ = make(http.Header)
13284 }
13285 return c.header_
13286 }
13287
13288 func (c *AccountsContainersWorkspacesVariablesListCall) doRequest(alt string) (*http.Response, error) {
13289 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13290 if c.ifNoneMatch_ != "" {
13291 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13292 }
13293 var body io.Reader = nil
13294 c.urlParams_.Set("alt", alt)
13295 c.urlParams_.Set("prettyPrint", "false")
13296 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/variables")
13297 urls += "?" + c.urlParams_.Encode()
13298 req, err := http.NewRequest("GET", urls, body)
13299 if err != nil {
13300 return nil, err
13301 }
13302 req.Header = reqHeaders
13303 googleapi.Expand(req.URL, map[string]string{
13304 "parent": c.parent,
13305 })
13306 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13307 }
13308
13309
13310
13311
13312
13313
13314
13315 func (c *AccountsContainersWorkspacesVariablesListCall) Do(opts ...googleapi.CallOption) (*ListVariablesResponse, error) {
13316 gensupport.SetOptions(c.urlParams_, opts...)
13317 res, err := c.doRequest("json")
13318 if res != nil && res.StatusCode == http.StatusNotModified {
13319 if res.Body != nil {
13320 res.Body.Close()
13321 }
13322 return nil, gensupport.WrapError(&googleapi.Error{
13323 Code: res.StatusCode,
13324 Header: res.Header,
13325 })
13326 }
13327 if err != nil {
13328 return nil, err
13329 }
13330 defer googleapi.CloseBody(res)
13331 if err := googleapi.CheckResponse(res); err != nil {
13332 return nil, gensupport.WrapError(err)
13333 }
13334 ret := &ListVariablesResponse{
13335 ServerResponse: googleapi.ServerResponse{
13336 Header: res.Header,
13337 HTTPStatusCode: res.StatusCode,
13338 },
13339 }
13340 target := &ret
13341 if err := gensupport.DecodeResponse(target, res); err != nil {
13342 return nil, err
13343 }
13344 return ret, nil
13345 }
13346
13347
13348
13349
13350 func (c *AccountsContainersWorkspacesVariablesListCall) Pages(ctx context.Context, f func(*ListVariablesResponse) error) error {
13351 c.ctx_ = ctx
13352 defer c.PageToken(c.urlParams_.Get("pageToken"))
13353 for {
13354 x, err := c.Do()
13355 if err != nil {
13356 return err
13357 }
13358 if err := f(x); err != nil {
13359 return err
13360 }
13361 if x.NextPageToken == "" {
13362 return nil
13363 }
13364 c.PageToken(x.NextPageToken)
13365 }
13366 }
13367
13368 type AccountsContainersWorkspacesVariablesRevertCall struct {
13369 s *Service
13370 path string
13371 urlParams_ gensupport.URLParams
13372 ctx_ context.Context
13373 header_ http.Header
13374 }
13375
13376
13377
13378
13379
13380
13381 func (r *AccountsContainersWorkspacesVariablesService) Revert(path string) *AccountsContainersWorkspacesVariablesRevertCall {
13382 c := &AccountsContainersWorkspacesVariablesRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13383 c.path = path
13384 return c
13385 }
13386
13387
13388
13389 func (c *AccountsContainersWorkspacesVariablesRevertCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesVariablesRevertCall {
13390 c.urlParams_.Set("fingerprint", fingerprint)
13391 return c
13392 }
13393
13394
13395
13396
13397 func (c *AccountsContainersWorkspacesVariablesRevertCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesVariablesRevertCall {
13398 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13399 return c
13400 }
13401
13402
13403 func (c *AccountsContainersWorkspacesVariablesRevertCall) Context(ctx context.Context) *AccountsContainersWorkspacesVariablesRevertCall {
13404 c.ctx_ = ctx
13405 return c
13406 }
13407
13408
13409
13410 func (c *AccountsContainersWorkspacesVariablesRevertCall) Header() http.Header {
13411 if c.header_ == nil {
13412 c.header_ = make(http.Header)
13413 }
13414 return c.header_
13415 }
13416
13417 func (c *AccountsContainersWorkspacesVariablesRevertCall) doRequest(alt string) (*http.Response, error) {
13418 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13419 var body io.Reader = nil
13420 c.urlParams_.Set("alt", alt)
13421 c.urlParams_.Set("prettyPrint", "false")
13422 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:revert")
13423 urls += "?" + c.urlParams_.Encode()
13424 req, err := http.NewRequest("POST", urls, body)
13425 if err != nil {
13426 return nil, err
13427 }
13428 req.Header = reqHeaders
13429 googleapi.Expand(req.URL, map[string]string{
13430 "path": c.path,
13431 })
13432 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13433 }
13434
13435
13436
13437
13438
13439
13440
13441 func (c *AccountsContainersWorkspacesVariablesRevertCall) Do(opts ...googleapi.CallOption) (*RevertVariableResponse, error) {
13442 gensupport.SetOptions(c.urlParams_, opts...)
13443 res, err := c.doRequest("json")
13444 if res != nil && res.StatusCode == http.StatusNotModified {
13445 if res.Body != nil {
13446 res.Body.Close()
13447 }
13448 return nil, gensupport.WrapError(&googleapi.Error{
13449 Code: res.StatusCode,
13450 Header: res.Header,
13451 })
13452 }
13453 if err != nil {
13454 return nil, err
13455 }
13456 defer googleapi.CloseBody(res)
13457 if err := googleapi.CheckResponse(res); err != nil {
13458 return nil, gensupport.WrapError(err)
13459 }
13460 ret := &RevertVariableResponse{
13461 ServerResponse: googleapi.ServerResponse{
13462 Header: res.Header,
13463 HTTPStatusCode: res.StatusCode,
13464 },
13465 }
13466 target := &ret
13467 if err := gensupport.DecodeResponse(target, res); err != nil {
13468 return nil, err
13469 }
13470 return ret, nil
13471 }
13472
13473 type AccountsContainersWorkspacesVariablesUpdateCall struct {
13474 s *Service
13475 path string
13476 variable *Variable
13477 urlParams_ gensupport.URLParams
13478 ctx_ context.Context
13479 header_ http.Header
13480 }
13481
13482
13483
13484
13485
13486
13487 func (r *AccountsContainersWorkspacesVariablesService) Update(path string, variable *Variable) *AccountsContainersWorkspacesVariablesUpdateCall {
13488 c := &AccountsContainersWorkspacesVariablesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13489 c.path = path
13490 c.variable = variable
13491 return c
13492 }
13493
13494
13495
13496 func (c *AccountsContainersWorkspacesVariablesUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesVariablesUpdateCall {
13497 c.urlParams_.Set("fingerprint", fingerprint)
13498 return c
13499 }
13500
13501
13502
13503
13504 func (c *AccountsContainersWorkspacesVariablesUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesVariablesUpdateCall {
13505 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13506 return c
13507 }
13508
13509
13510 func (c *AccountsContainersWorkspacesVariablesUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesVariablesUpdateCall {
13511 c.ctx_ = ctx
13512 return c
13513 }
13514
13515
13516
13517 func (c *AccountsContainersWorkspacesVariablesUpdateCall) Header() http.Header {
13518 if c.header_ == nil {
13519 c.header_ = make(http.Header)
13520 }
13521 return c.header_
13522 }
13523
13524 func (c *AccountsContainersWorkspacesVariablesUpdateCall) doRequest(alt string) (*http.Response, error) {
13525 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13526 var body io.Reader = nil
13527 body, err := googleapi.WithoutDataWrapper.JSONReader(c.variable)
13528 if err != nil {
13529 return nil, err
13530 }
13531 c.urlParams_.Set("alt", alt)
13532 c.urlParams_.Set("prettyPrint", "false")
13533 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
13534 urls += "?" + c.urlParams_.Encode()
13535 req, err := http.NewRequest("PUT", urls, body)
13536 if err != nil {
13537 return nil, err
13538 }
13539 req.Header = reqHeaders
13540 googleapi.Expand(req.URL, map[string]string{
13541 "path": c.path,
13542 })
13543 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13544 }
13545
13546
13547
13548
13549
13550
13551 func (c *AccountsContainersWorkspacesVariablesUpdateCall) Do(opts ...googleapi.CallOption) (*Variable, error) {
13552 gensupport.SetOptions(c.urlParams_, opts...)
13553 res, err := c.doRequest("json")
13554 if res != nil && res.StatusCode == http.StatusNotModified {
13555 if res.Body != nil {
13556 res.Body.Close()
13557 }
13558 return nil, gensupport.WrapError(&googleapi.Error{
13559 Code: res.StatusCode,
13560 Header: res.Header,
13561 })
13562 }
13563 if err != nil {
13564 return nil, err
13565 }
13566 defer googleapi.CloseBody(res)
13567 if err := googleapi.CheckResponse(res); err != nil {
13568 return nil, gensupport.WrapError(err)
13569 }
13570 ret := &Variable{
13571 ServerResponse: googleapi.ServerResponse{
13572 Header: res.Header,
13573 HTTPStatusCode: res.StatusCode,
13574 },
13575 }
13576 target := &ret
13577 if err := gensupport.DecodeResponse(target, res); err != nil {
13578 return nil, err
13579 }
13580 return ret, nil
13581 }
13582
13583 type AccountsContainersWorkspacesZonesCreateCall struct {
13584 s *Service
13585 parent string
13586 zone *Zone
13587 urlParams_ gensupport.URLParams
13588 ctx_ context.Context
13589 header_ http.Header
13590 }
13591
13592
13593
13594
13595
13596 func (r *AccountsContainersWorkspacesZonesService) Create(parent string, zone *Zone) *AccountsContainersWorkspacesZonesCreateCall {
13597 c := &AccountsContainersWorkspacesZonesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13598 c.parent = parent
13599 c.zone = zone
13600 return c
13601 }
13602
13603
13604
13605
13606 func (c *AccountsContainersWorkspacesZonesCreateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesZonesCreateCall {
13607 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13608 return c
13609 }
13610
13611
13612 func (c *AccountsContainersWorkspacesZonesCreateCall) Context(ctx context.Context) *AccountsContainersWorkspacesZonesCreateCall {
13613 c.ctx_ = ctx
13614 return c
13615 }
13616
13617
13618
13619 func (c *AccountsContainersWorkspacesZonesCreateCall) Header() http.Header {
13620 if c.header_ == nil {
13621 c.header_ = make(http.Header)
13622 }
13623 return c.header_
13624 }
13625
13626 func (c *AccountsContainersWorkspacesZonesCreateCall) doRequest(alt string) (*http.Response, error) {
13627 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13628 var body io.Reader = nil
13629 body, err := googleapi.WithoutDataWrapper.JSONReader(c.zone)
13630 if err != nil {
13631 return nil, err
13632 }
13633 c.urlParams_.Set("alt", alt)
13634 c.urlParams_.Set("prettyPrint", "false")
13635 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/zones")
13636 urls += "?" + c.urlParams_.Encode()
13637 req, err := http.NewRequest("POST", urls, body)
13638 if err != nil {
13639 return nil, err
13640 }
13641 req.Header = reqHeaders
13642 googleapi.Expand(req.URL, map[string]string{
13643 "parent": c.parent,
13644 })
13645 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13646 }
13647
13648
13649
13650
13651
13652
13653 func (c *AccountsContainersWorkspacesZonesCreateCall) Do(opts ...googleapi.CallOption) (*Zone, error) {
13654 gensupport.SetOptions(c.urlParams_, opts...)
13655 res, err := c.doRequest("json")
13656 if res != nil && res.StatusCode == http.StatusNotModified {
13657 if res.Body != nil {
13658 res.Body.Close()
13659 }
13660 return nil, gensupport.WrapError(&googleapi.Error{
13661 Code: res.StatusCode,
13662 Header: res.Header,
13663 })
13664 }
13665 if err != nil {
13666 return nil, err
13667 }
13668 defer googleapi.CloseBody(res)
13669 if err := googleapi.CheckResponse(res); err != nil {
13670 return nil, gensupport.WrapError(err)
13671 }
13672 ret := &Zone{
13673 ServerResponse: googleapi.ServerResponse{
13674 Header: res.Header,
13675 HTTPStatusCode: res.StatusCode,
13676 },
13677 }
13678 target := &ret
13679 if err := gensupport.DecodeResponse(target, res); err != nil {
13680 return nil, err
13681 }
13682 return ret, nil
13683 }
13684
13685 type AccountsContainersWorkspacesZonesDeleteCall struct {
13686 s *Service
13687 path string
13688 urlParams_ gensupport.URLParams
13689 ctx_ context.Context
13690 header_ http.Header
13691 }
13692
13693
13694
13695
13696
13697
13698 func (r *AccountsContainersWorkspacesZonesService) Delete(path string) *AccountsContainersWorkspacesZonesDeleteCall {
13699 c := &AccountsContainersWorkspacesZonesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13700 c.path = path
13701 return c
13702 }
13703
13704
13705
13706
13707 func (c *AccountsContainersWorkspacesZonesDeleteCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesZonesDeleteCall {
13708 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13709 return c
13710 }
13711
13712
13713 func (c *AccountsContainersWorkspacesZonesDeleteCall) Context(ctx context.Context) *AccountsContainersWorkspacesZonesDeleteCall {
13714 c.ctx_ = ctx
13715 return c
13716 }
13717
13718
13719
13720 func (c *AccountsContainersWorkspacesZonesDeleteCall) Header() http.Header {
13721 if c.header_ == nil {
13722 c.header_ = make(http.Header)
13723 }
13724 return c.header_
13725 }
13726
13727 func (c *AccountsContainersWorkspacesZonesDeleteCall) doRequest(alt string) (*http.Response, error) {
13728 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13729 var body io.Reader = nil
13730 c.urlParams_.Set("alt", alt)
13731 c.urlParams_.Set("prettyPrint", "false")
13732 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
13733 urls += "?" + c.urlParams_.Encode()
13734 req, err := http.NewRequest("DELETE", urls, body)
13735 if err != nil {
13736 return nil, err
13737 }
13738 req.Header = reqHeaders
13739 googleapi.Expand(req.URL, map[string]string{
13740 "path": c.path,
13741 })
13742 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13743 }
13744
13745
13746 func (c *AccountsContainersWorkspacesZonesDeleteCall) Do(opts ...googleapi.CallOption) error {
13747 gensupport.SetOptions(c.urlParams_, opts...)
13748 res, err := c.doRequest("json")
13749 if err != nil {
13750 return err
13751 }
13752 defer googleapi.CloseBody(res)
13753 if err := googleapi.CheckResponse(res); err != nil {
13754 return gensupport.WrapError(err)
13755 }
13756 return nil
13757 }
13758
13759 type AccountsContainersWorkspacesZonesGetCall struct {
13760 s *Service
13761 path string
13762 urlParams_ gensupport.URLParams
13763 ifNoneMatch_ string
13764 ctx_ context.Context
13765 header_ http.Header
13766 }
13767
13768
13769
13770
13771
13772
13773 func (r *AccountsContainersWorkspacesZonesService) Get(path string) *AccountsContainersWorkspacesZonesGetCall {
13774 c := &AccountsContainersWorkspacesZonesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13775 c.path = path
13776 return c
13777 }
13778
13779
13780
13781
13782 func (c *AccountsContainersWorkspacesZonesGetCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesZonesGetCall {
13783 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13784 return c
13785 }
13786
13787
13788
13789
13790 func (c *AccountsContainersWorkspacesZonesGetCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesZonesGetCall {
13791 c.ifNoneMatch_ = entityTag
13792 return c
13793 }
13794
13795
13796 func (c *AccountsContainersWorkspacesZonesGetCall) Context(ctx context.Context) *AccountsContainersWorkspacesZonesGetCall {
13797 c.ctx_ = ctx
13798 return c
13799 }
13800
13801
13802
13803 func (c *AccountsContainersWorkspacesZonesGetCall) Header() http.Header {
13804 if c.header_ == nil {
13805 c.header_ = make(http.Header)
13806 }
13807 return c.header_
13808 }
13809
13810 func (c *AccountsContainersWorkspacesZonesGetCall) doRequest(alt string) (*http.Response, error) {
13811 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13812 if c.ifNoneMatch_ != "" {
13813 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13814 }
13815 var body io.Reader = nil
13816 c.urlParams_.Set("alt", alt)
13817 c.urlParams_.Set("prettyPrint", "false")
13818 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
13819 urls += "?" + c.urlParams_.Encode()
13820 req, err := http.NewRequest("GET", urls, body)
13821 if err != nil {
13822 return nil, err
13823 }
13824 req.Header = reqHeaders
13825 googleapi.Expand(req.URL, map[string]string{
13826 "path": c.path,
13827 })
13828 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13829 }
13830
13831
13832
13833
13834
13835
13836 func (c *AccountsContainersWorkspacesZonesGetCall) Do(opts ...googleapi.CallOption) (*Zone, error) {
13837 gensupport.SetOptions(c.urlParams_, opts...)
13838 res, err := c.doRequest("json")
13839 if res != nil && res.StatusCode == http.StatusNotModified {
13840 if res.Body != nil {
13841 res.Body.Close()
13842 }
13843 return nil, gensupport.WrapError(&googleapi.Error{
13844 Code: res.StatusCode,
13845 Header: res.Header,
13846 })
13847 }
13848 if err != nil {
13849 return nil, err
13850 }
13851 defer googleapi.CloseBody(res)
13852 if err := googleapi.CheckResponse(res); err != nil {
13853 return nil, gensupport.WrapError(err)
13854 }
13855 ret := &Zone{
13856 ServerResponse: googleapi.ServerResponse{
13857 Header: res.Header,
13858 HTTPStatusCode: res.StatusCode,
13859 },
13860 }
13861 target := &ret
13862 if err := gensupport.DecodeResponse(target, res); err != nil {
13863 return nil, err
13864 }
13865 return ret, nil
13866 }
13867
13868 type AccountsContainersWorkspacesZonesListCall struct {
13869 s *Service
13870 parent string
13871 urlParams_ gensupport.URLParams
13872 ifNoneMatch_ string
13873 ctx_ context.Context
13874 header_ http.Header
13875 }
13876
13877
13878
13879
13880
13881 func (r *AccountsContainersWorkspacesZonesService) List(parent string) *AccountsContainersWorkspacesZonesListCall {
13882 c := &AccountsContainersWorkspacesZonesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13883 c.parent = parent
13884 return c
13885 }
13886
13887
13888
13889 func (c *AccountsContainersWorkspacesZonesListCall) PageToken(pageToken string) *AccountsContainersWorkspacesZonesListCall {
13890 c.urlParams_.Set("pageToken", pageToken)
13891 return c
13892 }
13893
13894
13895
13896
13897 func (c *AccountsContainersWorkspacesZonesListCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesZonesListCall {
13898 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13899 return c
13900 }
13901
13902
13903
13904
13905 func (c *AccountsContainersWorkspacesZonesListCall) IfNoneMatch(entityTag string) *AccountsContainersWorkspacesZonesListCall {
13906 c.ifNoneMatch_ = entityTag
13907 return c
13908 }
13909
13910
13911 func (c *AccountsContainersWorkspacesZonesListCall) Context(ctx context.Context) *AccountsContainersWorkspacesZonesListCall {
13912 c.ctx_ = ctx
13913 return c
13914 }
13915
13916
13917
13918 func (c *AccountsContainersWorkspacesZonesListCall) Header() http.Header {
13919 if c.header_ == nil {
13920 c.header_ = make(http.Header)
13921 }
13922 return c.header_
13923 }
13924
13925 func (c *AccountsContainersWorkspacesZonesListCall) doRequest(alt string) (*http.Response, error) {
13926 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13927 if c.ifNoneMatch_ != "" {
13928 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13929 }
13930 var body io.Reader = nil
13931 c.urlParams_.Set("alt", alt)
13932 c.urlParams_.Set("prettyPrint", "false")
13933 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/zones")
13934 urls += "?" + c.urlParams_.Encode()
13935 req, err := http.NewRequest("GET", urls, body)
13936 if err != nil {
13937 return nil, err
13938 }
13939 req.Header = reqHeaders
13940 googleapi.Expand(req.URL, map[string]string{
13941 "parent": c.parent,
13942 })
13943 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13944 }
13945
13946
13947
13948
13949
13950
13951
13952 func (c *AccountsContainersWorkspacesZonesListCall) Do(opts ...googleapi.CallOption) (*ListZonesResponse, error) {
13953 gensupport.SetOptions(c.urlParams_, opts...)
13954 res, err := c.doRequest("json")
13955 if res != nil && res.StatusCode == http.StatusNotModified {
13956 if res.Body != nil {
13957 res.Body.Close()
13958 }
13959 return nil, gensupport.WrapError(&googleapi.Error{
13960 Code: res.StatusCode,
13961 Header: res.Header,
13962 })
13963 }
13964 if err != nil {
13965 return nil, err
13966 }
13967 defer googleapi.CloseBody(res)
13968 if err := googleapi.CheckResponse(res); err != nil {
13969 return nil, gensupport.WrapError(err)
13970 }
13971 ret := &ListZonesResponse{
13972 ServerResponse: googleapi.ServerResponse{
13973 Header: res.Header,
13974 HTTPStatusCode: res.StatusCode,
13975 },
13976 }
13977 target := &ret
13978 if err := gensupport.DecodeResponse(target, res); err != nil {
13979 return nil, err
13980 }
13981 return ret, nil
13982 }
13983
13984
13985
13986
13987 func (c *AccountsContainersWorkspacesZonesListCall) Pages(ctx context.Context, f func(*ListZonesResponse) error) error {
13988 c.ctx_ = ctx
13989 defer c.PageToken(c.urlParams_.Get("pageToken"))
13990 for {
13991 x, err := c.Do()
13992 if err != nil {
13993 return err
13994 }
13995 if err := f(x); err != nil {
13996 return err
13997 }
13998 if x.NextPageToken == "" {
13999 return nil
14000 }
14001 c.PageToken(x.NextPageToken)
14002 }
14003 }
14004
14005 type AccountsContainersWorkspacesZonesRevertCall struct {
14006 s *Service
14007 path string
14008 urlParams_ gensupport.URLParams
14009 ctx_ context.Context
14010 header_ http.Header
14011 }
14012
14013
14014
14015
14016
14017
14018 func (r *AccountsContainersWorkspacesZonesService) Revert(path string) *AccountsContainersWorkspacesZonesRevertCall {
14019 c := &AccountsContainersWorkspacesZonesRevertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14020 c.path = path
14021 return c
14022 }
14023
14024
14025
14026 func (c *AccountsContainersWorkspacesZonesRevertCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesZonesRevertCall {
14027 c.urlParams_.Set("fingerprint", fingerprint)
14028 return c
14029 }
14030
14031
14032
14033
14034 func (c *AccountsContainersWorkspacesZonesRevertCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesZonesRevertCall {
14035 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14036 return c
14037 }
14038
14039
14040 func (c *AccountsContainersWorkspacesZonesRevertCall) Context(ctx context.Context) *AccountsContainersWorkspacesZonesRevertCall {
14041 c.ctx_ = ctx
14042 return c
14043 }
14044
14045
14046
14047 func (c *AccountsContainersWorkspacesZonesRevertCall) Header() http.Header {
14048 if c.header_ == nil {
14049 c.header_ = make(http.Header)
14050 }
14051 return c.header_
14052 }
14053
14054 func (c *AccountsContainersWorkspacesZonesRevertCall) doRequest(alt string) (*http.Response, error) {
14055 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14056 var body io.Reader = nil
14057 c.urlParams_.Set("alt", alt)
14058 c.urlParams_.Set("prettyPrint", "false")
14059 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}:revert")
14060 urls += "?" + c.urlParams_.Encode()
14061 req, err := http.NewRequest("POST", urls, body)
14062 if err != nil {
14063 return nil, err
14064 }
14065 req.Header = reqHeaders
14066 googleapi.Expand(req.URL, map[string]string{
14067 "path": c.path,
14068 })
14069 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14070 }
14071
14072
14073
14074
14075
14076
14077
14078 func (c *AccountsContainersWorkspacesZonesRevertCall) Do(opts ...googleapi.CallOption) (*RevertZoneResponse, error) {
14079 gensupport.SetOptions(c.urlParams_, opts...)
14080 res, err := c.doRequest("json")
14081 if res != nil && res.StatusCode == http.StatusNotModified {
14082 if res.Body != nil {
14083 res.Body.Close()
14084 }
14085 return nil, gensupport.WrapError(&googleapi.Error{
14086 Code: res.StatusCode,
14087 Header: res.Header,
14088 })
14089 }
14090 if err != nil {
14091 return nil, err
14092 }
14093 defer googleapi.CloseBody(res)
14094 if err := googleapi.CheckResponse(res); err != nil {
14095 return nil, gensupport.WrapError(err)
14096 }
14097 ret := &RevertZoneResponse{
14098 ServerResponse: googleapi.ServerResponse{
14099 Header: res.Header,
14100 HTTPStatusCode: res.StatusCode,
14101 },
14102 }
14103 target := &ret
14104 if err := gensupport.DecodeResponse(target, res); err != nil {
14105 return nil, err
14106 }
14107 return ret, nil
14108 }
14109
14110 type AccountsContainersWorkspacesZonesUpdateCall struct {
14111 s *Service
14112 path string
14113 zone *Zone
14114 urlParams_ gensupport.URLParams
14115 ctx_ context.Context
14116 header_ http.Header
14117 }
14118
14119
14120
14121
14122
14123
14124 func (r *AccountsContainersWorkspacesZonesService) Update(path string, zone *Zone) *AccountsContainersWorkspacesZonesUpdateCall {
14125 c := &AccountsContainersWorkspacesZonesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14126 c.path = path
14127 c.zone = zone
14128 return c
14129 }
14130
14131
14132
14133 func (c *AccountsContainersWorkspacesZonesUpdateCall) Fingerprint(fingerprint string) *AccountsContainersWorkspacesZonesUpdateCall {
14134 c.urlParams_.Set("fingerprint", fingerprint)
14135 return c
14136 }
14137
14138
14139
14140
14141 func (c *AccountsContainersWorkspacesZonesUpdateCall) Fields(s ...googleapi.Field) *AccountsContainersWorkspacesZonesUpdateCall {
14142 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14143 return c
14144 }
14145
14146
14147 func (c *AccountsContainersWorkspacesZonesUpdateCall) Context(ctx context.Context) *AccountsContainersWorkspacesZonesUpdateCall {
14148 c.ctx_ = ctx
14149 return c
14150 }
14151
14152
14153
14154 func (c *AccountsContainersWorkspacesZonesUpdateCall) Header() http.Header {
14155 if c.header_ == nil {
14156 c.header_ = make(http.Header)
14157 }
14158 return c.header_
14159 }
14160
14161 func (c *AccountsContainersWorkspacesZonesUpdateCall) doRequest(alt string) (*http.Response, error) {
14162 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14163 var body io.Reader = nil
14164 body, err := googleapi.WithoutDataWrapper.JSONReader(c.zone)
14165 if err != nil {
14166 return nil, err
14167 }
14168 c.urlParams_.Set("alt", alt)
14169 c.urlParams_.Set("prettyPrint", "false")
14170 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
14171 urls += "?" + c.urlParams_.Encode()
14172 req, err := http.NewRequest("PUT", urls, body)
14173 if err != nil {
14174 return nil, err
14175 }
14176 req.Header = reqHeaders
14177 googleapi.Expand(req.URL, map[string]string{
14178 "path": c.path,
14179 })
14180 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14181 }
14182
14183
14184
14185
14186
14187
14188 func (c *AccountsContainersWorkspacesZonesUpdateCall) Do(opts ...googleapi.CallOption) (*Zone, error) {
14189 gensupport.SetOptions(c.urlParams_, opts...)
14190 res, err := c.doRequest("json")
14191 if res != nil && res.StatusCode == http.StatusNotModified {
14192 if res.Body != nil {
14193 res.Body.Close()
14194 }
14195 return nil, gensupport.WrapError(&googleapi.Error{
14196 Code: res.StatusCode,
14197 Header: res.Header,
14198 })
14199 }
14200 if err != nil {
14201 return nil, err
14202 }
14203 defer googleapi.CloseBody(res)
14204 if err := googleapi.CheckResponse(res); err != nil {
14205 return nil, gensupport.WrapError(err)
14206 }
14207 ret := &Zone{
14208 ServerResponse: googleapi.ServerResponse{
14209 Header: res.Header,
14210 HTTPStatusCode: res.StatusCode,
14211 },
14212 }
14213 target := &ret
14214 if err := gensupport.DecodeResponse(target, res); err != nil {
14215 return nil, err
14216 }
14217 return ret, nil
14218 }
14219
14220 type AccountsUserPermissionsCreateCall struct {
14221 s *Service
14222 parent string
14223 userpermission *UserPermission
14224 urlParams_ gensupport.URLParams
14225 ctx_ context.Context
14226 header_ http.Header
14227 }
14228
14229
14230
14231
14232 func (r *AccountsUserPermissionsService) Create(parent string, userpermission *UserPermission) *AccountsUserPermissionsCreateCall {
14233 c := &AccountsUserPermissionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14234 c.parent = parent
14235 c.userpermission = userpermission
14236 return c
14237 }
14238
14239
14240
14241
14242 func (c *AccountsUserPermissionsCreateCall) Fields(s ...googleapi.Field) *AccountsUserPermissionsCreateCall {
14243 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14244 return c
14245 }
14246
14247
14248 func (c *AccountsUserPermissionsCreateCall) Context(ctx context.Context) *AccountsUserPermissionsCreateCall {
14249 c.ctx_ = ctx
14250 return c
14251 }
14252
14253
14254
14255 func (c *AccountsUserPermissionsCreateCall) Header() http.Header {
14256 if c.header_ == nil {
14257 c.header_ = make(http.Header)
14258 }
14259 return c.header_
14260 }
14261
14262 func (c *AccountsUserPermissionsCreateCall) doRequest(alt string) (*http.Response, error) {
14263 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14264 var body io.Reader = nil
14265 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userpermission)
14266 if err != nil {
14267 return nil, err
14268 }
14269 c.urlParams_.Set("alt", alt)
14270 c.urlParams_.Set("prettyPrint", "false")
14271 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/user_permissions")
14272 urls += "?" + c.urlParams_.Encode()
14273 req, err := http.NewRequest("POST", urls, body)
14274 if err != nil {
14275 return nil, err
14276 }
14277 req.Header = reqHeaders
14278 googleapi.Expand(req.URL, map[string]string{
14279 "parent": c.parent,
14280 })
14281 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14282 }
14283
14284
14285
14286
14287
14288
14289 func (c *AccountsUserPermissionsCreateCall) Do(opts ...googleapi.CallOption) (*UserPermission, error) {
14290 gensupport.SetOptions(c.urlParams_, opts...)
14291 res, err := c.doRequest("json")
14292 if res != nil && res.StatusCode == http.StatusNotModified {
14293 if res.Body != nil {
14294 res.Body.Close()
14295 }
14296 return nil, gensupport.WrapError(&googleapi.Error{
14297 Code: res.StatusCode,
14298 Header: res.Header,
14299 })
14300 }
14301 if err != nil {
14302 return nil, err
14303 }
14304 defer googleapi.CloseBody(res)
14305 if err := googleapi.CheckResponse(res); err != nil {
14306 return nil, gensupport.WrapError(err)
14307 }
14308 ret := &UserPermission{
14309 ServerResponse: googleapi.ServerResponse{
14310 Header: res.Header,
14311 HTTPStatusCode: res.StatusCode,
14312 },
14313 }
14314 target := &ret
14315 if err := gensupport.DecodeResponse(target, res); err != nil {
14316 return nil, err
14317 }
14318 return ret, nil
14319 }
14320
14321 type AccountsUserPermissionsDeleteCall struct {
14322 s *Service
14323 path string
14324 urlParams_ gensupport.URLParams
14325 ctx_ context.Context
14326 header_ http.Header
14327 }
14328
14329
14330
14331
14332
14333
14334 func (r *AccountsUserPermissionsService) Delete(path string) *AccountsUserPermissionsDeleteCall {
14335 c := &AccountsUserPermissionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14336 c.path = path
14337 return c
14338 }
14339
14340
14341
14342
14343 func (c *AccountsUserPermissionsDeleteCall) Fields(s ...googleapi.Field) *AccountsUserPermissionsDeleteCall {
14344 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14345 return c
14346 }
14347
14348
14349 func (c *AccountsUserPermissionsDeleteCall) Context(ctx context.Context) *AccountsUserPermissionsDeleteCall {
14350 c.ctx_ = ctx
14351 return c
14352 }
14353
14354
14355
14356 func (c *AccountsUserPermissionsDeleteCall) Header() http.Header {
14357 if c.header_ == nil {
14358 c.header_ = make(http.Header)
14359 }
14360 return c.header_
14361 }
14362
14363 func (c *AccountsUserPermissionsDeleteCall) doRequest(alt string) (*http.Response, error) {
14364 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14365 var body io.Reader = nil
14366 c.urlParams_.Set("alt", alt)
14367 c.urlParams_.Set("prettyPrint", "false")
14368 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
14369 urls += "?" + c.urlParams_.Encode()
14370 req, err := http.NewRequest("DELETE", urls, body)
14371 if err != nil {
14372 return nil, err
14373 }
14374 req.Header = reqHeaders
14375 googleapi.Expand(req.URL, map[string]string{
14376 "path": c.path,
14377 })
14378 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14379 }
14380
14381
14382 func (c *AccountsUserPermissionsDeleteCall) Do(opts ...googleapi.CallOption) error {
14383 gensupport.SetOptions(c.urlParams_, opts...)
14384 res, err := c.doRequest("json")
14385 if err != nil {
14386 return err
14387 }
14388 defer googleapi.CloseBody(res)
14389 if err := googleapi.CheckResponse(res); err != nil {
14390 return gensupport.WrapError(err)
14391 }
14392 return nil
14393 }
14394
14395 type AccountsUserPermissionsGetCall struct {
14396 s *Service
14397 path string
14398 urlParams_ gensupport.URLParams
14399 ifNoneMatch_ string
14400 ctx_ context.Context
14401 header_ http.Header
14402 }
14403
14404
14405
14406
14407
14408 func (r *AccountsUserPermissionsService) Get(path string) *AccountsUserPermissionsGetCall {
14409 c := &AccountsUserPermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14410 c.path = path
14411 return c
14412 }
14413
14414
14415
14416
14417 func (c *AccountsUserPermissionsGetCall) Fields(s ...googleapi.Field) *AccountsUserPermissionsGetCall {
14418 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14419 return c
14420 }
14421
14422
14423
14424
14425 func (c *AccountsUserPermissionsGetCall) IfNoneMatch(entityTag string) *AccountsUserPermissionsGetCall {
14426 c.ifNoneMatch_ = entityTag
14427 return c
14428 }
14429
14430
14431 func (c *AccountsUserPermissionsGetCall) Context(ctx context.Context) *AccountsUserPermissionsGetCall {
14432 c.ctx_ = ctx
14433 return c
14434 }
14435
14436
14437
14438 func (c *AccountsUserPermissionsGetCall) Header() http.Header {
14439 if c.header_ == nil {
14440 c.header_ = make(http.Header)
14441 }
14442 return c.header_
14443 }
14444
14445 func (c *AccountsUserPermissionsGetCall) doRequest(alt string) (*http.Response, error) {
14446 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14447 if c.ifNoneMatch_ != "" {
14448 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14449 }
14450 var body io.Reader = nil
14451 c.urlParams_.Set("alt", alt)
14452 c.urlParams_.Set("prettyPrint", "false")
14453 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
14454 urls += "?" + c.urlParams_.Encode()
14455 req, err := http.NewRequest("GET", urls, body)
14456 if err != nil {
14457 return nil, err
14458 }
14459 req.Header = reqHeaders
14460 googleapi.Expand(req.URL, map[string]string{
14461 "path": c.path,
14462 })
14463 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14464 }
14465
14466
14467
14468
14469
14470
14471 func (c *AccountsUserPermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserPermission, error) {
14472 gensupport.SetOptions(c.urlParams_, opts...)
14473 res, err := c.doRequest("json")
14474 if res != nil && res.StatusCode == http.StatusNotModified {
14475 if res.Body != nil {
14476 res.Body.Close()
14477 }
14478 return nil, gensupport.WrapError(&googleapi.Error{
14479 Code: res.StatusCode,
14480 Header: res.Header,
14481 })
14482 }
14483 if err != nil {
14484 return nil, err
14485 }
14486 defer googleapi.CloseBody(res)
14487 if err := googleapi.CheckResponse(res); err != nil {
14488 return nil, gensupport.WrapError(err)
14489 }
14490 ret := &UserPermission{
14491 ServerResponse: googleapi.ServerResponse{
14492 Header: res.Header,
14493 HTTPStatusCode: res.StatusCode,
14494 },
14495 }
14496 target := &ret
14497 if err := gensupport.DecodeResponse(target, res); err != nil {
14498 return nil, err
14499 }
14500 return ret, nil
14501 }
14502
14503 type AccountsUserPermissionsListCall struct {
14504 s *Service
14505 parent string
14506 urlParams_ gensupport.URLParams
14507 ifNoneMatch_ string
14508 ctx_ context.Context
14509 header_ http.Header
14510 }
14511
14512
14513
14514
14515
14516 func (r *AccountsUserPermissionsService) List(parent string) *AccountsUserPermissionsListCall {
14517 c := &AccountsUserPermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14518 c.parent = parent
14519 return c
14520 }
14521
14522
14523
14524 func (c *AccountsUserPermissionsListCall) PageToken(pageToken string) *AccountsUserPermissionsListCall {
14525 c.urlParams_.Set("pageToken", pageToken)
14526 return c
14527 }
14528
14529
14530
14531
14532 func (c *AccountsUserPermissionsListCall) Fields(s ...googleapi.Field) *AccountsUserPermissionsListCall {
14533 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14534 return c
14535 }
14536
14537
14538
14539
14540 func (c *AccountsUserPermissionsListCall) IfNoneMatch(entityTag string) *AccountsUserPermissionsListCall {
14541 c.ifNoneMatch_ = entityTag
14542 return c
14543 }
14544
14545
14546 func (c *AccountsUserPermissionsListCall) Context(ctx context.Context) *AccountsUserPermissionsListCall {
14547 c.ctx_ = ctx
14548 return c
14549 }
14550
14551
14552
14553 func (c *AccountsUserPermissionsListCall) Header() http.Header {
14554 if c.header_ == nil {
14555 c.header_ = make(http.Header)
14556 }
14557 return c.header_
14558 }
14559
14560 func (c *AccountsUserPermissionsListCall) doRequest(alt string) (*http.Response, error) {
14561 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14562 if c.ifNoneMatch_ != "" {
14563 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14564 }
14565 var body io.Reader = nil
14566 c.urlParams_.Set("alt", alt)
14567 c.urlParams_.Set("prettyPrint", "false")
14568 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+parent}/user_permissions")
14569 urls += "?" + c.urlParams_.Encode()
14570 req, err := http.NewRequest("GET", urls, body)
14571 if err != nil {
14572 return nil, err
14573 }
14574 req.Header = reqHeaders
14575 googleapi.Expand(req.URL, map[string]string{
14576 "parent": c.parent,
14577 })
14578 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14579 }
14580
14581
14582
14583
14584
14585
14586
14587 func (c *AccountsUserPermissionsListCall) Do(opts ...googleapi.CallOption) (*ListUserPermissionsResponse, error) {
14588 gensupport.SetOptions(c.urlParams_, opts...)
14589 res, err := c.doRequest("json")
14590 if res != nil && res.StatusCode == http.StatusNotModified {
14591 if res.Body != nil {
14592 res.Body.Close()
14593 }
14594 return nil, gensupport.WrapError(&googleapi.Error{
14595 Code: res.StatusCode,
14596 Header: res.Header,
14597 })
14598 }
14599 if err != nil {
14600 return nil, err
14601 }
14602 defer googleapi.CloseBody(res)
14603 if err := googleapi.CheckResponse(res); err != nil {
14604 return nil, gensupport.WrapError(err)
14605 }
14606 ret := &ListUserPermissionsResponse{
14607 ServerResponse: googleapi.ServerResponse{
14608 Header: res.Header,
14609 HTTPStatusCode: res.StatusCode,
14610 },
14611 }
14612 target := &ret
14613 if err := gensupport.DecodeResponse(target, res); err != nil {
14614 return nil, err
14615 }
14616 return ret, nil
14617 }
14618
14619
14620
14621
14622 func (c *AccountsUserPermissionsListCall) Pages(ctx context.Context, f func(*ListUserPermissionsResponse) error) error {
14623 c.ctx_ = ctx
14624 defer c.PageToken(c.urlParams_.Get("pageToken"))
14625 for {
14626 x, err := c.Do()
14627 if err != nil {
14628 return err
14629 }
14630 if err := f(x); err != nil {
14631 return err
14632 }
14633 if x.NextPageToken == "" {
14634 return nil
14635 }
14636 c.PageToken(x.NextPageToken)
14637 }
14638 }
14639
14640 type AccountsUserPermissionsUpdateCall struct {
14641 s *Service
14642 path string
14643 userpermission *UserPermission
14644 urlParams_ gensupport.URLParams
14645 ctx_ context.Context
14646 header_ http.Header
14647 }
14648
14649
14650
14651
14652
14653 func (r *AccountsUserPermissionsService) Update(path string, userpermission *UserPermission) *AccountsUserPermissionsUpdateCall {
14654 c := &AccountsUserPermissionsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14655 c.path = path
14656 c.userpermission = userpermission
14657 return c
14658 }
14659
14660
14661
14662
14663 func (c *AccountsUserPermissionsUpdateCall) Fields(s ...googleapi.Field) *AccountsUserPermissionsUpdateCall {
14664 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14665 return c
14666 }
14667
14668
14669 func (c *AccountsUserPermissionsUpdateCall) Context(ctx context.Context) *AccountsUserPermissionsUpdateCall {
14670 c.ctx_ = ctx
14671 return c
14672 }
14673
14674
14675
14676 func (c *AccountsUserPermissionsUpdateCall) Header() http.Header {
14677 if c.header_ == nil {
14678 c.header_ = make(http.Header)
14679 }
14680 return c.header_
14681 }
14682
14683 func (c *AccountsUserPermissionsUpdateCall) doRequest(alt string) (*http.Response, error) {
14684 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14685 var body io.Reader = nil
14686 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userpermission)
14687 if err != nil {
14688 return nil, err
14689 }
14690 c.urlParams_.Set("alt", alt)
14691 c.urlParams_.Set("prettyPrint", "false")
14692 urls := googleapi.ResolveRelative(c.s.BasePath, "tagmanager/v2/{+path}")
14693 urls += "?" + c.urlParams_.Encode()
14694 req, err := http.NewRequest("PUT", urls, body)
14695 if err != nil {
14696 return nil, err
14697 }
14698 req.Header = reqHeaders
14699 googleapi.Expand(req.URL, map[string]string{
14700 "path": c.path,
14701 })
14702 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14703 }
14704
14705
14706
14707
14708
14709
14710 func (c *AccountsUserPermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*UserPermission, error) {
14711 gensupport.SetOptions(c.urlParams_, opts...)
14712 res, err := c.doRequest("json")
14713 if res != nil && res.StatusCode == http.StatusNotModified {
14714 if res.Body != nil {
14715 res.Body.Close()
14716 }
14717 return nil, gensupport.WrapError(&googleapi.Error{
14718 Code: res.StatusCode,
14719 Header: res.Header,
14720 })
14721 }
14722 if err != nil {
14723 return nil, err
14724 }
14725 defer googleapi.CloseBody(res)
14726 if err := googleapi.CheckResponse(res); err != nil {
14727 return nil, gensupport.WrapError(err)
14728 }
14729 ret := &UserPermission{
14730 ServerResponse: googleapi.ServerResponse{
14731 Header: res.Header,
14732 HTTPStatusCode: res.StatusCode,
14733 },
14734 }
14735 target := &ret
14736 if err := gensupport.DecodeResponse(target, res); err != nil {
14737 return nil, err
14738 }
14739 return ret, nil
14740 }
14741
View as plain text