@@ -10163,6 +10163,371 @@ public Patch set(String parameterName, Object value) {
1016310163
1016410164 }
1016510165
10166+ /**
10167+ * An accessor for creating requests from the Policies collection.
10168+ *
10169+ * <p>The typical use is:</p>
10170+ * <pre>
10171+ * {@code CloudIdentity cloudidentity = new CloudIdentity(...);}
10172+ * {@code CloudIdentity.Policies.List request = cloudidentity.policies().list(parameters ...)}
10173+ * </pre>
10174+ *
10175+ * @return the resource collection
10176+ */
10177+ public Policies policies () {
10178+ return new Policies ();
10179+ }
10180+
10181+ /**
10182+ * The "policies" collection of methods.
10183+ */
10184+ public class Policies {
10185+
10186+ /**
10187+ * Get a Policy
10188+ *
10189+ * Create a request for the method "policies.get".
10190+ *
10191+ * This request holds the parameters needed by the cloudidentity server. After setting any optional
10192+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
10193+ *
10194+ * @param name Required. The name of the policy to retrieve. Format: "policies/{policy}".
10195+ * @return the request
10196+ */
10197+ public Get get (java .lang .String name ) throws java .io .IOException {
10198+ Get result = new Get (name );
10199+ initialize (result );
10200+ return result ;
10201+ }
10202+
10203+ public class Get extends CloudIdentityRequest <com .google .api .services .cloudidentity .v1 .model .Policy > {
10204+
10205+ private static final String REST_PATH = "v1/{+name}" ;
10206+
10207+ private final java .util .regex .Pattern NAME_PATTERN =
10208+ java .util .regex .Pattern .compile ("^policies/[^/]+$" );
10209+
10210+ /**
10211+ * Get a Policy
10212+ *
10213+ * Create a request for the method "policies.get".
10214+ *
10215+ * This request holds the parameters needed by the the cloudidentity server. After setting any
10216+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
10217+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
10218+ * must be called to initialize this instance immediately after invoking the constructor. </p>
10219+ *
10220+ * @param name Required. The name of the policy to retrieve. Format: "policies/{policy}".
10221+ * @since 1.13
10222+ */
10223+ protected Get (java .lang .String name ) {
10224+ super (CloudIdentity .this , "GET" , REST_PATH , null , com .google .api .services .cloudidentity .v1 .model .Policy .class );
10225+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
10226+ if (!getSuppressPatternChecks ()) {
10227+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
10228+ "Parameter name must conform to the pattern " +
10229+ "^policies/[^/]+$" );
10230+ }
10231+ }
10232+
10233+ @ Override
10234+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
10235+ return super .executeUsingHead ();
10236+ }
10237+
10238+ @ Override
10239+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
10240+ return super .buildHttpRequestUsingHead ();
10241+ }
10242+
10243+ @ Override
10244+ public Get set$Xgafv (java .lang .String $Xgafv ) {
10245+ return (Get ) super .set$Xgafv ($Xgafv );
10246+ }
10247+
10248+ @ Override
10249+ public Get setAccessToken (java .lang .String accessToken ) {
10250+ return (Get ) super .setAccessToken (accessToken );
10251+ }
10252+
10253+ @ Override
10254+ public Get setAlt (java .lang .String alt ) {
10255+ return (Get ) super .setAlt (alt );
10256+ }
10257+
10258+ @ Override
10259+ public Get setCallback (java .lang .String callback ) {
10260+ return (Get ) super .setCallback (callback );
10261+ }
10262+
10263+ @ Override
10264+ public Get setFields (java .lang .String fields ) {
10265+ return (Get ) super .setFields (fields );
10266+ }
10267+
10268+ @ Override
10269+ public Get setKey (java .lang .String key ) {
10270+ return (Get ) super .setKey (key );
10271+ }
10272+
10273+ @ Override
10274+ public Get setOauthToken (java .lang .String oauthToken ) {
10275+ return (Get ) super .setOauthToken (oauthToken );
10276+ }
10277+
10278+ @ Override
10279+ public Get setPrettyPrint (java .lang .Boolean prettyPrint ) {
10280+ return (Get ) super .setPrettyPrint (prettyPrint );
10281+ }
10282+
10283+ @ Override
10284+ public Get setQuotaUser (java .lang .String quotaUser ) {
10285+ return (Get ) super .setQuotaUser (quotaUser );
10286+ }
10287+
10288+ @ Override
10289+ public Get setUploadType (java .lang .String uploadType ) {
10290+ return (Get ) super .setUploadType (uploadType );
10291+ }
10292+
10293+ @ Override
10294+ public Get setUploadProtocol (java .lang .String uploadProtocol ) {
10295+ return (Get ) super .setUploadProtocol (uploadProtocol );
10296+ }
10297+
10298+ /** Required. The name of the policy to retrieve. Format: "policies/{policy}". */
10299+ @ com .google .api .client .util .Key
10300+ private java .lang .String name ;
10301+
10302+ /** Required. The name of the policy to retrieve. Format: "policies/{policy}".
10303+ */
10304+ public java .lang .String getName () {
10305+ return name ;
10306+ }
10307+
10308+ /** Required. The name of the policy to retrieve. Format: "policies/{policy}". */
10309+ public Get setName (java .lang .String name ) {
10310+ if (!getSuppressPatternChecks ()) {
10311+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
10312+ "Parameter name must conform to the pattern " +
10313+ "^policies/[^/]+$" );
10314+ }
10315+ this .name = name ;
10316+ return this ;
10317+ }
10318+
10319+ @ Override
10320+ public Get set (String parameterName , Object value ) {
10321+ return (Get ) super .set (parameterName , value );
10322+ }
10323+ }
10324+ /**
10325+ * List Policies
10326+ *
10327+ * Create a request for the method "policies.list".
10328+ *
10329+ * This request holds the parameters needed by the cloudidentity server. After setting any optional
10330+ * parameters, call the {@link List#execute()} method to invoke the remote operation.
10331+ *
10332+ * @return the request
10333+ */
10334+ public List list () throws java .io .IOException {
10335+ List result = new List ();
10336+ initialize (result );
10337+ return result ;
10338+ }
10339+
10340+ public class List extends CloudIdentityRequest <com .google .api .services .cloudidentity .v1 .model .ListPoliciesResponse > {
10341+
10342+ private static final String REST_PATH = "v1/policies" ;
10343+
10344+ /**
10345+ * List Policies
10346+ *
10347+ * Create a request for the method "policies.list".
10348+ *
10349+ * This request holds the parameters needed by the the cloudidentity server. After setting any
10350+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
10351+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
10352+ * must be called to initialize this instance immediately after invoking the constructor. </p>
10353+ *
10354+ * @since 1.13
10355+ */
10356+ protected List () {
10357+ super (CloudIdentity .this , "GET" , REST_PATH , null , com .google .api .services .cloudidentity .v1 .model .ListPoliciesResponse .class );
10358+ }
10359+
10360+ @ Override
10361+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
10362+ return super .executeUsingHead ();
10363+ }
10364+
10365+ @ Override
10366+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
10367+ return super .buildHttpRequestUsingHead ();
10368+ }
10369+
10370+ @ Override
10371+ public List set$Xgafv (java .lang .String $Xgafv ) {
10372+ return (List ) super .set$Xgafv ($Xgafv );
10373+ }
10374+
10375+ @ Override
10376+ public List setAccessToken (java .lang .String accessToken ) {
10377+ return (List ) super .setAccessToken (accessToken );
10378+ }
10379+
10380+ @ Override
10381+ public List setAlt (java .lang .String alt ) {
10382+ return (List ) super .setAlt (alt );
10383+ }
10384+
10385+ @ Override
10386+ public List setCallback (java .lang .String callback ) {
10387+ return (List ) super .setCallback (callback );
10388+ }
10389+
10390+ @ Override
10391+ public List setFields (java .lang .String fields ) {
10392+ return (List ) super .setFields (fields );
10393+ }
10394+
10395+ @ Override
10396+ public List setKey (java .lang .String key ) {
10397+ return (List ) super .setKey (key );
10398+ }
10399+
10400+ @ Override
10401+ public List setOauthToken (java .lang .String oauthToken ) {
10402+ return (List ) super .setOauthToken (oauthToken );
10403+ }
10404+
10405+ @ Override
10406+ public List setPrettyPrint (java .lang .Boolean prettyPrint ) {
10407+ return (List ) super .setPrettyPrint (prettyPrint );
10408+ }
10409+
10410+ @ Override
10411+ public List setQuotaUser (java .lang .String quotaUser ) {
10412+ return (List ) super .setQuotaUser (quotaUser );
10413+ }
10414+
10415+ @ Override
10416+ public List setUploadType (java .lang .String uploadType ) {
10417+ return (List ) super .setUploadType (uploadType );
10418+ }
10419+
10420+ @ Override
10421+ public List setUploadProtocol (java .lang .String uploadProtocol ) {
10422+ return (List ) super .setUploadProtocol (uploadProtocol );
10423+ }
10424+
10425+ /**
10426+ * Optional. A CEL expression for filtering the results. Policies can be filtered by
10427+ * application with this expression: setting.name = 'settings/gmail.*' Policies can be
10428+ * filtered by setting type with this expression: setting.name = '*.service_status' A maximum
10429+ * of one of the above setting.name clauses can be used. Policies can be filtered by customer
10430+ * with this expression: customer = "customers/{customer}" Where `customer` is the `id` from
10431+ * the [Admin SDK `Customer` resource](https://developers.google.com/admin-
10432+ * sdk/directory/reference/rest/v1/customers). You may use `customers/my_customer` to specify
10433+ * your own organization. When no customer is mentioned it will be default to
10434+ * customers/my_customer. A maximum of one customer clause can be used. The above clauses can
10435+ * only be combined together in a single filter expression with the `&&` operator.
10436+ */
10437+ @ com .google .api .client .util .Key
10438+ private java .lang .String filter ;
10439+
10440+ /** Optional. A CEL expression for filtering the results. Policies can be filtered by application with
10441+ this expression: setting.name = 'settings/gmail.*' Policies can be filtered by setting type with
10442+ this expression: setting.name = '*.service_status' A maximum of one of the above setting.name
10443+ clauses can be used. Policies can be filtered by customer with this expression: customer =
10444+ "customers/{customer}" Where `customer` is the `id` from the [Admin SDK `Customer`
10445+ resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). You may
10446+ use `customers/my_customer` to specify your own organization. When no customer is mentioned it will
10447+ be default to customers/my_customer. A maximum of one customer clause can be used. The above
10448+ clauses can only be combined together in a single filter expression with the `&&` operator.
10449+ */
10450+ public java .lang .String getFilter () {
10451+ return filter ;
10452+ }
10453+
10454+ /**
10455+ * Optional. A CEL expression for filtering the results. Policies can be filtered by
10456+ * application with this expression: setting.name = 'settings/gmail.*' Policies can be
10457+ * filtered by setting type with this expression: setting.name = '*.service_status' A maximum
10458+ * of one of the above setting.name clauses can be used. Policies can be filtered by customer
10459+ * with this expression: customer = "customers/{customer}" Where `customer` is the `id` from
10460+ * the [Admin SDK `Customer` resource](https://developers.google.com/admin-
10461+ * sdk/directory/reference/rest/v1/customers). You may use `customers/my_customer` to specify
10462+ * your own organization. When no customer is mentioned it will be default to
10463+ * customers/my_customer. A maximum of one customer clause can be used. The above clauses can
10464+ * only be combined together in a single filter expression with the `&&` operator.
10465+ */
10466+ public List setFilter (java .lang .String filter ) {
10467+ this .filter = filter ;
10468+ return this ;
10469+ }
10470+
10471+ /**
10472+ * Optional. The maximum number of results to return. The service can return fewer than this
10473+ * number. If omitted or set to 0, the default is 50 results per page. The maximum allowed
10474+ * value is 100. `page_size` values greater than 100 default to 100.
10475+ */
10476+ @ com .google .api .client .util .Key
10477+ private java .lang .Integer pageSize ;
10478+
10479+ /** Optional. The maximum number of results to return. The service can return fewer than this number.
10480+ If omitted or set to 0, the default is 50 results per page. The maximum allowed value is 100.
10481+ `page_size` values greater than 100 default to 100.
10482+ */
10483+ public java .lang .Integer getPageSize () {
10484+ return pageSize ;
10485+ }
10486+
10487+ /**
10488+ * Optional. The maximum number of results to return. The service can return fewer than this
10489+ * number. If omitted or set to 0, the default is 50 results per page. The maximum allowed
10490+ * value is 100. `page_size` values greater than 100 default to 100.
10491+ */
10492+ public List setPageSize (java .lang .Integer pageSize ) {
10493+ this .pageSize = pageSize ;
10494+ return this ;
10495+ }
10496+
10497+ /**
10498+ * Optional. The pagination token received from a prior call to PoliciesService.ListPolicies
10499+ * to retrieve the next page of results. When paginating, all other parameters provided to
10500+ * `ListPoliciesRequest` must match the call that provided the page token.
10501+ */
10502+ @ com .google .api .client .util .Key
10503+ private java .lang .String pageToken ;
10504+
10505+ /** Optional. The pagination token received from a prior call to PoliciesService.ListPolicies to
10506+ retrieve the next page of results. When paginating, all other parameters provided to
10507+ `ListPoliciesRequest` must match the call that provided the page token.
10508+ */
10509+ public java .lang .String getPageToken () {
10510+ return pageToken ;
10511+ }
10512+
10513+ /**
10514+ * Optional. The pagination token received from a prior call to PoliciesService.ListPolicies
10515+ * to retrieve the next page of results. When paginating, all other parameters provided to
10516+ * `ListPoliciesRequest` must match the call that provided the page token.
10517+ */
10518+ public List setPageToken (java .lang .String pageToken ) {
10519+ this .pageToken = pageToken ;
10520+ return this ;
10521+ }
10522+
10523+ @ Override
10524+ public List set (String parameterName , Object value ) {
10525+ return (List ) super .set (parameterName , value );
10526+ }
10527+ }
10528+
10529+ }
10530+
1016610531 /**
1016710532 * Builder for {@link CloudIdentity}.
1016810533 *
0 commit comments