com.google.cloud.osconfig.v1alpha.OSPolicyOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-os-config-v1alpha Show documentation
Show all versions of proto-google-cloud-os-config-v1alpha Show documentation
Proto library for google-cloud-os-config
/*
* Copyright 2024 Google LLC
*
* 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
*
* https://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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/osconfig/v1alpha/os_policy.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.osconfig.v1alpha;
public interface OSPolicyOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.OSPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Required. The id of the OS policy with the following restrictions:
*
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
* * Must end with a number or a letter.
* * Must be unique within the assignment.
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The id.
*/
java.lang.String getId();
/**
*
*
*
* Required. The id of the OS policy with the following restrictions:
*
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
* * Must end with a number or a letter.
* * Must be unique within the assignment.
*
*
* string id = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for id.
*/
com.google.protobuf.ByteString getIdBytes();
/**
*
*
*
* Policy description.
* Length of the description is limited to 1024 characters.
*
*
* string description = 2;
*
* @return The description.
*/
java.lang.String getDescription();
/**
*
*
*
* Policy description.
* Length of the description is limited to 1024 characters.
*
*
* string description = 2;
*
* @return The bytes for description.
*/
com.google.protobuf.ByteString getDescriptionBytes();
/**
*
*
*
* Required. Policy mode
*
*
*
* .google.cloud.osconfig.v1alpha.OSPolicy.Mode mode = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
*
*
*
* Required. Policy mode
*
*
*
* .google.cloud.osconfig.v1alpha.OSPolicy.Mode mode = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The mode.
*/
com.google.cloud.osconfig.v1alpha.OSPolicy.Mode getMode();
/**
*
*
*
* Required. List of resource groups for the policy.
* For a particular VM, resource groups are evaluated in the order specified
* and the first resource group that is applicable is selected and the rest
* are ignored.
*
* If none of the resource groups are applicable for a VM, the VM is
* considered to be non-compliant w.r.t this policy. This behavior can be
* toggled by the flag `allow_no_resource_group_match`
*
*
*
* repeated .google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup resource_groups = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
java.util.List getResourceGroupsList();
/**
*
*
*
* Required. List of resource groups for the policy.
* For a particular VM, resource groups are evaluated in the order specified
* and the first resource group that is applicable is selected and the rest
* are ignored.
*
* If none of the resource groups are applicable for a VM, the VM is
* considered to be non-compliant w.r.t this policy. This behavior can be
* toggled by the flag `allow_no_resource_group_match`
*
*
*
* repeated .google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup resource_groups = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup getResourceGroups(int index);
/**
*
*
*
* Required. List of resource groups for the policy.
* For a particular VM, resource groups are evaluated in the order specified
* and the first resource group that is applicable is selected and the rest
* are ignored.
*
* If none of the resource groups are applicable for a VM, the VM is
* considered to be non-compliant w.r.t this policy. This behavior can be
* toggled by the flag `allow_no_resource_group_match`
*
*
*
* repeated .google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup resource_groups = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
int getResourceGroupsCount();
/**
*
*
*
* Required. List of resource groups for the policy.
* For a particular VM, resource groups are evaluated in the order specified
* and the first resource group that is applicable is selected and the rest
* are ignored.
*
* If none of the resource groups are applicable for a VM, the VM is
* considered to be non-compliant w.r.t this policy. This behavior can be
* toggled by the flag `allow_no_resource_group_match`
*
*
*
* repeated .google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup resource_groups = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
java.util.List extends com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroupOrBuilder>
getResourceGroupsOrBuilderList();
/**
*
*
*
* Required. List of resource groups for the policy.
* For a particular VM, resource groups are evaluated in the order specified
* and the first resource group that is applicable is selected and the rest
* are ignored.
*
* If none of the resource groups are applicable for a VM, the VM is
* considered to be non-compliant w.r.t this policy. This behavior can be
* toggled by the flag `allow_no_resource_group_match`
*
*
*
* repeated .google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup resource_groups = 4 [(.google.api.field_behavior) = REQUIRED];
*
*/
com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroupOrBuilder getResourceGroupsOrBuilder(
int index);
/**
*
*
*
* This flag determines the OS policy compliance status when none of the
* resource groups within the policy are applicable for a VM. Set this value
* to `true` if the policy needs to be reported as compliant even if the
* policy has nothing to validate or enforce.
*
*
* bool allow_no_resource_group_match = 5;
*
* @return The allowNoResourceGroupMatch.
*/
boolean getAllowNoResourceGroupMatch();
}