Skip to content

Commit

Permalink
feat: launch GKE Cost Allocations configuration to the v1 GKE API (#825)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 479682735

Source-Link: https://togithub.com/googleapis/googleapis/commit/4a3979503f6b5814742eef42621c9673d2f929f1

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/aaca9d43d55b767822788f4547e5479a2ce925a5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWFjYTlkNDNkNTViNzY3ODIyNzg4ZjQ1NDdlNTQ3OWEyY2U5MjVhNSJ9

feat: vulnerability scanning exposed to public
GKE Security Posture launches public preview, exposes relevant features in cluster to public.

PiperOrigin-RevId: 479682645

Source-Link: https://togithub.com/googleapis/googleapis/commit/df8b96730d819af09f82c329a7fc47e4bc24f9c2

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4d197d8d782cca6d1e4a8199a15e411b5d40952d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGQxOTdkOGQ3ODJjY2E2ZDFlNGE4MTk5YTE1ZTQxMWI1ZDQwOTUyZCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Oct 10, 2022
1 parent 3067ee0 commit 77e47ac
Show file tree
Hide file tree
Showing 161 changed files with 6,975 additions and 3,681 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.ConfidentialNodes;
import com.google.container.v1.CostManagementConfig;
import com.google.container.v1.CreateClusterRequest;
import com.google.container.v1.CreateNodePoolRequest;
import com.google.container.v1.DatabaseEncryption;
Expand Down Expand Up @@ -289,6 +290,7 @@ public void getClusterTest() throws Exception {
.setReleaseChannel(ReleaseChannel.newBuilder().build())
.setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build())
.setMeshCertificates(MeshCertificates.newBuilder().build())
.setCostManagementConfig(CostManagementConfig.newBuilder().build())
.setNotificationConfig(NotificationConfig.newBuilder().build())
.setConfidentialNodes(ConfidentialNodes.newBuilder().build())
.setIdentityServiceConfig(IdentityServiceConfig.newBuilder().build())
Expand Down Expand Up @@ -386,6 +388,7 @@ public void getClusterTest2() throws Exception {
.setReleaseChannel(ReleaseChannel.newBuilder().build())
.setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build())
.setMeshCertificates(MeshCertificates.newBuilder().build())
.setCostManagementConfig(CostManagementConfig.newBuilder().build())
.setNotificationConfig(NotificationConfig.newBuilder().build())
.setConfidentialNodes(ConfidentialNodes.newBuilder().build())
.setIdentityServiceConfig(IdentityServiceConfig.newBuilder().build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,54 @@ public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDri
return getGcpFilestoreCsiDriverConfig();
}

public static final int GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER = 16;
private com.google.container.v1.GkeBackupAgentConfig gkeBackupAgentConfig_;
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*
* @return Whether the gkeBackupAgentConfig field is set.
*/
@java.lang.Override
public boolean hasGkeBackupAgentConfig() {
return gkeBackupAgentConfig_ != null;
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*
* @return The gkeBackupAgentConfig.
*/
@java.lang.Override
public com.google.container.v1.GkeBackupAgentConfig getGkeBackupAgentConfig() {
return gkeBackupAgentConfig_ == null
? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance()
: gkeBackupAgentConfig_;
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*/
@java.lang.Override
public com.google.container.v1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder() {
return getGkeBackupAgentConfig();
}

private byte memoizedIsInitialized = -1;

@java.lang.Override
Expand Down Expand Up @@ -597,6 +645,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (gcpFilestoreCsiDriverConfig_ != null) {
output.writeMessage(14, getGcpFilestoreCsiDriverConfig());
}
if (gkeBackupAgentConfig_ != null) {
output.writeMessage(16, getGkeBackupAgentConfig());
}
getUnknownFields().writeTo(output);
}

Expand Down Expand Up @@ -640,6 +691,10 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
14, getGcpFilestoreCsiDriverConfig());
}
if (gkeBackupAgentConfig_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGkeBackupAgentConfig());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
Expand Down Expand Up @@ -694,6 +749,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getGcpFilestoreCsiDriverConfig().equals(other.getGcpFilestoreCsiDriverConfig()))
return false;
}
if (hasGkeBackupAgentConfig() != other.hasGkeBackupAgentConfig()) return false;
if (hasGkeBackupAgentConfig()) {
if (!getGkeBackupAgentConfig().equals(other.getGkeBackupAgentConfig())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
Expand Down Expand Up @@ -741,6 +800,10 @@ public int hashCode() {
hash = (37 * hash) + GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getGcpFilestoreCsiDriverConfig().hashCode();
}
if (hasGkeBackupAgentConfig()) {
hash = (37 * hash) + GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getGkeBackupAgentConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
Expand Down Expand Up @@ -933,6 +996,12 @@ public Builder clear() {
gcpFilestoreCsiDriverConfig_ = null;
gcpFilestoreCsiDriverConfigBuilder_ = null;
}
if (gkeBackupAgentConfigBuilder_ == null) {
gkeBackupAgentConfig_ = null;
} else {
gkeBackupAgentConfig_ = null;
gkeBackupAgentConfigBuilder_ = null;
}
return this;
}

Expand Down Expand Up @@ -1004,6 +1073,11 @@ public com.google.container.v1.AddonsConfig buildPartial() {
} else {
result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfigBuilder_.build();
}
if (gkeBackupAgentConfigBuilder_ == null) {
result.gkeBackupAgentConfig_ = gkeBackupAgentConfig_;
} else {
result.gkeBackupAgentConfig_ = gkeBackupAgentConfigBuilder_.build();
}
onBuilt();
return result;
}
Expand Down Expand Up @@ -1080,6 +1154,9 @@ public Builder mergeFrom(com.google.container.v1.AddonsConfig other) {
if (other.hasGcpFilestoreCsiDriverConfig()) {
mergeGcpFilestoreCsiDriverConfig(other.getGcpFilestoreCsiDriverConfig());
}
if (other.hasGkeBackupAgentConfig()) {
mergeGkeBackupAgentConfig(other.getGkeBackupAgentConfig());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
Expand Down Expand Up @@ -1168,6 +1245,13 @@ public Builder mergeFrom(

break;
} // case 114
case 130:
{
input.readMessage(
getGkeBackupAgentConfigFieldBuilder().getBuilder(), extensionRegistry);

break;
} // case 130
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
Expand Down Expand Up @@ -3024,6 +3108,193 @@ public Builder clearGcpFilestoreCsiDriverConfig() {
return gcpFilestoreCsiDriverConfigBuilder_;
}

private com.google.container.v1.GkeBackupAgentConfig gkeBackupAgentConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.container.v1.GkeBackupAgentConfig,
com.google.container.v1.GkeBackupAgentConfig.Builder,
com.google.container.v1.GkeBackupAgentConfigOrBuilder>
gkeBackupAgentConfigBuilder_;
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*
* @return Whether the gkeBackupAgentConfig field is set.
*/
public boolean hasGkeBackupAgentConfig() {
return gkeBackupAgentConfigBuilder_ != null || gkeBackupAgentConfig_ != null;
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*
* @return The gkeBackupAgentConfig.
*/
public com.google.container.v1.GkeBackupAgentConfig getGkeBackupAgentConfig() {
if (gkeBackupAgentConfigBuilder_ == null) {
return gkeBackupAgentConfig_ == null
? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance()
: gkeBackupAgentConfig_;
} else {
return gkeBackupAgentConfigBuilder_.getMessage();
}
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*/
public Builder setGkeBackupAgentConfig(com.google.container.v1.GkeBackupAgentConfig value) {
if (gkeBackupAgentConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gkeBackupAgentConfig_ = value;
onChanged();
} else {
gkeBackupAgentConfigBuilder_.setMessage(value);
}

return this;
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*/
public Builder setGkeBackupAgentConfig(
com.google.container.v1.GkeBackupAgentConfig.Builder builderForValue) {
if (gkeBackupAgentConfigBuilder_ == null) {
gkeBackupAgentConfig_ = builderForValue.build();
onChanged();
} else {
gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build());
}

return this;
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*/
public Builder mergeGkeBackupAgentConfig(com.google.container.v1.GkeBackupAgentConfig value) {
if (gkeBackupAgentConfigBuilder_ == null) {
if (gkeBackupAgentConfig_ != null) {
gkeBackupAgentConfig_ =
com.google.container.v1.GkeBackupAgentConfig.newBuilder(gkeBackupAgentConfig_)
.mergeFrom(value)
.buildPartial();
} else {
gkeBackupAgentConfig_ = value;
}
onChanged();
} else {
gkeBackupAgentConfigBuilder_.mergeFrom(value);
}

return this;
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*/
public Builder clearGkeBackupAgentConfig() {
if (gkeBackupAgentConfigBuilder_ == null) {
gkeBackupAgentConfig_ = null;
onChanged();
} else {
gkeBackupAgentConfig_ = null;
gkeBackupAgentConfigBuilder_ = null;
}

return this;
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*/
public com.google.container.v1.GkeBackupAgentConfig.Builder getGkeBackupAgentConfigBuilder() {

onChanged();
return getGkeBackupAgentConfigFieldBuilder().getBuilder();
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*/
public com.google.container.v1.GkeBackupAgentConfigOrBuilder
getGkeBackupAgentConfigOrBuilder() {
if (gkeBackupAgentConfigBuilder_ != null) {
return gkeBackupAgentConfigBuilder_.getMessageOrBuilder();
} else {
return gkeBackupAgentConfig_ == null
? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance()
: gkeBackupAgentConfig_;
}
}
/**
*
*
* <pre>
* Configuration for the Backup for GKE agent addon.
* </pre>
*
* <code>.google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.container.v1.GkeBackupAgentConfig,
com.google.container.v1.GkeBackupAgentConfig.Builder,
com.google.container.v1.GkeBackupAgentConfigOrBuilder>
getGkeBackupAgentConfigFieldBuilder() {
if (gkeBackupAgentConfigBuilder_ == null) {
gkeBackupAgentConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.container.v1.GkeBackupAgentConfig,
com.google.container.v1.GkeBackupAgentConfig.Builder,
com.google.container.v1.GkeBackupAgentConfigOrBuilder>(
getGkeBackupAgentConfig(), getParentForChildren(), isClean());
gkeBackupAgentConfig_ = null;
}
return gkeBackupAgentConfigBuilder_;
}

@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
Expand Down
Loading

0 comments on commit 77e47ac

Please sign in to comment.