-
Notifications
You must be signed in to change notification settings - Fork 532
/
Copy pathGoogle.Apis.Css.v1.cs
2350 lines (2004 loc) · 110 KB
/
Google.Apis.Css.v1.cs
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 2025 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.Css.v1
{
/// <summary>The Css Service.</summary>
public class CssService : 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 CssService() : this(new Google.Apis.Services.BaseClientService.Initializer())
{
}
/// <summary>Constructs a new service.</summary>
/// <param name="initializer">The service initializer.</param>
public CssService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer)
{
Accounts = new AccountsResource(this);
BaseUri = GetEffectiveUri(BaseUriOverride, "https://css.googleapis.com/");
BatchUri = GetEffectiveUri(null, "https://css.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 => "css";
/// <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 CSS API.</summary>
public class Scope
{
/// <summary>Manage your product listings and accounts for Google Shopping</summary>
public static string Content = "https://www.googleapis.com/auth/content";
}
/// <summary>Available OAuth 2.0 scope constants for use with the CSS API.</summary>
public static class ScopeConstants
{
/// <summary>Manage your product listings and accounts for Google Shopping</summary>
public const string Content = "https://www.googleapis.com/auth/content";
}
/// <summary>Gets the Accounts resource.</summary>
public virtual AccountsResource Accounts { get; }
}
/// <summary>A base abstract class for Css requests.</summary>
public abstract class CssBaseServiceRequest<TResponse> : Google.Apis.Requests.ClientServiceRequest<TResponse>
{
/// <summary>Constructs a new CssBaseServiceRequest instance.</summary>
protected CssBaseServiceRequest(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 Css 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 "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;
CssProductInputs = new CssProductInputsResource(service);
CssProducts = new CssProductsResource(service);
Labels = new LabelsResource(service);
Quotas = new QuotasResource(service);
}
/// <summary>Gets the CssProductInputs resource.</summary>
public virtual CssProductInputsResource CssProductInputs { get; }
/// <summary>The "cssProductInputs" collection of methods.</summary>
public class CssProductInputsResource
{
private const string Resource = "cssProductInputs";
/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;
/// <summary>Constructs a new resource.</summary>
public CssProductInputsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// <summary>
/// Deletes a CSS Product input from your CSS Center account. After a delete it may take several minutes
/// until the input is no longer available.
/// </summary>
/// <param name="name">
/// Required. The name of the CSS product input resource to delete. Format:
/// accounts/{account}/cssProductInputs/{css_product_input}, where the last section `css_product_input`
/// consists of 3 parts: contentLanguage~feedLabel~offerId. Example:
/// accounts/123/cssProductInputs/de~DE~rawProvidedId123
/// </param>
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
/// <summary>
/// Deletes a CSS Product input from your CSS Center account. After a delete it may take several minutes
/// until the input is no longer available.
/// </summary>
public class DeleteRequest : CssBaseServiceRequest<Google.Apis.Css.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 name of the CSS product input resource to delete. Format:
/// accounts/{account}/cssProductInputs/{css_product_input}, where the last section `css_product_input`
/// consists of 3 parts: contentLanguage~feedLabel~offerId. Example:
/// accounts/123/cssProductInputs/de~DE~rawProvidedId123
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// <summary>
/// The Content API Supplemental Feed ID. The field must not be set if the action applies to a primary
/// feed. If the field is set, then product action applies to a supplemental feed instead of primary
/// Content API feed.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("supplementalFeedId", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable<long> SupplementalFeedId { get; 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 = @"^accounts/[^/]+/cssProductInputs/[^/]+$",
});
RequestParameters.Add("supplementalFeedId", new Google.Apis.Discovery.Parameter
{
Name = "supplementalFeedId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// <summary>
/// Uploads a CssProductInput to your CSS Center account. If an input with the same contentLanguage,
/// identity, feedLabel and feedId already exists, this method replaces that entry. After inserting,
/// updating, or deleting a CSS Product input, it may take several minutes before the processed CSS Product
/// can be retrieved.
/// </summary>
/// <param name="body">The body of the request.</param>
/// <param name="parent">
/// Required. The account where this CSS Product will be inserted. Format: accounts/{account}
/// </param>
public virtual InsertRequest Insert(Google.Apis.Css.v1.Data.CssProductInput body, string parent)
{
return new InsertRequest(this.service, body, parent);
}
/// <summary>
/// Uploads a CssProductInput to your CSS Center account. If an input with the same contentLanguage,
/// identity, feedLabel and feedId already exists, this method replaces that entry. After inserting,
/// updating, or deleting a CSS Product input, it may take several minutes before the processed CSS Product
/// can be retrieved.
/// </summary>
public class InsertRequest : CssBaseServiceRequest<Google.Apis.Css.v1.Data.CssProductInput>
{
/// <summary>Constructs a new Insert request.</summary>
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Css.v1.Data.CssProductInput body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
/// <summary>
/// Required. The account where this CSS Product will be inserted. Format: accounts/{account}
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// <summary>
/// Optional. DEPRECATED. Feed id is not required for CSS Products. The primary or supplemental feed id.
/// If CSS Product already exists and feed id provided is different, then the CSS Product will be moved
/// to a new feed. Note: For now, CSSs do not need to provide feed ids as we create feeds on the fly. We
/// do not have supplemental feed support for CSS Products yet.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("feedId", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable<long> FeedId { get; set; }
/// <summary>Gets or sets the body of this request.</summary>
Google.Apis.Css.v1.Data.CssProductInput 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 => "insert";
/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "POST";
/// <summary>Gets the REST path.</summary>
public override string RestPath => "v1/{+parent}/cssProductInputs:insert";
/// <summary>Initializes Insert 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 = @"^accounts/[^/]+$",
});
RequestParameters.Add("feedId", new Google.Apis.Discovery.Parameter
{
Name = "feedId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// <summary>
/// Updates the existing Css Product input in your CSS Center account. After inserting, updating, or
/// deleting a CSS Product input, it may take several minutes before the processed Css Product can be
/// retrieved.
/// </summary>
/// <param name="body">The body of the request.</param>
/// <param name="name">
/// Identifier. The name of the CSS Product input. Format:
/// `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section `css_product_input`
/// consists of 3 parts: contentLanguage~feedLabel~offerId. Example:
/// accounts/123/cssProductInputs/de~DE~rawProvidedId123
/// </param>
public virtual PatchRequest Patch(Google.Apis.Css.v1.Data.CssProductInput body, string name)
{
return new PatchRequest(this.service, body, name);
}
/// <summary>
/// Updates the existing Css Product input in your CSS Center account. After inserting, updating, or
/// deleting a CSS Product input, it may take several minutes before the processed Css Product can be
/// retrieved.
/// </summary>
public class PatchRequest : CssBaseServiceRequest<Google.Apis.Css.v1.Data.CssProductInput>
{
/// <summary>Constructs a new Patch request.</summary>
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Css.v1.Data.CssProductInput body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
/// <summary>
/// Identifier. The name of the CSS Product input. Format:
/// `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section
/// `css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId. Example:
/// accounts/123/cssProductInputs/de~DE~rawProvidedId123
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// <summary>
/// The list of CSS product attributes to be updated. If the update mask is omitted, then it is treated
/// as implied field mask equivalent to all fields that are populated (have a non-empty value).
/// Attributes specified in the update mask without a value specified in the body will be deleted from
/// the CSS product. Update mask can only be specified for top level fields in attributes and custom
/// attributes. To specify the update mask for custom attributes you need to add the `custom_attribute.`
/// prefix. Providing special "*" value for full CSS product replacement is not supported.
/// </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.Css.v1.Data.CssProductInput 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 = @"^accounts/[^/]+/cssProductInputs/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// <summary>Gets the CssProducts resource.</summary>
public virtual CssProductsResource CssProducts { get; }
/// <summary>The "cssProducts" collection of methods.</summary>
public class CssProductsResource
{
private const string Resource = "cssProducts";
/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;
/// <summary>Constructs a new resource.</summary>
public CssProductsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// <summary>
/// Retrieves the processed CSS Product from your CSS Center account. After inserting, updating, or deleting
/// a product input, it may take several minutes before the updated final product can be retrieved.
/// </summary>
/// <param name="name">Required. The name of the CSS product to retrieve.</param>
public virtual GetRequest Get(string name)
{
return new GetRequest(this.service, name);
}
/// <summary>
/// Retrieves the processed CSS Product from your CSS Center account. After inserting, updating, or deleting
/// a product input, it may take several minutes before the updated final product can be retrieved.
/// </summary>
public class GetRequest : CssBaseServiceRequest<Google.Apis.Css.v1.Data.CssProduct>
{
/// <summary>Constructs a new Get request.</summary>
public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
/// <summary>Required. The name of the CSS product to retrieve.</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 = @"^accounts/[^/]+/cssProducts/[^/]+$",
});
}
}
/// <summary>
/// Lists the processed CSS Products in your CSS Center account. The response might contain fewer items than
/// specified by pageSize. Rely on pageToken to determine if there are more items to be requested. After
/// inserting, updating, or deleting a CSS product input, it may take several minutes before the updated
/// processed CSS product can be retrieved.
/// </summary>
/// <param name="parent">
/// Required. The account/domain to list processed CSS Products for. Format: accounts/{account}
/// </param>
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// <summary>
/// Lists the processed CSS Products in your CSS Center account. The response might contain fewer items than
/// specified by pageSize. Rely on pageToken to determine if there are more items to be requested. After
/// inserting, updating, or deleting a CSS product input, it may take several minutes before the updated
/// processed CSS product can be retrieved.
/// </summary>
public class ListRequest : CssBaseServiceRequest<Google.Apis.Css.v1.Data.ListCssProductsResponse>
{
/// <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/domain to list processed CSS Products for. Format: accounts/{account}
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// <summary>
/// The maximum number of CSS Products to return. The service may return fewer than this value. The
/// maximum value is 1000; values above 1000 will be coerced to 1000. If unspecified, the maximum number
/// of CSS products will be returned.
/// </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 `ListCssProducts` call. Provide this to retrieve the
/// subsequent page. When paginating, all other parameters provided to `ListCssProducts` 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}/cssProducts";
/// <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 = @"^accounts/[^/]+$",
});
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 Labels resource.</summary>
public virtual LabelsResource Labels { get; }
/// <summary>The "labels" collection of methods.</summary>
public class LabelsResource
{
private const string Resource = "labels";
/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;
/// <summary>Constructs a new resource.</summary>
public LabelsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// <summary>Creates a new label, not assigned to any account.</summary>
/// <param name="body">The body of the request.</param>
/// <param name="parent">Required. The parent account. Format: accounts/{account}</param>
public virtual CreateRequest Create(Google.Apis.Css.v1.Data.AccountLabel body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// <summary>Creates a new label, not assigned to any account.</summary>
public class CreateRequest : CssBaseServiceRequest<Google.Apis.Css.v1.Data.AccountLabel>
{
/// <summary>Constructs a new Create request.</summary>
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Css.v1.Data.AccountLabel body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
/// <summary>Required. The parent account. Format: 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.Css.v1.Data.AccountLabel 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}/labels";
/// <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 = @"^accounts/[^/]+$",
});
}
}
/// <summary>Deletes a label and removes it from all accounts to which it was assigned.</summary>
/// <param name="name">
/// Required. The name of the label to delete. Format: accounts/{account}/labels/{label}
/// </param>
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
/// <summary>Deletes a label and removes it from all accounts to which it was assigned.</summary>
public class DeleteRequest : CssBaseServiceRequest<Google.Apis.Css.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 name of the label to delete. Format: accounts/{account}/labels/{label}
/// </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 = @"^accounts/[^/]+/labels/[^/]+$",
});
}
}
/// <summary>Lists the labels owned by an account.</summary>
/// <param name="parent">Required. The parent account. Format: accounts/{account}</param>
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// <summary>Lists the labels owned by an account.</summary>
public class ListRequest : CssBaseServiceRequest<Google.Apis.Css.v1.Data.ListAccountLabelsResponse>
{
/// <summary>Constructs a new List request.</summary>
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
/// <summary>Required. The parent account. Format: accounts/{account}</summary>
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// <summary>
/// The maximum number of labels to return. The service may return fewer than this value. If
/// unspecified, at most 50 labels 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>
/// A page token, received from a previous `ListAccountLabels` call. Provide this to retrieve the
/// subsequent page. When paginating, all other parameters provided to `ListAccountLabels` 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}/labels";
/// <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 = @"^accounts/[^/]+$",
});
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 label.</summary>
/// <param name="body">The body of the request.</param>
/// <param name="name">
/// Identifier. The resource name of the label. Format: accounts/{account}/labels/{label}
/// </param>
public virtual PatchRequest Patch(Google.Apis.Css.v1.Data.AccountLabel body, string name)
{
return new PatchRequest(this.service, body, name);
}
/// <summary>Updates a label.</summary>
public class PatchRequest : CssBaseServiceRequest<Google.Apis.Css.v1.Data.AccountLabel>
{
/// <summary>Constructs a new Patch request.</summary>
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Css.v1.Data.AccountLabel body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
/// <summary>
/// Identifier. The resource name of the label. Format: accounts/{account}/labels/{label}
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// <summary>Gets or sets the body of this request.</summary>
Google.Apis.Css.v1.Data.AccountLabel 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 = @"^accounts/[^/]+/labels/[^/]+$",
});
}
}
}
/// <summary>Gets the Quotas resource.</summary>
public virtual QuotasResource Quotas { get; }
/// <summary>The "quotas" collection of methods.</summary>
public class QuotasResource
{
private const string Resource = "quotas";
/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;
/// <summary>Constructs a new resource.</summary>
public QuotasResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// <summary>Lists the daily call quota and usage per group for your CSS Center account.</summary>
/// <param name="parent">
/// Required. The CSS account that owns the collection of method quotas and resources. In most cases, this
/// is the CSS domain. Format: accounts/{account}
/// </param>
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// <summary>Lists the daily call quota and usage per group for your CSS Center account.</summary>
public class ListRequest : CssBaseServiceRequest<Google.Apis.Css.v1.Data.ListQuotaGroupsResponse>
{
/// <summary>Constructs a new List request.</summary>
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
/// <summary>
/// Required. The CSS account that owns the collection of method quotas and resources. In most cases,
/// this is the CSS domain. Format: accounts/{account}
/// </summary>