@@ -10366,6 +10366,371 @@ public Move set(String parameterName, Object value) {
10366
10366
}
10367
10367
}
10368
10368
10369
+ /**
10370
+ * An accessor for creating requests from the Policies collection.
10371
+ *
10372
+ * <p>The typical use is:</p>
10373
+ * <pre>
10374
+ * {@code CloudIdentity cloudidentity = new CloudIdentity(...);}
10375
+ * {@code CloudIdentity.Policies.List request = cloudidentity.policies().list(parameters ...)}
10376
+ * </pre>
10377
+ *
10378
+ * @return the resource collection
10379
+ */
10380
+ public Policies policies () {
10381
+ return new Policies ();
10382
+ }
10383
+
10384
+ /**
10385
+ * The "policies" collection of methods.
10386
+ */
10387
+ public class Policies {
10388
+
10389
+ /**
10390
+ * Get a Policy
10391
+ *
10392
+ * Create a request for the method "policies.get".
10393
+ *
10394
+ * This request holds the parameters needed by the cloudidentity server. After setting any optional
10395
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
10396
+ *
10397
+ * @param name Required. The name of the policy to retrieve. Format: "policies/{policy}".
10398
+ * @return the request
10399
+ */
10400
+ public Get get (java .lang .String name ) throws java .io .IOException {
10401
+ Get result = new Get (name );
10402
+ initialize (result );
10403
+ return result ;
10404
+ }
10405
+
10406
+ public class Get extends CloudIdentityRequest <com .google .api .services .cloudidentity .v1beta1 .model .Policy > {
10407
+
10408
+ private static final String REST_PATH = "v1beta1/{+name}" ;
10409
+
10410
+ private final java .util .regex .Pattern NAME_PATTERN =
10411
+ java .util .regex .Pattern .compile ("^policies/[^/]+$" );
10412
+
10413
+ /**
10414
+ * Get a Policy
10415
+ *
10416
+ * Create a request for the method "policies.get".
10417
+ *
10418
+ * This request holds the parameters needed by the the cloudidentity server. After setting any
10419
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
10420
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
10421
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
10422
+ *
10423
+ * @param name Required. The name of the policy to retrieve. Format: "policies/{policy}".
10424
+ * @since 1.13
10425
+ */
10426
+ protected Get (java .lang .String name ) {
10427
+ super (CloudIdentity .this , "GET" , REST_PATH , null , com .google .api .services .cloudidentity .v1beta1 .model .Policy .class );
10428
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
10429
+ if (!getSuppressPatternChecks ()) {
10430
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
10431
+ "Parameter name must conform to the pattern " +
10432
+ "^policies/[^/]+$" );
10433
+ }
10434
+ }
10435
+
10436
+ @ Override
10437
+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
10438
+ return super .executeUsingHead ();
10439
+ }
10440
+
10441
+ @ Override
10442
+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
10443
+ return super .buildHttpRequestUsingHead ();
10444
+ }
10445
+
10446
+ @ Override
10447
+ public Get set$Xgafv (java .lang .String $Xgafv ) {
10448
+ return (Get ) super .set$Xgafv ($Xgafv );
10449
+ }
10450
+
10451
+ @ Override
10452
+ public Get setAccessToken (java .lang .String accessToken ) {
10453
+ return (Get ) super .setAccessToken (accessToken );
10454
+ }
10455
+
10456
+ @ Override
10457
+ public Get setAlt (java .lang .String alt ) {
10458
+ return (Get ) super .setAlt (alt );
10459
+ }
10460
+
10461
+ @ Override
10462
+ public Get setCallback (java .lang .String callback ) {
10463
+ return (Get ) super .setCallback (callback );
10464
+ }
10465
+
10466
+ @ Override
10467
+ public Get setFields (java .lang .String fields ) {
10468
+ return (Get ) super .setFields (fields );
10469
+ }
10470
+
10471
+ @ Override
10472
+ public Get setKey (java .lang .String key ) {
10473
+ return (Get ) super .setKey (key );
10474
+ }
10475
+
10476
+ @ Override
10477
+ public Get setOauthToken (java .lang .String oauthToken ) {
10478
+ return (Get ) super .setOauthToken (oauthToken );
10479
+ }
10480
+
10481
+ @ Override
10482
+ public Get setPrettyPrint (java .lang .Boolean prettyPrint ) {
10483
+ return (Get ) super .setPrettyPrint (prettyPrint );
10484
+ }
10485
+
10486
+ @ Override
10487
+ public Get setQuotaUser (java .lang .String quotaUser ) {
10488
+ return (Get ) super .setQuotaUser (quotaUser );
10489
+ }
10490
+
10491
+ @ Override
10492
+ public Get setUploadType (java .lang .String uploadType ) {
10493
+ return (Get ) super .setUploadType (uploadType );
10494
+ }
10495
+
10496
+ @ Override
10497
+ public Get setUploadProtocol (java .lang .String uploadProtocol ) {
10498
+ return (Get ) super .setUploadProtocol (uploadProtocol );
10499
+ }
10500
+
10501
+ /** Required. The name of the policy to retrieve. Format: "policies/{policy}". */
10502
+ @ com .google .api .client .util .Key
10503
+ private java .lang .String name ;
10504
+
10505
+ /** Required. The name of the policy to retrieve. Format: "policies/{policy}".
10506
+ */
10507
+ public java .lang .String getName () {
10508
+ return name ;
10509
+ }
10510
+
10511
+ /** Required. The name of the policy to retrieve. Format: "policies/{policy}". */
10512
+ public Get setName (java .lang .String name ) {
10513
+ if (!getSuppressPatternChecks ()) {
10514
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
10515
+ "Parameter name must conform to the pattern " +
10516
+ "^policies/[^/]+$" );
10517
+ }
10518
+ this .name = name ;
10519
+ return this ;
10520
+ }
10521
+
10522
+ @ Override
10523
+ public Get set (String parameterName , Object value ) {
10524
+ return (Get ) super .set (parameterName , value );
10525
+ }
10526
+ }
10527
+ /**
10528
+ * List Policies
10529
+ *
10530
+ * Create a request for the method "policies.list".
10531
+ *
10532
+ * This request holds the parameters needed by the cloudidentity server. After setting any optional
10533
+ * parameters, call the {@link List#execute()} method to invoke the remote operation.
10534
+ *
10535
+ * @return the request
10536
+ */
10537
+ public List list () throws java .io .IOException {
10538
+ List result = new List ();
10539
+ initialize (result );
10540
+ return result ;
10541
+ }
10542
+
10543
+ public class List extends CloudIdentityRequest <com .google .api .services .cloudidentity .v1beta1 .model .ListPoliciesResponse > {
10544
+
10545
+ private static final String REST_PATH = "v1beta1/policies" ;
10546
+
10547
+ /**
10548
+ * List Policies
10549
+ *
10550
+ * Create a request for the method "policies.list".
10551
+ *
10552
+ * This request holds the parameters needed by the the cloudidentity server. After setting any
10553
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
10554
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
10555
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
10556
+ *
10557
+ * @since 1.13
10558
+ */
10559
+ protected List () {
10560
+ super (CloudIdentity .this , "GET" , REST_PATH , null , com .google .api .services .cloudidentity .v1beta1 .model .ListPoliciesResponse .class );
10561
+ }
10562
+
10563
+ @ Override
10564
+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
10565
+ return super .executeUsingHead ();
10566
+ }
10567
+
10568
+ @ Override
10569
+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
10570
+ return super .buildHttpRequestUsingHead ();
10571
+ }
10572
+
10573
+ @ Override
10574
+ public List set$Xgafv (java .lang .String $Xgafv ) {
10575
+ return (List ) super .set$Xgafv ($Xgafv );
10576
+ }
10577
+
10578
+ @ Override
10579
+ public List setAccessToken (java .lang .String accessToken ) {
10580
+ return (List ) super .setAccessToken (accessToken );
10581
+ }
10582
+
10583
+ @ Override
10584
+ public List setAlt (java .lang .String alt ) {
10585
+ return (List ) super .setAlt (alt );
10586
+ }
10587
+
10588
+ @ Override
10589
+ public List setCallback (java .lang .String callback ) {
10590
+ return (List ) super .setCallback (callback );
10591
+ }
10592
+
10593
+ @ Override
10594
+ public List setFields (java .lang .String fields ) {
10595
+ return (List ) super .setFields (fields );
10596
+ }
10597
+
10598
+ @ Override
10599
+ public List setKey (java .lang .String key ) {
10600
+ return (List ) super .setKey (key );
10601
+ }
10602
+
10603
+ @ Override
10604
+ public List setOauthToken (java .lang .String oauthToken ) {
10605
+ return (List ) super .setOauthToken (oauthToken );
10606
+ }
10607
+
10608
+ @ Override
10609
+ public List setPrettyPrint (java .lang .Boolean prettyPrint ) {
10610
+ return (List ) super .setPrettyPrint (prettyPrint );
10611
+ }
10612
+
10613
+ @ Override
10614
+ public List setQuotaUser (java .lang .String quotaUser ) {
10615
+ return (List ) super .setQuotaUser (quotaUser );
10616
+ }
10617
+
10618
+ @ Override
10619
+ public List setUploadType (java .lang .String uploadType ) {
10620
+ return (List ) super .setUploadType (uploadType );
10621
+ }
10622
+
10623
+ @ Override
10624
+ public List setUploadProtocol (java .lang .String uploadProtocol ) {
10625
+ return (List ) super .setUploadProtocol (uploadProtocol );
10626
+ }
10627
+
10628
+ /**
10629
+ * Optional. A CEL expression for filtering the results. Policies can be filtered by
10630
+ * application with this expression: setting.name = 'settings/gmail.*' Policies can be
10631
+ * filtered by setting type with this expression: setting.name = '*.service_status' A maximum
10632
+ * of one of the above setting.name clauses can be used. Policies can be filtered by customer
10633
+ * with this expression: customer = "customers/{customer}" Where `customer` is the `id` from
10634
+ * the [Admin SDK `Customer` resource](https://developers.google.com/admin-
10635
+ * sdk/directory/reference/rest/v1/customers). You may use `customers/my_customer` to specify
10636
+ * your own organization. When no customer is mentioned it will be default to
10637
+ * customers/my_customer. A maximum of one customer clause can be used. The above clauses can
10638
+ * only be combined together in a single filter expression with the AND operator.
10639
+ */
10640
+ @ com .google .api .client .util .Key
10641
+ private java .lang .String filter ;
10642
+
10643
+ /** Optional. A CEL expression for filtering the results. Policies can be filtered by application with
10644
+ this expression: setting.name = 'settings/gmail.*' Policies can be filtered by setting type with
10645
+ this expression: setting.name = '*.service_status' A maximum of one of the above setting.name
10646
+ clauses can be used. Policies can be filtered by customer with this expression: customer =
10647
+ "customers/{customer}" Where `customer` is the `id` from the [Admin SDK `Customer`
10648
+ resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). You may
10649
+ use `customers/my_customer` to specify your own organization. When no customer is mentioned it will
10650
+ be default to customers/my_customer. A maximum of one customer clause can be used. The above
10651
+ clauses can only be combined together in a single filter expression with the AND operator.
10652
+ */
10653
+ public java .lang .String getFilter () {
10654
+ return filter ;
10655
+ }
10656
+
10657
+ /**
10658
+ * Optional. A CEL expression for filtering the results. Policies can be filtered by
10659
+ * application with this expression: setting.name = 'settings/gmail.*' Policies can be
10660
+ * filtered by setting type with this expression: setting.name = '*.service_status' A maximum
10661
+ * of one of the above setting.name clauses can be used. Policies can be filtered by customer
10662
+ * with this expression: customer = "customers/{customer}" Where `customer` is the `id` from
10663
+ * the [Admin SDK `Customer` resource](https://developers.google.com/admin-
10664
+ * sdk/directory/reference/rest/v1/customers). You may use `customers/my_customer` to specify
10665
+ * your own organization. When no customer is mentioned it will be default to
10666
+ * customers/my_customer. A maximum of one customer clause can be used. The above clauses can
10667
+ * only be combined together in a single filter expression with the AND operator.
10668
+ */
10669
+ public List setFilter (java .lang .String filter ) {
10670
+ this .filter = filter ;
10671
+ return this ;
10672
+ }
10673
+
10674
+ /**
10675
+ * Optional. The maximum number of results to return. The service may return fewer than this
10676
+ * value. If omitted (or defaulted to zero) the server will default to 50. The maximum allowed
10677
+ * value is 100, though requests with page_size greater than that will be interpreted as 100.
10678
+ */
10679
+ @ com .google .api .client .util .Key
10680
+ private java .lang .Integer pageSize ;
10681
+
10682
+ /** Optional. The maximum number of results to return. The service may return fewer than this value. If
10683
+ omitted (or defaulted to zero) the server will default to 50. The maximum allowed value is 100,
10684
+ though requests with page_size greater than that will be interpreted as 100.
10685
+ */
10686
+ public java .lang .Integer getPageSize () {
10687
+ return pageSize ;
10688
+ }
10689
+
10690
+ /**
10691
+ * Optional. The maximum number of results to return. The service may return fewer than this
10692
+ * value. If omitted (or defaulted to zero) the server will default to 50. The maximum allowed
10693
+ * value is 100, though requests with page_size greater than that will be interpreted as 100.
10694
+ */
10695
+ public List setPageSize (java .lang .Integer pageSize ) {
10696
+ this .pageSize = pageSize ;
10697
+ return this ;
10698
+ }
10699
+
10700
+ /**
10701
+ * Optional. The pagination token received from a prior call to PoliciesService.ListPolicies
10702
+ * to retrieve the next page of results. When paginating, all other parameters provided to
10703
+ * `ListPoliciesRequest` must match the call that provided the page token.
10704
+ */
10705
+ @ com .google .api .client .util .Key
10706
+ private java .lang .String pageToken ;
10707
+
10708
+ /** Optional. The pagination token received from a prior call to PoliciesService.ListPolicies to
10709
+ retrieve the next page of results. When paginating, all other parameters provided to
10710
+ `ListPoliciesRequest` must match the call that provided the page token.
10711
+ */
10712
+ public java .lang .String getPageToken () {
10713
+ return pageToken ;
10714
+ }
10715
+
10716
+ /**
10717
+ * Optional. The pagination token received from a prior call to PoliciesService.ListPolicies
10718
+ * to retrieve the next page of results. When paginating, all other parameters provided to
10719
+ * `ListPoliciesRequest` must match the call that provided the page token.
10720
+ */
10721
+ public List setPageToken (java .lang .String pageToken ) {
10722
+ this .pageToken = pageToken ;
10723
+ return this ;
10724
+ }
10725
+
10726
+ @ Override
10727
+ public List set (String parameterName , Object value ) {
10728
+ return (List ) super .set (parameterName , value );
10729
+ }
10730
+ }
10731
+
10732
+ }
10733
+
10369
10734
/**
10370
10735
* Builder for {@link CloudIdentity}.
10371
10736
*
0 commit comments