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-networksecurity</artifactId>
<version>v1-rev20260426-2.0.0</version>
<version>v1-rev20260518-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-networksecurity:v1-rev20260426-2.0.0'
implementation 'com.google.apis:google-api-services-networksecurity:v1-rev20260518-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ public final class AuthzPolicy extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Optional. A list of authorization network rules to match against the incoming request. A policy
* match occurs when at least one network rule matches the request. At least one network rule is
* required for Allow or Deny Action if no HTTP rules are provided. Network rules are mutually
* exclusive with HTTP rules. Limited to 5 rules.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<AuthzPolicyAuthzRule> networkRules;

/**
* Optional. Immutable. Defines the type of authorization being performed. If not specified,
* `REQUEST_AUTHZ` is applied. This field cannot be changed once AuthzPolicy is created.
Expand Down Expand Up @@ -265,6 +275,29 @@ public AuthzPolicy setName(java.lang.String name) {
return this;
}

/**
* Optional. A list of authorization network rules to match against the incoming request. A policy
* match occurs when at least one network rule matches the request. At least one network rule is
* required for Allow or Deny Action if no HTTP rules are provided. Network rules are mutually
* exclusive with HTTP rules. Limited to 5 rules.
* @return value or {@code null} for none
*/
public java.util.List<AuthzPolicyAuthzRule> getNetworkRules() {
return networkRules;
}

/**
* Optional. A list of authorization network rules to match against the incoming request. A policy
* match occurs when at least one network rule matches the request. At least one network rule is
* required for Allow or Deny Action if no HTTP rules are provided. Network rules are mutually
* exclusive with HTTP rules. Limited to 5 rules.
* @param networkRules networkRules or {@code null} for none
*/
public AuthzPolicy setNetworkRules(java.util.List<AuthzPolicyAuthzRule> networkRules) {
this.networkRules = networkRules;
return this;
}

/**
* Optional. Immutable. Defines the type of authorization being performed. If not specified,
* `REQUEST_AUTHZ` is applied. This field cannot be changed once AuthzPolicy is created.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,22 @@ public final class AuthzPolicyAuthzRuleToRequestOperation extends com.google.api
com.google.api.client.util.Data.nullOf(AuthzPolicyAuthzRuleStringMatch.class);
}

/**
* Optional. A list of SNIs to match against. The match can be one of exact, prefix, suffix, or
* contains (substring match). If there is no SNI (i.e. plaintext HTTP traffic), the request will
* be denied. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 SNIs
* per Authorization Policy.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<AuthzPolicyAuthzRuleStringMatch> snis;

static {
// hack to force ProGuard to consider AuthzPolicyAuthzRuleStringMatch used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(AuthzPolicyAuthzRuleStringMatch.class);
}

/**
* Optional. A list of headers to match against in http header.
* @return value or {@code null} for none
Expand Down Expand Up @@ -191,6 +207,29 @@ public AuthzPolicyAuthzRuleToRequestOperation setPaths(java.util.List<AuthzPolic
return this;
}

/**
* Optional. A list of SNIs to match against. The match can be one of exact, prefix, suffix, or
* contains (substring match). If there is no SNI (i.e. plaintext HTTP traffic), the request will
* be denied. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 SNIs
* per Authorization Policy.
* @return value or {@code null} for none
*/
public java.util.List<AuthzPolicyAuthzRuleStringMatch> getSnis() {
return snis;
}

/**
* Optional. A list of SNIs to match against. The match can be one of exact, prefix, suffix, or
* contains (substring match). If there is no SNI (i.e. plaintext HTTP traffic), the request will
* be denied. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 SNIs
* per Authorization Policy.
* @param snis snis or {@code null} for none
*/
public AuthzPolicyAuthzRuleToRequestOperation setSnis(java.util.List<AuthzPolicyAuthzRuleStringMatch> snis) {
this.snis = snis;
return this;
}

