All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.cloudasset.v1.model.ExportAssetsRequest 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.cloudasset.v1.model;

/**
 * Export asset request.
 *
 * 

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 Cloud Asset 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 ExportAssetsRequest extends com.google.api.client.json.GenericJson { /** * A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". * Regular expressions are also supported. For example: * "compute.googleapis.com.*" snapshots * resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots * resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose * asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all * supported regular expression syntax. If the regular expression does not match any supported * asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will * be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset * types. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List assetTypes; /** * Asset content type. If not specified, no content but the asset name will be returned. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String contentType; /** * Required. Output configuration indicating where the results will be output to. * The value may be {@code null}. */ @com.google.api.client.util.Key private OutputConfig outputConfig; /** * Timestamp to take an asset snapshot. This can only be set to a timestamp between the current * time and the current time minus 35 days (inclusive). If not specified, the current time will be * used. Due to delays in resource data collection and indexing, there is a volatile window during * which running the same query may get different results. * The value may be {@code null}. */ @com.google.api.client.util.Key private String readTime; /** * A list of relationship types to export, for example: `INSTANCE_TO_INSTANCEGROUP`. This field * should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified * relationships. It returns an error if any of the [relationship_types] doesn't belong to the * supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong * to the source types of the [relationship_types]. * Otherwise: it snapshots the supported * relationships for all [asset_types] or returns an error if any of the [asset_types] has no * relationship support. An unspecified asset types field means all supported asset_types. See * [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) * for all supported asset types and relationship types. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List relationshipTypes; /** * A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". * Regular expressions are also supported. For example: * "compute.googleapis.com.*" snapshots * resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots * resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose * asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all * supported regular expression syntax. If the regular expression does not match any supported * asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will * be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset * types. * @return value or {@code null} for none */ public java.util.List getAssetTypes() { return assetTypes; } /** * A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". * Regular expressions are also supported. For example: * "compute.googleapis.com.*" snapshots * resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots * resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose * asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all * supported regular expression syntax. If the regular expression does not match any supported * asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will * be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset * types. * @param assetTypes assetTypes or {@code null} for none */ public ExportAssetsRequest setAssetTypes(java.util.List assetTypes) { this.assetTypes = assetTypes; return this; } /** * Asset content type. If not specified, no content but the asset name will be returned. * @return value or {@code null} for none */ public java.lang.String getContentType() { return contentType; } /** * Asset content type. If not specified, no content but the asset name will be returned. * @param contentType contentType or {@code null} for none */ public ExportAssetsRequest setContentType(java.lang.String contentType) { this.contentType = contentType; return this; } /** * Required. Output configuration indicating where the results will be output to. * @return value or {@code null} for none */ public OutputConfig getOutputConfig() { return outputConfig; } /** * Required. Output configuration indicating where the results will be output to. * @param outputConfig outputConfig or {@code null} for none */ public ExportAssetsRequest setOutputConfig(OutputConfig outputConfig) { this.outputConfig = outputConfig; return this; } /** * Timestamp to take an asset snapshot. This can only be set to a timestamp between the current * time and the current time minus 35 days (inclusive). If not specified, the current time will be * used. Due to delays in resource data collection and indexing, there is a volatile window during * which running the same query may get different results. * @return value or {@code null} for none */ public String getReadTime() { return readTime; } /** * Timestamp to take an asset snapshot. This can only be set to a timestamp between the current * time and the current time minus 35 days (inclusive). If not specified, the current time will be * used. Due to delays in resource data collection and indexing, there is a volatile window during * which running the same query may get different results. * @param readTime readTime or {@code null} for none */ public ExportAssetsRequest setReadTime(String readTime) { this.readTime = readTime; return this; } /** * A list of relationship types to export, for example: `INSTANCE_TO_INSTANCEGROUP`. This field * should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified * relationships. It returns an error if any of the [relationship_types] doesn't belong to the * supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong * to the source types of the [relationship_types]. * Otherwise: it snapshots the supported * relationships for all [asset_types] or returns an error if any of the [asset_types] has no * relationship support. An unspecified asset types field means all supported asset_types. See * [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) * for all supported asset types and relationship types. * @return value or {@code null} for none */ public java.util.List getRelationshipTypes() { return relationshipTypes; } /** * A list of relationship types to export, for example: `INSTANCE_TO_INSTANCEGROUP`. This field * should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified * relationships. It returns an error if any of the [relationship_types] doesn't belong to the * supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong * to the source types of the [relationship_types]. * Otherwise: it snapshots the supported * relationships for all [asset_types] or returns an error if any of the [asset_types] has no * relationship support. An unspecified asset types field means all supported asset_types. See * [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) * for all supported asset types and relationship types. * @param relationshipTypes relationshipTypes or {@code null} for none */ public ExportAssetsRequest setRelationshipTypes(java.util.List relationshipTypes) { this.relationshipTypes = relationshipTypes; return this; } @Override public ExportAssetsRequest set(String fieldName, Object value) { return (ExportAssetsRequest) super.set(fieldName, value); } @Override public ExportAssetsRequest clone() { return (ExportAssetsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy