|
| 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.iam.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Represents the OAuth 2.0 client credential configuration for retrieving additional user |
| 21 | + * attributes that are not present in the initial authentication credentials from the identity |
| 22 | + * provider, e.g. groups. See https://datatracker.ietf.org/doc/html/rfc6749#section-4.4 for more |
| 23 | + * details on client credentials grant flow. |
| 24 | + * |
| 25 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 26 | + * transmitted over HTTP when working with the Identity and Access Management (IAM) API. For a |
| 27 | + * detailed explanation see: |
| 28 | + * <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> |
| 29 | + * </p> |
| 30 | + * |
| 31 | + * @author Google, Inc. |
| 32 | + */ |
| 33 | +@SuppressWarnings("javadoc") |
| 34 | +public final class GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client extends com.google.api.client.json.GenericJson { |
| 35 | + |
| 36 | + /** |
| 37 | + * Required. Represents the IdP and type of claims that should be fetched. |
| 38 | + * The value may be {@code null}. |
| 39 | + */ |
| 40 | + @com.google.api.client.util.Key |
| 41 | + private java.lang.String attributesType; |
| 42 | + |
| 43 | + /** |
| 44 | + * Required. The OAuth 2.0 client ID for retrieving extra attributes from the identity provider. |
| 45 | + * Required to get the Access Token using client credentials grant flow. |
| 46 | + * The value may be {@code null}. |
| 47 | + */ |
| 48 | + @com.google.api.client.util.Key |
| 49 | + private java.lang.String clientId; |
| 50 | + |
| 51 | + /** |
| 52 | + * Required. The OAuth 2.0 client secret for retrieving extra attributes from the identity |
| 53 | + * provider. Required to get the Access Token using client credentials grant flow. |
| 54 | + * The value may be {@code null}. |
| 55 | + */ |
| 56 | + @com.google.api.client.util.Key |
| 57 | + private GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret clientSecret; |
| 58 | + |
| 59 | + /** |
| 60 | + * Required. The OIDC identity provider's issuer URI. Must be a valid URI using the `https` |
| 61 | + * scheme. Required to get the OIDC discovery document. |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private java.lang.String issuerUri; |
| 66 | + |
| 67 | + /** |
| 68 | + * Optional. Represents the parameters to control which claims are fetched from an IdP. |
| 69 | + * The value may be {@code null}. |
| 70 | + */ |
| 71 | + @com.google.api.client.util.Key |
| 72 | + private GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2ClientQueryParameters queryParameters; |
| 73 | + |
| 74 | + /** |
| 75 | + * Required. Represents the IdP and type of claims that should be fetched. |
| 76 | + * @return value or {@code null} for none |
| 77 | + */ |
| 78 | + public java.lang.String getAttributesType() { |
| 79 | + return attributesType; |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * Required. Represents the IdP and type of claims that should be fetched. |
| 84 | + * @param attributesType attributesType or {@code null} for none |
| 85 | + */ |
| 86 | + public GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client setAttributesType(java.lang.String attributesType) { |
| 87 | + this.attributesType = attributesType; |
| 88 | + return this; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * Required. The OAuth 2.0 client ID for retrieving extra attributes from the identity provider. |
| 93 | + * Required to get the Access Token using client credentials grant flow. |
| 94 | + * @return value or {@code null} for none |
| 95 | + */ |
| 96 | + public java.lang.String getClientId() { |
| 97 | + return clientId; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * Required. The OAuth 2.0 client ID for retrieving extra attributes from the identity provider. |
| 102 | + * Required to get the Access Token using client credentials grant flow. |
| 103 | + * @param clientId clientId or {@code null} for none |
| 104 | + */ |
| 105 | + public GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client setClientId(java.lang.String clientId) { |
| 106 | + this.clientId = clientId; |
| 107 | + return this; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * Required. The OAuth 2.0 client secret for retrieving extra attributes from the identity |
| 112 | + * provider. Required to get the Access Token using client credentials grant flow. |
| 113 | + * @return value or {@code null} for none |
| 114 | + */ |
| 115 | + public GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret getClientSecret() { |
| 116 | + return clientSecret; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Required. The OAuth 2.0 client secret for retrieving extra attributes from the identity |
| 121 | + * provider. Required to get the Access Token using client credentials grant flow. |
| 122 | + * @param clientSecret clientSecret or {@code null} for none |
| 123 | + */ |
| 124 | + public GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client setClientSecret(GoogleIamAdminV1WorkforcePoolProviderOidcClientSecret clientSecret) { |
| 125 | + this.clientSecret = clientSecret; |
| 126 | + return this; |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * Required. The OIDC identity provider's issuer URI. Must be a valid URI using the `https` |
| 131 | + * scheme. Required to get the OIDC discovery document. |
| 132 | + * @return value or {@code null} for none |
| 133 | + */ |
| 134 | + public java.lang.String getIssuerUri() { |
| 135 | + return issuerUri; |
| 136 | + } |
| 137 | + |
| 138 | + /** |
| 139 | + * Required. The OIDC identity provider's issuer URI. Must be a valid URI using the `https` |
| 140 | + * scheme. Required to get the OIDC discovery document. |
| 141 | + * @param issuerUri issuerUri or {@code null} for none |
| 142 | + */ |
| 143 | + public GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client setIssuerUri(java.lang.String issuerUri) { |
| 144 | + this.issuerUri = issuerUri; |
| 145 | + return this; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * Optional. Represents the parameters to control which claims are fetched from an IdP. |
| 150 | + * @return value or {@code null} for none |
| 151 | + */ |
| 152 | + public GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2ClientQueryParameters getQueryParameters() { |
| 153 | + return queryParameters; |
| 154 | + } |
| 155 | + |
| 156 | + /** |
| 157 | + * Optional. Represents the parameters to control which claims are fetched from an IdP. |
| 158 | + * @param queryParameters queryParameters or {@code null} for none |
| 159 | + */ |
| 160 | + public GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client setQueryParameters(GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2ClientQueryParameters queryParameters) { |
| 161 | + this.queryParameters = queryParameters; |
| 162 | + return this; |
| 163 | + } |
| 164 | + |
| 165 | + @Override |
| 166 | + public GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client set(String fieldName, Object value) { |
| 167 | + return (GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client) super.set(fieldName, value); |
| 168 | + } |
| 169 | + |
| 170 | + @Override |
| 171 | + public GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client clone() { |
| 172 | + return (GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client) super.clone(); |
| 173 | + } |
| 174 | + |
| 175 | +} |
0 commit comments