com.google.api.services.bigquery.model.DatasetAccessEntry Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.bigquery.model;
/**
* Grants all resources of particular types in a particular dataset read access to the current
* dataset. Similar to how individually authorized views work, updates to any resource granted
* through its dataset (including creation of new resources) requires read permission to referenced
* resources, plus write permission to the authorizing dataset.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the BigQuery API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class DatasetAccessEntry extends com.google.api.client.json.GenericJson {
/**
* The dataset this entry applies to
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DatasetReference dataset;
/**
* Which resources in the dataset this entry applies to. Currently, only views are supported, but
* additional target types may be added in the future.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List targetTypes;
/**
* The dataset this entry applies to
* @return value or {@code null} for none
*/
public DatasetReference getDataset() {
return dataset;
}
/**
* The dataset this entry applies to
* @param dataset dataset or {@code null} for none
*/
public DatasetAccessEntry setDataset(DatasetReference dataset) {
this.dataset = dataset;
return this;
}
/**
* Which resources in the dataset this entry applies to. Currently, only views are supported, but
* additional target types may be added in the future.
* @return value or {@code null} for none
*/
public java.util.List getTargetTypes() {
return targetTypes;
}
/**
* Which resources in the dataset this entry applies to. Currently, only views are supported, but
* additional target types may be added in the future.
* @param targetTypes targetTypes or {@code null} for none
*/
public DatasetAccessEntry setTargetTypes(java.util.List targetTypes) {
this.targetTypes = targetTypes;
return this;
}
@Override
public DatasetAccessEntry set(String fieldName, Object value) {
return (DatasetAccessEntry) super.set(fieldName, value);
}
@Override
public DatasetAccessEntry clone() {
return (DatasetAccessEntry) super.clone();
}
}