|
| 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.storagetransfer.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Identities of a user registered Azure application that enables identity federation to trust |
| 21 | + * tokens issued by the user's Google service account. For more information about Azure application |
| 22 | + * and identity federation, see [Register an application with the Microsoft identity platform] |
| 23 | + * (https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app) Azure RBAC |
| 24 | + * roles then need be assigned to the Azure application to authorize access to the user's Azure data |
| 25 | + * source. For more information about Azure RBAC roles for blobs, see [Manage Access Rights with |
| 26 | + * RBAC] (https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-azure-active- |
| 27 | + * directory#manage-access-rights-with-rbac) |
| 28 | + * |
| 29 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 30 | + * transmitted over HTTP when working with the Storage Transfer API. For a detailed explanation see: |
| 31 | + * <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> |
| 32 | + * </p> |
| 33 | + * |
| 34 | + * @author Google, Inc. |
| 35 | + */ |
| 36 | +@SuppressWarnings("javadoc") |
| 37 | +public final class FederatedIdentityConfig extends com.google.api.client.json.GenericJson { |
| 38 | + |
| 39 | + /** |
| 40 | + * Required. Client (application) ID of the application with federated credentials. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private java.lang.String clientId; |
| 45 | + |
| 46 | + /** |
| 47 | + * Required. Tenant (directory) ID of the application with federated credentials. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private java.lang.String tenantId; |
| 52 | + |
| 53 | + /** |
| 54 | + * Required. Client (application) ID of the application with federated credentials. |
| 55 | + * @return value or {@code null} for none |
| 56 | + */ |
| 57 | + public java.lang.String getClientId() { |
| 58 | + return clientId; |
| 59 | + } |
| 60 | + |
| 61 | + /** |
| 62 | + * Required. Client (application) ID of the application with federated credentials. |
| 63 | + * @param clientId clientId or {@code null} for none |
| 64 | + */ |
| 65 | + public FederatedIdentityConfig setClientId(java.lang.String clientId) { |
| 66 | + this.clientId = clientId; |
| 67 | + return this; |
| 68 | + } |
| 69 | + |
| 70 | + /** |
| 71 | + * Required. Tenant (directory) ID of the application with federated credentials. |
| 72 | + * @return value or {@code null} for none |
| 73 | + */ |
| 74 | + public java.lang.String getTenantId() { |
| 75 | + return tenantId; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * Required. Tenant (directory) ID of the application with federated credentials. |
| 80 | + * @param tenantId tenantId or {@code null} for none |
| 81 | + */ |
| 82 | + public FederatedIdentityConfig setTenantId(java.lang.String tenantId) { |
| 83 | + this.tenantId = tenantId; |
| 84 | + return this; |
| 85 | + } |
| 86 | + |
| 87 | + @Override |
| 88 | + public FederatedIdentityConfig set(String fieldName, Object value) { |
| 89 | + return (FederatedIdentityConfig) super.set(fieldName, value); |
| 90 | + } |
| 91 | + |
| 92 | + @Override |
| 93 | + public FederatedIdentityConfig clone() { |
| 94 | + return (FederatedIdentityConfig) super.clone(); |
| 95 | + } |
| 96 | + |
| 97 | +} |
0 commit comments