Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.SoftwareRecipe
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1beta.GuestPolicies.SoftwareRecipe
- All Implemented Interfaces:
GuestPolicies.SoftwareRecipeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- GuestPolicies
public static final class GuestPolicies.SoftwareRecipe
extends com.google.protobuf.GeneratedMessage
implements GuestPolicies.SoftwareRecipeOrBuilder
A software recipe is a set of instructions for installing and configuring a piece of software. It consists of a set of artifacts that are downloaded, and a set of steps that install, configure, and/or update the software. Recipes support installing and updating software from artifacts in the following formats: Zip archive, Tar archive, Windows MSI, Debian package, and RPM package. Additionally, recipes support executing a script (either defined in a file or directly in this api) in bash, sh, cmd, and powershell. Updating a software recipe If a recipe is assigned to an instance and there is a recipe with the same name but a lower version already installed and the assigned state of the recipe is `UPDATED`, then the recipe is updated to the new version. Script Working Directories Each script or execution step is run in its own temporary directory which is deleted after completing the step.Protobuf type
google.cloud.osconfig.v1beta.SoftwareRecipe- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies a resource to be used in the recipe.static interfacestatic final classA software recipe is a set of instructions for installing and configuring a piece of software.static final classAn action that can be taken as part of installing or updating a recipe.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetArtifacts(int index) Resources available to be used in the steps in the recipe.intResources available to be used in the steps in the recipe.Resources available to be used in the steps in the recipe.getArtifactsOrBuilder(int index) Resources available to be used in the steps in the recipe.Resources available to be used in the steps in the recipe.static GuestPolicies.SoftwareRecipestatic final com.google.protobuf.Descriptors.DescriptorDefault is INSTALLED.intDefault is INSTALLED.getInstallSteps(int index) Actions to be taken for installing this recipe.intActions to be taken for installing this recipe.Actions to be taken for installing this recipe.getInstallStepsOrBuilder(int index) Actions to be taken for installing this recipe.List<? extends GuestPolicies.SoftwareRecipe.StepOrBuilder>Actions to be taken for installing this recipe.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<GuestPolicies.SoftwareRecipe>intgetUpdateSteps(int index) Actions to be taken for updating this recipe.intActions to be taken for updating this recipe.Actions to be taken for updating this recipe.getUpdateStepsOrBuilder(int index) Actions to be taken for updating this recipe.List<? extends GuestPolicies.SoftwareRecipe.StepOrBuilder>Actions to be taken for updating this recipe.The version of this software recipe.com.google.protobuf.ByteStringThe version of this software recipe.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(GuestPolicies.SoftwareRecipe prototype) protected GuestPolicies.SoftwareRecipe.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GuestPolicies.SoftwareRecipeparseDelimitedFrom(InputStream input) static GuestPolicies.SoftwareRecipeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.SoftwareRecipeparseFrom(byte[] data) static GuestPolicies.SoftwareRecipeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.SoftwareRecipeparseFrom(com.google.protobuf.ByteString data) static GuestPolicies.SoftwareRecipeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.SoftwareRecipeparseFrom(com.google.protobuf.CodedInputStream input) static GuestPolicies.SoftwareRecipeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.SoftwareRecipeparseFrom(InputStream input) static GuestPolicies.SoftwareRecipeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.SoftwareRecipeparseFrom(ByteBuffer data) static GuestPolicies.SoftwareRecipeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GuestPolicies.SoftwareRecipe>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
ARTIFACTS_FIELD_NUMBER
public static final int ARTIFACTS_FIELD_NUMBER- See Also:
-
INSTALL_STEPS_FIELD_NUMBER
public static final int INSTALL_STEPS_FIELD_NUMBER- See Also:
-
UPDATE_STEPS_FIELD_NUMBER
public static final int UPDATE_STEPS_FIELD_NUMBER- See Also:
-
DESIRED_STATE_FIELD_NUMBER
public static final int DESIRED_STATE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Required. Unique identifier for the recipe. Only one recipe with a given name is installed on an instance. Names are also used to identify resources which helps to determine whether guest policies have conflicts. This means that requests to create multiple recipes with the same name and version are rejected since they could potentially have conflicting assignments.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceGuestPolicies.SoftwareRecipeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. Unique identifier for the recipe. Only one recipe with a given name is installed on an instance. Names are also used to identify resources which helps to determine whether guest policies have conflicts. This means that requests to create multiple recipes with the same name and version are rejected since they could potentially have conflicting assignments.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceGuestPolicies.SoftwareRecipeOrBuilder- Returns:
- The bytes for name.
-
getVersion
The version of this software recipe. Version can be up to 4 period separated numbers (e.g. 12.34.56.78).
string version = 2;- Specified by:
getVersionin interfaceGuestPolicies.SoftwareRecipeOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()The version of this software recipe. Version can be up to 4 period separated numbers (e.g. 12.34.56.78).
string version = 2;- Specified by:
getVersionBytesin interfaceGuestPolicies.SoftwareRecipeOrBuilder- Returns:
- The bytes for version.
-
getArtifactsList
Resources available to be used in the steps in the recipe.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact artifacts = 3;- Specified by:
getArtifactsListin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getArtifactsOrBuilderList
Resources available to be used in the steps in the recipe.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact artifacts = 3;- Specified by:
getArtifactsOrBuilderListin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getArtifactsCount
public int getArtifactsCount()Resources available to be used in the steps in the recipe.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact artifacts = 3;- Specified by:
getArtifactsCountin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getArtifacts
Resources available to be used in the steps in the recipe.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact artifacts = 3;- Specified by:
getArtifactsin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getArtifactsOrBuilder
Resources available to be used in the steps in the recipe.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Artifact artifacts = 3;- Specified by:
getArtifactsOrBuilderin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getInstallStepsList
Actions to be taken for installing this recipe. On failure it stops executing steps and does not attempt another installation. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step install_steps = 4;- Specified by:
getInstallStepsListin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getInstallStepsOrBuilderList
Actions to be taken for installing this recipe. On failure it stops executing steps and does not attempt another installation. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step install_steps = 4;- Specified by:
getInstallStepsOrBuilderListin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getInstallStepsCount
public int getInstallStepsCount()Actions to be taken for installing this recipe. On failure it stops executing steps and does not attempt another installation. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step install_steps = 4;- Specified by:
getInstallStepsCountin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getInstallSteps
Actions to be taken for installing this recipe. On failure it stops executing steps and does not attempt another installation. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step install_steps = 4;- Specified by:
getInstallStepsin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getInstallStepsOrBuilder
Actions to be taken for installing this recipe. On failure it stops executing steps and does not attempt another installation. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step install_steps = 4;- Specified by:
getInstallStepsOrBuilderin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getUpdateStepsList
Actions to be taken for updating this recipe. On failure it stops executing steps and does not attempt another update for this recipe. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step update_steps = 5;- Specified by:
getUpdateStepsListin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getUpdateStepsOrBuilderList
Actions to be taken for updating this recipe. On failure it stops executing steps and does not attempt another update for this recipe. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step update_steps = 5;- Specified by:
getUpdateStepsOrBuilderListin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getUpdateStepsCount
public int getUpdateStepsCount()Actions to be taken for updating this recipe. On failure it stops executing steps and does not attempt another update for this recipe. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step update_steps = 5;- Specified by:
getUpdateStepsCountin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getUpdateSteps
Actions to be taken for updating this recipe. On failure it stops executing steps and does not attempt another update for this recipe. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step update_steps = 5;- Specified by:
getUpdateStepsin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getUpdateStepsOrBuilder
Actions to be taken for updating this recipe. On failure it stops executing steps and does not attempt another update for this recipe. Any steps taken (including partially completed steps) are not rolled back.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe.Step update_steps = 5;- Specified by:
getUpdateStepsOrBuilderin interfaceGuestPolicies.SoftwareRecipeOrBuilder
-
getDesiredStateValue
public int getDesiredStateValue()Default is INSTALLED. The desired state the agent should maintain for this recipe. INSTALLED: The software recipe is installed on the instance but won't be updated to new versions. UPDATED: The software recipe is installed on the instance. The recipe is updated to a higher version, if a higher version of the recipe is assigned to this instance. REMOVE: Remove is unsupported for software recipes and attempts to create or update a recipe to the REMOVE state is rejected.
.google.cloud.osconfig.v1beta.DesiredState desired_state = 6;- Specified by:
getDesiredStateValuein interfaceGuestPolicies.SoftwareRecipeOrBuilder- Returns:
- The enum numeric value on the wire for desiredState.
-
getDesiredState
Default is INSTALLED. The desired state the agent should maintain for this recipe. INSTALLED: The software recipe is installed on the instance but won't be updated to new versions. UPDATED: The software recipe is installed on the instance. The recipe is updated to a higher version, if a higher version of the recipe is assigned to this instance. REMOVE: Remove is unsupported for software recipes and attempts to create or update a recipe to the REMOVE state is rejected.
.google.cloud.osconfig.v1beta.DesiredState desired_state = 6;- Specified by:
getDesiredStatein interfaceGuestPolicies.SoftwareRecipeOrBuilder- Returns:
- The desiredState.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GuestPolicies.SoftwareRecipe parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.SoftwareRecipe parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.SoftwareRecipe parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.SoftwareRecipe parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.SoftwareRecipe parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.SoftwareRecipe parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GuestPolicies.SoftwareRecipe parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GuestPolicies.SoftwareRecipe parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GuestPolicies.SoftwareRecipe parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GuestPolicies.SoftwareRecipe parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static GuestPolicies.SoftwareRecipe.Builder newBuilder(GuestPolicies.SoftwareRecipe prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GuestPolicies.SoftwareRecipe.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-