|
| 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.dataplex.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Message for requesting access to a Data Product. This will be used to create a ChangeRequest of |
| 21 | + * type REQUEST_DATA_PRODUCT_ACCESS. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Cloud Dataplex API. For a detailed explanation 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 GoogleCloudDataplexV1DataProductAccessRequest extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Output only. The display name of the access group defined in the Data Product for which access |
| 35 | + * is being requested. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.String accessGroupDisplayName; |
| 40 | + |
| 41 | + /** |
| 42 | + * Required. The ID of the access group for which access is being requested. This corresponds to |
| 43 | + * the unique identifier of the AccessGroup defined in the Data Product. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String accessGroupId; |
| 48 | + |
| 49 | + /** |
| 50 | + * Required. The resource name of the data product. Format: |
| 51 | + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} |
| 52 | + * The value may be {@code null}. |
| 53 | + */ |
| 54 | + @com.google.api.client.util.Key |
| 55 | + private java.lang.String parent; |
| 56 | + |
| 57 | + /** |
| 58 | + * Optional. The principal for which access is being requested in IAM format. If not specified, |
| 59 | + * the requestor's principal will be used. Example: serviceAccount:my-sa@my- |
| 60 | + * project.iam.gserviceaccount.com. Only service account principals are currently supported. |
| 61 | + * https://cloud.google.com/iam/docs/principal-identifiers |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private java.lang.String requestedPrincipal; |
| 66 | + |
| 67 | + /** |
| 68 | + * Output only. The display name of the access group defined in the Data Product for which access |
| 69 | + * is being requested. |
| 70 | + * @return value or {@code null} for none |
| 71 | + */ |
| 72 | + public java.lang.String getAccessGroupDisplayName() { |
| 73 | + return accessGroupDisplayName; |
| 74 | + } |
| 75 | + |
| 76 | + /** |
| 77 | + * Output only. The display name of the access group defined in the Data Product for which access |
| 78 | + * is being requested. |
| 79 | + * @param accessGroupDisplayName accessGroupDisplayName or {@code null} for none |
| 80 | + */ |
| 81 | + public GoogleCloudDataplexV1DataProductAccessRequest setAccessGroupDisplayName(java.lang.String accessGroupDisplayName) { |
| 82 | + this.accessGroupDisplayName = accessGroupDisplayName; |
| 83 | + return this; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * Required. The ID of the access group for which access is being requested. This corresponds to |
| 88 | + * the unique identifier of the AccessGroup defined in the Data Product. |
| 89 | + * @return value or {@code null} for none |
| 90 | + */ |
| 91 | + public java.lang.String getAccessGroupId() { |
| 92 | + return accessGroupId; |
| 93 | + } |
| 94 | + |
| 95 | + /** |
| 96 | + * Required. The ID of the access group for which access is being requested. This corresponds to |
| 97 | + * the unique identifier of the AccessGroup defined in the Data Product. |
| 98 | + * @param accessGroupId accessGroupId or {@code null} for none |
| 99 | + */ |
| 100 | + public GoogleCloudDataplexV1DataProductAccessRequest setAccessGroupId(java.lang.String accessGroupId) { |
| 101 | + this.accessGroupId = accessGroupId; |
| 102 | + return this; |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * Required. The resource name of the data product. Format: |
| 107 | + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} |
| 108 | + * @return value or {@code null} for none |
| 109 | + */ |
| 110 | + public java.lang.String getParent() { |
| 111 | + return parent; |
| 112 | + } |
| 113 | + |
| 114 | + /** |
| 115 | + * Required. The resource name of the data product. Format: |
| 116 | + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} |
| 117 | + * @param parent parent or {@code null} for none |
| 118 | + */ |
| 119 | + public GoogleCloudDataplexV1DataProductAccessRequest setParent(java.lang.String parent) { |
| 120 | + this.parent = parent; |
| 121 | + return this; |
| 122 | + } |
| 123 | + |
| 124 | + /** |
| 125 | + * Optional. The principal for which access is being requested in IAM format. If not specified, |
| 126 | + * the requestor's principal will be used. Example: serviceAccount:my-sa@my- |
| 127 | + * project.iam.gserviceaccount.com. Only service account principals are currently supported. |
| 128 | + * https://cloud.google.com/iam/docs/principal-identifiers |
| 129 | + * @return value or {@code null} for none |
| 130 | + */ |
| 131 | + public java.lang.String getRequestedPrincipal() { |
| 132 | + return requestedPrincipal; |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * Optional. The principal for which access is being requested in IAM format. If not specified, |
| 137 | + * the requestor's principal will be used. Example: serviceAccount:my-sa@my- |
| 138 | + * project.iam.gserviceaccount.com. Only service account principals are currently supported. |
| 139 | + * https://cloud.google.com/iam/docs/principal-identifiers |
| 140 | + * @param requestedPrincipal requestedPrincipal or {@code null} for none |
| 141 | + */ |
| 142 | + public GoogleCloudDataplexV1DataProductAccessRequest setRequestedPrincipal(java.lang.String requestedPrincipal) { |
| 143 | + this.requestedPrincipal = requestedPrincipal; |
| 144 | + return this; |
| 145 | + } |
| 146 | + |
| 147 | + @Override |
| 148 | + public GoogleCloudDataplexV1DataProductAccessRequest set(String fieldName, Object value) { |
| 149 | + return (GoogleCloudDataplexV1DataProductAccessRequest) super.set(fieldName, value); |
| 150 | + } |
| 151 | + |
| 152 | + @Override |
| 153 | + public GoogleCloudDataplexV1DataProductAccessRequest clone() { |
| 154 | + return (GoogleCloudDataplexV1DataProductAccessRequest) super.clone(); |
| 155 | + } |
| 156 | + |
| 157 | +} |
0 commit comments