|
| 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 | + * Represents a Data Asset resource that can be packaged and shared via a Data Product. |
| 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 Cloud Dataplex API. For a detailed explanation see: |
| 24 | + * <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> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class GoogleCloudDataplexV1DataAsset extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. Access groups configurations for this Data Asset. The key is |
| 34 | + * DataProduct.AccessGroup.id and the value is AccessGroupConfig. Example: key: "analyst" value: { |
| 35 | + * AccessGroupConfig : { iam_roles : "roles/bigquery.dataViewer" } } Currently, at most one IAM |
| 36 | + * role is allowed per access group. For providing multiple predefined IAM roles, wrap them in a |
| 37 | + * custom IAM role as per https://cloud.google.com/iam/docs/creating-custom-roles. |
| 38 | + * The value may be {@code null}. |
| 39 | + */ |
| 40 | + @com.google.api.client.util.Key |
| 41 | + private java.util.Map<String, GoogleCloudDataplexV1DataAssetAccessGroupConfig> accessGroupConfigs; |
| 42 | + |
| 43 | + /** |
| 44 | + * Output only. The time at which the Data Asset was created. |
| 45 | + * The value may be {@code null}. |
| 46 | + */ |
| 47 | + @com.google.api.client.util.Key |
| 48 | + private String createTime; |
| 49 | + |
| 50 | + /** |
| 51 | + * This checksum is computed by the server based on the value of other fields, and may be sent on |
| 52 | + * update and delete requests to ensure the client has an up-to-date value before proceeding. |
| 53 | + * The value may be {@code null}. |
| 54 | + */ |
| 55 | + @com.google.api.client.util.Key |
| 56 | + private java.lang.String etag; |
| 57 | + |
| 58 | + /** |
| 59 | + * Optional. User-defined labels for the Data Asset. |
| 60 | + * The value may be {@code null}. |
| 61 | + */ |
| 62 | + @com.google.api.client.util.Key |
| 63 | + private java.util.Map<String, java.lang.String> labels; |
| 64 | + |
| 65 | + /** |
| 66 | + * Identifier. Resource name of the Data Asset. Format: projects/{project_id_or_number}/locations/ |
| 67 | + * {location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
| 68 | + * The value may be {@code null}. |
| 69 | + */ |
| 70 | + @com.google.api.client.util.Key |
| 71 | + private java.lang.String name; |
| 72 | + |
| 73 | + /** |
| 74 | + * Required. Immutable. Full resource name of the cloud resource represented by the Data Asset. |
| 75 | + * This must follow https://cloud.google.com/iam/docs/full-resource-names. Example: |
| 76 | + * //bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789 Only |
| 77 | + * BigQuery tables and datasets are currently supported. Data Asset creator must have getIamPolicy |
| 78 | + * and setIamPolicy permissions on the resource. Data Asset creator must also have resource |
| 79 | + * specific get permission, for instance, bigquery.tables.get for BigQuery tables. |
| 80 | + * The value may be {@code null}. |
| 81 | + */ |
| 82 | + @com.google.api.client.util.Key |
| 83 | + private java.lang.String resource; |
| 84 | + |
| 85 | + /** |
| 86 | + * Output only. System generated globally unique ID for the Data Asset. This ID will be different |
| 87 | + * if the Data Asset is deleted and re-created with the same name. |
| 88 | + * The value may be {@code null}. |
| 89 | + */ |
| 90 | + @com.google.api.client.util.Key |
| 91 | + private java.lang.String uid; |
| 92 | + |
| 93 | + /** |
| 94 | + * Output only. The time at which the Data Asset was last updated. |
| 95 | + * The value may be {@code null}. |
| 96 | + */ |
| 97 | + @com.google.api.client.util.Key |
| 98 | + private String updateTime; |
| 99 | + |
| 100 | + /** |
| 101 | + * Optional. Access groups configurations for this Data Asset. The key is |
| 102 | + * DataProduct.AccessGroup.id and the value is AccessGroupConfig. Example: key: "analyst" value: { |
| 103 | + * AccessGroupConfig : { iam_roles : "roles/bigquery.dataViewer" } } Currently, at most one IAM |
| 104 | + * role is allowed per access group. For providing multiple predefined IAM roles, wrap them in a |
| 105 | + * custom IAM role as per https://cloud.google.com/iam/docs/creating-custom-roles. |
| 106 | + * @return value or {@code null} for none |
| 107 | + */ |
| 108 | + public java.util.Map<String, GoogleCloudDataplexV1DataAssetAccessGroupConfig> getAccessGroupConfigs() { |
| 109 | + return accessGroupConfigs; |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * Optional. Access groups configurations for this Data Asset. The key is |
| 114 | + * DataProduct.AccessGroup.id and the value is AccessGroupConfig. Example: key: "analyst" value: { |
| 115 | + * AccessGroupConfig : { iam_roles : "roles/bigquery.dataViewer" } } Currently, at most one IAM |
| 116 | + * role is allowed per access group. For providing multiple predefined IAM roles, wrap them in a |
| 117 | + * custom IAM role as per https://cloud.google.com/iam/docs/creating-custom-roles. |
| 118 | + * @param accessGroupConfigs accessGroupConfigs or {@code null} for none |
| 119 | + */ |
| 120 | + public GoogleCloudDataplexV1DataAsset setAccessGroupConfigs(java.util.Map<String, GoogleCloudDataplexV1DataAssetAccessGroupConfig> accessGroupConfigs) { |
| 121 | + this.accessGroupConfigs = accessGroupConfigs; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Output only. The time at which the Data Asset was created. |
| 127 | + * @return value or {@code null} for none |
| 128 | + */ |
| 129 | + public String getCreateTime() { |
| 130 | + return createTime; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * Output only. The time at which the Data Asset was created. |
| 135 | + * @param createTime createTime or {@code null} for none |
| 136 | + */ |
| 137 | + public GoogleCloudDataplexV1DataAsset setCreateTime(String createTime) { |
| 138 | + this.createTime = createTime; |
| 139 | + return this; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * This checksum is computed by the server based on the value of other fields, and may be sent on |
| 144 | + * update and delete requests to ensure the client has an up-to-date value before proceeding. |
| 145 | + * @return value or {@code null} for none |
| 146 | + */ |
| 147 | + public java.lang.String getEtag() { |
| 148 | + return etag; |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * This checksum is computed by the server based on the value of other fields, and may be sent on |
| 153 | + * update and delete requests to ensure the client has an up-to-date value before proceeding. |
| 154 | + * @param etag etag or {@code null} for none |
| 155 | + */ |
| 156 | + public GoogleCloudDataplexV1DataAsset setEtag(java.lang.String etag) { |
| 157 | + this.etag = etag; |
| 158 | + return this; |
| 159 | + } |
| 160 | + |
| 161 | + /** |
| 162 | + * Optional. User-defined labels for the Data Asset. |
| 163 | + * @return value or {@code null} for none |
| 164 | + */ |
| 165 | + public java.util.Map<String, java.lang.String> getLabels() { |
| 166 | + return labels; |
| 167 | + } |
| 168 | + |
| 169 | + /** |
| 170 | + * Optional. User-defined labels for the Data Asset. |
| 171 | + * @param labels labels or {@code null} for none |
| 172 | + */ |
| 173 | + public GoogleCloudDataplexV1DataAsset setLabels(java.util.Map<String, java.lang.String> labels) { |
| 174 | + this.labels = labels; |
| 175 | + return this; |
| 176 | + } |
| 177 | + |
| 178 | + /** |
| 179 | + * Identifier. Resource name of the Data Asset. Format: projects/{project_id_or_number}/locations/ |
| 180 | + * {location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
| 181 | + * @return value or {@code null} for none |
| 182 | + */ |
| 183 | + public java.lang.String getName() { |
| 184 | + return name; |
| 185 | + } |
| 186 | + |
| 187 | + /** |
| 188 | + * Identifier. Resource name of the Data Asset. Format: projects/{project_id_or_number}/locations/ |
| 189 | + * {location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
| 190 | + * @param name name or {@code null} for none |
| 191 | + */ |
| 192 | + public GoogleCloudDataplexV1DataAsset setName(java.lang.String name) { |
| 193 | + this.name = name; |
| 194 | + return this; |
| 195 | + } |
| 196 | + |
| 197 | + /** |
| 198 | + * Required. Immutable. Full resource name of the cloud resource represented by the Data Asset. |
| 199 | + * This must follow https://cloud.google.com/iam/docs/full-resource-names. Example: |
| 200 | + * //bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789 Only |
| 201 | + * BigQuery tables and datasets are currently supported. Data Asset creator must have getIamPolicy |
| 202 | + * and setIamPolicy permissions on the resource. Data Asset creator must also have resource |
| 203 | + * specific get permission, for instance, bigquery.tables.get for BigQuery tables. |
| 204 | + * @return value or {@code null} for none |
| 205 | + */ |
| 206 | + public java.lang.String getResource() { |
| 207 | + return resource; |
| 208 | + } |
| 209 | + |
| 210 | + /** |
| 211 | + * Required. Immutable. Full resource name of the cloud resource represented by the Data Asset. |
| 212 | + * This must follow https://cloud.google.com/iam/docs/full-resource-names. Example: |
| 213 | + * //bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789 Only |
| 214 | + * BigQuery tables and datasets are currently supported. Data Asset creator must have getIamPolicy |
| 215 | + * and setIamPolicy permissions on the resource. Data Asset creator must also have resource |
| 216 | + * specific get permission, for instance, bigquery.tables.get for BigQuery tables. |
| 217 | + * @param resource resource or {@code null} for none |
| 218 | + */ |
| 219 | + public GoogleCloudDataplexV1DataAsset setResource(java.lang.String resource) { |
| 220 | + this.resource = resource; |
| 221 | + return this; |
| 222 | + } |
| 223 | + |
| 224 | + /** |
| 225 | + * Output only. System generated globally unique ID for the Data Asset. This ID will be different |
| 226 | + * if the Data Asset is deleted and re-created with the same name. |
| 227 | + * @return value or {@code null} for none |
| 228 | + */ |
| 229 | + public java.lang.String getUid() { |
| 230 | + return uid; |
| 231 | + } |
| 232 | + |
| 233 | + /** |
| 234 | + * Output only. System generated globally unique ID for the Data Asset. This ID will be different |
| 235 | + * if the Data Asset is deleted and re-created with the same name. |
| 236 | + * @param uid uid or {@code null} for none |
| 237 | + */ |
| 238 | + public GoogleCloudDataplexV1DataAsset setUid(java.lang.String uid) { |
| 239 | + this.uid = uid; |
| 240 | + return this; |
| 241 | + } |
| 242 | + |
| 243 | + /** |
| 244 | + * Output only. The time at which the Data Asset was last updated. |
| 245 | + * @return value or {@code null} for none |
| 246 | + */ |
| 247 | + public String getUpdateTime() { |
| 248 | + return updateTime; |
| 249 | + } |
| 250 | + |
| 251 | + /** |
| 252 | + * Output only. The time at which the Data Asset was last updated. |
| 253 | + * @param updateTime updateTime or {@code null} for none |
| 254 | + */ |
| 255 | + public GoogleCloudDataplexV1DataAsset setUpdateTime(String updateTime) { |
| 256 | + this.updateTime = updateTime; |
| 257 | + return this; |
| 258 | + } |
| 259 | + |
| 260 | + @Override |
| 261 | + public GoogleCloudDataplexV1DataAsset set(String fieldName, Object value) { |
| 262 | + return (GoogleCloudDataplexV1DataAsset) super.set(fieldName, value); |
| 263 | + } |
| 264 | + |
| 265 | + @Override |
| 266 | + public GoogleCloudDataplexV1DataAsset clone() { |
| 267 | + return (GoogleCloudDataplexV1DataAsset) super.clone(); |
| 268 | + } |
| 269 | + |
| 270 | +} |
0 commit comments