-
Notifications
You must be signed in to change notification settings - Fork 553
Expand file tree
/
Copy pathGoogle.Apis.DataManager.v1.cs
More file actions
4282 lines (3647 loc) · 215 KB
/
Google.Apis.DataManager.v1.cs
File metadata and controls
4282 lines (3647 loc) · 215 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Generated code. DO NOT EDIT!
namespace Google.Apis.DataManager.v1
{
/// <summary>The DataManager Service.</summary>
public class DataManagerService : Google.Apis.Services.BaseClientService
{
/// <summary>The API version.</summary>
public const string Version = "v1";
/// <summary>The discovery version used to generate this service.</summary>
public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed = Google.Apis.Discovery.DiscoveryVersion.Version_1_0;
/// <summary>Constructs a new service.</summary>
public DataManagerService() : this(new Google.Apis.Services.BaseClientService.Initializer())
{
}
/// <summary>Constructs a new service.</summary>
/// <param name="initializer">The service initializer.</param>
public DataManagerService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer)
{
AccountTypes = new AccountTypesResource(this);
AudienceMembers = new AudienceMembersResource(this);
Events = new EventsResource(this);
RequestStatus = new RequestStatusResource(this);
BaseUri = GetEffectiveUri(BaseUriOverride, "https://datamanager.googleapis.com/");
BatchUri = GetEffectiveUri(null, "https://datamanager.googleapis.com/batch");
}
/// <summary>Gets the service supported features.</summary>
public override System.Collections.Generic.IList<string> Features => new string[0];
/// <summary>Gets the service name.</summary>
public override string Name => "datamanager";
/// <summary>Gets the service base URI.</summary>
public override string BaseUri { get; }
/// <summary>Gets the service base path.</summary>
public override string BasePath => "";
/// <summary>Gets the batch base URI; <c>null</c> if unspecified.</summary>
public override string BatchUri { get; }
/// <summary>Gets the batch base path; <c>null</c> if unspecified.</summary>
public override string BatchPath => "batch";
/// <summary>Available OAuth 2.0 scopes for use with the Data Manager API.</summary>
public class Scope
{
/// <summary>
/// See, edit, create, import, or delete your customer data in Google Ads, Google Marketing Platform
/// (Campaign Manager 360, Search Ads 360, Display &amp; Video 360), and Google Analytics
/// </summary>
public static string Datamanager = "https://www.googleapis.com/auth/datamanager";
/// <summary>
/// View, create, or delete your partner links in Google Ads, Marketing Platform (Campaign Manager 360,
/// Search Ads 360, Display &amp; Video 360), and Analytics
/// </summary>
public static string DatamanagerPartnerlink = "https://www.googleapis.com/auth/datamanager.partnerlink";
}
/// <summary>Available OAuth 2.0 scope constants for use with the Data Manager API.</summary>
public static class ScopeConstants
{
/// <summary>
/// See, edit, create, import, or delete your customer data in Google Ads, Google Marketing Platform
/// (Campaign Manager 360, Search Ads 360, Display &amp; Video 360), and Google Analytics
/// </summary>
public const string Datamanager = "https://www.googleapis.com/auth/datamanager";
/// <summary>
/// View, create, or delete your partner links in Google Ads, Marketing Platform (Campaign Manager 360,
/// Search Ads 360, Display &amp; Video 360), and Analytics
/// </summary>
public const string DatamanagerPartnerlink = "https://www.googleapis.com/auth/datamanager.partnerlink";
}
/// <summary>Gets the AccountTypes resource.</summary>
public virtual AccountTypesResource AccountTypes { get; }
/// <summary>Gets the AudienceMembers resource.</summary>
public virtual AudienceMembersResource AudienceMembers { get; }
/// <summary>Gets the Events resource.</summary>
public virtual EventsResource Events { get; }
/// <summary>Gets the RequestStatus resource.</summary>
public virtual RequestStatusResource RequestStatus { get; }
}
/// <summary>A base abstract class for DataManager requests.</summary>
public abstract class DataManagerBaseServiceRequest<TResponse> : Google.Apis.Requests.ClientServiceRequest<TResponse>
{
/// <summary>Constructs a new DataManagerBaseServiceRequest instance.</summary>
protected DataManagerBaseServiceRequest(Google.Apis.Services.IClientService service) : base(service)
{
}
/// <summary>V1 error format.</summary>
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable<XgafvEnum> Xgafv { get; set; }
/// <summary>V1 error format.</summary>
public enum XgafvEnum
{
/// <summary>v1 error format</summary>
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// <summary>v2 error format</summary>
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// <summary>OAuth access token.</summary>
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// <summary>Data format for response.</summary>
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable<AltEnum> Alt { get; set; }
/// <summary>Data format for response.</summary>
public enum AltEnum
{
/// <summary>Responses with Content-Type of application/json</summary>
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// <summary>Media download with context-dependent Content-Type</summary>
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// <summary>Responses with Content-Type of application/x-protobuf</summary>
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// <summary>JSONP</summary>
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// <summary>Selector specifying which fields to include in a partial response.</summary>
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
/// <summary>
/// API key. Your API key identifies your project and provides you with API access, quota, and reports. Required
/// unless you provide an OAuth 2.0 token.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// <summary>OAuth 2.0 token for the current user.</summary>
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// <summary>Returns response with indentations and line breaks.</summary>
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable<bool> PrettyPrint { get; set; }
/// <summary>
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a
/// user, but should not exceed 40 characters.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// <summary>Legacy upload protocol for media (e.g. "media", "multipart").</summary>
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// <summary>Upload protocol for media (e.g. "raw", "multipart").</summary>
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// <summary>Initializes DataManager parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("$.xgafv", new Google.Apis.Discovery.Parameter
{
Name = "$.xgafv",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("access_token", new Google.Apis.Discovery.Parameter
{
Name = "access_token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("alt", new Google.Apis.Discovery.Parameter
{
Name = "alt",
IsRequired = false,
ParameterType = "query",
DefaultValue = "json",
Pattern = null,
});
RequestParameters.Add("callback", new Google.Apis.Discovery.Parameter
{
Name = "callback",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("fields", new Google.Apis.Discovery.Parameter
{
Name = "fields",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("key", new Google.Apis.Discovery.Parameter
{
Name = "key",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("oauth_token", new Google.Apis.Discovery.Parameter
{
Name = "oauth_token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("prettyPrint", new Google.Apis.Discovery.Parameter
{
Name = "prettyPrint",
IsRequired = false,
ParameterType = "query",
DefaultValue = "true",
Pattern = null,
});
RequestParameters.Add("quotaUser", new Google.Apis.Discovery.Parameter
{
Name = "quotaUser",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("uploadType", new Google.Apis.Discovery.Parameter
{
Name = "uploadType",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("upload_protocol", new Google.Apis.Discovery.Parameter
{
Name = "upload_protocol",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// <summary>The "accountTypes" collection of methods.</summary>
public class AccountTypesResource
{
private const string Resource = "accountTypes";
/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;
/// <summary>Constructs a new resource.</summary>
public AccountTypesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Accounts = new AccountsResource(service);
}
/// <summary>Gets the Accounts resource.</summary>
public virtual AccountsResource Accounts { get; }
/// <summary>The "accounts" collection of methods.</summary>
public class AccountsResource
{
private const string Resource = "accounts";
/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;
/// <summary>Constructs a new resource.</summary>
public AccountsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Insights = new InsightsResource(service);
PartnerLinks = new PartnerLinksResource(service);
UserListDirectLicenses = new UserListDirectLicensesResource(service);
UserListGlobalLicenses = new UserListGlobalLicensesResource(service);
UserLists = new UserListsResource(service);
}
/// <summary>Gets the Insights resource.</summary>
public virtual InsightsResource Insights { get; }
/// <summary>The "insights" collection of methods.</summary>
public class InsightsResource
{
private const string Resource = "insights";
/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;
/// <summary>Constructs a new resource.</summary>
public InsightsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// <summary>
/// Retrieves marketing data insights for a given user list. This feature is only available to data
/// partners. Authorization Headers: This method supports the following optional headers to define how
/// the API authorizes access for the request: * `login-account`: (Optional) The resource name of the
/// account where the Google Account of the credentials is a user. If not set, defaults to the account
/// of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` *
/// `linked-account`: (Optional) The resource name of the account with an established product link to
/// the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`
/// </summary>
/// <param name="body">The body of the request.</param>
/// <param name="parent">
/// Required. The parent account that owns the user list. Format:
/// `accountTypes/{account_type}/accounts/{account}`
/// </param>
public virtual RetrieveRequest Retrieve(Google.Apis.DataManager.v1.Data.RetrieveInsightsRequest body, string parent)
{
return new RetrieveRequest(this.service, body, parent);
}
/// <summary>
/// Retrieves marketing data insights for a given user list. This feature is only available to data
/// partners. Authorization Headers: This method supports the following optional headers to define how
/// the API authorizes access for the request: * `login-account`: (Optional) The resource name of the
/// account where the Google Account of the credentials is a user. If not set, defaults to the account
/// of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` *
/// `linked-account`: (Optional) The resource name of the account with an established product link to
/// the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`
/// </summary>
public class RetrieveRequest : DataManagerBaseServiceRequest<Google.Apis.DataManager.v1.Data.RetrieveInsightsResponse>
{
/// <summary>Constructs a new Retrieve request.</summary>
public RetrieveRequest(Google.Apis.Services.IClientService service, Google.Apis.DataManager.v1.Data.RetrieveInsightsRequest body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
/// <summary>
/// Required. The parent account that owns the user list. Format:
/// `accountTypes/{account_type}/accounts/{account}`
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// <summary>Gets or sets the body of this request.</summary>
Google.Apis.DataManager.v1.Data.RetrieveInsightsRequest Body { get; set; }
/// <summary>Returns the body of the request.</summary>
protected override object GetBody() => Body;
/// <summary>Gets the method name.</summary>
public override string MethodName => "retrieve";
/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "POST";
/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+parent}/insights:retrieve";
/// <summary>Initializes Retrieve parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^accountTypes/[^/]+/accounts/[^/]+$",
});
}
}
}
/// <summary>Gets the PartnerLinks resource.</summary>
public virtual PartnerLinksResource PartnerLinks { get; }
/// <summary>The "partnerLinks" collection of methods.</summary>
public class PartnerLinksResource
{
private const string Resource = "partnerLinks";
/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;
/// <summary>Constructs a new resource.</summary>
public PartnerLinksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// <summary>
/// Creates a partner link for the given account. Authorization Headers: This method supports the
/// following optional headers to define how the API authorizes access for the request: *
/// `login-account`: (Optional) The resource name of the account where the Google Account of the
/// credentials is a user. If not set, defaults to the account of the request. Format:
/// `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
/// </summary>
/// <param name="body">The body of the request.</param>
/// <param name="parent">
/// Required. The parent, which owns this collection of partner links. Format:
/// accountTypes/{account_type}/accounts/{account}
/// </param>
public virtual CreateRequest Create(Google.Apis.DataManager.v1.Data.PartnerLink body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// <summary>
/// Creates a partner link for the given account. Authorization Headers: This method supports the
/// following optional headers to define how the API authorizes access for the request: *
/// `login-account`: (Optional) The resource name of the account where the Google Account of the
/// credentials is a user. If not set, defaults to the account of the request. Format:
/// `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
/// </summary>
public class CreateRequest : DataManagerBaseServiceRequest<Google.Apis.DataManager.v1.Data.PartnerLink>
{
/// <summary>Constructs a new Create request.</summary>
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.DataManager.v1.Data.PartnerLink body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
/// <summary>
/// Required. The parent, which owns this collection of partner links. Format:
/// accountTypes/{account_type}/accounts/{account}
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// <summary>Gets or sets the body of this request.</summary>
Google.Apis.DataManager.v1.Data.PartnerLink Body { get; set; }
/// <summary>Returns the body of the request.</summary>
protected override object GetBody() => Body;
/// <summary>Gets the method name.</summary>
public override string MethodName => "create";
/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "POST";
/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+parent}/partnerLinks";
/// <summary>Initializes Create parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^accountTypes/[^/]+/accounts/[^/]+$",
});
}
}
/// <summary>
/// Deletes a partner link for the given account. Authorization Headers: This method supports the
/// following optional headers to define how the API authorizes access for the request: *
/// `login-account`: (Optional) The resource name of the account where the Google Account of the
/// credentials is a user. If not set, defaults to the account of the request. Format:
/// `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
/// </summary>
/// <param name="name">
/// Required. The resource name of the partner link to delete. Format:
/// accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link}
/// </param>
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
/// <summary>
/// Deletes a partner link for the given account. Authorization Headers: This method supports the
/// following optional headers to define how the API authorizes access for the request: *
/// `login-account`: (Optional) The resource name of the account where the Google Account of the
/// credentials is a user. If not set, defaults to the account of the request. Format:
/// `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
/// </summary>
public class DeleteRequest : DataManagerBaseServiceRequest<Google.Apis.DataManager.v1.Data.Empty>
{
/// <summary>Constructs a new Delete request.</summary>
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
/// <summary>
/// Required. The resource name of the partner link to delete. Format:
/// accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link}
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// <summary>Gets the method name.</summary>
public override string MethodName => "delete";
/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "DELETE";
/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+name}";
/// <summary>Initializes Delete parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^accountTypes/[^/]+/accounts/[^/]+/partnerLinks/[^/]+$",
});
}
}
/// <summary>
/// Searches for all partner links to and from a given account. Authorization Headers: This method
/// supports the following optional headers to define how the API authorizes access for the request: *
/// `login-account`: (Optional) The resource name of the account where the Google Account of the
/// credentials is a user. If not set, defaults to the account of the request. Format:
/// `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
/// </summary>
/// <param name="parent">
/// Required. Account to search for partner links. If no `filter` is specified, all partner links where
/// this account is either the `owning_account` or `partner_account` are returned. Format:
/// `accountTypes/{account_type}/accounts/{account}`
/// </param>
public virtual SearchRequest Search(string parent)
{
return new SearchRequest(this.service, parent);
}
/// <summary>
/// Searches for all partner links to and from a given account. Authorization Headers: This method
/// supports the following optional headers to define how the API authorizes access for the request: *
/// `login-account`: (Optional) The resource name of the account where the Google Account of the
/// credentials is a user. If not set, defaults to the account of the request. Format:
/// `accountTypes/{loginAccountType}/accounts/{loginAccountId}`
/// </summary>
public class SearchRequest : DataManagerBaseServiceRequest<Google.Apis.DataManager.v1.Data.SearchPartnerLinksResponse>
{
/// <summary>Constructs a new Search request.</summary>
public SearchRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
/// <summary>
/// Required. Account to search for partner links. If no `filter` is specified, all partner links
/// where this account is either the `owning_account` or `partner_account` are returned. Format:
/// `accountTypes/{account_type}/accounts/{account}`
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// <summary>
/// Optional. A [filter string](https://google.aip.dev/160). All fields need to be on the left hand
/// side of each condition (for example: `partner_link_id = 123456789`). Fields must be specified
/// using either all [camel case](https://en.wikipedia.org/wiki/Camel_case) or all [snake
/// case](https://en.wikipedia.org/wiki/Snake_case). Don't use a combination of camel case and snake
/// case. Supported operations: - `AND` - `=` - `!=` Supported fields: - `partner_link_id` -
/// `owning_account.account_type` - `owning_account.account_id` - `partner_account.account_type` -
/// `partner_account.account_id` Example: `owning_account.account_type = "GOOGLE_ADS" AND
/// partner_account.account_id = 987654321`
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
/// <summary>
/// The maximum number of partner links to return. The service may return fewer than this value. If
/// unspecified, at most 10 partner links will be returned. The maximum value is 100; values above
/// 100 will be coerced to 100.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable<int> PageSize { get; set; }
/// <summary>
/// A page token, received from a previous `SearchPartnerLinks` call. Provide this to retrieve the
/// subsequent page. When paginating, all other parameters provided to `SearchPartnerLinks` must
/// match the call that provided the page token.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// <summary>Gets the method name.</summary>
public override string MethodName => "search";
/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "GET";
/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+parent}/partnerLinks:search";
/// <summary>Initializes Search parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^accountTypes/[^/]+/accounts/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// <summary>Gets the UserListDirectLicenses resource.</summary>
public virtual UserListDirectLicensesResource UserListDirectLicenses { get; }
/// <summary>The "userListDirectLicenses" collection of methods.</summary>
public class UserListDirectLicensesResource
{
private const string Resource = "userListDirectLicenses";
/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;
/// <summary>Constructs a new resource.</summary>
public UserListDirectLicensesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// <summary>
/// Creates a user list direct license. This feature is only available to data partners.
/// </summary>
/// <param name="body">The body of the request.</param>
/// <param name="parent">
/// Required. The account that owns the user list being licensed. Should be in the format
/// accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID}
/// </param>
public virtual CreateRequest Create(Google.Apis.DataManager.v1.Data.UserListDirectLicense body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// <summary>
/// Creates a user list direct license. This feature is only available to data partners.
/// </summary>
public class CreateRequest : DataManagerBaseServiceRequest<Google.Apis.DataManager.v1.Data.UserListDirectLicense>
{
/// <summary>Constructs a new Create request.</summary>
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.DataManager.v1.Data.UserListDirectLicense body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
/// <summary>
/// Required. The account that owns the user list being licensed. Should be in the format
/// accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID}
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// <summary>Gets or sets the body of this request.</summary>
Google.Apis.DataManager.v1.Data.UserListDirectLicense Body { get; set; }
/// <summary>Returns the body of the request.</summary>
protected override object GetBody() => Body;
/// <summary>Gets the method name.</summary>
public override string MethodName => "create";
/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "POST";
/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+parent}/userListDirectLicenses";
/// <summary>Initializes Create parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^accountTypes/[^/]+/accounts/[^/]+$",
});
}
}
/// <summary>
/// Retrieves a user list direct license. This feature is only available to data partners.
/// </summary>
/// <param name="name">Required. The resource name of the user list direct license.</param>
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// <summary>
/// Retrieves a user list direct license. This feature is only available to data partners.
/// </summary>
public class GetRequest : DataManagerBaseServiceRequest<Google.Apis.DataManager.v1.Data.UserListDirectLicense>
{
/// <summary>Constructs a new Get request.</summary>
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
/// <summary>Required. The resource name of the user list direct license.</summary>
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// <summary>Gets the method name.</summary>
public override string MethodName => "get";
/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "GET";
/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+name}";
/// <summary>Initializes Get parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^accountTypes/[^/]+/accounts/[^/]+/userListDirectLicenses/[^/]+$",
});
}
}
/// <summary>
/// Lists all user list direct licenses owned by the parent account. This feature is only available to
/// data partners.
/// </summary>
/// <param name="parent">
/// Required. The account whose licenses are being queried. Should be in the format
/// accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID}
/// </param>
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// <summary>
/// Lists all user list direct licenses owned by the parent account. This feature is only available to
/// data partners.
/// </summary>
public class ListRequest : DataManagerBaseServiceRequest<Google.Apis.DataManager.v1.Data.ListUserListDirectLicensesResponse>
{
/// <summary>Constructs a new List request.</summary>
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
/// <summary>
/// Required. The account whose licenses are being queried. Should be in the format
/// accountTypes/{ACCOUNT_TYPE}/accounts/{ACCOUNT_ID}
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// <summary>
/// Optional. A [filter string](https://google.aip.dev/160) to apply to the list request. All fields
/// need to be on the left hand side of each condition (for example: `user_list_id = 123`). Fields
/// must be specified using either all [camel case](https://en.wikipedia.org/wiki/Camel_case) or all
/// [snake case](https://en.wikipedia.org/wiki/Snake_case). Don't use a combination of camel case
/// and snake case. **Supported Operations:** - `AND` - `=` - `!=` - `&gt;` - `&gt;=` -
/// `&lt;` - `&lt;=` **Unsupported Fields:** - `name` (use get method instead) -
/// `historical_pricings` and all its subfields - `pricing.start_time` - `pricing.end_time`
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filter { get; set; }
/// <summary>
/// Optional. The maximum number of licenses to return per page. The service may return fewer than
/// this value. If unspecified, at most 50 licenses will be returned. The maximum value is 1000;
/// values above 1000 will be coerced to 1000.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable<int> PageSize { get; set; }
/// <summary>
/// Optional. A page token, received from a previous `ListUserListDirectLicense` call. Provide this
/// to retrieve the subsequent page. When paginating, all other parameters provided to
/// `ListUserListDirectLicense` must match the call that provided the page token.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// <summary>Gets the method name.</summary>
public override string MethodName => "list";
/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "GET";
/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+parent}/userListDirectLicenses";
/// <summary>Initializes List parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^accountTypes/[^/]+/accounts/[^/]+$",
});
RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter
{
Name = "filter",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// <summary>
/// Updates a user list direct license. This feature is only available to data partners.
/// </summary>
/// <param name="body">The body of the request.</param>
/// <param name="name">Identifier. The resource name of the user list direct license.</param>
public virtual PatchRequest Patch(Google.Apis.DataManager.v1.Data.UserListDirectLicense body, string name)
{
return new PatchRequest(this.service, body, name);
}
/// <summary>
/// Updates a user list direct license. This feature is only available to data partners.
/// </summary>
public class PatchRequest : DataManagerBaseServiceRequest<Google.Apis.DataManager.v1.Data.UserListDirectLicense>
{
/// <summary>Constructs a new Patch request.</summary>
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.DataManager.v1.Data.UserListDirectLicense body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
/// <summary>Identifier. The resource name of the user list direct license.</summary>
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// <summary>
/// Optional. The list of fields to update. The special character `*` is not supported and an
/// `INVALID_UPDATE_MASK` error will be thrown if used.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// <summary>Gets or sets the body of this request.</summary>
Google.Apis.DataManager.v1.Data.UserListDirectLicense Body { get; set; }
/// <summary>Returns the body of the request.</summary>
protected override object GetBody() => Body;
/// <summary>Gets the method name.</summary>
public override string MethodName => "patch";
/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "PATCH";
/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+name}";
/// <summary>Initializes Patch parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^accountTypes/[^/]+/accounts/[^/]+/userListDirectLicenses/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// <summary>Gets the UserListGlobalLicenses resource.</summary>