Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-networkservices</artifactId>
<version>v1beta1-rev20260816-2.0.0</version>
<version>v1beta1-rev20260821-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20260816-2.0.0'
implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20260821-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
/*
* 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.networkservices.v1beta1.model;

/**
* `CdnEdgeExtension` is a resource that lets the extension service modify the headers of both
* requests to the cache and responses from the cache served by an
* [`EdgeCacheService`](https://cloud.google.com/media-
* cdn/docs/reference/rest/v1/projects.locations.edgeCacheServices).
*
* <p> 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 Network Services API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class CdnEdgeExtension extends com.google.api.client.json.GenericJson {

/**
* Output only. The timestamp when the resource was created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;

/**
* Optional. A human-readable description of the resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;

/**
* Required. A set of ordered extension chains that contain the match conditions and extensions to
* execute. Match conditions for each extension chain are evaluated in sequence for a given
* request. The first extension chain that has a condition that matches the request is executed.
* Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<ExtensionChain> extensionChains;

/**
* Optional. Set of labels associated with the `CdnEdgeExtension` resource. The format must comply
* with [the requirements for labels](https://cloud.google.com/compute/docs/labeling-
* resources#requirements) for Google Cloud resources.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map<String, java.lang.String> labels;

/**
* Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format:
* `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Required. Specifies the set of resources to which this extension should be applied to.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CdnEdgeExtensionTarget target;

/**
* Output only. The timestamp when the resource was updated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;

/**
* Output only. The timestamp when the resource was created.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}

/**
* Output only. The timestamp when the resource was created.
* @param createTime createTime or {@code null} for none
*/
public CdnEdgeExtension setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}

/**
* Optional. A human-readable description of the resource.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}

/**
* Optional. A human-readable description of the resource.
* @param description description or {@code null} for none
*/
public CdnEdgeExtension setDescription(java.lang.String description) {
this.description = description;
return this;
}

/**
* Required. A set of ordered extension chains that contain the match conditions and extensions to
* execute. Match conditions for each extension chain are evaluated in sequence for a given
* request. The first extension chain that has a condition that matches the request is executed.
* Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
* @return value or {@code null} for none
*/
public java.util.List<ExtensionChain> getExtensionChains() {
return extensionChains;
}

/**
* Required. A set of ordered extension chains that contain the match conditions and extensions to
* execute. Match conditions for each extension chain are evaluated in sequence for a given
* request. The first extension chain that has a condition that matches the request is executed.
* Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
* @param extensionChains extensionChains or {@code null} for none
*/
public CdnEdgeExtension setExtensionChains(java.util.List<ExtensionChain> extensionChains) {
this.extensionChains = extensionChains;
return this;
}

/**
* Optional. Set of labels associated with the `CdnEdgeExtension` resource. The format must comply
* with [the requirements for labels](https://cloud.google.com/compute/docs/labeling-
* resources#requirements) for Google Cloud resources.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.String> getLabels() {
return labels;
}

/**
* Optional. Set of labels associated with the `CdnEdgeExtension` resource. The format must comply
* with [the requirements for labels](https://cloud.google.com/compute/docs/labeling-
* resources#requirements) for Google Cloud resources.
* @param labels labels or {@code null} for none
*/
public CdnEdgeExtension setLabels(java.util.Map<String, java.lang.String> labels) {
this.labels = labels;
return this;
}

/**
* Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format:
* `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format:
* `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`.
* @param name name or {@code null} for none
*/
public CdnEdgeExtension setName(java.lang.String name) {
this.name = name;
return this;
}

/**
* Required. Specifies the set of resources to which this extension should be applied to.
* @return value or {@code null} for none
*/
public CdnEdgeExtensionTarget getTarget() {
return target;
}

/**
* Required. Specifies the set of resources to which this extension should be applied to.
* @param target target or {@code null} for none
*/
public CdnEdgeExtension setTarget(CdnEdgeExtensionTarget target) {
this.target = target;
return this;
}

/**
* Output only. The timestamp when the resource was updated.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}

/**
* Output only. The timestamp when the resource was updated.
* @param updateTime updateTime or {@code null} for none
*/
public CdnEdgeExtension setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}

@Override
public CdnEdgeExtension set(String fieldName, Object value) {
return (CdnEdgeExtension) super.set(fieldName, value);
}

@Override
public CdnEdgeExtension clone() {
return (CdnEdgeExtension) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
* 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.networkservices.v1beta1.model;

/**
* Specifies the set of targets to which `CdnEdgeExtension` should be applied to.
*
* <p> 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 Network Services API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class CdnEdgeExtensionTarget extends com.google.api.client.json.GenericJson {

/**
* Required. A list of references to the resources that are targeted by `CdnEdgeExtension`. Types
* of resources supported: `EdgeCacheService`. The format must be the full resource name of
* [EdgeCacheService](https://cloud.google.com/media-
* cdn/docs/reference/rest/v1/projects.locations.edgeCacheServices) in the following format: `//ne
* tworkservices.googleapis.com/projects/{project}/locations/{location}/edgeCacheServices/{edgeCac
* heService}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> resources;

/**
* Required. A list of references to the resources that are targeted by `CdnEdgeExtension`. Types
* of resources supported: `EdgeCacheService`. The format must be the full resource name of
* [EdgeCacheService](https://cloud.google.com/media-
* cdn/docs/reference/rest/v1/projects.locations.edgeCacheServices) in the following format: `//ne
* tworkservices.googleapis.com/projects/{project}/locations/{location}/edgeCacheServices/{edgeCac
* heService}`.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getResources() {
return resources;
}

/**
* Required. A list of references to the resources that are targeted by `CdnEdgeExtension`. Types
* of resources supported: `EdgeCacheService`. The format must be the full resource name of
* [EdgeCacheService](https://cloud.google.com/media-
* cdn/docs/reference/rest/v1/projects.locations.edgeCacheServices) in the following format: `//ne
* tworkservices.googleapis.com/projects/{project}/locations/{location}/edgeCacheServices/{edgeCac
* heService}`.
* @param resources resources or {@code null} for none
*/
public CdnEdgeExtensionTarget setResources(java.util.List<java.lang.String> resources) {
this.resources = resources;
return this;
}

@Override
public CdnEdgeExtensionTarget set(String fieldName, Object value) {
return (CdnEdgeExtensionTarget) super.set(fieldName, value);
}

@Override
public CdnEdgeExtensionTarget clone() {
return (CdnEdgeExtensionTarget) super.clone();
}

}
Loading
Loading