Package com.google.cloud.osconfig.v1beta
Interface GuestPolicies.GuestPolicyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GuestPolicies.GuestPolicy,GuestPolicies.GuestPolicy.Builder
- Enclosing class:
- GuestPolicies
public static interface GuestPolicies.GuestPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.Required.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Description of the guest policy.com.google.protobuf.ByteStringDescription of the guest policy.getEtag()The etag for this guest policy.com.google.protobuf.ByteStringThe etag for this guest policy.getName()Required.com.google.protobuf.ByteStringRequired.getPackageRepositories(int index) A list of package repositories to configure on the VM instance.intA list of package repositories to configure on the VM instance.A list of package repositories to configure on the VM instance.getPackageRepositoriesOrBuilder(int index) A list of package repositories to configure on the VM instance.List<? extends GuestPolicies.PackageRepositoryOrBuilder>A list of package repositories to configure on the VM instance.getPackages(int index) The software packages to be managed by this policy.intThe software packages to be managed by this policy.The software packages to be managed by this policy.getPackagesOrBuilder(int index) The software packages to be managed by this policy.List<? extends GuestPolicies.PackageOrBuilder>The software packages to be managed by this policy.getRecipes(int index) A list of Recipes to install on the VM instance.intA list of Recipes to install on the VM instance.A list of Recipes to install on the VM instance.getRecipesOrBuilder(int index) A list of Recipes to install on the VM instance.List<? extends GuestPolicies.SoftwareRecipeOrBuilder>A list of Recipes to install on the VM instance.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanRequired.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Required. Unique name of the resource in this project using one of the following forms: `projects/{project_number}/guestPolicies/{guest_policy_id}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Required. Unique name of the resource in this project using one of the following forms: `projects/{project_number}/guestPolicies/{guest_policy_id}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for name.
-
getDescription
String getDescription()Description of the guest policy. Length of the description is limited to 1024 characters.
string description = 2;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()Description of the guest policy. Length of the description is limited to 1024 characters.
string description = 2;- Returns:
- The bytes for description.
-
hasCreateTime
boolean hasCreateTime()Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
boolean hasUpdateTime()Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasAssignment
boolean hasAssignment()Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service [handles assignment conflicts](/compute/docs/os-config-management/create-guest-policy#handle-conflicts).
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the assignment field is set.
-
getAssignment
GuestPolicies.Assignment getAssignment()Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service [handles assignment conflicts](/compute/docs/os-config-management/create-guest-policy#handle-conflicts).
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The assignment.
-
getAssignmentOrBuilder
GuestPolicies.AssignmentOrBuilder getAssignmentOrBuilder()Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service [handles assignment conflicts](/compute/docs/os-config-management/create-guest-policy#handle-conflicts).
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED]; -
getPackagesList
List<GuestPolicies.Package> getPackagesList()The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7; -
getPackages
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7; -
getPackagesCount
int getPackagesCount()The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7; -
getPackagesOrBuilderList
List<? extends GuestPolicies.PackageOrBuilder> getPackagesOrBuilderList()The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7; -
getPackagesOrBuilder
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7; -
getPackageRepositoriesList
List<GuestPolicies.PackageRepository> getPackageRepositoriesList()A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8; -
getPackageRepositories
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8; -
getPackageRepositoriesCount
int getPackageRepositoriesCount()A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8; -
getPackageRepositoriesOrBuilderList
List<? extends GuestPolicies.PackageRepositoryOrBuilder> getPackageRepositoriesOrBuilderList()A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8; -
getPackageRepositoriesOrBuilder
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8; -
getRecipesList
List<GuestPolicies.SoftwareRecipe> getRecipesList()A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9; -
getRecipes
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9; -
getRecipesCount
int getRecipesCount()A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9; -
getRecipesOrBuilderList
List<? extends GuestPolicies.SoftwareRecipeOrBuilder> getRecipesOrBuilderList()A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9; -
getRecipesOrBuilder
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9; -
getEtag
String getEtag()The etag for this guest policy. If this is provided on update, it must match the server's etag.
string etag = 10;- Returns:
- The etag.
-
getEtagBytes
com.google.protobuf.ByteString getEtagBytes()The etag for this guest policy. If this is provided on update, it must match the server's etag.
string etag = 10;- Returns:
- The bytes for etag.
-