permalink |
---|
/os_config_os_policy_assignment/ |
os_config_os_policy_assignment
represents the google_os_config_os_policy_assignment
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withDescription()
fn withInstanceFilter()
fn withInstanceFilterMixin()
fn withLocation()
fn withName()
fn withOsPolicies()
fn withOsPoliciesMixin()
fn withProject()
fn withRollout()
fn withRolloutMixin()
fn withSkipAwaitRollout()
fn withTimeouts()
fn withTimeoutsMixin()
obj instance_filter
obj os_policies
fn new()
obj os_policies.resource_groups
fn new()
obj os_policies.resource_groups.inventory_filters
obj os_policies.resource_groups.resources
fn new()
obj os_policies.resource_groups.resources.exec
obj os_policies.resource_groups.resources.file
obj os_policies.resource_groups.resources.pkg
fn new()
obj os_policies.resource_groups.resources.pkg.apt
obj os_policies.resource_groups.resources.pkg.deb
obj os_policies.resource_groups.resources.pkg.googet
obj os_policies.resource_groups.resources.pkg.msi
obj os_policies.resource_groups.resources.pkg.rpm
obj os_policies.resource_groups.resources.pkg.yum
obj os_policies.resource_groups.resources.pkg.zypper
obj os_policies.resource_groups.resources.repository
obj rollout
obj timeouts
new()
google.os_config_os_policy_assignment.new
injects a new google_os_config_os_policy_assignment
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
google.os_config_os_policy_assignment.new('some_id')
You can get the reference to the id
field of the created google.os_config_os_policy_assignment
using the reference:
$._ref.google_os_config_os_policy_assignment.some_id.get('id')
This is the same as directly entering "${ google_os_config_os_policy_assignment.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.description
(string
): OS policy assignment description. Length of the description is limited to 1024 characters. Whennull
, thedescription
field will be omitted from the resulting object.location
(string
): The location for the resourcename
(string
): Resource name.project
(string
): The project for the resource Whennull
, theproject
field will be omitted from the resulting object.skip_await_rollout
(bool
): Set to true to skip awaiting rollout during resource creation and update. Whennull
, theskip_await_rollout
field will be omitted from the resulting object.instance_filter
(list[obj]
): Filter to select VMs. Whennull
, theinstance_filter
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.instance_filter.new constructor.os_policies
(list[obj]
): List of OS policies to be applied to the VMs. Whennull
, theos_policies
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.new constructor.rollout
(list[obj]
): Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted. Whennull
, therollout
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.rollout.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.os_config_os_policy_assignment.newAttrs
constructs a new object with attributes and blocks configured for the os_config_os_policy_assignment
Terraform resource.
Unlike google.os_config_os_policy_assignment.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
description
(string
): OS policy assignment description. Length of the description is limited to 1024 characters. Whennull
, thedescription
field will be omitted from the resulting object.location
(string
): The location for the resourcename
(string
): Resource name.project
(string
): The project for the resource Whennull
, theproject
field will be omitted from the resulting object.skip_await_rollout
(bool
): Set to true to skip awaiting rollout during resource creation and update. Whennull
, theskip_await_rollout
field will be omitted from the resulting object.instance_filter
(list[obj]
): Filter to select VMs. Whennull
, theinstance_filter
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.instance_filter.new constructor.os_policies
(list[obj]
): List of OS policies to be applied to the VMs. Whennull
, theos_policies
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.new constructor.rollout
(list[obj]
): Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted. Whennull
, therollout
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.rollout.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
os_config_os_policy_assignment
resource into the root Terraform configuration.
withDescription()
google.string.withDescription
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the description field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedescription
field.
withInstanceFilter()
google.list[obj].withInstanceFilter
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the instance_filter field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withInstanceFilterMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theinstance_filter
field.
withInstanceFilterMixin()
google.list[obj].withInstanceFilterMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the instance_filter field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withInstanceFilter
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theinstance_filter
field.
withLocation()
google.string.withLocation
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the location field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thelocation
field.
withName()
google.string.withName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename
field.
withOsPolicies()
google.list[obj].withOsPolicies
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the os_policies field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withOsPoliciesMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theos_policies
field.
withOsPoliciesMixin()
google.list[obj].withOsPoliciesMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the os_policies field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withOsPolicies
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theos_policies
field.
withProject()
google.string.withProject
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the project field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theproject
field.
withRollout()
google.list[obj].withRollout
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the rollout field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withRolloutMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therollout
field.
withRolloutMixin()
google.list[obj].withRolloutMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the rollout field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withRollout
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therollout
field.
withSkipAwaitRollout()
google.bool.withSkipAwaitRollout
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the skip_await_rollout field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theskip_await_rollout
field.
withTimeouts()
google.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the google.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
google.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the google.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
new()
google.os_config_os_policy_assignment.instance_filter.new
constructs a new object with attributes and blocks configured for the instance_filter
Terraform sub block.
Args:
all
(bool
): Target all VMs in the project. If true, no other criteria is permitted. Whennull
, theall
field will be omitted from the resulting object.exclusion_labels
(list[obj]
): List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM. Whennull
, theexclusion_labels
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.instance_filter.exclusion_labels.new constructor.inclusion_labels
(list[obj]
): List of label sets used for VM inclusion. If the list has more than one 'LabelSet', the VM is included if any of the label sets are applicable for the VM. Whennull
, theinclusion_labels
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.instance_filter.inclusion_labels.new constructor.inventories
(list[obj]
): List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories. Whennull
, theinventories
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.instance_filter.inventories.new constructor.
Returns:
- An attribute object that represents the
instance_filter
sub block.
new()
google.os_config_os_policy_assignment.instance_filter.exclusion_labels.new
constructs a new object with attributes and blocks configured for the exclusion_labels
Terraform sub block.
Args:
labels
(obj
): Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected. Whennull
, thelabels
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
exclusion_labels
sub block.
new()
google.os_config_os_policy_assignment.instance_filter.inclusion_labels.new
constructs a new object with attributes and blocks configured for the inclusion_labels
Terraform sub block.
Args:
labels
(obj
): Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected. Whennull
, thelabels
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
inclusion_labels
sub block.
new()
google.os_config_os_policy_assignment.instance_filter.inventories.new
constructs a new object with attributes and blocks configured for the inventories
Terraform sub block.
Args:
os_short_name
(string
): The OS short nameos_version
(string
): The OS version Prefix matches are supported if asterisk() is provided as the last character. For example, to match all versions with a major version of '7', specify the following value for this field '7.' An empty string matches all OS versions. Whennull
, theos_version
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
inventories
sub block.
new()
google.os_config_os_policy_assignment.os_policies.new
constructs a new object with attributes and blocks configured for the os_policies
Terraform sub block.
Args:
allow_no_resource_group_match
(bool
): 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. Whennull
, theallow_no_resource_group_match
field will be omitted from the resulting object.description
(string
): Policy description. Length of the description is limited to 1024 characters. Whennull
, thedescription
field will be omitted from the resulting object.mode
(string
): Policy mode Possible values: ["MODE_UNSPECIFIED", "VALIDATION", "ENFORCEMENT"]resource_groups
(list[obj]
): 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' Whennull
, theresource_groups
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.new constructor.
Returns:
- An attribute object that represents the
os_policies
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.new
constructs a new object with attributes and blocks configured for the resource_groups
Terraform sub block.
Args:
inventory_filters
(list[obj]
): List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either 'RHEL' or 'CentOS' operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally. Whennull
, theinventory_filters
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.inventory_filters.new constructor.resources
(list[obj]
): List of resources configured for this resource group. The resources are executed in the exact order specified here. Whennull
, theresources
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.new constructor.
Returns:
- An attribute object that represents the
resource_groups
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.inventory_filters.new
constructs a new object with attributes and blocks configured for the inventory_filters
Terraform sub block.
Args:
os_short_name
(string
): The OS short nameos_version
(string
): The OS version Prefix matches are supported if asterisk() is provided as the last character. For example, to match all versions with a major version of '7', specify the following value for this field '7.' An empty string matches all OS versions. Whennull
, theos_version
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
inventory_filters
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.new
constructs a new object with attributes and blocks configured for the resources
Terraform sub block.
Args:
exec
(list[obj]
): Exec resource Whennull
, theexec
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.new constructor.file
(list[obj]
): File resource Whennull
, thefile
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.file.new constructor.pkg
(list[obj]
): Package resource Whennull
, thepkg
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.new constructor.repository
(list[obj]
): Package repository resource Whennull
, therepository
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.new constructor.
Returns:
- An attribute object that represents the
resources
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.new
constructs a new object with attributes and blocks configured for the exec
Terraform sub block.
Args:
enforce
(list[obj]
): What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce. Whennull
, theenforce
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.enforce.new constructor.validate
(list[obj]
): What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate. Whennull
, thevalidate
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.validate.new constructor.
Returns:
- An attribute object that represents the
exec
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.enforce.new
constructs a new object with attributes and blocks configured for the enforce
Terraform sub block.
Args:
args
(list
): Optional arguments to pass to the source during execution. Whennull
, theargs
field will be omitted from the resulting object.interpreter
(string
): The script interpreter to use. Possible values: ["INTERPRETER_UNSPECIFIED", "NONE", "SHELL", "POWERSHELL"]output_file_path
(string
): Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes. Whennull
, theoutput_file_path
field will be omitted from the resulting object.script
(string
): An inline script. The size of the script is limited to 1024 characters. Whennull
, thescript
field will be omitted from the resulting object.file
(list[obj]
): A remote or local file. Whennull
, thefile
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.enforce.file.new constructor.
Returns:
- An attribute object that represents the
enforce
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.enforce.file.new
constructs a new object with attributes and blocks configured for the file
Terraform sub block.
Args:
allow_insecure
(bool
): Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified. Whennull
, theallow_insecure
field will be omitted from the resulting object.local_path
(string
): A local path within the VM to use. Whennull
, thelocal_path
field will be omitted from the resulting object.gcs
(list[obj]
): A Cloud Storage object. Whennull
, thegcs
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.enforce.file.gcs.new constructor.remote
(list[obj]
): A generic remote file. Whennull
, theremote
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.enforce.file.remote.new constructor.
Returns:
- An attribute object that represents the
file
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.enforce.file.gcs.new
constructs a new object with attributes and blocks configured for the gcs
Terraform sub block.
Args:
bucket
(string
): Bucket of the Cloud Storage object.generation
(number
): Generation number of the Cloud Storage object. Whennull
, thegeneration
field will be omitted from the resulting object.object
(string
): Name of the Cloud Storage object.
Returns:
- An attribute object that represents the
gcs
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.enforce.file.remote.new
constructs a new object with attributes and blocks configured for the remote
Terraform sub block.
Args:
sha256_checksum
(string
): SHA256 checksum of the remote file. Whennull
, thesha256_checksum
field will be omitted from the resulting object.uri
(string
): URI from which to fetch the object. It should contain both the protocol and path following the format '{protocol}://{location}'.
Returns:
- An attribute object that represents the
remote
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.validate.new
constructs a new object with attributes and blocks configured for the validate
Terraform sub block.
Args:
args
(list
): Optional arguments to pass to the source during execution. Whennull
, theargs
field will be omitted from the resulting object.interpreter
(string
): The script interpreter to use. Possible values: ["INTERPRETER_UNSPECIFIED", "NONE", "SHELL", "POWERSHELL"]output_file_path
(string
): Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes. Whennull
, theoutput_file_path
field will be omitted from the resulting object.script
(string
): An inline script. The size of the script is limited to 1024 characters. Whennull
, thescript
field will be omitted from the resulting object.file
(list[obj]
): A remote or local file. Whennull
, thefile
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.validate.file.new constructor.
Returns:
- An attribute object that represents the
validate
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.validate.file.new
constructs a new object with attributes and blocks configured for the file
Terraform sub block.
Args:
allow_insecure
(bool
): Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified. Whennull
, theallow_insecure
field will be omitted from the resulting object.local_path
(string
): A local path within the VM to use. Whennull
, thelocal_path
field will be omitted from the resulting object.gcs
(list[obj]
): A Cloud Storage object. Whennull
, thegcs
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.validate.file.gcs.new constructor.remote
(list[obj]
): A generic remote file. Whennull
, theremote
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.validate.file.remote.new constructor.
Returns:
- An attribute object that represents the
file
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.validate.file.gcs.new
constructs a new object with attributes and blocks configured for the gcs
Terraform sub block.
Args:
bucket
(string
): Bucket of the Cloud Storage object.generation
(number
): Generation number of the Cloud Storage object. Whennull
, thegeneration
field will be omitted from the resulting object.object
(string
): Name of the Cloud Storage object.
Returns:
- An attribute object that represents the
gcs
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.exec.validate.file.remote.new
constructs a new object with attributes and blocks configured for the remote
Terraform sub block.
Args:
sha256_checksum
(string
): SHA256 checksum of the remote file. Whennull
, thesha256_checksum
field will be omitted from the resulting object.uri
(string
): URI from which to fetch the object. It should contain both the protocol and path following the format '{protocol}://{location}'.
Returns:
- An attribute object that represents the
remote
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.file.new
constructs a new object with attributes and blocks configured for the file
Terraform sub block.
Args:
content
(string
): A a file with this content. The size of the content is limited to 1024 characters. Whennull
, thecontent
field will be omitted from the resulting object.path
(string
): The absolute path of the file within the VM.state
(string
): Desired state of the file. Possible values: ["DESIRED_STATE_UNSPECIFIED", "PRESENT", "ABSENT", "CONTENTS_MATCH"]file
(list[obj]
): A remote or local source. Whennull
, thefile
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.file.file.new constructor.
Returns:
- An attribute object that represents the
file
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.file.file.new
constructs a new object with attributes and blocks configured for the file
Terraform sub block.
Args:
allow_insecure
(bool
): Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified. Whennull
, theallow_insecure
field will be omitted from the resulting object.local_path
(string
): A local path within the VM to use. Whennull
, thelocal_path
field will be omitted from the resulting object.gcs
(list[obj]
): A Cloud Storage object. Whennull
, thegcs
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.file.file.gcs.new constructor.remote
(list[obj]
): A generic remote file. Whennull
, theremote
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.file.file.remote.new constructor.
Returns:
- An attribute object that represents the
file
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.file.file.gcs.new
constructs a new object with attributes and blocks configured for the gcs
Terraform sub block.
Args:
bucket
(string
): Bucket of the Cloud Storage object.generation
(number
): Generation number of the Cloud Storage object. Whennull
, thegeneration
field will be omitted from the resulting object.object
(string
): Name of the Cloud Storage object.
Returns:
- An attribute object that represents the
gcs
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.file.file.remote.new
constructs a new object with attributes and blocks configured for the remote
Terraform sub block.
Args:
sha256_checksum
(string
): SHA256 checksum of the remote file. Whennull
, thesha256_checksum
field will be omitted from the resulting object.uri
(string
): URI from which to fetch the object. It should contain both the protocol and path following the format '{protocol}://{location}'.
Returns:
- An attribute object that represents the
remote
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.new
constructs a new object with attributes and blocks configured for the pkg
Terraform sub block.
Args:
desired_state
(string
): The desired state the agent should maintain for this package. Possible values: ["DESIRED_STATE_UNSPECIFIED", "INSTALLED", "REMOVED"]apt
(list[obj]
): A package managed by Apt. Whennull
, theapt
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.apt.new constructor.deb
(list[obj]
): A deb package file. Whennull
, thedeb
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.deb.new constructor.googet
(list[obj]
): A package managed by GooGet. Whennull
, thegooget
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.googet.new constructor.msi
(list[obj]
): An MSI package. Whennull
, themsi
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.msi.new constructor.rpm
(list[obj]
): An rpm package file. Whennull
, therpm
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.rpm.new constructor.yum
(list[obj]
): A package managed by YUM. Whennull
, theyum
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.yum.new constructor.zypper
(list[obj]
): A package managed by Zypper. Whennull
, thezypper
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.zypper.new constructor.
Returns:
- An attribute object that represents the
pkg
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.apt.new
constructs a new object with attributes and blocks configured for the apt
Terraform sub block.
Args:
name
(string
): Package name.
Returns:
- An attribute object that represents the
apt
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.deb.new
constructs a new object with attributes and blocks configured for the deb
Terraform sub block.
Args:
pull_deps
(bool
): Whether dependencies should also be installed. - install when false: 'dpkg -i package' - install when true: 'apt-get update && apt-get -y install package.deb' Whennull
, thepull_deps
field will be omitted from the resulting object.source
(list[obj]
): A deb package. Whennull
, thesource
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.deb.source.new constructor.
Returns:
- An attribute object that represents the
deb
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.deb.source.new
constructs a new object with attributes and blocks configured for the source
Terraform sub block.
Args:
allow_insecure
(bool
): Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified. Whennull
, theallow_insecure
field will be omitted from the resulting object.local_path
(string
): A local path within the VM to use. Whennull
, thelocal_path
field will be omitted from the resulting object.gcs
(list[obj]
): A Cloud Storage object. Whennull
, thegcs
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.deb.source.gcs.new constructor.remote
(list[obj]
): A generic remote file. Whennull
, theremote
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.deb.source.remote.new constructor.
Returns:
- An attribute object that represents the
source
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.deb.source.gcs.new
constructs a new object with attributes and blocks configured for the gcs
Terraform sub block.
Args:
bucket
(string
): Bucket of the Cloud Storage object.generation
(number
): Generation number of the Cloud Storage object. Whennull
, thegeneration
field will be omitted from the resulting object.object
(string
): Name of the Cloud Storage object.
Returns:
- An attribute object that represents the
gcs
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.deb.source.remote.new
constructs a new object with attributes and blocks configured for the remote
Terraform sub block.
Args:
sha256_checksum
(string
): SHA256 checksum of the remote file. Whennull
, thesha256_checksum
field will be omitted from the resulting object.uri
(string
): URI from which to fetch the object. It should contain both the protocol and path following the format '{protocol}://{location}'.
Returns:
- An attribute object that represents the
remote
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.googet.new
constructs a new object with attributes and blocks configured for the googet
Terraform sub block.
Args:
name
(string
): Package name.
Returns:
- An attribute object that represents the
googet
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.msi.new
constructs a new object with attributes and blocks configured for the msi
Terraform sub block.
Args:
properties
(list
): Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of 'ACTION=INSTALL REBOOT=ReallySuppress'. Whennull
, theproperties
field will be omitted from the resulting object.source
(list[obj]
): The MSI package. Whennull
, thesource
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.msi.source.new constructor.
Returns:
- An attribute object that represents the
msi
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.msi.source.new
constructs a new object with attributes and blocks configured for the source
Terraform sub block.
Args:
allow_insecure
(bool
): Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified. Whennull
, theallow_insecure
field will be omitted from the resulting object.local_path
(string
): A local path within the VM to use. Whennull
, thelocal_path
field will be omitted from the resulting object.gcs
(list[obj]
): A Cloud Storage object. Whennull
, thegcs
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.msi.source.gcs.new constructor.remote
(list[obj]
): A generic remote file. Whennull
, theremote
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.msi.source.remote.new constructor.
Returns:
- An attribute object that represents the
source
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.msi.source.gcs.new
constructs a new object with attributes and blocks configured for the gcs
Terraform sub block.
Args:
bucket
(string
): Bucket of the Cloud Storage object.generation
(number
): Generation number of the Cloud Storage object. Whennull
, thegeneration
field will be omitted from the resulting object.object
(string
): Name of the Cloud Storage object.
Returns:
- An attribute object that represents the
gcs
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.msi.source.remote.new
constructs a new object with attributes and blocks configured for the remote
Terraform sub block.
Args:
sha256_checksum
(string
): SHA256 checksum of the remote file. Whennull
, thesha256_checksum
field will be omitted from the resulting object.uri
(string
): URI from which to fetch the object. It should contain both the protocol and path following the format '{protocol}://{location}'.
Returns:
- An attribute object that represents the
remote
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.rpm.new
constructs a new object with attributes and blocks configured for the rpm
Terraform sub block.
Args:
pull_deps
(bool
): Whether dependencies should also be installed. - install when false: 'rpm --upgrade --replacepkgs package.rpm' - install when true: 'yum -y install package.rpm' or 'zypper -y install package.rpm' Whennull
, thepull_deps
field will be omitted from the resulting object.source
(list[obj]
): An rpm package. Whennull
, thesource
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.rpm.source.new constructor.
Returns:
- An attribute object that represents the
rpm
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.rpm.source.new
constructs a new object with attributes and blocks configured for the source
Terraform sub block.
Args:
allow_insecure
(bool
): Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified. Whennull
, theallow_insecure
field will be omitted from the resulting object.local_path
(string
): A local path within the VM to use. Whennull
, thelocal_path
field will be omitted from the resulting object.gcs
(list[obj]
): A Cloud Storage object. Whennull
, thegcs
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.rpm.source.gcs.new constructor.remote
(list[obj]
): A generic remote file. Whennull
, theremote
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.rpm.source.remote.new constructor.
Returns:
- An attribute object that represents the
source
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.rpm.source.gcs.new
constructs a new object with attributes and blocks configured for the gcs
Terraform sub block.
Args:
bucket
(string
): Bucket of the Cloud Storage object.generation
(number
): Generation number of the Cloud Storage object. Whennull
, thegeneration
field will be omitted from the resulting object.object
(string
): Name of the Cloud Storage object.
Returns:
- An attribute object that represents the
gcs
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.rpm.source.remote.new
constructs a new object with attributes and blocks configured for the remote
Terraform sub block.
Args:
sha256_checksum
(string
): SHA256 checksum of the remote file. Whennull
, thesha256_checksum
field will be omitted from the resulting object.uri
(string
): URI from which to fetch the object. It should contain both the protocol and path following the format '{protocol}://{location}'.
Returns:
- An attribute object that represents the
remote
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.yum.new
constructs a new object with attributes and blocks configured for the yum
Terraform sub block.
Args:
name
(string
): Package name.
Returns:
- An attribute object that represents the
yum
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.pkg.zypper.new
constructs a new object with attributes and blocks configured for the zypper
Terraform sub block.
Args:
name
(string
): Package name.
Returns:
- An attribute object that represents the
zypper
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.new
constructs a new object with attributes and blocks configured for the repository
Terraform sub block.
Args:
apt
(list[obj]
): An Apt Repository. Whennull
, theapt
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.apt.new constructor.goo
(list[obj]
): A Goo Repository. Whennull
, thegoo
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.goo.new constructor.yum
(list[obj]
): A Yum Repository. Whennull
, theyum
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.yum.new constructor.zypper
(list[obj]
): A Zypper Repository. Whennull
, thezypper
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.zypper.new constructor.
Returns:
- An attribute object that represents the
repository
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.apt.new
constructs a new object with attributes and blocks configured for the apt
Terraform sub block.
Args:
archive_type
(string
): Type of archive files in this repository. Possible values: ["ARCHIVE_TYPE_UNSPECIFIED", "DEB", "DEB_SRC"]components
(list
): List of components for this repository. Must contain at least one item.distribution
(string
): Distribution of this repository.gpg_key
(string
): URI of the key file for this repository. The agent maintains a keyring at '/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg'. Whennull
, thegpg_key
field will be omitted from the resulting object.uri
(string
): URI for this repository.
Returns:
- An attribute object that represents the
apt
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.goo.new
constructs a new object with attributes and blocks configured for the goo
Terraform sub block.
Args:
name
(string
): The name of the repository.url
(string
): The url of the repository.
Returns:
- An attribute object that represents the
goo
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.yum.new
constructs a new object with attributes and blocks configured for the yum
Terraform sub block.
Args:
base_url
(string
): The location of the repository directory.display_name
(string
): The display name of the repository. Whennull
, thedisplay_name
field will be omitted from the resulting object.gpg_keys
(list
): URIs of GPG keys. Whennull
, thegpg_keys
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
yum
sub block.
new()
google.os_config_os_policy_assignment.os_policies.resource_groups.resources.repository.zypper.new
constructs a new object with attributes and blocks configured for the zypper
Terraform sub block.
Args:
base_url
(string
): The location of the repository directory.display_name
(string
): The display name of the repository. Whennull
, thedisplay_name
field will be omitted from the resulting object.gpg_keys
(list
): URIs of GPG keys. Whennull
, thegpg_keys
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
zypper
sub block.
new()
google.os_config_os_policy_assignment.rollout.new
constructs a new object with attributes and blocks configured for the rollout
Terraform sub block.
Args:
min_wait_duration
(string
): This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the 'disruption_budget' at least until this duration of time has passed after configuration changes are applied.disruption_budget
(list[obj]
): The maximum number (or percentage) of VMs per zone to disrupt at any given moment. Whennull
, thedisruption_budget
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.os_config_os_policy_assignment.rollout.disruption_budget.new constructor.
Returns:
- An attribute object that represents the
rollout
sub block.
new()
google.os_config_os_policy_assignment.rollout.disruption_budget.new
constructs a new object with attributes and blocks configured for the disruption_budget
Terraform sub block.
Args:
fixed
(number
): Specifies a fixed value. Whennull
, thefixed
field will be omitted from the resulting object.percent
(number
): Specifies the relative value defined as a percentage, which will be multiplied by a reference value. Whennull
, thepercent
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
disruption_budget
sub block.
new()
google.os_config_os_policy_assignment.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.