|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.policytroubleshooter.v3beta.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * An operation attribute that defines the permissions applicable to this rule. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Policy Troubleshooter API. For a detailed explanation |
| 24 | + * see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class GoogleIamV3PrincipalAccessBoundaryPolicyRuleOperation extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. Specifies the permissions that this rule excludes from the set of affected |
| 35 | + * permissions given by `permissions`. The number of excluded permission strings in this field is |
| 36 | + * limited to 50. If a permission appears in both `permissions` and `excluded_permissions` then it |
| 37 | + * will _not_ be subject to the policy effect. The excluded permissions can be specified using the |
| 38 | + * same syntax as `permissions`. |
| 39 | + * The value may be {@code null}. |
| 40 | + */ |
| 41 | + @com.google.api.client.util.Key |
| 42 | + private java.util.List<java.lang.String> excludedPermissions; |
| 43 | + |
| 44 | + /** |
| 45 | + * Optional. The permissions that are explicitly affected by this rule. The number of permission |
| 46 | + * strings in this field is limited to 50. Each permission uses the format |
| 47 | + * `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name |
| 48 | + * for the service. `*` can be used as a wildcard to match all permissions for a specific service, |
| 49 | + * resource type, or verb. The following formats are supported: * |
| 50 | + * `{service_fqdn}/{resource}.{verb}`: A specific permission. * `{service_fqdn}/{resource}.*`: All |
| 51 | + * permissions for a specific resource type. * `{service_fqdn}.*`: All permissions for all |
| 52 | + * resource types under a specific service. * `{service_fqdn}.{verb}`: All permissions with a |
| 53 | + * specific verb under a specific service. * `*`: All permissions across all services. For |
| 54 | + * example, `compute.googleapis.com.setIamPolicy` refers to all setIamPolicy permissions for any |
| 55 | + * compute resource. Wildcards expand only to the permissions specified in the |
| 56 | + * `enforcement_version` of the policy. If the `enforcement_version` is updated, the wildcard will |
| 57 | + * automatically expand to include new permissions in the updated version. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private java.util.List<java.lang.String> permissions; |
| 62 | + |
| 63 | + /** |
| 64 | + * Optional. Specifies the permissions that this rule excludes from the set of affected |
| 65 | + * permissions given by `permissions`. The number of excluded permission strings in this field is |
| 66 | + * limited to 50. If a permission appears in both `permissions` and `excluded_permissions` then it |
| 67 | + * will _not_ be subject to the policy effect. The excluded permissions can be specified using the |
| 68 | + * same syntax as `permissions`. |
| 69 | + * @return value or {@code null} for none |
| 70 | + */ |
| 71 | + public java.util.List<java.lang.String> getExcludedPermissions() { |
| 72 | + return excludedPermissions; |
| 73 | + } |
| 74 | + |
| 75 | + /** |
| 76 | + * Optional. Specifies the permissions that this rule excludes from the set of affected |
| 77 | + * permissions given by `permissions`. The number of excluded permission strings in this field is |
| 78 | + * limited to 50. If a permission appears in both `permissions` and `excluded_permissions` then it |
| 79 | + * will _not_ be subject to the policy effect. The excluded permissions can be specified using the |
| 80 | + * same syntax as `permissions`. |
| 81 | + * @param excludedPermissions excludedPermissions or {@code null} for none |
| 82 | + */ |
| 83 | + public GoogleIamV3PrincipalAccessBoundaryPolicyRuleOperation setExcludedPermissions(java.util.List<java.lang.String> excludedPermissions) { |
| 84 | + this.excludedPermissions = excludedPermissions; |
| 85 | + return this; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Optional. The permissions that are explicitly affected by this rule. The number of permission |
| 90 | + * strings in this field is limited to 50. Each permission uses the format |
| 91 | + * `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name |
| 92 | + * for the service. `*` can be used as a wildcard to match all permissions for a specific service, |
| 93 | + * resource type, or verb. The following formats are supported: * |
| 94 | + * `{service_fqdn}/{resource}.{verb}`: A specific permission. * `{service_fqdn}/{resource}.*`: All |
| 95 | + * permissions for a specific resource type. * `{service_fqdn}.*`: All permissions for all |
| 96 | + * resource types under a specific service. * `{service_fqdn}.{verb}`: All permissions with a |
| 97 | + * specific verb under a specific service. * `*`: All permissions across all services. For |
| 98 | + * example, `compute.googleapis.com.setIamPolicy` refers to all setIamPolicy permissions for any |
| 99 | + * compute resource. Wildcards expand only to the permissions specified in the |
| 100 | + * `enforcement_version` of the policy. If the `enforcement_version` is updated, the wildcard will |
| 101 | + * automatically expand to include new permissions in the updated version. |
| 102 | + * @return value or {@code null} for none |
| 103 | + */ |
| 104 | + public java.util.List<java.lang.String> getPermissions() { |
| 105 | + return permissions; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * Optional. The permissions that are explicitly affected by this rule. The number of permission |
| 110 | + * strings in this field is limited to 50. Each permission uses the format |
| 111 | + * `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name |
| 112 | + * for the service. `*` can be used as a wildcard to match all permissions for a specific service, |
| 113 | + * resource type, or verb. The following formats are supported: * |
| 114 | + * `{service_fqdn}/{resource}.{verb}`: A specific permission. * `{service_fqdn}/{resource}.*`: All |
| 115 | + * permissions for a specific resource type. * `{service_fqdn}.*`: All permissions for all |
| 116 | + * resource types under a specific service. * `{service_fqdn}.{verb}`: All permissions with a |
| 117 | + * specific verb under a specific service. * `*`: All permissions across all services. For |
| 118 | + * example, `compute.googleapis.com.setIamPolicy` refers to all setIamPolicy permissions for any |
| 119 | + * compute resource. Wildcards expand only to the permissions specified in the |
| 120 | + * `enforcement_version` of the policy. If the `enforcement_version` is updated, the wildcard will |
| 121 | + * automatically expand to include new permissions in the updated version. |
| 122 | + * @param permissions permissions or {@code null} for none |
| 123 | + */ |
| 124 | + public GoogleIamV3PrincipalAccessBoundaryPolicyRuleOperation setPermissions(java.util.List<java.lang.String> permissions) { |
| 125 | + this.permissions = permissions; |
| 126 | + return this; |
| 127 | + } |
| 128 | + |
| 129 | + @Override |
| 130 | + public GoogleIamV3PrincipalAccessBoundaryPolicyRuleOperation set(String fieldName, Object value) { |
| 131 | + return (GoogleIamV3PrincipalAccessBoundaryPolicyRuleOperation) super.set(fieldName, value); |
| 132 | + } |
| 133 | + |
| 134 | + @Override |
| 135 | + public GoogleIamV3PrincipalAccessBoundaryPolicyRuleOperation clone() { |
| 136 | + return (GoogleIamV3PrincipalAccessBoundaryPolicyRuleOperation) super.clone(); |
| 137 | + } |
| 138 | + |
| 139 | +} |
0 commit comments