diff --git a/docs/README.md b/docs/README.md index e56b9834b3..f90bd15c1d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -19,3 +19,4 @@ This library is generated with [`k8s`](https://github.com/jsonnet-libs/k8s). - [upbound-provider-azuread/0.11](upbound-provider-azuread/0.11/README.md) - [upbound-provider-gcp/0.36](upbound-provider-gcp/0.36/README.md) - [provider-terraform/0.10](provider-terraform/0.10/README.md) +- [provider-terraform/0.16](provider-terraform/0.16/README.md) diff --git a/docs/provider-terraform/0.16/README.md b/docs/provider-terraform/0.16/README.md new file mode 100644 index 0000000000..cd30e15af1 --- /dev/null +++ b/docs/provider-terraform/0.16/README.md @@ -0,0 +1,13 @@ +--- +permalink: /provider-terraform/0.16/ +--- + +# upbound_terraform + +```jsonnet +local upbound_terraform = import "github.com/jsonnet-libs/crossplane-libsonnet/provider-terraform/0.16/main.libsonnet" +``` + + + +* [tf](tf/index.md) \ No newline at end of file diff --git a/docs/provider-terraform/0.16/tf/index.md b/docs/provider-terraform/0.16/tf/index.md new file mode 100644 index 0000000000..f499e788e1 --- /dev/null +++ b/docs/provider-terraform/0.16/tf/index.md @@ -0,0 +1,9 @@ +--- +permalink: /provider-terraform/0.16/tf/ +--- + +# tf + + + +* [v1beta1](v1beta1/index.md) \ No newline at end of file diff --git a/docs/provider-terraform/0.16/tf/v1beta1/index.md b/docs/provider-terraform/0.16/tf/v1beta1/index.md new file mode 100644 index 0000000000..dc16f9e970 --- /dev/null +++ b/docs/provider-terraform/0.16/tf/v1beta1/index.md @@ -0,0 +1,12 @@ +--- +permalink: /provider-terraform/0.16/tf/v1beta1/ +--- + +# tf.v1beta1 + + + +* [providerConfig](providerConfig.md) +* [providerConfigUsage](providerConfigUsage.md) +* [storeConfig](storeConfig.md) +* [workspace](workspace.md) \ No newline at end of file diff --git a/docs/provider-terraform/0.16/tf/v1beta1/providerConfig.md b/docs/provider-terraform/0.16/tf/v1beta1/providerConfig.md new file mode 100644 index 0000000000..9423464e5d --- /dev/null +++ b/docs/provider-terraform/0.16/tf/v1beta1/providerConfig.md @@ -0,0 +1,340 @@ +--- +permalink: /provider-terraform/0.16/tf/v1beta1/providerConfig/ +--- + +# tf.v1beta1.providerConfig + +"A ProviderConfig configures a Terraform provider." + +## Index + +* [`fn new(name)`](#fn-new) +* [`obj metadata`](#obj-metadata) + * [`fn withAnnotations(annotations)`](#fn-metadatawithannotations) + * [`fn withAnnotationsMixin(annotations)`](#fn-metadatawithannotationsmixin) + * [`fn withClusterName(clusterName)`](#fn-metadatawithclustername) + * [`fn withCreationTimestamp(creationTimestamp)`](#fn-metadatawithcreationtimestamp) + * [`fn withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)`](#fn-metadatawithdeletiongraceperiodseconds) + * [`fn withDeletionTimestamp(deletionTimestamp)`](#fn-metadatawithdeletiontimestamp) + * [`fn withFinalizers(finalizers)`](#fn-metadatawithfinalizers) + * [`fn withFinalizersMixin(finalizers)`](#fn-metadatawithfinalizersmixin) + * [`fn withGenerateName(generateName)`](#fn-metadatawithgeneratename) + * [`fn withGeneration(generation)`](#fn-metadatawithgeneration) + * [`fn withLabels(labels)`](#fn-metadatawithlabels) + * [`fn withLabelsMixin(labels)`](#fn-metadatawithlabelsmixin) + * [`fn withName(name)`](#fn-metadatawithname) + * [`fn withNamespace(namespace)`](#fn-metadatawithnamespace) + * [`fn withOwnerReferences(ownerReferences)`](#fn-metadatawithownerreferences) + * [`fn withOwnerReferencesMixin(ownerReferences)`](#fn-metadatawithownerreferencesmixin) + * [`fn withResourceVersion(resourceVersion)`](#fn-metadatawithresourceversion) + * [`fn withSelfLink(selfLink)`](#fn-metadatawithselflink) + * [`fn withUid(uid)`](#fn-metadatawithuid) +* [`obj spec`](#obj-spec) + * [`fn withBackendFile(backendFile)`](#fn-specwithbackendfile) + * [`fn withConfiguration(configuration)`](#fn-specwithconfiguration) + * [`fn withCredentials(credentials)`](#fn-specwithcredentials) + * [`fn withCredentialsMixin(credentials)`](#fn-specwithcredentialsmixin) + * [`fn withPluginCache(pluginCache)`](#fn-specwithplugincache) + * [`obj spec.credentials`](#obj-speccredentials) + * [`fn withFilename(filename)`](#fn-speccredentialswithfilename) + * [`fn withSource(source)`](#fn-speccredentialswithsource) + * [`obj spec.credentials.env`](#obj-speccredentialsenv) + * [`fn withName(name)`](#fn-speccredentialsenvwithname) + * [`obj spec.credentials.fs`](#obj-speccredentialsfs) + * [`fn withPath(path)`](#fn-speccredentialsfswithpath) + * [`obj spec.credentials.secretRef`](#obj-speccredentialssecretref) + * [`fn withKey(key)`](#fn-speccredentialssecretrefwithkey) + * [`fn withName(name)`](#fn-speccredentialssecretrefwithname) + * [`fn withNamespace(namespace)`](#fn-speccredentialssecretrefwithnamespace) + +## Fields + +### fn new + +```ts +new(name) +``` + +new returns an instance of ProviderConfig + +## obj metadata + +"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create." + +### fn metadata.withAnnotations + +```ts +withAnnotations(annotations) +``` + +"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations" + +### fn metadata.withAnnotationsMixin + +```ts +withAnnotationsMixin(annotations) +``` + +"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations" + +**Note:** This function appends passed data to existing values + +### fn metadata.withClusterName + +```ts +withClusterName(clusterName) +``` + +"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request." + +### fn metadata.withCreationTimestamp + +```ts +withCreationTimestamp(creationTimestamp) +``` + +"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers." + +### fn metadata.withDeletionGracePeriodSeconds + +```ts +withDeletionGracePeriodSeconds(deletionGracePeriodSeconds) +``` + +"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only." + +### fn metadata.withDeletionTimestamp + +```ts +withDeletionTimestamp(deletionTimestamp) +``` + +"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers." + +### fn metadata.withFinalizers + +```ts +withFinalizers(finalizers) +``` + +"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list." + +### fn metadata.withFinalizersMixin + +```ts +withFinalizersMixin(finalizers) +``` + +"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list." + +**Note:** This function appends passed data to existing values + +### fn metadata.withGenerateName + +```ts +withGenerateName(generateName) +``` + +"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency" + +### fn metadata.withGeneration + +```ts +withGeneration(generation) +``` + +"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only." + +### fn metadata.withLabels + +```ts +withLabels(labels) +``` + +"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + +### fn metadata.withLabelsMixin + +```ts +withLabelsMixin(labels) +``` + +"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + +**Note:** This function appends passed data to existing values + +### fn metadata.withName + +```ts +withName(name) +``` + +"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names" + +### fn metadata.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces" + +### fn metadata.withOwnerReferences + +```ts +withOwnerReferences(ownerReferences) +``` + +"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller." + +### fn metadata.withOwnerReferencesMixin + +```ts +withOwnerReferencesMixin(ownerReferences) +``` + +"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller." + +**Note:** This function appends passed data to existing values + +### fn metadata.withResourceVersion + +```ts +withResourceVersion(resourceVersion) +``` + +"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency" + +### fn metadata.withSelfLink + +```ts +withSelfLink(selfLink) +``` + +"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release." + +### fn metadata.withUid + +```ts +withUid(uid) +``` + +"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids" + +## obj spec + +"A ProviderConfigSpec defines the desired state of a ProviderConfig." + +### fn spec.withBackendFile + +```ts +withBackendFile(backendFile) +``` + +"Terraform backend file configuration content,\nit has the contents of the backend block as top-level attributes,\nwithout the need to wrap it in another terraform or backend block.\nMore details at https://developer.hashicorp.com/terraform/language/settings/backends/configuration#file." + +### fn spec.withConfiguration + +```ts +withConfiguration(configuration) +``` + +"Configuration that should be injected into all workspaces that use\nthis provider config, expressed as inline HCL. This can be used to\nautomatically inject Terraform provider configuration blocks." + +### fn spec.withCredentials + +```ts +withCredentials(credentials) +``` + +"Credentials required to authenticate to this provider." + +### fn spec.withCredentialsMixin + +```ts +withCredentialsMixin(credentials) +``` + +"Credentials required to authenticate to this provider." + +**Note:** This function appends passed data to existing values + +### fn spec.withPluginCache + +```ts +withPluginCache(pluginCache) +``` + +"PluginCache enables terraform provider plugin caching mechanism\nhttps://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache" + +## obj spec.credentials + +"Credentials required to authenticate to this provider." + +### fn spec.credentials.withFilename + +```ts +withFilename(filename) +``` + +"Filename (relative to main.tf) to which these provider credentials\nshould be written." + +### fn spec.credentials.withSource + +```ts +withSource(source) +``` + +"Source of the provider credentials." + +## obj spec.credentials.env + +"Env is a reference to an environment variable that contains credentials\nthat must be used to connect to the provider." + +### fn spec.credentials.env.withName + +```ts +withName(name) +``` + +"Name is the name of an environment variable." + +## obj spec.credentials.fs + +"Fs is a reference to a filesystem location that contains credentials that\nmust be used to connect to the provider." + +### fn spec.credentials.fs.withPath + +```ts +withPath(path) +``` + +"Path is a filesystem path." + +## obj spec.credentials.secretRef + +"A SecretRef is a reference to a secret key that contains the credentials\nthat must be used to connect to the provider." + +### fn spec.credentials.secretRef.withKey + +```ts +withKey(key) +``` + +"The key to select." + +### fn spec.credentials.secretRef.withName + +```ts +withName(name) +``` + +"Name of the secret." + +### fn spec.credentials.secretRef.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace of the secret." \ No newline at end of file diff --git a/docs/provider-terraform/0.16/tf/v1beta1/providerConfigUsage.md b/docs/provider-terraform/0.16/tf/v1beta1/providerConfigUsage.md new file mode 100644 index 0000000000..b6d3d36baa --- /dev/null +++ b/docs/provider-terraform/0.16/tf/v1beta1/providerConfigUsage.md @@ -0,0 +1,283 @@ +--- +permalink: /provider-terraform/0.16/tf/v1beta1/providerConfigUsage/ +--- + +# tf.v1beta1.providerConfigUsage + +"A ProviderConfigUsage indicates that a resource is using a ProviderConfig." + +## Index + +* [`fn new(name)`](#fn-new) +* [`obj metadata`](#obj-metadata) + * [`fn withAnnotations(annotations)`](#fn-metadatawithannotations) + * [`fn withAnnotationsMixin(annotations)`](#fn-metadatawithannotationsmixin) + * [`fn withClusterName(clusterName)`](#fn-metadatawithclustername) + * [`fn withCreationTimestamp(creationTimestamp)`](#fn-metadatawithcreationtimestamp) + * [`fn withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)`](#fn-metadatawithdeletiongraceperiodseconds) + * [`fn withDeletionTimestamp(deletionTimestamp)`](#fn-metadatawithdeletiontimestamp) + * [`fn withFinalizers(finalizers)`](#fn-metadatawithfinalizers) + * [`fn withFinalizersMixin(finalizers)`](#fn-metadatawithfinalizersmixin) + * [`fn withGenerateName(generateName)`](#fn-metadatawithgeneratename) + * [`fn withGeneration(generation)`](#fn-metadatawithgeneration) + * [`fn withLabels(labels)`](#fn-metadatawithlabels) + * [`fn withLabelsMixin(labels)`](#fn-metadatawithlabelsmixin) + * [`fn withName(name)`](#fn-metadatawithname) + * [`fn withNamespace(namespace)`](#fn-metadatawithnamespace) + * [`fn withOwnerReferences(ownerReferences)`](#fn-metadatawithownerreferences) + * [`fn withOwnerReferencesMixin(ownerReferences)`](#fn-metadatawithownerreferencesmixin) + * [`fn withResourceVersion(resourceVersion)`](#fn-metadatawithresourceversion) + * [`fn withSelfLink(selfLink)`](#fn-metadatawithselflink) + * [`fn withUid(uid)`](#fn-metadatawithuid) +* [`obj providerConfigRef`](#obj-providerconfigref) + * [`fn withName(name)`](#fn-providerconfigrefwithname) + * [`obj providerConfigRef.policy`](#obj-providerconfigrefpolicy) + * [`fn withResolution(resolution)`](#fn-providerconfigrefpolicywithresolution) + * [`fn withResolve(resolve)`](#fn-providerconfigrefpolicywithresolve) +* [`obj resourceRef`](#obj-resourceref) + * [`fn withApiVersion(apiVersion)`](#fn-resourcerefwithapiversion) + * [`fn withKind(kind)`](#fn-resourcerefwithkind) + * [`fn withName(name)`](#fn-resourcerefwithname) + * [`fn withUid(uid)`](#fn-resourcerefwithuid) + +## Fields + +### fn new + +```ts +new(name) +``` + +new returns an instance of ProviderConfigUsage + +## obj metadata + +"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create." + +### fn metadata.withAnnotations + +```ts +withAnnotations(annotations) +``` + +"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations" + +### fn metadata.withAnnotationsMixin + +```ts +withAnnotationsMixin(annotations) +``` + +"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations" + +**Note:** This function appends passed data to existing values + +### fn metadata.withClusterName + +```ts +withClusterName(clusterName) +``` + +"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request." + +### fn metadata.withCreationTimestamp + +```ts +withCreationTimestamp(creationTimestamp) +``` + +"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers." + +### fn metadata.withDeletionGracePeriodSeconds + +```ts +withDeletionGracePeriodSeconds(deletionGracePeriodSeconds) +``` + +"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only." + +### fn metadata.withDeletionTimestamp + +```ts +withDeletionTimestamp(deletionTimestamp) +``` + +"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers." + +### fn metadata.withFinalizers + +```ts +withFinalizers(finalizers) +``` + +"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list." + +### fn metadata.withFinalizersMixin + +```ts +withFinalizersMixin(finalizers) +``` + +"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list." + +**Note:** This function appends passed data to existing values + +### fn metadata.withGenerateName + +```ts +withGenerateName(generateName) +``` + +"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency" + +### fn metadata.withGeneration + +```ts +withGeneration(generation) +``` + +"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only." + +### fn metadata.withLabels + +```ts +withLabels(labels) +``` + +"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + +### fn metadata.withLabelsMixin + +```ts +withLabelsMixin(labels) +``` + +"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + +**Note:** This function appends passed data to existing values + +### fn metadata.withName + +```ts +withName(name) +``` + +"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names" + +### fn metadata.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces" + +### fn metadata.withOwnerReferences + +```ts +withOwnerReferences(ownerReferences) +``` + +"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller." + +### fn metadata.withOwnerReferencesMixin + +```ts +withOwnerReferencesMixin(ownerReferences) +``` + +"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller." + +**Note:** This function appends passed data to existing values + +### fn metadata.withResourceVersion + +```ts +withResourceVersion(resourceVersion) +``` + +"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency" + +### fn metadata.withSelfLink + +```ts +withSelfLink(selfLink) +``` + +"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release." + +### fn metadata.withUid + +```ts +withUid(uid) +``` + +"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids" + +## obj providerConfigRef + +"ProviderConfigReference to the provider config being used." + +### fn providerConfigRef.withName + +```ts +withName(name) +``` + +"Name of the referenced object." + +## obj providerConfigRef.policy + +"Policies for referencing." + +### fn providerConfigRef.policy.withResolution + +```ts +withResolution(resolution) +``` + +"Resolution specifies whether resolution of this reference is required.\nThe default is 'Required', which means the reconcile will fail if the\nreference cannot be resolved. 'Optional' means this reference will be\na no-op if it cannot be resolved." + +### fn providerConfigRef.policy.withResolve + +```ts +withResolve(resolve) +``` + +"Resolve specifies when this reference should be resolved. The default\nis 'IfNotPresent', which will attempt to resolve the reference only when\nthe corresponding field is not present. Use 'Always' to resolve the\nreference on every reconcile." + +## obj resourceRef + +"ResourceReference to the managed resource using the provider config." + +### fn resourceRef.withApiVersion + +```ts +withApiVersion(apiVersion) +``` + +"APIVersion of the referenced object." + +### fn resourceRef.withKind + +```ts +withKind(kind) +``` + +"Kind of the referenced object." + +### fn resourceRef.withName + +```ts +withName(name) +``` + +"Name of the referenced object." + +### fn resourceRef.withUid + +```ts +withUid(uid) +``` + +"UID of the referenced object." \ No newline at end of file diff --git a/docs/provider-terraform/0.16/tf/v1beta1/storeConfig.md b/docs/provider-terraform/0.16/tf/v1beta1/storeConfig.md new file mode 100644 index 0000000000..0bccacf45d --- /dev/null +++ b/docs/provider-terraform/0.16/tf/v1beta1/storeConfig.md @@ -0,0 +1,353 @@ +--- +permalink: /provider-terraform/0.16/tf/v1beta1/storeConfig/ +--- + +# tf.v1beta1.storeConfig + +"A StoreConfig configures how GCP controller should store connection details." + +## Index + +* [`fn new(name)`](#fn-new) +* [`obj metadata`](#obj-metadata) + * [`fn withAnnotations(annotations)`](#fn-metadatawithannotations) + * [`fn withAnnotationsMixin(annotations)`](#fn-metadatawithannotationsmixin) + * [`fn withClusterName(clusterName)`](#fn-metadatawithclustername) + * [`fn withCreationTimestamp(creationTimestamp)`](#fn-metadatawithcreationtimestamp) + * [`fn withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)`](#fn-metadatawithdeletiongraceperiodseconds) + * [`fn withDeletionTimestamp(deletionTimestamp)`](#fn-metadatawithdeletiontimestamp) + * [`fn withFinalizers(finalizers)`](#fn-metadatawithfinalizers) + * [`fn withFinalizersMixin(finalizers)`](#fn-metadatawithfinalizersmixin) + * [`fn withGenerateName(generateName)`](#fn-metadatawithgeneratename) + * [`fn withGeneration(generation)`](#fn-metadatawithgeneration) + * [`fn withLabels(labels)`](#fn-metadatawithlabels) + * [`fn withLabelsMixin(labels)`](#fn-metadatawithlabelsmixin) + * [`fn withName(name)`](#fn-metadatawithname) + * [`fn withNamespace(namespace)`](#fn-metadatawithnamespace) + * [`fn withOwnerReferences(ownerReferences)`](#fn-metadatawithownerreferences) + * [`fn withOwnerReferencesMixin(ownerReferences)`](#fn-metadatawithownerreferencesmixin) + * [`fn withResourceVersion(resourceVersion)`](#fn-metadatawithresourceversion) + * [`fn withSelfLink(selfLink)`](#fn-metadatawithselflink) + * [`fn withUid(uid)`](#fn-metadatawithuid) +* [`obj spec`](#obj-spec) + * [`fn withDefaultScope(defaultScope)`](#fn-specwithdefaultscope) + * [`fn withType(type)`](#fn-specwithtype) + * [`obj spec.kubernetes`](#obj-speckubernetes) + * [`obj spec.kubernetes.auth`](#obj-speckubernetesauth) + * [`fn withSource(source)`](#fn-speckubernetesauthwithsource) + * [`obj spec.kubernetes.auth.env`](#obj-speckubernetesauthenv) + * [`fn withName(name)`](#fn-speckubernetesauthenvwithname) + * [`obj spec.kubernetes.auth.fs`](#obj-speckubernetesauthfs) + * [`fn withPath(path)`](#fn-speckubernetesauthfswithpath) + * [`obj spec.kubernetes.auth.secretRef`](#obj-speckubernetesauthsecretref) + * [`fn withKey(key)`](#fn-speckubernetesauthsecretrefwithkey) + * [`fn withName(name)`](#fn-speckubernetesauthsecretrefwithname) + * [`fn withNamespace(namespace)`](#fn-speckubernetesauthsecretrefwithnamespace) + * [`obj spec.plugin`](#obj-specplugin) + * [`fn withEndpoint(endpoint)`](#fn-specpluginwithendpoint) + * [`obj spec.plugin.configRef`](#obj-specpluginconfigref) + * [`fn withApiVersion(apiVersion)`](#fn-specpluginconfigrefwithapiversion) + * [`fn withKind(kind)`](#fn-specpluginconfigrefwithkind) + * [`fn withName(name)`](#fn-specpluginconfigrefwithname) + +## Fields + +### fn new + +```ts +new(name) +``` + +new returns an instance of StoreConfig + +## obj metadata + +"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create." + +### fn metadata.withAnnotations + +```ts +withAnnotations(annotations) +``` + +"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations" + +### fn metadata.withAnnotationsMixin + +```ts +withAnnotationsMixin(annotations) +``` + +"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations" + +**Note:** This function appends passed data to existing values + +### fn metadata.withClusterName + +```ts +withClusterName(clusterName) +``` + +"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request." + +### fn metadata.withCreationTimestamp + +```ts +withCreationTimestamp(creationTimestamp) +``` + +"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers." + +### fn metadata.withDeletionGracePeriodSeconds + +```ts +withDeletionGracePeriodSeconds(deletionGracePeriodSeconds) +``` + +"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only." + +### fn metadata.withDeletionTimestamp + +```ts +withDeletionTimestamp(deletionTimestamp) +``` + +"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers." + +### fn metadata.withFinalizers + +```ts +withFinalizers(finalizers) +``` + +"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list." + +### fn metadata.withFinalizersMixin + +```ts +withFinalizersMixin(finalizers) +``` + +"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list." + +**Note:** This function appends passed data to existing values + +### fn metadata.withGenerateName + +```ts +withGenerateName(generateName) +``` + +"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency" + +### fn metadata.withGeneration + +```ts +withGeneration(generation) +``` + +"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only." + +### fn metadata.withLabels + +```ts +withLabels(labels) +``` + +"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + +### fn metadata.withLabelsMixin + +```ts +withLabelsMixin(labels) +``` + +"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + +**Note:** This function appends passed data to existing values + +### fn metadata.withName + +```ts +withName(name) +``` + +"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names" + +### fn metadata.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces" + +### fn metadata.withOwnerReferences + +```ts +withOwnerReferences(ownerReferences) +``` + +"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller." + +### fn metadata.withOwnerReferencesMixin + +```ts +withOwnerReferencesMixin(ownerReferences) +``` + +"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller." + +**Note:** This function appends passed data to existing values + +### fn metadata.withResourceVersion + +```ts +withResourceVersion(resourceVersion) +``` + +"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency" + +### fn metadata.withSelfLink + +```ts +withSelfLink(selfLink) +``` + +"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release." + +### fn metadata.withUid + +```ts +withUid(uid) +``` + +"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids" + +## obj spec + +"A StoreConfigSpec defines the desired state of a ProviderConfig." + +### fn spec.withDefaultScope + +```ts +withDefaultScope(defaultScope) +``` + +"DefaultScope used for scoping secrets for \"cluster-scoped\" resources.\nIf store type is \"Kubernetes\", this would mean the default namespace to\nstore connection secrets for cluster scoped resources.\nIn case of \"Vault\", this would be used as the default parent path.\nTypically, should be set as Crossplane installation namespace." + +### fn spec.withType + +```ts +withType(type) +``` + +"Type configures which secret store to be used. Only the configuration\nblock for this store will be used and others will be ignored if provided.\nDefault is Kubernetes." + +## obj spec.kubernetes + +"Kubernetes configures a Kubernetes secret store.\nIf the \"type\" is \"Kubernetes\" but no config provided, in cluster config\nwill be used." + +## obj spec.kubernetes.auth + +"Credentials used to connect to the Kubernetes API." + +### fn spec.kubernetes.auth.withSource + +```ts +withSource(source) +``` + +"Source of the credentials." + +## obj spec.kubernetes.auth.env + +"Env is a reference to an environment variable that contains credentials\nthat must be used to connect to the provider." + +### fn spec.kubernetes.auth.env.withName + +```ts +withName(name) +``` + +"Name is the name of an environment variable." + +## obj spec.kubernetes.auth.fs + +"Fs is a reference to a filesystem location that contains credentials that\nmust be used to connect to the provider." + +### fn spec.kubernetes.auth.fs.withPath + +```ts +withPath(path) +``` + +"Path is a filesystem path." + +## obj spec.kubernetes.auth.secretRef + +"A SecretRef is a reference to a secret key that contains the credentials\nthat must be used to connect to the provider." + +### fn spec.kubernetes.auth.secretRef.withKey + +```ts +withKey(key) +``` + +"The key to select." + +### fn spec.kubernetes.auth.secretRef.withName + +```ts +withName(name) +``` + +"Name of the secret." + +### fn spec.kubernetes.auth.secretRef.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace of the secret." + +## obj spec.plugin + +"Plugin configures External secret store as a plugin." + +### fn spec.plugin.withEndpoint + +```ts +withEndpoint(endpoint) +``` + +"Endpoint is the endpoint of the gRPC server." + +## obj spec.plugin.configRef + +"ConfigRef contains store config reference info." + +### fn spec.plugin.configRef.withApiVersion + +```ts +withApiVersion(apiVersion) +``` + +"APIVersion of the referenced config." + +### fn spec.plugin.configRef.withKind + +```ts +withKind(kind) +``` + +"Kind of the referenced config." + +### fn spec.plugin.configRef.withName + +```ts +withName(name) +``` + +"Name of the referenced config." \ No newline at end of file diff --git a/docs/provider-terraform/0.16/tf/v1beta1/workspace.md b/docs/provider-terraform/0.16/tf/v1beta1/workspace.md new file mode 100644 index 0000000000..a1ab90785e --- /dev/null +++ b/docs/provider-terraform/0.16/tf/v1beta1/workspace.md @@ -0,0 +1,793 @@ +--- +permalink: /provider-terraform/0.16/tf/v1beta1/workspace/ +--- + +# tf.v1beta1.workspace + +"A Workspace of Terraform Configuration." + +## Index + +* [`fn new(name)`](#fn-new) +* [`obj metadata`](#obj-metadata) + * [`fn withAnnotations(annotations)`](#fn-metadatawithannotations) + * [`fn withAnnotationsMixin(annotations)`](#fn-metadatawithannotationsmixin) + * [`fn withClusterName(clusterName)`](#fn-metadatawithclustername) + * [`fn withCreationTimestamp(creationTimestamp)`](#fn-metadatawithcreationtimestamp) + * [`fn withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)`](#fn-metadatawithdeletiongraceperiodseconds) + * [`fn withDeletionTimestamp(deletionTimestamp)`](#fn-metadatawithdeletiontimestamp) + * [`fn withFinalizers(finalizers)`](#fn-metadatawithfinalizers) + * [`fn withFinalizersMixin(finalizers)`](#fn-metadatawithfinalizersmixin) + * [`fn withGenerateName(generateName)`](#fn-metadatawithgeneratename) + * [`fn withGeneration(generation)`](#fn-metadatawithgeneration) + * [`fn withLabels(labels)`](#fn-metadatawithlabels) + * [`fn withLabelsMixin(labels)`](#fn-metadatawithlabelsmixin) + * [`fn withName(name)`](#fn-metadatawithname) + * [`fn withNamespace(namespace)`](#fn-metadatawithnamespace) + * [`fn withOwnerReferences(ownerReferences)`](#fn-metadatawithownerreferences) + * [`fn withOwnerReferencesMixin(ownerReferences)`](#fn-metadatawithownerreferencesmixin) + * [`fn withResourceVersion(resourceVersion)`](#fn-metadatawithresourceversion) + * [`fn withSelfLink(selfLink)`](#fn-metadatawithselflink) + * [`fn withUid(uid)`](#fn-metadatawithuid) +* [`obj spec`](#obj-spec) + * [`fn withDeletionPolicy(deletionPolicy)`](#fn-specwithdeletionpolicy) + * [`fn withManagementPolicies(managementPolicies)`](#fn-specwithmanagementpolicies) + * [`fn withManagementPoliciesMixin(managementPolicies)`](#fn-specwithmanagementpoliciesmixin) + * [`obj spec.forProvider`](#obj-specforprovider) + * [`fn withApplyArgs(applyArgs)`](#fn-specforproviderwithapplyargs) + * [`fn withApplyArgsMixin(applyArgs)`](#fn-specforproviderwithapplyargsmixin) + * [`fn withDestroyArgs(destroyArgs)`](#fn-specforproviderwithdestroyargs) + * [`fn withDestroyArgsMixin(destroyArgs)`](#fn-specforproviderwithdestroyargsmixin) + * [`fn withEntrypoint(entrypoint)`](#fn-specforproviderwithentrypoint) + * [`fn withEnv(env)`](#fn-specforproviderwithenv) + * [`fn withEnvMixin(env)`](#fn-specforproviderwithenvmixin) + * [`fn withInitArgs(initArgs)`](#fn-specforproviderwithinitargs) + * [`fn withInitArgsMixin(initArgs)`](#fn-specforproviderwithinitargsmixin) + * [`fn withModule(module)`](#fn-specforproviderwithmodule) + * [`fn withPlanArgs(planArgs)`](#fn-specforproviderwithplanargs) + * [`fn withPlanArgsMixin(planArgs)`](#fn-specforproviderwithplanargsmixin) + * [`fn withSource(source)`](#fn-specforproviderwithsource) + * [`fn withVarFiles(varFiles)`](#fn-specforproviderwithvarfiles) + * [`fn withVarFilesMixin(varFiles)`](#fn-specforproviderwithvarfilesmixin) + * [`fn withVarmap(varmap)`](#fn-specforproviderwithvarmap) + * [`fn withVarmapMixin(varmap)`](#fn-specforproviderwithvarmapmixin) + * [`fn withVars(vars)`](#fn-specforproviderwithvars) + * [`fn withVarsMixin(vars)`](#fn-specforproviderwithvarsmixin) + * [`obj spec.forProvider.env`](#obj-specforproviderenv) + * [`fn withName(name)`](#fn-specforproviderenvwithname) + * [`fn withValue(value)`](#fn-specforproviderenvwithvalue) + * [`obj spec.forProvider.env.configMapKeyRef`](#obj-specforproviderenvconfigmapkeyref) + * [`fn withKey(key)`](#fn-specforproviderenvconfigmapkeyrefwithkey) + * [`fn withName(name)`](#fn-specforproviderenvconfigmapkeyrefwithname) + * [`fn withNamespace(namespace)`](#fn-specforproviderenvconfigmapkeyrefwithnamespace) + * [`obj spec.forProvider.env.secretKeyRef`](#obj-specforproviderenvsecretkeyref) + * [`fn withKey(key)`](#fn-specforproviderenvsecretkeyrefwithkey) + * [`fn withName(name)`](#fn-specforproviderenvsecretkeyrefwithname) + * [`fn withNamespace(namespace)`](#fn-specforproviderenvsecretkeyrefwithnamespace) + * [`obj spec.forProvider.varFiles`](#obj-specforprovidervarfiles) + * [`fn withFormat(format)`](#fn-specforprovidervarfileswithformat) + * [`fn withSource(source)`](#fn-specforprovidervarfileswithsource) + * [`obj spec.forProvider.varFiles.configMapKeyRef`](#obj-specforprovidervarfilesconfigmapkeyref) + * [`fn withKey(key)`](#fn-specforprovidervarfilesconfigmapkeyrefwithkey) + * [`fn withName(name)`](#fn-specforprovidervarfilesconfigmapkeyrefwithname) + * [`fn withNamespace(namespace)`](#fn-specforprovidervarfilesconfigmapkeyrefwithnamespace) + * [`obj spec.forProvider.varFiles.secretKeyRef`](#obj-specforprovidervarfilessecretkeyref) + * [`fn withKey(key)`](#fn-specforprovidervarfilessecretkeyrefwithkey) + * [`fn withName(name)`](#fn-specforprovidervarfilessecretkeyrefwithname) + * [`fn withNamespace(namespace)`](#fn-specforprovidervarfilessecretkeyrefwithnamespace) + * [`obj spec.forProvider.vars`](#obj-specforprovidervars) + * [`fn withKey(key)`](#fn-specforprovidervarswithkey) + * [`fn withValue(value)`](#fn-specforprovidervarswithvalue) + * [`obj spec.providerConfigRef`](#obj-specproviderconfigref) + * [`fn withName(name)`](#fn-specproviderconfigrefwithname) + * [`obj spec.providerConfigRef.policy`](#obj-specproviderconfigrefpolicy) + * [`fn withResolution(resolution)`](#fn-specproviderconfigrefpolicywithresolution) + * [`fn withResolve(resolve)`](#fn-specproviderconfigrefpolicywithresolve) + * [`obj spec.publishConnectionDetailsTo`](#obj-specpublishconnectiondetailsto) + * [`fn withName(name)`](#fn-specpublishconnectiondetailstowithname) + * [`obj spec.publishConnectionDetailsTo.configRef`](#obj-specpublishconnectiondetailstoconfigref) + * [`fn withName(name)`](#fn-specpublishconnectiondetailstoconfigrefwithname) + * [`obj spec.publishConnectionDetailsTo.configRef.policy`](#obj-specpublishconnectiondetailstoconfigrefpolicy) + * [`fn withResolution(resolution)`](#fn-specpublishconnectiondetailstoconfigrefpolicywithresolution) + * [`fn withResolve(resolve)`](#fn-specpublishconnectiondetailstoconfigrefpolicywithresolve) + * [`obj spec.publishConnectionDetailsTo.metadata`](#obj-specpublishconnectiondetailstometadata) + * [`fn withAnnotations(annotations)`](#fn-specpublishconnectiondetailstometadatawithannotations) + * [`fn withAnnotationsMixin(annotations)`](#fn-specpublishconnectiondetailstometadatawithannotationsmixin) + * [`fn withLabels(labels)`](#fn-specpublishconnectiondetailstometadatawithlabels) + * [`fn withLabelsMixin(labels)`](#fn-specpublishconnectiondetailstometadatawithlabelsmixin) + * [`fn withType(type)`](#fn-specpublishconnectiondetailstometadatawithtype) + * [`obj spec.writeConnectionSecretToRef`](#obj-specwriteconnectionsecrettoref) + * [`fn withName(name)`](#fn-specwriteconnectionsecrettorefwithname) + * [`fn withNamespace(namespace)`](#fn-specwriteconnectionsecrettorefwithnamespace) + +## Fields + +### fn new + +```ts +new(name) +``` + +new returns an instance of Workspace + +## obj metadata + +"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create." + +### fn metadata.withAnnotations + +```ts +withAnnotations(annotations) +``` + +"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations" + +### fn metadata.withAnnotationsMixin + +```ts +withAnnotationsMixin(annotations) +``` + +"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations" + +**Note:** This function appends passed data to existing values + +### fn metadata.withClusterName + +```ts +withClusterName(clusterName) +``` + +"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request." + +### fn metadata.withCreationTimestamp + +```ts +withCreationTimestamp(creationTimestamp) +``` + +"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers." + +### fn metadata.withDeletionGracePeriodSeconds + +```ts +withDeletionGracePeriodSeconds(deletionGracePeriodSeconds) +``` + +"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only." + +### fn metadata.withDeletionTimestamp + +```ts +withDeletionTimestamp(deletionTimestamp) +``` + +"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers." + +### fn metadata.withFinalizers + +```ts +withFinalizers(finalizers) +``` + +"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list." + +### fn metadata.withFinalizersMixin + +```ts +withFinalizersMixin(finalizers) +``` + +"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list." + +**Note:** This function appends passed data to existing values + +### fn metadata.withGenerateName + +```ts +withGenerateName(generateName) +``` + +"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency" + +### fn metadata.withGeneration + +```ts +withGeneration(generation) +``` + +"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only." + +### fn metadata.withLabels + +```ts +withLabels(labels) +``` + +"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + +### fn metadata.withLabelsMixin + +```ts +withLabelsMixin(labels) +``` + +"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + +**Note:** This function appends passed data to existing values + +### fn metadata.withName + +```ts +withName(name) +``` + +"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names" + +### fn metadata.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces" + +### fn metadata.withOwnerReferences + +```ts +withOwnerReferences(ownerReferences) +``` + +"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller." + +### fn metadata.withOwnerReferencesMixin + +```ts +withOwnerReferencesMixin(ownerReferences) +``` + +"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller." + +**Note:** This function appends passed data to existing values + +### fn metadata.withResourceVersion + +```ts +withResourceVersion(resourceVersion) +``` + +"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency" + +### fn metadata.withSelfLink + +```ts +withSelfLink(selfLink) +``` + +"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release." + +### fn metadata.withUid + +```ts +withUid(uid) +``` + +"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids" + +## obj spec + +"A WorkspaceSpec defines the desired state of a Workspace." + +### fn spec.withDeletionPolicy + +```ts +withDeletionPolicy(deletionPolicy) +``` + +"DeletionPolicy specifies what will happen to the underlying external\nwhen this managed resource is deleted - either \"Delete\" or \"Orphan\" the\nexternal resource.\nThis field is planned to be deprecated in favor of the ManagementPolicies\nfield in a future release. Currently, both could be set independently and\nnon-default values would be honored if the feature flag is enabled.\nSee the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223" + +### fn spec.withManagementPolicies + +```ts +withManagementPolicies(managementPolicies) +``` + +"THIS IS A BETA FIELD. It is on by default but can be opted out\nthrough a Crossplane feature flag.\nManagementPolicies specify the array of actions Crossplane is allowed to\ntake on the managed and external resources.\nThis field is planned to replace the DeletionPolicy field in a future\nrelease. Currently, both could be set independently and non-default\nvalues would be honored if the feature flag is enabled. If both are\ncustom, the DeletionPolicy field will be ignored.\nSee the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223\nand this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md" + +### fn spec.withManagementPoliciesMixin + +```ts +withManagementPoliciesMixin(managementPolicies) +``` + +"THIS IS A BETA FIELD. It is on by default but can be opted out\nthrough a Crossplane feature flag.\nManagementPolicies specify the array of actions Crossplane is allowed to\ntake on the managed and external resources.\nThis field is planned to replace the DeletionPolicy field in a future\nrelease. Currently, both could be set independently and non-default\nvalues would be honored if the feature flag is enabled. If both are\ncustom, the DeletionPolicy field will be ignored.\nSee the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223\nand this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md" + +**Note:** This function appends passed data to existing values + +## obj spec.forProvider + +"WorkspaceParameters are the configurable fields of a Workspace." + +### fn spec.forProvider.withApplyArgs + +```ts +withApplyArgs(applyArgs) +``` + +"Arguments to be included in the terraform apply CLI command" + +### fn spec.forProvider.withApplyArgsMixin + +```ts +withApplyArgsMixin(applyArgs) +``` + +"Arguments to be included in the terraform apply CLI command" + +**Note:** This function appends passed data to existing values + +### fn spec.forProvider.withDestroyArgs + +```ts +withDestroyArgs(destroyArgs) +``` + +"Arguments to be included in the terraform destroy CLI command" + +### fn spec.forProvider.withDestroyArgsMixin + +```ts +withDestroyArgsMixin(destroyArgs) +``` + +"Arguments to be included in the terraform destroy CLI command" + +**Note:** This function appends passed data to existing values + +### fn spec.forProvider.withEntrypoint + +```ts +withEntrypoint(entrypoint) +``` + +"Entrypoint for `terraform init` within the module" + +### fn spec.forProvider.withEnv + +```ts +withEnv(env) +``` + +"Environment variables." + +### fn spec.forProvider.withEnvMixin + +```ts +withEnvMixin(env) +``` + +"Environment variables." + +**Note:** This function appends passed data to existing values + +### fn spec.forProvider.withInitArgs + +```ts +withInitArgs(initArgs) +``` + +"Arguments to be included in the terraform init CLI command" + +### fn spec.forProvider.withInitArgsMixin + +```ts +withInitArgsMixin(initArgs) +``` + +"Arguments to be included in the terraform init CLI command" + +**Note:** This function appends passed data to existing values + +### fn spec.forProvider.withModule + +```ts +withModule(module) +``` + +"The root module of this workspace; i.e. the module containing its main.tf\nfile. When the workspace's source is 'Remote' (the default) this can be\nany address supported by terraform init -from-module, for example a git\nrepository or an S3 bucket. When the workspace's source is 'Inline' the\ncontent of a simple main.tf file may be written inline." + +### fn spec.forProvider.withPlanArgs + +```ts +withPlanArgs(planArgs) +``` + +"Arguments to be included in the terraform plan CLI command" + +### fn spec.forProvider.withPlanArgsMixin + +```ts +withPlanArgsMixin(planArgs) +``` + +"Arguments to be included in the terraform plan CLI command" + +**Note:** This function appends passed data to existing values + +### fn spec.forProvider.withSource + +```ts +withSource(source) +``` + +"Source of the root module of this workspace." + +### fn spec.forProvider.withVarFiles + +```ts +withVarFiles(varFiles) +``` + +"Files of configuration variables. Explicitly declared vars take\nprecedence." + +### fn spec.forProvider.withVarFilesMixin + +```ts +withVarFilesMixin(varFiles) +``` + +"Files of configuration variables. Explicitly declared vars take\nprecedence." + +**Note:** This function appends passed data to existing values + +### fn spec.forProvider.withVarmap + +```ts +withVarmap(varmap) +``` + +"Terraform Variable Map. Should be a valid JSON representation of the input vars" + +### fn spec.forProvider.withVarmapMixin + +```ts +withVarmapMixin(varmap) +``` + +"Terraform Variable Map. Should be a valid JSON representation of the input vars" + +**Note:** This function appends passed data to existing values + +### fn spec.forProvider.withVars + +```ts +withVars(vars) +``` + +"Configuration variables." + +### fn spec.forProvider.withVarsMixin + +```ts +withVarsMixin(vars) +``` + +"Configuration variables." + +**Note:** This function appends passed data to existing values + +## obj spec.forProvider.env + +"Environment variables." + +### fn spec.forProvider.env.withName + +```ts +withName(name) +``` + + + +### fn spec.forProvider.env.withValue + +```ts +withValue(value) +``` + + + +## obj spec.forProvider.env.configMapKeyRef + +"A ConfigMap key containing the desired env var value." + +### fn spec.forProvider.env.configMapKeyRef.withKey + +```ts +withKey(key) +``` + +"Key within the referenced resource." + +### fn spec.forProvider.env.configMapKeyRef.withName + +```ts +withName(name) +``` + +"Name of the referenced resource." + +### fn spec.forProvider.env.configMapKeyRef.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace of the referenced resource." + +## obj spec.forProvider.env.secretKeyRef + +"A Secret key containing the desired env var value." + +### fn spec.forProvider.env.secretKeyRef.withKey + +```ts +withKey(key) +``` + +"Key within the referenced resource." + +### fn spec.forProvider.env.secretKeyRef.withName + +```ts +withName(name) +``` + +"Name of the referenced resource." + +### fn spec.forProvider.env.secretKeyRef.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace of the referenced resource." + +## obj spec.forProvider.varFiles + +"Files of configuration variables. Explicitly declared vars take\nprecedence." + +### fn spec.forProvider.varFiles.withFormat + +```ts +withFormat(format) +``` + +"Format of this vars file." + +### fn spec.forProvider.varFiles.withSource + +```ts +withSource(source) +``` + +"Source of this vars file." + +## obj spec.forProvider.varFiles.configMapKeyRef + +"A ConfigMap key containing the vars file." + +### fn spec.forProvider.varFiles.configMapKeyRef.withKey + +```ts +withKey(key) +``` + +"Key within the referenced resource." + +### fn spec.forProvider.varFiles.configMapKeyRef.withName + +```ts +withName(name) +``` + +"Name of the referenced resource." + +### fn spec.forProvider.varFiles.configMapKeyRef.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace of the referenced resource." + +## obj spec.forProvider.varFiles.secretKeyRef + +"A Secret key containing the vars file." + +### fn spec.forProvider.varFiles.secretKeyRef.withKey + +```ts +withKey(key) +``` + +"Key within the referenced resource." + +### fn spec.forProvider.varFiles.secretKeyRef.withName + +```ts +withName(name) +``` + +"Name of the referenced resource." + +### fn spec.forProvider.varFiles.secretKeyRef.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace of the referenced resource." + +## obj spec.forProvider.vars + +"Configuration variables." + +### fn spec.forProvider.vars.withKey + +```ts +withKey(key) +``` + + + +### fn spec.forProvider.vars.withValue + +```ts +withValue(value) +``` + + + +## obj spec.providerConfigRef + +"ProviderConfigReference specifies how the provider that will be used to\ncreate, observe, update, and delete this managed resource should be\nconfigured." + +### fn spec.providerConfigRef.withName + +```ts +withName(name) +``` + +"Name of the referenced object." + +## obj spec.providerConfigRef.policy + +"Policies for referencing." + +### fn spec.providerConfigRef.policy.withResolution + +```ts +withResolution(resolution) +``` + +"Resolution specifies whether resolution of this reference is required.\nThe default is 'Required', which means the reconcile will fail if the\nreference cannot be resolved. 'Optional' means this reference will be\na no-op if it cannot be resolved." + +### fn spec.providerConfigRef.policy.withResolve + +```ts +withResolve(resolve) +``` + +"Resolve specifies when this reference should be resolved. The default\nis 'IfNotPresent', which will attempt to resolve the reference only when\nthe corresponding field is not present. Use 'Always' to resolve the\nreference on every reconcile." + +## obj spec.publishConnectionDetailsTo + +"PublishConnectionDetailsTo specifies the connection secret config which\ncontains a name, metadata and a reference to secret store config to\nwhich any connection details for this managed resource should be written.\nConnection details frequently include the endpoint, username,\nand password required to connect to the managed resource." + +### fn spec.publishConnectionDetailsTo.withName + +```ts +withName(name) +``` + +"Name is the name of the connection secret." + +## obj spec.publishConnectionDetailsTo.configRef + +"SecretStoreConfigRef specifies which secret store config should be used\nfor this ConnectionSecret." + +### fn spec.publishConnectionDetailsTo.configRef.withName + +```ts +withName(name) +``` + +"Name of the referenced object." + +## obj spec.publishConnectionDetailsTo.configRef.policy + +"Policies for referencing." + +### fn spec.publishConnectionDetailsTo.configRef.policy.withResolution + +```ts +withResolution(resolution) +``` + +"Resolution specifies whether resolution of this reference is required.\nThe default is 'Required', which means the reconcile will fail if the\nreference cannot be resolved. 'Optional' means this reference will be\na no-op if it cannot be resolved." + +### fn spec.publishConnectionDetailsTo.configRef.policy.withResolve + +```ts +withResolve(resolve) +``` + +"Resolve specifies when this reference should be resolved. The default\nis 'IfNotPresent', which will attempt to resolve the reference only when\nthe corresponding field is not present. Use 'Always' to resolve the\nreference on every reconcile." + +## obj spec.publishConnectionDetailsTo.metadata + +"Metadata is the metadata for connection secret." + +### fn spec.publishConnectionDetailsTo.metadata.withAnnotations + +```ts +withAnnotations(annotations) +``` + +"Annotations are the annotations to be added to connection secret.\n- For Kubernetes secrets, this will be used as \"metadata.annotations\".\n- It is up to Secret Store implementation for others store types." + +### fn spec.publishConnectionDetailsTo.metadata.withAnnotationsMixin + +```ts +withAnnotationsMixin(annotations) +``` + +"Annotations are the annotations to be added to connection secret.\n- For Kubernetes secrets, this will be used as \"metadata.annotations\".\n- It is up to Secret Store implementation for others store types." + +**Note:** This function appends passed data to existing values + +### fn spec.publishConnectionDetailsTo.metadata.withLabels + +```ts +withLabels(labels) +``` + +"Labels are the labels/tags to be added to connection secret.\n- For Kubernetes secrets, this will be used as \"metadata.labels\".\n- It is up to Secret Store implementation for others store types." + +### fn spec.publishConnectionDetailsTo.metadata.withLabelsMixin + +```ts +withLabelsMixin(labels) +``` + +"Labels are the labels/tags to be added to connection secret.\n- For Kubernetes secrets, this will be used as \"metadata.labels\".\n- It is up to Secret Store implementation for others store types." + +**Note:** This function appends passed data to existing values + +### fn spec.publishConnectionDetailsTo.metadata.withType + +```ts +withType(type) +``` + +"Type is the SecretType for the connection secret.\n- Only valid for Kubernetes Secret Stores." + +## obj spec.writeConnectionSecretToRef + +"WriteConnectionSecretToReference specifies the namespace and name of a\nSecret to which any connection details for this managed resource should\nbe written. Connection details frequently include the endpoint, username,\nand password required to connect to the managed resource.\nThis field is planned to be replaced in a future release in favor of\nPublishConnectionDetailsTo. Currently, both could be set independently\nand connection details would be published to both without affecting\neach other." + +### fn spec.writeConnectionSecretToRef.withName + +```ts +withName(name) +``` + +"Name of the secret." + +### fn spec.writeConnectionSecretToRef.withNamespace + +```ts +withNamespace(namespace) +``` + +"Namespace of the secret." \ No newline at end of file diff --git a/provider-terraform/0.16/_gen/tf/main.libsonnet b/provider-terraform/0.16/_gen/tf/main.libsonnet new file mode 100644 index 0000000000..2dc7bcaee8 --- /dev/null +++ b/provider-terraform/0.16/_gen/tf/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='tf', url='', help=''), + v1beta1: (import 'v1beta1/main.libsonnet'), +} diff --git a/provider-terraform/0.16/_gen/tf/v1beta1/main.libsonnet b/provider-terraform/0.16/_gen/tf/v1beta1/main.libsonnet new file mode 100644 index 0000000000..3905b9d978 --- /dev/null +++ b/provider-terraform/0.16/_gen/tf/v1beta1/main.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1beta1', url='', help=''), + providerConfig: (import 'providerConfig.libsonnet'), + providerConfigUsage: (import 'providerConfigUsage.libsonnet'), + storeConfig: (import 'storeConfig.libsonnet'), + workspace: (import 'workspace.libsonnet'), +} diff --git a/provider-terraform/0.16/_gen/tf/v1beta1/providerConfig.libsonnet b/provider-terraform/0.16/_gen/tf/v1beta1/providerConfig.libsonnet new file mode 100644 index 0000000000..62773ae401 --- /dev/null +++ b/provider-terraform/0.16/_gen/tf/v1beta1/providerConfig.libsonnet @@ -0,0 +1,93 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='providerConfig', url='', help='"A ProviderConfig configures a Terraform provider."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withClusterName':: d.fn(help='"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."', args=[d.arg(name='clusterName', type=d.T.string)]), + withClusterName(clusterName): { metadata+: { clusterName: clusterName } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"SelfLink is a URL representing this object. Populated by the system. Read-only.\\n\\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ProviderConfig', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'tf.upbound.io/v1beta1', + kind: 'ProviderConfig', + } + self.metadata.withName(name=name) + self.metadata.withAnnotations(annotations={ + 'tanka.dev/namespaced': 'false', + }), + '#spec':: d.obj(help='"A ProviderConfigSpec defines the desired state of a ProviderConfig."'), + spec: { + '#credentials':: d.obj(help='"Credentials required to authenticate to this provider."'), + credentials: { + '#env':: d.obj(help='"Env is a reference to an environment variable that contains credentials\\nthat must be used to connect to the provider."'), + env: { + '#withName':: d.fn(help='"Name is the name of an environment variable."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { env+: { name: name } }, + }, + '#fs':: d.obj(help='"Fs is a reference to a filesystem location that contains credentials that\\nmust be used to connect to the provider."'), + fs: { + '#withPath':: d.fn(help='"Path is a filesystem path."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { fs+: { path: path } }, + }, + '#secretRef':: d.obj(help='"A SecretRef is a reference to a secret key that contains the credentials\\nthat must be used to connect to the provider."'), + secretRef: { + '#withKey':: d.fn(help='"The key to select."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { secretRef+: { key: key } }, + '#withName':: d.fn(help='"Name of the secret."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the secret."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretRef+: { namespace: namespace } }, + }, + '#withFilename':: d.fn(help='"Filename (relative to main.tf) to which these provider credentials\\nshould be written."', args=[d.arg(name='filename', type=d.T.string)]), + withFilename(filename): { filename: filename }, + '#withSource':: d.fn(help='"Source of the provider credentials."', args=[d.arg(name='source', type=d.T.string)]), + withSource(source): { source: source }, + }, + '#withBackendFile':: d.fn(help='"Terraform backend file configuration content,\\nit has the contents of the backend block as top-level attributes,\\nwithout the need to wrap it in another terraform or backend block.\\nMore details at https://developer.hashicorp.com/terraform/language/settings/backends/configuration#file."', args=[d.arg(name='backendFile', type=d.T.string)]), + withBackendFile(backendFile): { spec+: { backendFile: backendFile } }, + '#withConfiguration':: d.fn(help='"Configuration that should be injected into all workspaces that use\\nthis provider config, expressed as inline HCL. This can be used to\\nautomatically inject Terraform provider configuration blocks."', args=[d.arg(name='configuration', type=d.T.string)]), + withConfiguration(configuration): { spec+: { configuration: configuration } }, + '#withCredentials':: d.fn(help='"Credentials required to authenticate to this provider."', args=[d.arg(name='credentials', type=d.T.array)]), + withCredentials(credentials): { spec+: { credentials: if std.isArray(v=credentials) then credentials else [credentials] } }, + '#withCredentialsMixin':: d.fn(help='"Credentials required to authenticate to this provider."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='credentials', type=d.T.array)]), + withCredentialsMixin(credentials): { spec+: { credentials+: if std.isArray(v=credentials) then credentials else [credentials] } }, + '#withPluginCache':: d.fn(help='"PluginCache enables terraform provider plugin caching mechanism\\nhttps://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache"', args=[d.arg(name='pluginCache', type=d.T.boolean)]), + withPluginCache(pluginCache): { spec+: { pluginCache: pluginCache } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/provider-terraform/0.16/_gen/tf/v1beta1/providerConfigUsage.libsonnet b/provider-terraform/0.16/_gen/tf/v1beta1/providerConfigUsage.libsonnet new file mode 100644 index 0000000000..6cde85b3ec --- /dev/null +++ b/provider-terraform/0.16/_gen/tf/v1beta1/providerConfigUsage.libsonnet @@ -0,0 +1,77 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='providerConfigUsage', url='', help='"A ProviderConfigUsage indicates that a resource is using a ProviderConfig."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withClusterName':: d.fn(help='"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."', args=[d.arg(name='clusterName', type=d.T.string)]), + withClusterName(clusterName): { metadata+: { clusterName: clusterName } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"SelfLink is a URL representing this object. Populated by the system. Read-only.\\n\\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ProviderConfigUsage', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'tf.upbound.io/v1beta1', + kind: 'ProviderConfigUsage', + } + self.metadata.withName(name=name) + self.metadata.withAnnotations(annotations={ + 'tanka.dev/namespaced': 'false', + }), + '#providerConfigRef':: d.obj(help='"ProviderConfigReference to the provider config being used."'), + providerConfigRef: { + '#policy':: d.obj(help='"Policies for referencing."'), + policy: { + '#withResolution':: d.fn(help="\"Resolution specifies whether resolution of this reference is required.\\nThe default is 'Required', which means the reconcile will fail if the\\nreference cannot be resolved. 'Optional' means this reference will be\\na no-op if it cannot be resolved.\"", args=[d.arg(name='resolution', type=d.T.string)]), + withResolution(resolution): { providerConfigRef+: { policy+: { resolution: resolution } } }, + '#withResolve':: d.fn(help="\"Resolve specifies when this reference should be resolved. The default\\nis 'IfNotPresent', which will attempt to resolve the reference only when\\nthe corresponding field is not present. Use 'Always' to resolve the\\nreference on every reconcile.\"", args=[d.arg(name='resolve', type=d.T.string)]), + withResolve(resolve): { providerConfigRef+: { policy+: { resolve: resolve } } }, + }, + '#withName':: d.fn(help='"Name of the referenced object."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { providerConfigRef+: { name: name } }, + }, + '#resourceRef':: d.obj(help='"ResourceReference to the managed resource using the provider config."'), + resourceRef: { + '#withApiVersion':: d.fn(help='"APIVersion of the referenced object."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { resourceRef+: { apiVersion: apiVersion } }, + '#withKind':: d.fn(help='"Kind of the referenced object."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { resourceRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referenced object."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { resourceRef+: { name: name } }, + '#withUid':: d.fn(help='"UID of the referenced object."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { resourceRef+: { uid: uid } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/provider-terraform/0.16/_gen/tf/v1beta1/storeConfig.libsonnet b/provider-terraform/0.16/_gen/tf/v1beta1/storeConfig.libsonnet new file mode 100644 index 0000000000..e114c274fe --- /dev/null +++ b/provider-terraform/0.16/_gen/tf/v1beta1/storeConfig.libsonnet @@ -0,0 +1,102 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storeConfig', url='', help='"A StoreConfig configures how GCP controller should store connection details."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withClusterName':: d.fn(help='"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."', args=[d.arg(name='clusterName', type=d.T.string)]), + withClusterName(clusterName): { metadata+: { clusterName: clusterName } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"SelfLink is a URL representing this object. Populated by the system. Read-only.\\n\\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of StoreConfig', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'tf.upbound.io/v1beta1', + kind: 'StoreConfig', + } + self.metadata.withName(name=name) + self.metadata.withAnnotations(annotations={ + 'tanka.dev/namespaced': 'false', + }), + '#spec':: d.obj(help='"A StoreConfigSpec defines the desired state of a ProviderConfig."'), + spec: { + '#kubernetes':: d.obj(help='"Kubernetes configures a Kubernetes secret store.\\nIf the \\"type\\" is \\"Kubernetes\\" but no config provided, in cluster config\\nwill be used."'), + kubernetes: { + '#auth':: d.obj(help='"Credentials used to connect to the Kubernetes API."'), + auth: { + '#env':: d.obj(help='"Env is a reference to an environment variable that contains credentials\\nthat must be used to connect to the provider."'), + env: { + '#withName':: d.fn(help='"Name is the name of an environment variable."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { kubernetes+: { auth+: { env+: { name: name } } } } }, + }, + '#fs':: d.obj(help='"Fs is a reference to a filesystem location that contains credentials that\\nmust be used to connect to the provider."'), + fs: { + '#withPath':: d.fn(help='"Path is a filesystem path."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { kubernetes+: { auth+: { fs+: { path: path } } } } }, + }, + '#secretRef':: d.obj(help='"A SecretRef is a reference to a secret key that contains the credentials\\nthat must be used to connect to the provider."'), + secretRef: { + '#withKey':: d.fn(help='"The key to select."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { spec+: { kubernetes+: { auth+: { secretRef+: { key: key } } } } }, + '#withName':: d.fn(help='"Name of the secret."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { kubernetes+: { auth+: { secretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"Namespace of the secret."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { kubernetes+: { auth+: { secretRef+: { namespace: namespace } } } } }, + }, + '#withSource':: d.fn(help='"Source of the credentials."', args=[d.arg(name='source', type=d.T.string)]), + withSource(source): { spec+: { kubernetes+: { auth+: { source: source } } } }, + }, + }, + '#plugin':: d.obj(help='"Plugin configures External secret store as a plugin."'), + plugin: { + '#configRef':: d.obj(help='"ConfigRef contains store config reference info."'), + configRef: { + '#withApiVersion':: d.fn(help='"APIVersion of the referenced config."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { plugin+: { configRef+: { apiVersion: apiVersion } } } }, + '#withKind':: d.fn(help='"Kind of the referenced config."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { plugin+: { configRef+: { kind: kind } } } }, + '#withName':: d.fn(help='"Name of the referenced config."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { plugin+: { configRef+: { name: name } } } }, + }, + '#withEndpoint':: d.fn(help='"Endpoint is the endpoint of the gRPC server."', args=[d.arg(name='endpoint', type=d.T.string)]), + withEndpoint(endpoint): { spec+: { plugin+: { endpoint: endpoint } } }, + }, + '#withDefaultScope':: d.fn(help='"DefaultScope used for scoping secrets for \\"cluster-scoped\\" resources.\\nIf store type is \\"Kubernetes\\", this would mean the default namespace to\\nstore connection secrets for cluster scoped resources.\\nIn case of \\"Vault\\", this would be used as the default parent path.\\nTypically, should be set as Crossplane installation namespace."', args=[d.arg(name='defaultScope', type=d.T.string)]), + withDefaultScope(defaultScope): { spec+: { defaultScope: defaultScope } }, + '#withType':: d.fn(help='"Type configures which secret store to be used. Only the configuration\\nblock for this store will be used and others will be ignored if provided.\\nDefault is Kubernetes."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { type: type } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/provider-terraform/0.16/_gen/tf/v1beta1/workspace.libsonnet b/provider-terraform/0.16/_gen/tf/v1beta1/workspace.libsonnet new file mode 100644 index 0000000000..d07f2f1bee --- /dev/null +++ b/provider-terraform/0.16/_gen/tf/v1beta1/workspace.libsonnet @@ -0,0 +1,210 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='workspace', url='', help='"A Workspace of Terraform Configuration."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withClusterName':: d.fn(help='"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."', args=[d.arg(name='clusterName', type=d.T.string)]), + withClusterName(clusterName): { metadata+: { clusterName: clusterName } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"SelfLink is a URL representing this object. Populated by the system. Read-only.\\n\\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Workspace', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'tf.upbound.io/v1beta1', + kind: 'Workspace', + } + self.metadata.withName(name=name) + self.metadata.withAnnotations(annotations={ + 'tanka.dev/namespaced': 'false', + }), + '#spec':: d.obj(help='"A WorkspaceSpec defines the desired state of a Workspace."'), + spec: { + '#forProvider':: d.obj(help='"WorkspaceParameters are the configurable fields of a Workspace."'), + forProvider: { + '#env':: d.obj(help='"Environment variables."'), + env: { + '#configMapKeyRef':: d.obj(help='"A ConfigMap key containing the desired env var value."'), + configMapKeyRef: { + '#withKey':: d.fn(help='"Key within the referenced resource."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { configMapKeyRef+: { key: key } }, + '#withName':: d.fn(help='"Name of the referenced resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { configMapKeyRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referenced resource."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { configMapKeyRef+: { namespace: namespace } }, + }, + '#secretKeyRef':: d.obj(help='"A Secret key containing the desired env var value."'), + secretKeyRef: { + '#withKey':: d.fn(help='"Key within the referenced resource."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { secretKeyRef+: { key: key } }, + '#withName':: d.fn(help='"Name of the referenced resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretKeyRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referenced resource."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretKeyRef+: { namespace: namespace } }, + }, + '#withName':: d.fn(help='', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withValue':: d.fn(help='', args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + }, + '#varFiles':: d.obj(help='"Files of configuration variables. Explicitly declared vars take\\nprecedence."'), + varFiles: { + '#configMapKeyRef':: d.obj(help='"A ConfigMap key containing the vars file."'), + configMapKeyRef: { + '#withKey':: d.fn(help='"Key within the referenced resource."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { configMapKeyRef+: { key: key } }, + '#withName':: d.fn(help='"Name of the referenced resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { configMapKeyRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referenced resource."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { configMapKeyRef+: { namespace: namespace } }, + }, + '#secretKeyRef':: d.obj(help='"A Secret key containing the vars file."'), + secretKeyRef: { + '#withKey':: d.fn(help='"Key within the referenced resource."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { secretKeyRef+: { key: key } }, + '#withName':: d.fn(help='"Name of the referenced resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretKeyRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referenced resource."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretKeyRef+: { namespace: namespace } }, + }, + '#withFormat':: d.fn(help='"Format of this vars file."', args=[d.arg(name='format', type=d.T.string)]), + withFormat(format): { format: format }, + '#withSource':: d.fn(help='"Source of this vars file."', args=[d.arg(name='source', type=d.T.string)]), + withSource(source): { source: source }, + }, + '#vars':: d.obj(help='"Configuration variables."'), + vars: { + '#withKey':: d.fn(help='', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withValue':: d.fn(help='', args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + }, + '#withApplyArgs':: d.fn(help='"Arguments to be included in the terraform apply CLI command"', args=[d.arg(name='applyArgs', type=d.T.array)]), + withApplyArgs(applyArgs): { spec+: { forProvider+: { applyArgs: if std.isArray(v=applyArgs) then applyArgs else [applyArgs] } } }, + '#withApplyArgsMixin':: d.fn(help='"Arguments to be included in the terraform apply CLI command"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='applyArgs', type=d.T.array)]), + withApplyArgsMixin(applyArgs): { spec+: { forProvider+: { applyArgs+: if std.isArray(v=applyArgs) then applyArgs else [applyArgs] } } }, + '#withDestroyArgs':: d.fn(help='"Arguments to be included in the terraform destroy CLI command"', args=[d.arg(name='destroyArgs', type=d.T.array)]), + withDestroyArgs(destroyArgs): { spec+: { forProvider+: { destroyArgs: if std.isArray(v=destroyArgs) then destroyArgs else [destroyArgs] } } }, + '#withDestroyArgsMixin':: d.fn(help='"Arguments to be included in the terraform destroy CLI command"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='destroyArgs', type=d.T.array)]), + withDestroyArgsMixin(destroyArgs): { spec+: { forProvider+: { destroyArgs+: if std.isArray(v=destroyArgs) then destroyArgs else [destroyArgs] } } }, + '#withEntrypoint':: d.fn(help='"Entrypoint for `terraform init` within the module"', args=[d.arg(name='entrypoint', type=d.T.string)]), + withEntrypoint(entrypoint): { spec+: { forProvider+: { entrypoint: entrypoint } } }, + '#withEnv':: d.fn(help='"Environment variables."', args=[d.arg(name='env', type=d.T.array)]), + withEnv(env): { spec+: { forProvider+: { env: if std.isArray(v=env) then env else [env] } } }, + '#withEnvMixin':: d.fn(help='"Environment variables."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='env', type=d.T.array)]), + withEnvMixin(env): { spec+: { forProvider+: { env+: if std.isArray(v=env) then env else [env] } } }, + '#withInitArgs':: d.fn(help='"Arguments to be included in the terraform init CLI command"', args=[d.arg(name='initArgs', type=d.T.array)]), + withInitArgs(initArgs): { spec+: { forProvider+: { initArgs: if std.isArray(v=initArgs) then initArgs else [initArgs] } } }, + '#withInitArgsMixin':: d.fn(help='"Arguments to be included in the terraform init CLI command"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initArgs', type=d.T.array)]), + withInitArgsMixin(initArgs): { spec+: { forProvider+: { initArgs+: if std.isArray(v=initArgs) then initArgs else [initArgs] } } }, + '#withModule':: d.fn(help="\"The root module of this workspace; i.e. the module containing its main.tf\\nfile. When the workspace's source is 'Remote' (the default) this can be\\nany address supported by terraform init -from-module, for example a git\\nrepository or an S3 bucket. When the workspace's source is 'Inline' the\\ncontent of a simple main.tf file may be written inline.\"", args=[d.arg(name='module', type=d.T.string)]), + withModule(module): { spec+: { forProvider+: { module: module } } }, + '#withPlanArgs':: d.fn(help='"Arguments to be included in the terraform plan CLI command"', args=[d.arg(name='planArgs', type=d.T.array)]), + withPlanArgs(planArgs): { spec+: { forProvider+: { planArgs: if std.isArray(v=planArgs) then planArgs else [planArgs] } } }, + '#withPlanArgsMixin':: d.fn(help='"Arguments to be included in the terraform plan CLI command"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='planArgs', type=d.T.array)]), + withPlanArgsMixin(planArgs): { spec+: { forProvider+: { planArgs+: if std.isArray(v=planArgs) then planArgs else [planArgs] } } }, + '#withSource':: d.fn(help='"Source of the root module of this workspace."', args=[d.arg(name='source', type=d.T.string)]), + withSource(source): { spec+: { forProvider+: { source: source } } }, + '#withVarFiles':: d.fn(help='"Files of configuration variables. Explicitly declared vars take\\nprecedence."', args=[d.arg(name='varFiles', type=d.T.array)]), + withVarFiles(varFiles): { spec+: { forProvider+: { varFiles: if std.isArray(v=varFiles) then varFiles else [varFiles] } } }, + '#withVarFilesMixin':: d.fn(help='"Files of configuration variables. Explicitly declared vars take\\nprecedence."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='varFiles', type=d.T.array)]), + withVarFilesMixin(varFiles): { spec+: { forProvider+: { varFiles+: if std.isArray(v=varFiles) then varFiles else [varFiles] } } }, + '#withVarmap':: d.fn(help='"Terraform Variable Map. Should be a valid JSON representation of the input vars"', args=[d.arg(name='varmap', type=d.T.object)]), + withVarmap(varmap): { spec+: { forProvider+: { varmap: varmap } } }, + '#withVarmapMixin':: d.fn(help='"Terraform Variable Map. Should be a valid JSON representation of the input vars"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='varmap', type=d.T.object)]), + withVarmapMixin(varmap): { spec+: { forProvider+: { varmap+: varmap } } }, + '#withVars':: d.fn(help='"Configuration variables."', args=[d.arg(name='vars', type=d.T.array)]), + withVars(vars): { spec+: { forProvider+: { vars: if std.isArray(v=vars) then vars else [vars] } } }, + '#withVarsMixin':: d.fn(help='"Configuration variables."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='vars', type=d.T.array)]), + withVarsMixin(vars): { spec+: { forProvider+: { vars+: if std.isArray(v=vars) then vars else [vars] } } }, + }, + '#providerConfigRef':: d.obj(help='"ProviderConfigReference specifies how the provider that will be used to\\ncreate, observe, update, and delete this managed resource should be\\nconfigured."'), + providerConfigRef: { + '#policy':: d.obj(help='"Policies for referencing."'), + policy: { + '#withResolution':: d.fn(help="\"Resolution specifies whether resolution of this reference is required.\\nThe default is 'Required', which means the reconcile will fail if the\\nreference cannot be resolved. 'Optional' means this reference will be\\na no-op if it cannot be resolved.\"", args=[d.arg(name='resolution', type=d.T.string)]), + withResolution(resolution): { spec+: { providerConfigRef+: { policy+: { resolution: resolution } } } }, + '#withResolve':: d.fn(help="\"Resolve specifies when this reference should be resolved. The default\\nis 'IfNotPresent', which will attempt to resolve the reference only when\\nthe corresponding field is not present. Use 'Always' to resolve the\\nreference on every reconcile.\"", args=[d.arg(name='resolve', type=d.T.string)]), + withResolve(resolve): { spec+: { providerConfigRef+: { policy+: { resolve: resolve } } } }, + }, + '#withName':: d.fn(help='"Name of the referenced object."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { providerConfigRef+: { name: name } } }, + }, + '#publishConnectionDetailsTo':: d.obj(help='"PublishConnectionDetailsTo specifies the connection secret config which\\ncontains a name, metadata and a reference to secret store config to\\nwhich any connection details for this managed resource should be written.\\nConnection details frequently include the endpoint, username,\\nand password required to connect to the managed resource."'), + publishConnectionDetailsTo: { + '#configRef':: d.obj(help='"SecretStoreConfigRef specifies which secret store config should be used\\nfor this ConnectionSecret."'), + configRef: { + '#policy':: d.obj(help='"Policies for referencing."'), + policy: { + '#withResolution':: d.fn(help="\"Resolution specifies whether resolution of this reference is required.\\nThe default is 'Required', which means the reconcile will fail if the\\nreference cannot be resolved. 'Optional' means this reference will be\\na no-op if it cannot be resolved.\"", args=[d.arg(name='resolution', type=d.T.string)]), + withResolution(resolution): { spec+: { publishConnectionDetailsTo+: { configRef+: { policy+: { resolution: resolution } } } } }, + '#withResolve':: d.fn(help="\"Resolve specifies when this reference should be resolved. The default\\nis 'IfNotPresent', which will attempt to resolve the reference only when\\nthe corresponding field is not present. Use 'Always' to resolve the\\nreference on every reconcile.\"", args=[d.arg(name='resolve', type=d.T.string)]), + withResolve(resolve): { spec+: { publishConnectionDetailsTo+: { configRef+: { policy+: { resolve: resolve } } } } }, + }, + '#withName':: d.fn(help='"Name of the referenced object."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { publishConnectionDetailsTo+: { configRef+: { name: name } } } }, + }, + '#metadata':: d.obj(help='"Metadata is the metadata for connection secret."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations are the annotations to be added to connection secret.\\n- For Kubernetes secrets, this will be used as \\"metadata.annotations\\".\\n- It is up to Secret Store implementation for others store types."', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { publishConnectionDetailsTo+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations are the annotations to be added to connection secret.\\n- For Kubernetes secrets, this will be used as \\"metadata.annotations\\".\\n- It is up to Secret Store implementation for others store types."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { publishConnectionDetailsTo+: { metadata+: { annotations+: annotations } } } }, + '#withLabels':: d.fn(help='"Labels are the labels/tags to be added to connection secret.\\n- For Kubernetes secrets, this will be used as \\"metadata.labels\\".\\n- It is up to Secret Store implementation for others store types."', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { publishConnectionDetailsTo+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Labels are the labels/tags to be added to connection secret.\\n- For Kubernetes secrets, this will be used as \\"metadata.labels\\".\\n- It is up to Secret Store implementation for others store types."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { publishConnectionDetailsTo+: { metadata+: { labels+: labels } } } }, + '#withType':: d.fn(help='"Type is the SecretType for the connection secret.\\n- Only valid for Kubernetes Secret Stores."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { publishConnectionDetailsTo+: { metadata+: { type: type } } } }, + }, + '#withName':: d.fn(help='"Name is the name of the connection secret."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { publishConnectionDetailsTo+: { name: name } } }, + }, + '#withDeletionPolicy':: d.fn(help='"DeletionPolicy specifies what will happen to the underlying external\\nwhen this managed resource is deleted - either \\"Delete\\" or \\"Orphan\\" the\\nexternal resource.\\nThis field is planned to be deprecated in favor of the ManagementPolicies\\nfield in a future release. Currently, both could be set independently and\\nnon-default values would be honored if the feature flag is enabled.\\nSee the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223"', args=[d.arg(name='deletionPolicy', type=d.T.string)]), + withDeletionPolicy(deletionPolicy): { spec+: { deletionPolicy: deletionPolicy } }, + '#withManagementPolicies':: d.fn(help='"THIS IS A BETA FIELD. It is on by default but can be opted out\\nthrough a Crossplane feature flag.\\nManagementPolicies specify the array of actions Crossplane is allowed to\\ntake on the managed and external resources.\\nThis field is planned to replace the DeletionPolicy field in a future\\nrelease. Currently, both could be set independently and non-default\\nvalues would be honored if the feature flag is enabled. If both are\\ncustom, the DeletionPolicy field will be ignored.\\nSee the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223\\nand this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md"', args=[d.arg(name='managementPolicies', type=d.T.array)]), + withManagementPolicies(managementPolicies): { spec+: { managementPolicies: if std.isArray(v=managementPolicies) then managementPolicies else [managementPolicies] } }, + '#withManagementPoliciesMixin':: d.fn(help='"THIS IS A BETA FIELD. It is on by default but can be opted out\\nthrough a Crossplane feature flag.\\nManagementPolicies specify the array of actions Crossplane is allowed to\\ntake on the managed and external resources.\\nThis field is planned to replace the DeletionPolicy field in a future\\nrelease. Currently, both could be set independently and non-default\\nvalues would be honored if the feature flag is enabled. If both are\\ncustom, the DeletionPolicy field will be ignored.\\nSee the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223\\nand this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='managementPolicies', type=d.T.array)]), + withManagementPoliciesMixin(managementPolicies): { spec+: { managementPolicies+: if std.isArray(v=managementPolicies) then managementPolicies else [managementPolicies] } }, + '#writeConnectionSecretToRef':: d.obj(help='"WriteConnectionSecretToReference specifies the namespace and name of a\\nSecret to which any connection details for this managed resource should\\nbe written. Connection details frequently include the endpoint, username,\\nand password required to connect to the managed resource.\\nThis field is planned to be replaced in a future release in favor of\\nPublishConnectionDetailsTo. Currently, both could be set independently\\nand connection details would be published to both without affecting\\neach other."'), + writeConnectionSecretToRef: { + '#withName':: d.fn(help='"Name of the secret."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { writeConnectionSecretToRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace of the secret."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { writeConnectionSecretToRef+: { namespace: namespace } } }, + }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/provider-terraform/0.16/gen.libsonnet b/provider-terraform/0.16/gen.libsonnet new file mode 100644 index 0000000000..e258e34a31 --- /dev/null +++ b/provider-terraform/0.16/gen.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='upbound_terraform', url='github.com/jsonnet-libs/crossplane-libsonnet/provider-terraform/0.16/main.libsonnet', help=''), + tf:: (import '_gen/tf/main.libsonnet'), +} diff --git a/provider-terraform/0.16/main.libsonnet b/provider-terraform/0.16/main.libsonnet new file mode 100644 index 0000000000..f5597a504e --- /dev/null +++ b/provider-terraform/0.16/main.libsonnet @@ -0,0 +1 @@ +(import 'gen.libsonnet')