@Override
public AuthzPolicyAuthzRuleToRequestOperation set(String fieldName, Object value) {
return (AuthzPolicyAuthzRuleToRequestOperation) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
public final class FirewallEndpoint extends com.google.api.client.json.GenericJson {

/**
* Output only. List of networks that are associated with this endpoint in the local zone. This is
* a projection of the FirewallEndpointAssociations pointing at this endpoint. A network will only
* appear in this list after traffic routing is fully configured. Format:
* Output only. Deprecated: List of networks that are associated with this endpoint in the local
* zone. This is a projection of the FirewallEndpointAssociations pointing at this endpoint. A
* network will only appear in this list after traffic routing is fully configured. Format:
* projects/{project}/global/networks/{name}.
* The value may be {@code null}.
*/
Expand Down Expand Up @@ -126,9 +126,9 @@ public final class FirewallEndpoint extends com.google.api.client.json.GenericJs
private String updateTime;

/**
* Output only. List of networks that are associated with this endpoint in the local zone. This is
* a projection of the FirewallEndpointAssociations pointing at this endpoint. A network will only
* appear in this list after traffic routing is fully configured. Format:
* Output only. Deprecated: List of networks that are associated with this endpoint in the local
* zone. This is a projection of the FirewallEndpointAssociations pointing at this endpoint. A
* network will only appear in this list after traffic routing is fully configured. Format:
* projects/{project}/global/networks/{name}.
* @return value or {@code null} for none
*/
Expand All @@ -137,9 +137,9 @@ public java.util.List<java.lang.String> getAssociatedNetworks() {
}

/**
* Output only. List of networks that are associated with this endpoint in the local zone. This is
* a projection of the FirewallEndpointAssociations pointing at this endpoint. A network will only
* appear in this list after traffic routing is fully configured. Format:
* Output only. Deprecated: List of networks that are associated with this endpoint in the local
* zone. This is a projection of the FirewallEndpointAssociations pointing at this endpoint. A
* network will only appear in this list after traffic routing is fully configured. Format:
* projects/{project}/global/networks/{name}.
* @param associatedNetworks associatedNetworks or {@code null} for none
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/*
* 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.networksecurity.v1.model;

/**
* Response for `ListSACAttachments` method.
*
* <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 Security 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 ListSACAttachmentsResponse extends com.google.api.client.json.GenericJson {

/**
* A token identifying a page of results the server should return.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nextPageToken;

/**
* The list of SACAttachments.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<SACAttachment> sacAttachments;

/**
* Locations that could not be reached.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> unreachable;

/**
* A token identifying a page of results the server should return.
* @return value or {@code null} for none
*/
public java.lang.String getNextPageToken() {
return nextPageToken;
}

/**
* A token identifying a page of results the server should return.
* @param nextPageToken nextPageToken or {@code null} for none
*/
public ListSACAttachmentsResponse setNextPageToken(java.lang.String nextPageToken) {
this.nextPageToken = nextPageToken;
return this;
}

/**
* The list of SACAttachments.
* @return value or {@code null} for none
*/
public java.util.List<SACAttachment> getSacAttachments() {
return sacAttachments;
}

/**
* The list of SACAttachments.
* @param sacAttachments sacAttachments or {@code null} for none
*/
public ListSACAttachmentsResponse setSacAttachments(java.util.List<SACAttachment> sacAttachments) {
this.sacAttachments = sacAttachments;
return this;
}

/**
* Locations that could not be reached.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getUnreachable() {
return unreachable;
}

/**
* Locations that could not be reached.
* @param unreachable unreachable or {@code null} for none
*/
public ListSACAttachmentsResponse setUnreachable(java.util.List<java.lang.String> unreachable) {
this.unreachable = unreachable;
return this;
}

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

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

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

/**
* Response for `ListSACRealms` method.
*
* <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 Security 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 ListSACRealmsResponse extends com.google.api.client.json.GenericJson {

/**
* A token identifying a page of results the server should return.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nextPageToken;

/**
* The list of SACRealms.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<SACRealm> sacRealms;

/**
* Locations that could not be reached.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> unreachable;

/**
* A token identifying a page of results the server should return.
* @return value or {@code null} for none
*/
public java.lang.String getNextPageToken() {
return nextPageToken;
}

/**
* A token identifying a page of results the server should return.
* @param nextPageToken nextPageToken or {@code null} for none
*/
public ListSACRealmsResponse setNextPageToken(java.lang.String nextPageToken) {
this.nextPageToken = nextPageToken;
return this;
}

/**
* The list of SACRealms.
* @return value or {@code null} for none
*/
public java.util.List<SACRealm> getSacRealms() {
return sacRealms;
}

/**
* The list of SACRealms.
* @param sacRealms sacRealms or {@code null} for none
*/
public ListSACRealmsResponse setSacRealms(java.util.List<SACRealm> sacRealms) {
this.sacRealms = sacRealms;
return this;
}

/**
* Locations that could not be reached.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getUnreachable() {
return unreachable;
}

/**
* Locations that could not be reached.
* @param unreachable unreachable or {@code null} for none
*/
public ListSACRealmsResponse setUnreachable(java.util.List<java.lang.String> unreachable) {
this.unreachable = unreachable;
return this;
}

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

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

}
Loading