From 860dd7dc6649439858a9576a55897d230216812e Mon Sep 17 00:00:00 2001 From: Komal Ali Date: Mon, 1 Mar 2021 10:07:56 -0800 Subject: [PATCH 1/2] Update dependencies --- provider/go.mod | 4 ++-- provider/go.sum | 4 ++++ sdk/dotnet/Pulumi.Kubernetes.csproj | 2 +- .../v1/mutatingWebhookConfiguration.ts | 11 ++++------- .../v1/mutatingWebhookConfigurationList.ts | 11 ++++------- .../v1/validatingWebhookConfiguration.ts | 11 ++++------- .../v1/validatingWebhookConfigurationList.ts | 11 ++++------- .../v1beta1/mutatingWebhookConfiguration.ts | 11 ++++------- .../v1beta1/mutatingWebhookConfigurationList.ts | 11 ++++------- .../v1beta1/validatingWebhookConfiguration.ts | 11 ++++------- .../validatingWebhookConfigurationList.ts | 11 ++++------- .../v1/customResourceDefinition.ts | 13 +++++-------- .../v1/customResourceDefinitionList.ts | 11 ++++------- .../v1beta1/customResourceDefinition.ts | 13 +++++-------- .../v1beta1/customResourceDefinitionList.ts | 11 ++++------- sdk/nodejs/apiregistration/v1/apiservice.ts | 11 ++++------- sdk/nodejs/apiregistration/v1/apiserviceList.ts | 13 +++++-------- .../apiregistration/v1beta1/apiservice.ts | 11 ++++------- .../apiregistration/v1beta1/apiserviceList.ts | 13 +++++-------- sdk/nodejs/apps/v1/controllerRevision.ts | 13 +++++-------- sdk/nodejs/apps/v1/controllerRevisionList.ts | 11 ++++------- sdk/nodejs/apps/v1/daemonSet.ts | 11 ++++------- sdk/nodejs/apps/v1/daemonSetList.ts | 11 ++++------- sdk/nodejs/apps/v1/deployment.ts | 11 ++++------- sdk/nodejs/apps/v1/deploymentList.ts | 11 ++++------- sdk/nodejs/apps/v1/replicaSet.ts | 11 ++++------- sdk/nodejs/apps/v1/replicaSetList.ts | 11 ++++------- sdk/nodejs/apps/v1/statefulSet.ts | 11 ++++------- sdk/nodejs/apps/v1/statefulSetList.ts | 11 ++++------- sdk/nodejs/apps/v1beta1/controllerRevision.ts | 13 +++++-------- .../apps/v1beta1/controllerRevisionList.ts | 11 ++++------- sdk/nodejs/apps/v1beta1/deployment.ts | 11 ++++------- sdk/nodejs/apps/v1beta1/deploymentList.ts | 11 ++++------- sdk/nodejs/apps/v1beta1/statefulSet.ts | 11 ++++------- sdk/nodejs/apps/v1beta1/statefulSetList.ts | 11 ++++------- sdk/nodejs/apps/v1beta2/controllerRevision.ts | 13 +++++-------- .../apps/v1beta2/controllerRevisionList.ts | 11 ++++------- sdk/nodejs/apps/v1beta2/daemonSet.ts | 11 ++++------- sdk/nodejs/apps/v1beta2/daemonSetList.ts | 11 ++++------- sdk/nodejs/apps/v1beta2/deployment.ts | 11 ++++------- sdk/nodejs/apps/v1beta2/deploymentList.ts | 11 ++++------- sdk/nodejs/apps/v1beta2/replicaSet.ts | 11 ++++------- sdk/nodejs/apps/v1beta2/replicaSetList.ts | 11 ++++------- sdk/nodejs/apps/v1beta2/statefulSet.ts | 11 ++++------- sdk/nodejs/apps/v1beta2/statefulSetList.ts | 11 ++++------- .../auditregistration/v1alpha1/auditSink.ts | 9 +++------ .../auditregistration/v1alpha1/auditSinkList.ts | 11 ++++------- sdk/nodejs/authentication/v1/tokenRequest.ts | 11 ++++------- sdk/nodejs/authentication/v1/tokenReview.ts | 13 +++++-------- .../authentication/v1beta1/tokenReview.ts | 13 +++++-------- .../v1/localSubjectAccessReview.ts | 13 +++++-------- .../authorization/v1/selfSubjectAccessReview.ts | 13 +++++-------- .../authorization/v1/selfSubjectRulesReview.ts | 13 +++++-------- .../authorization/v1/subjectAccessReview.ts | 13 +++++-------- .../v1beta1/localSubjectAccessReview.ts | 13 +++++-------- .../v1beta1/selfSubjectAccessReview.ts | 13 +++++-------- .../v1beta1/selfSubjectRulesReview.ts | 13 +++++-------- .../v1beta1/subjectAccessReview.ts | 13 +++++-------- .../autoscaling/v1/horizontalPodAutoscaler.ts | 11 ++++------- .../v1/horizontalPodAutoscalerList.ts | 11 ++++------- .../v2beta1/horizontalPodAutoscaler.ts | 11 ++++------- .../v2beta1/horizontalPodAutoscalerList.ts | 11 ++++------- .../v2beta2/horizontalPodAutoscaler.ts | 11 ++++------- .../v2beta2/horizontalPodAutoscalerList.ts | 11 ++++------- sdk/nodejs/batch/v1/job.ts | 9 +++------ sdk/nodejs/batch/v1/jobList.ts | 11 ++++------- sdk/nodejs/batch/v1beta1/cronJob.ts | 11 ++++------- sdk/nodejs/batch/v1beta1/cronJobList.ts | 11 ++++------- sdk/nodejs/batch/v2alpha1/cronJob.ts | 11 ++++------- sdk/nodejs/batch/v2alpha1/cronJobList.ts | 11 ++++------- .../v1/certificateSigningRequest.ts | 13 +++++-------- .../v1/certificateSigningRequestList.ts | 11 ++++------- .../v1beta1/certificateSigningRequest.ts | 11 ++++------- .../v1beta1/certificateSigningRequestList.ts | 11 ++++------- sdk/nodejs/coordination/v1/lease.ts | 11 ++++------- sdk/nodejs/coordination/v1/leaseList.ts | 11 ++++------- sdk/nodejs/coordination/v1beta1/lease.ts | 11 ++++------- sdk/nodejs/coordination/v1beta1/leaseList.ts | 11 ++++------- sdk/nodejs/core/v1/binding.ts | 11 ++++------- sdk/nodejs/core/v1/configMap.ts | 9 +++------ sdk/nodejs/core/v1/configMapList.ts | 11 ++++------- sdk/nodejs/core/v1/endpoints.ts | 9 +++------ sdk/nodejs/core/v1/endpointsList.ts | 11 ++++------- sdk/nodejs/core/v1/event.ts | 15 ++++++--------- sdk/nodejs/core/v1/eventList.ts | 11 ++++------- sdk/nodejs/core/v1/limitRange.ts | 9 +++------ sdk/nodejs/core/v1/limitRangeList.ts | 11 ++++------- sdk/nodejs/core/v1/namespace.ts | 9 +++------ sdk/nodejs/core/v1/namespaceList.ts | 11 ++++------- sdk/nodejs/core/v1/node.ts | 9 +++------ sdk/nodejs/core/v1/nodeList.ts | 11 ++++------- sdk/nodejs/core/v1/persistentVolume.ts | 9 +++------ sdk/nodejs/core/v1/persistentVolumeClaim.ts | 9 +++------ sdk/nodejs/core/v1/persistentVolumeClaimList.ts | 11 ++++------- sdk/nodejs/core/v1/persistentVolumeList.ts | 11 ++++------- sdk/nodejs/core/v1/pod.ts | 9 +++------ sdk/nodejs/core/v1/podList.ts | 11 ++++------- sdk/nodejs/core/v1/podTemplate.ts | 9 +++------ sdk/nodejs/core/v1/podTemplateList.ts | 11 ++++------- sdk/nodejs/core/v1/replicationController.ts | 9 +++------ sdk/nodejs/core/v1/replicationControllerList.ts | 11 ++++------- sdk/nodejs/core/v1/resourceQuota.ts | 9 +++------ sdk/nodejs/core/v1/resourceQuotaList.ts | 11 ++++------- sdk/nodejs/core/v1/secret.ts | 11 ++++------- sdk/nodejs/core/v1/secretList.ts | 11 ++++------- sdk/nodejs/core/v1/service.ts | 9 +++------ sdk/nodejs/core/v1/serviceAccount.ts | 9 +++------ sdk/nodejs/core/v1/serviceAccountList.ts | 11 ++++------- sdk/nodejs/core/v1/serviceList.ts | 11 ++++------- sdk/nodejs/discovery/v1beta1/endpointSlice.ts | 13 +++++-------- .../discovery/v1beta1/endpointSliceList.ts | 11 ++++------- sdk/nodejs/events/v1/event.ts | 15 ++++++--------- sdk/nodejs/events/v1/eventList.ts | 11 ++++------- sdk/nodejs/events/v1beta1/event.ts | 15 ++++++--------- sdk/nodejs/events/v1beta1/eventList.ts | 11 ++++------- sdk/nodejs/extensions/v1beta1/daemonSet.ts | 11 ++++------- sdk/nodejs/extensions/v1beta1/daemonSetList.ts | 11 ++++------- sdk/nodejs/extensions/v1beta1/deployment.ts | 11 ++++------- sdk/nodejs/extensions/v1beta1/deploymentList.ts | 11 ++++------- sdk/nodejs/extensions/v1beta1/ingress.ts | 11 ++++------- sdk/nodejs/extensions/v1beta1/ingressList.ts | 11 ++++------- sdk/nodejs/extensions/v1beta1/networkPolicy.ts | 11 ++++------- .../extensions/v1beta1/networkPolicyList.ts | 11 ++++------- .../extensions/v1beta1/podSecurityPolicy.ts | 11 ++++------- .../extensions/v1beta1/podSecurityPolicyList.ts | 11 ++++------- sdk/nodejs/extensions/v1beta1/replicaSet.ts | 11 ++++------- sdk/nodejs/extensions/v1beta1/replicaSetList.ts | 11 ++++------- sdk/nodejs/flowcontrol/v1alpha1/flowSchema.ts | 11 ++++------- .../flowcontrol/v1alpha1/flowSchemaList.ts | 11 ++++------- .../v1alpha1/priorityLevelConfiguration.ts | 11 ++++------- .../v1alpha1/priorityLevelConfigurationList.ts | 11 ++++------- sdk/nodejs/flowcontrol/v1beta1/flowSchema.ts | 11 ++++------- .../flowcontrol/v1beta1/flowSchemaList.ts | 11 ++++------- .../v1beta1/priorityLevelConfiguration.ts | 11 ++++------- .../v1beta1/priorityLevelConfigurationList.ts | 11 ++++------- sdk/nodejs/meta/v1/status.ts | 9 +++------ sdk/nodejs/networking/v1/ingress.ts | 11 ++++------- sdk/nodejs/networking/v1/ingressClass.ts | 11 ++++------- sdk/nodejs/networking/v1/ingressClassList.ts | 11 ++++------- sdk/nodejs/networking/v1/ingressList.ts | 11 ++++------- sdk/nodejs/networking/v1/networkPolicy.ts | 11 ++++------- sdk/nodejs/networking/v1/networkPolicyList.ts | 11 ++++------- sdk/nodejs/networking/v1beta1/ingress.ts | 11 ++++------- sdk/nodejs/networking/v1beta1/ingressClass.ts | 11 ++++------- .../networking/v1beta1/ingressClassList.ts | 11 ++++------- sdk/nodejs/networking/v1beta1/ingressList.ts | 11 ++++------- sdk/nodejs/node/v1/runtimeClass.ts | 13 +++++-------- sdk/nodejs/node/v1/runtimeClassList.ts | 11 ++++------- sdk/nodejs/node/v1alpha1/runtimeClass.ts | 13 +++++-------- sdk/nodejs/node/v1alpha1/runtimeClassList.ts | 11 ++++------- sdk/nodejs/node/v1beta1/runtimeClass.ts | 13 +++++-------- sdk/nodejs/node/v1beta1/runtimeClassList.ts | 11 ++++------- .../policy/v1beta1/podDisruptionBudget.ts | 9 +++------ .../policy/v1beta1/podDisruptionBudgetList.ts | 11 ++++------- sdk/nodejs/policy/v1beta1/podSecurityPolicy.ts | 11 ++++------- .../policy/v1beta1/podSecurityPolicyList.ts | 11 ++++------- sdk/nodejs/provider.ts | 7 ++----- sdk/nodejs/rbac/v1/clusterRole.ts | 11 ++++------- sdk/nodejs/rbac/v1/clusterRoleBinding.ts | 13 +++++-------- sdk/nodejs/rbac/v1/clusterRoleBindingList.ts | 11 ++++------- sdk/nodejs/rbac/v1/clusterRoleList.ts | 11 ++++------- sdk/nodejs/rbac/v1/role.ts | 11 ++++------- sdk/nodejs/rbac/v1/roleBinding.ts | 13 +++++-------- sdk/nodejs/rbac/v1/roleBindingList.ts | 11 ++++------- sdk/nodejs/rbac/v1/roleList.ts | 11 ++++------- sdk/nodejs/rbac/v1alpha1/clusterRole.ts | 11 ++++------- sdk/nodejs/rbac/v1alpha1/clusterRoleBinding.ts | 13 +++++-------- .../rbac/v1alpha1/clusterRoleBindingList.ts | 11 ++++------- sdk/nodejs/rbac/v1alpha1/clusterRoleList.ts | 11 ++++------- sdk/nodejs/rbac/v1alpha1/role.ts | 11 ++++------- sdk/nodejs/rbac/v1alpha1/roleBinding.ts | 13 +++++-------- sdk/nodejs/rbac/v1alpha1/roleBindingList.ts | 11 ++++------- sdk/nodejs/rbac/v1alpha1/roleList.ts | 11 ++++------- sdk/nodejs/rbac/v1beta1/clusterRole.ts | 11 ++++------- sdk/nodejs/rbac/v1beta1/clusterRoleBinding.ts | 13 +++++-------- .../rbac/v1beta1/clusterRoleBindingList.ts | 11 ++++------- sdk/nodejs/rbac/v1beta1/clusterRoleList.ts | 11 ++++------- sdk/nodejs/rbac/v1beta1/role.ts | 11 ++++------- sdk/nodejs/rbac/v1beta1/roleBinding.ts | 13 +++++-------- sdk/nodejs/rbac/v1beta1/roleBindingList.ts | 11 ++++------- sdk/nodejs/rbac/v1beta1/roleList.ts | 11 ++++------- sdk/nodejs/scheduling/v1/priorityClass.ts | 13 +++++-------- sdk/nodejs/scheduling/v1/priorityClassList.ts | 11 ++++------- sdk/nodejs/scheduling/v1alpha1/priorityClass.ts | 13 +++++-------- .../scheduling/v1alpha1/priorityClassList.ts | 11 ++++------- sdk/nodejs/scheduling/v1beta1/priorityClass.ts | 13 +++++-------- .../scheduling/v1beta1/priorityClassList.ts | 11 ++++------- sdk/nodejs/settings/v1alpha1/podPreset.ts | 9 +++------ sdk/nodejs/settings/v1alpha1/podPresetList.ts | 11 ++++------- sdk/nodejs/storage/v1/csidriver.ts | 13 +++++-------- sdk/nodejs/storage/v1/csidriverList.ts | 11 ++++------- sdk/nodejs/storage/v1/csinode.ts | 13 +++++-------- sdk/nodejs/storage/v1/csinodeList.ts | 11 ++++------- sdk/nodejs/storage/v1/storageClass.ts | 13 +++++-------- sdk/nodejs/storage/v1/storageClassList.ts | 11 ++++------- sdk/nodejs/storage/v1/volumeAttachment.ts | 13 +++++-------- sdk/nodejs/storage/v1/volumeAttachmentList.ts | 11 ++++------- sdk/nodejs/storage/v1alpha1/volumeAttachment.ts | 13 +++++-------- .../storage/v1alpha1/volumeAttachmentList.ts | 11 ++++------- sdk/nodejs/storage/v1beta1/csidriver.ts | 13 +++++-------- sdk/nodejs/storage/v1beta1/csidriverList.ts | 11 ++++------- sdk/nodejs/storage/v1beta1/csinode.ts | 13 +++++-------- sdk/nodejs/storage/v1beta1/csinodeList.ts | 11 ++++------- sdk/nodejs/storage/v1beta1/storageClass.ts | 13 +++++-------- sdk/nodejs/storage/v1beta1/storageClassList.ts | 11 ++++------- sdk/nodejs/storage/v1beta1/volumeAttachment.ts | 13 +++++-------- .../storage/v1beta1/volumeAttachmentList.ts | 11 ++++------- .../v1/MutatingWebhookConfiguration.py | 4 ++++ .../v1/MutatingWebhookConfigurationList.py | 4 ++++ .../v1/ValidatingWebhookConfiguration.py | 4 ++++ .../v1/ValidatingWebhookConfigurationList.py | 4 ++++ .../v1beta1/MutatingWebhookConfiguration.py | 4 ++++ .../v1beta1/MutatingWebhookConfigurationList.py | 4 ++++ .../v1beta1/ValidatingWebhookConfiguration.py | 4 ++++ .../ValidatingWebhookConfigurationList.py | 4 ++++ .../v1/CustomResourceDefinition.py | 5 +++++ .../v1/CustomResourceDefinitionList.py | 4 ++++ .../v1beta1/CustomResourceDefinition.py | 5 +++++ .../v1beta1/CustomResourceDefinitionList.py | 4 ++++ .../apiregistration/v1/APIService.py | 5 +++++ .../apiregistration/v1/APIServiceList.py | 4 ++++ .../apiregistration/v1beta1/APIService.py | 5 +++++ .../apiregistration/v1beta1/APIServiceList.py | 4 ++++ .../apps/v1/ControllerRevision.py | 5 +++++ .../apps/v1/ControllerRevisionList.py | 4 ++++ .../pulumi_kubernetes/apps/v1/DaemonSet.py | 5 +++++ .../pulumi_kubernetes/apps/v1/DaemonSetList.py | 4 ++++ .../pulumi_kubernetes/apps/v1/Deployment.py | 5 +++++ .../pulumi_kubernetes/apps/v1/DeploymentList.py | 4 ++++ .../pulumi_kubernetes/apps/v1/ReplicaSet.py | 5 +++++ .../pulumi_kubernetes/apps/v1/ReplicaSetList.py | 4 ++++ .../pulumi_kubernetes/apps/v1/StatefulSet.py | 5 +++++ .../apps/v1/StatefulSetList.py | 4 ++++ .../apps/v1beta1/ControllerRevision.py | 5 +++++ .../apps/v1beta1/ControllerRevisionList.py | 4 ++++ .../apps/v1beta1/Deployment.py | 5 +++++ .../apps/v1beta1/DeploymentList.py | 4 ++++ .../apps/v1beta1/StatefulSet.py | 5 +++++ .../apps/v1beta1/StatefulSetList.py | 4 ++++ .../apps/v1beta2/ControllerRevision.py | 5 +++++ .../apps/v1beta2/ControllerRevisionList.py | 4 ++++ .../pulumi_kubernetes/apps/v1beta2/DaemonSet.py | 5 +++++ .../apps/v1beta2/DaemonSetList.py | 4 ++++ .../apps/v1beta2/Deployment.py | 5 +++++ .../apps/v1beta2/DeploymentList.py | 4 ++++ .../apps/v1beta2/ReplicaSet.py | 5 +++++ .../apps/v1beta2/ReplicaSetList.py | 4 ++++ .../apps/v1beta2/StatefulSet.py | 5 +++++ .../apps/v1beta2/StatefulSetList.py | 4 ++++ .../auditregistration/v1alpha1/AuditSink.py | 4 ++++ .../auditregistration/v1alpha1/AuditSinkList.py | 4 ++++ .../authentication/v1/TokenRequest.py | 5 +++++ .../authentication/v1/TokenReview.py | 5 +++++ .../authentication/v1beta1/TokenReview.py | 5 +++++ .../v1/LocalSubjectAccessReview.py | 5 +++++ .../authorization/v1/SelfSubjectAccessReview.py | 5 +++++ .../authorization/v1/SelfSubjectRulesReview.py | 5 +++++ .../authorization/v1/SubjectAccessReview.py | 5 +++++ .../v1beta1/LocalSubjectAccessReview.py | 5 +++++ .../v1beta1/SelfSubjectAccessReview.py | 5 +++++ .../v1beta1/SelfSubjectRulesReview.py | 5 +++++ .../v1beta1/SubjectAccessReview.py | 5 +++++ .../autoscaling/v1/HorizontalPodAutoscaler.py | 5 +++++ .../v1/HorizontalPodAutoscalerList.py | 4 ++++ .../v2beta1/HorizontalPodAutoscaler.py | 5 +++++ .../v2beta1/HorizontalPodAutoscalerList.py | 4 ++++ .../v2beta2/HorizontalPodAutoscaler.py | 5 +++++ .../v2beta2/HorizontalPodAutoscalerList.py | 4 ++++ sdk/python/pulumi_kubernetes/batch/v1/Job.py | 5 +++++ .../pulumi_kubernetes/batch/v1/JobList.py | 4 ++++ .../pulumi_kubernetes/batch/v1beta1/CronJob.py | 5 +++++ .../batch/v1beta1/CronJobList.py | 4 ++++ .../pulumi_kubernetes/batch/v2alpha1/CronJob.py | 5 +++++ .../batch/v2alpha1/CronJobList.py | 4 ++++ .../v1/CertificateSigningRequest.py | 5 +++++ .../v1/CertificateSigningRequestList.py | 4 ++++ .../v1beta1/CertificateSigningRequest.py | 5 +++++ .../v1beta1/CertificateSigningRequestList.py | 4 ++++ .../pulumi_kubernetes/coordination/v1/Lease.py | 4 ++++ .../coordination/v1/LeaseList.py | 4 ++++ .../coordination/v1beta1/Lease.py | 4 ++++ .../coordination/v1beta1/LeaseList.py | 4 ++++ sdk/python/pulumi_kubernetes/core/v1/Binding.py | 4 ++++ .../pulumi_kubernetes/core/v1/ConfigMap.py | 6 ++++++ .../pulumi_kubernetes/core/v1/ConfigMapList.py | 4 ++++ .../pulumi_kubernetes/core/v1/Endpoints.py | 4 ++++ .../pulumi_kubernetes/core/v1/EndpointsList.py | 4 ++++ sdk/python/pulumi_kubernetes/core/v1/Event.py | 17 +++++++++++++++++ .../pulumi_kubernetes/core/v1/EventList.py | 4 ++++ .../pulumi_kubernetes/core/v1/LimitRange.py | 4 ++++ .../pulumi_kubernetes/core/v1/LimitRangeList.py | 4 ++++ .../pulumi_kubernetes/core/v1/Namespace.py | 5 +++++ .../pulumi_kubernetes/core/v1/NamespaceList.py | 4 ++++ sdk/python/pulumi_kubernetes/core/v1/Node.py | 5 +++++ .../pulumi_kubernetes/core/v1/NodeList.py | 4 ++++ .../core/v1/PersistentVolume.py | 5 +++++ .../core/v1/PersistentVolumeClaim.py | 5 +++++ .../core/v1/PersistentVolumeClaimList.py | 4 ++++ .../core/v1/PersistentVolumeList.py | 4 ++++ sdk/python/pulumi_kubernetes/core/v1/Pod.py | 5 +++++ sdk/python/pulumi_kubernetes/core/v1/PodList.py | 4 ++++ .../pulumi_kubernetes/core/v1/PodTemplate.py | 4 ++++ .../core/v1/PodTemplateList.py | 4 ++++ .../core/v1/ReplicationController.py | 5 +++++ .../core/v1/ReplicationControllerList.py | 4 ++++ .../pulumi_kubernetes/core/v1/ResourceQuota.py | 5 +++++ .../core/v1/ResourceQuotaList.py | 4 ++++ sdk/python/pulumi_kubernetes/core/v1/Secret.py | 7 +++++++ .../pulumi_kubernetes/core/v1/SecretList.py | 4 ++++ sdk/python/pulumi_kubernetes/core/v1/Service.py | 5 +++++ .../pulumi_kubernetes/core/v1/ServiceAccount.py | 6 ++++++ .../core/v1/ServiceAccountList.py | 4 ++++ .../pulumi_kubernetes/core/v1/ServiceList.py | 4 ++++ .../discovery/v1beta1/EndpointSlice.py | 6 ++++++ .../discovery/v1beta1/EndpointSliceList.py | 4 ++++ sdk/python/pulumi_kubernetes/events/v1/Event.py | 17 +++++++++++++++++ .../pulumi_kubernetes/events/v1/EventList.py | 4 ++++ .../pulumi_kubernetes/events/v1beta1/Event.py | 17 +++++++++++++++++ .../events/v1beta1/EventList.py | 4 ++++ .../extensions/v1beta1/DaemonSet.py | 5 +++++ .../extensions/v1beta1/DaemonSetList.py | 4 ++++ .../extensions/v1beta1/Deployment.py | 5 +++++ .../extensions/v1beta1/DeploymentList.py | 4 ++++ .../extensions/v1beta1/Ingress.py | 5 +++++ .../extensions/v1beta1/IngressList.py | 4 ++++ .../extensions/v1beta1/NetworkPolicy.py | 4 ++++ .../extensions/v1beta1/NetworkPolicyList.py | 4 ++++ .../extensions/v1beta1/PodSecurityPolicy.py | 4 ++++ .../extensions/v1beta1/PodSecurityPolicyList.py | 4 ++++ .../extensions/v1beta1/ReplicaSet.py | 5 +++++ .../extensions/v1beta1/ReplicaSetList.py | 4 ++++ .../flowcontrol/v1alpha1/FlowSchema.py | 5 +++++ .../flowcontrol/v1alpha1/FlowSchemaList.py | 4 ++++ .../v1alpha1/PriorityLevelConfiguration.py | 5 +++++ .../v1alpha1/PriorityLevelConfigurationList.py | 4 ++++ .../flowcontrol/v1beta1/FlowSchema.py | 5 +++++ .../flowcontrol/v1beta1/FlowSchemaList.py | 4 ++++ .../v1beta1/PriorityLevelConfiguration.py | 5 +++++ .../v1beta1/PriorityLevelConfigurationList.py | 4 ++++ sdk/python/pulumi_kubernetes/meta/v1/Status.py | 8 ++++++++ .../pulumi_kubernetes/networking/v1/Ingress.py | 5 +++++ .../networking/v1/IngressClass.py | 4 ++++ .../networking/v1/IngressClassList.py | 4 ++++ .../networking/v1/IngressList.py | 4 ++++ .../networking/v1/NetworkPolicy.py | 4 ++++ .../networking/v1/NetworkPolicyList.py | 4 ++++ .../networking/v1beta1/Ingress.py | 5 +++++ .../networking/v1beta1/IngressClass.py | 4 ++++ .../networking/v1beta1/IngressClassList.py | 4 ++++ .../networking/v1beta1/IngressList.py | 4 ++++ .../pulumi_kubernetes/node/v1/RuntimeClass.py | 6 ++++++ .../node/v1/RuntimeClassList.py | 4 ++++ .../node/v1alpha1/RuntimeClass.py | 4 ++++ .../node/v1alpha1/RuntimeClassList.py | 4 ++++ .../node/v1beta1/RuntimeClass.py | 6 ++++++ .../node/v1beta1/RuntimeClassList.py | 4 ++++ .../policy/v1beta1/PodDisruptionBudget.py | 5 +++++ .../policy/v1beta1/PodDisruptionBudgetList.py | 4 ++++ .../policy/v1beta1/PodSecurityPolicy.py | 4 ++++ .../policy/v1beta1/PodSecurityPolicyList.py | 4 ++++ .../pulumi_kubernetes/rbac/v1/ClusterRole.py | 5 +++++ .../rbac/v1/ClusterRoleBinding.py | 5 +++++ .../rbac/v1/ClusterRoleBindingList.py | 4 ++++ .../rbac/v1/ClusterRoleList.py | 4 ++++ sdk/python/pulumi_kubernetes/rbac/v1/Role.py | 4 ++++ .../pulumi_kubernetes/rbac/v1/RoleBinding.py | 5 +++++ .../rbac/v1/RoleBindingList.py | 4 ++++ .../pulumi_kubernetes/rbac/v1/RoleList.py | 4 ++++ .../rbac/v1alpha1/ClusterRole.py | 5 +++++ .../rbac/v1alpha1/ClusterRoleBinding.py | 5 +++++ .../rbac/v1alpha1/ClusterRoleBindingList.py | 4 ++++ .../rbac/v1alpha1/ClusterRoleList.py | 4 ++++ .../pulumi_kubernetes/rbac/v1alpha1/Role.py | 4 ++++ .../rbac/v1alpha1/RoleBinding.py | 5 +++++ .../rbac/v1alpha1/RoleBindingList.py | 4 ++++ .../pulumi_kubernetes/rbac/v1alpha1/RoleList.py | 4 ++++ .../rbac/v1beta1/ClusterRole.py | 5 +++++ .../rbac/v1beta1/ClusterRoleBinding.py | 5 +++++ .../rbac/v1beta1/ClusterRoleBindingList.py | 4 ++++ .../rbac/v1beta1/ClusterRoleList.py | 4 ++++ .../pulumi_kubernetes/rbac/v1beta1/Role.py | 4 ++++ .../rbac/v1beta1/RoleBinding.py | 5 +++++ .../rbac/v1beta1/RoleBindingList.py | 4 ++++ .../pulumi_kubernetes/rbac/v1beta1/RoleList.py | 4 ++++ .../scheduling/v1/PriorityClass.py | 7 +++++++ .../scheduling/v1/PriorityClassList.py | 4 ++++ .../scheduling/v1alpha1/PriorityClass.py | 7 +++++++ .../scheduling/v1alpha1/PriorityClassList.py | 4 ++++ .../scheduling/v1beta1/PriorityClass.py | 7 +++++++ .../scheduling/v1beta1/PriorityClassList.py | 4 ++++ .../settings/v1alpha1/PodPreset.py | 4 ++++ .../settings/v1alpha1/PodPresetList.py | 4 ++++ .../pulumi_kubernetes/storage/v1/CSIDriver.py | 4 ++++ .../storage/v1/CSIDriverList.py | 4 ++++ .../pulumi_kubernetes/storage/v1/CSINode.py | 4 ++++ .../pulumi_kubernetes/storage/v1/CSINodeList.py | 4 ++++ .../storage/v1/StorageClass.py | 10 ++++++++++ .../storage/v1/StorageClassList.py | 4 ++++ .../storage/v1/VolumeAttachment.py | 5 +++++ .../storage/v1/VolumeAttachmentList.py | 4 ++++ .../storage/v1alpha1/VolumeAttachment.py | 5 +++++ .../storage/v1alpha1/VolumeAttachmentList.py | 4 ++++ .../storage/v1beta1/CSIDriver.py | 4 ++++ .../storage/v1beta1/CSIDriverList.py | 4 ++++ .../storage/v1beta1/CSINode.py | 4 ++++ .../storage/v1beta1/CSINodeList.py | 4 ++++ .../storage/v1beta1/StorageClass.py | 10 ++++++++++ .../storage/v1beta1/StorageClassList.py | 4 ++++ .../storage/v1beta1/VolumeAttachment.py | 5 +++++ .../storage/v1beta1/VolumeAttachmentList.py | 4 ++++ 410 files changed, 1805 insertions(+), 1457 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index 00707c16c5..8664f2f135 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,8 +11,8 @@ require ( github.com/onsi/ginkgo v1.12.0 // indirect github.com/onsi/gomega v1.9.0 // indirect github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/pkg/v2 v2.18.3-0.20210126224412-216fd2bed529 - github.com/pulumi/pulumi/sdk/v2 v2.18.3-0.20210126224412-216fd2bed529 + github.com/pulumi/pulumi/pkg/v2 v2.21.3-0.20210301175425-8616390418f8 + github.com/pulumi/pulumi/sdk/v2 v2.21.3-0.20210301175425-8616390418f8 github.com/stretchr/testify v1.7.0 google.golang.org/grpc v1.29.1 helm.sh/helm/v3 v3.5.2 diff --git a/provider/go.sum b/provider/go.sum index 5c48031cc9..37460b61c3 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -922,9 +922,13 @@ github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/pulumi/pkg/v2 v2.18.3-0.20210126224412-216fd2bed529 h1:eWGiFS3P+Nw/gG/MSlOiAsRT/ssEi/fh/q1KS9qe8Q8= github.com/pulumi/pulumi/pkg/v2 v2.18.3-0.20210126224412-216fd2bed529/go.mod h1:bAbzFeU3gHu1diqcckqUqaFf5dP02BfJlP8dnHwm00k= +github.com/pulumi/pulumi/pkg/v2 v2.21.3-0.20210301175425-8616390418f8 h1:2c2BD7F4dn8WR6+nNPPAm0tsFvK9N6JL//EWTPscWnA= +github.com/pulumi/pulumi/pkg/v2 v2.21.3-0.20210301175425-8616390418f8/go.mod h1:bAbzFeU3gHu1diqcckqUqaFf5dP02BfJlP8dnHwm00k= github.com/pulumi/pulumi/sdk/v2 v2.2.1/go.mod h1:QNbWpL4gvf3X0lUFT7TXA2Jo1ff/Ti2l97AyFGYwvW4= github.com/pulumi/pulumi/sdk/v2 v2.18.3-0.20210126224412-216fd2bed529 h1:PKX++TRfU+a8tG0MajO/ghxEU0DxC8vpc+q9jsXkts4= github.com/pulumi/pulumi/sdk/v2 v2.18.3-0.20210126224412-216fd2bed529/go.mod h1:fCFhRV6NmidWetmgDPA76efL+s0JqLlS54JJIwfOt+o= +github.com/pulumi/pulumi/sdk/v2 v2.21.3-0.20210301175425-8616390418f8 h1:nAzbkTv/J/z/oK2EfUzvV1OovbbnIBalW5CHJbNEp/s= +github.com/pulumi/pulumi/sdk/v2 v2.21.3-0.20210301175425-8616390418f8/go.mod h1:fCFhRV6NmidWetmgDPA76efL+s0JqLlS54JJIwfOt+o= github.com/qri-io/starlib v0.4.2-0.20200213133954-ff2e8cd5ef8d/go.mod h1:7DPO4domFU579Ga6E61sB9VFNaniPVwJP5C4bBCu3wA= github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c/go.mod h1:5STLWrekHfjyYwxBRVRXNOSewLJ3PWfDJd1VyTS21fI= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= diff --git a/sdk/dotnet/Pulumi.Kubernetes.csproj b/sdk/dotnet/Pulumi.Kubernetes.csproj index b6023f3b24..e3b5a94719 100644 --- a/sdk/dotnet/Pulumi.Kubernetes.csproj +++ b/sdk/dotnet/Pulumi.Kubernetes.csproj @@ -31,7 +31,7 @@ - + diff --git a/sdk/nodejs/admissionregistration/v1/mutatingWebhookConfiguration.ts b/sdk/nodejs/admissionregistration/v1/mutatingWebhookConfiguration.ts index f731343c4f..51f987b47f 100644 --- a/sdk/nodejs/admissionregistration/v1/mutatingWebhookConfiguration.ts +++ b/sdk/nodejs/admissionregistration/v1/mutatingWebhookConfiguration.ts @@ -61,7 +61,8 @@ export class MutatingWebhookConfiguration extends pulumi.CustomResource { */ constructor(name: string, args?: MutatingWebhookConfigurationArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "admissionregistration.k8s.io/v1"; inputs["kind"] = "MutatingWebhookConfiguration"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class MutatingWebhookConfiguration extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["webhooks"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(MutatingWebhookConfiguration.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/admissionregistration/v1/mutatingWebhookConfigurationList.ts b/sdk/nodejs/admissionregistration/v1/mutatingWebhookConfigurationList.ts index 24ec4b4e78..29d5d96d8b 100644 --- a/sdk/nodejs/admissionregistration/v1/mutatingWebhookConfigurationList.ts +++ b/sdk/nodejs/admissionregistration/v1/mutatingWebhookConfigurationList.ts @@ -61,8 +61,9 @@ export class MutatingWebhookConfigurationList extends pulumi.CustomResource { */ constructor(name: string, args?: MutatingWebhookConfigurationListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "admissionregistration.k8s.io/v1"; @@ -75,12 +76,8 @@ export class MutatingWebhookConfigurationList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(MutatingWebhookConfigurationList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/admissionregistration/v1/validatingWebhookConfiguration.ts b/sdk/nodejs/admissionregistration/v1/validatingWebhookConfiguration.ts index 540a22abfd..26315a4fde 100644 --- a/sdk/nodejs/admissionregistration/v1/validatingWebhookConfiguration.ts +++ b/sdk/nodejs/admissionregistration/v1/validatingWebhookConfiguration.ts @@ -61,7 +61,8 @@ export class ValidatingWebhookConfiguration extends pulumi.CustomResource { */ constructor(name: string, args?: ValidatingWebhookConfigurationArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "admissionregistration.k8s.io/v1"; inputs["kind"] = "ValidatingWebhookConfiguration"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class ValidatingWebhookConfiguration extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["webhooks"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ValidatingWebhookConfiguration.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/admissionregistration/v1/validatingWebhookConfigurationList.ts b/sdk/nodejs/admissionregistration/v1/validatingWebhookConfigurationList.ts index c24867ea1e..4f17aac021 100644 --- a/sdk/nodejs/admissionregistration/v1/validatingWebhookConfigurationList.ts +++ b/sdk/nodejs/admissionregistration/v1/validatingWebhookConfigurationList.ts @@ -61,8 +61,9 @@ export class ValidatingWebhookConfigurationList extends pulumi.CustomResource { */ constructor(name: string, args?: ValidatingWebhookConfigurationListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "admissionregistration.k8s.io/v1"; @@ -75,12 +76,8 @@ export class ValidatingWebhookConfigurationList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ValidatingWebhookConfigurationList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/admissionregistration/v1beta1/mutatingWebhookConfiguration.ts b/sdk/nodejs/admissionregistration/v1beta1/mutatingWebhookConfiguration.ts index 06d6a5ab3a..cad63779b1 100644 --- a/sdk/nodejs/admissionregistration/v1beta1/mutatingWebhookConfiguration.ts +++ b/sdk/nodejs/admissionregistration/v1beta1/mutatingWebhookConfiguration.ts @@ -61,7 +61,8 @@ export class MutatingWebhookConfiguration extends pulumi.CustomResource { */ constructor(name: string, args?: MutatingWebhookConfigurationArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "admissionregistration.k8s.io/v1beta1"; inputs["kind"] = "MutatingWebhookConfiguration"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class MutatingWebhookConfiguration extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["webhooks"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(MutatingWebhookConfiguration.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/admissionregistration/v1beta1/mutatingWebhookConfigurationList.ts b/sdk/nodejs/admissionregistration/v1beta1/mutatingWebhookConfigurationList.ts index 30c2cfe172..cec272c59c 100644 --- a/sdk/nodejs/admissionregistration/v1beta1/mutatingWebhookConfigurationList.ts +++ b/sdk/nodejs/admissionregistration/v1beta1/mutatingWebhookConfigurationList.ts @@ -61,8 +61,9 @@ export class MutatingWebhookConfigurationList extends pulumi.CustomResource { */ constructor(name: string, args?: MutatingWebhookConfigurationListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "admissionregistration.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class MutatingWebhookConfigurationList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(MutatingWebhookConfigurationList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/admissionregistration/v1beta1/validatingWebhookConfiguration.ts b/sdk/nodejs/admissionregistration/v1beta1/validatingWebhookConfiguration.ts index cc04af0abd..72db78f1b3 100644 --- a/sdk/nodejs/admissionregistration/v1beta1/validatingWebhookConfiguration.ts +++ b/sdk/nodejs/admissionregistration/v1beta1/validatingWebhookConfiguration.ts @@ -61,7 +61,8 @@ export class ValidatingWebhookConfiguration extends pulumi.CustomResource { */ constructor(name: string, args?: ValidatingWebhookConfigurationArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "admissionregistration.k8s.io/v1beta1"; inputs["kind"] = "ValidatingWebhookConfiguration"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class ValidatingWebhookConfiguration extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["webhooks"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ValidatingWebhookConfiguration.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/admissionregistration/v1beta1/validatingWebhookConfigurationList.ts b/sdk/nodejs/admissionregistration/v1beta1/validatingWebhookConfigurationList.ts index 62f5436fbe..6ec3fcca19 100644 --- a/sdk/nodejs/admissionregistration/v1beta1/validatingWebhookConfigurationList.ts +++ b/sdk/nodejs/admissionregistration/v1beta1/validatingWebhookConfigurationList.ts @@ -61,8 +61,9 @@ export class ValidatingWebhookConfigurationList extends pulumi.CustomResource { */ constructor(name: string, args?: ValidatingWebhookConfigurationListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "admissionregistration.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class ValidatingWebhookConfigurationList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ValidatingWebhookConfigurationList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apiextensions/v1/customResourceDefinition.ts b/sdk/nodejs/apiextensions/v1/customResourceDefinition.ts index a84b03188d..223a2492d8 100644 --- a/sdk/nodejs/apiextensions/v1/customResourceDefinition.ts +++ b/sdk/nodejs/apiextensions/v1/customResourceDefinition.ts @@ -62,8 +62,9 @@ export class CustomResourceDefinition extends pulumi.CustomResource { */ constructor(name: string, args?: CustomResourceDefinitionArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "apiextensions.k8s.io/v1"; @@ -78,15 +79,11 @@ export class CustomResourceDefinition extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CustomResourceDefinition.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apiextensions/v1/customResourceDefinitionList.ts b/sdk/nodejs/apiextensions/v1/customResourceDefinitionList.ts index 3062abdd75..db7b363cdb 100644 --- a/sdk/nodejs/apiextensions/v1/customResourceDefinitionList.ts +++ b/sdk/nodejs/apiextensions/v1/customResourceDefinitionList.ts @@ -58,8 +58,9 @@ export class CustomResourceDefinitionList extends pulumi.CustomResource { */ constructor(name: string, args?: CustomResourceDefinitionListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apiextensions.k8s.io/v1"; @@ -72,12 +73,8 @@ export class CustomResourceDefinitionList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CustomResourceDefinitionList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apiextensions/v1beta1/customResourceDefinition.ts b/sdk/nodejs/apiextensions/v1beta1/customResourceDefinition.ts index b9f450f1d3..e09cad3368 100644 --- a/sdk/nodejs/apiextensions/v1beta1/customResourceDefinition.ts +++ b/sdk/nodejs/apiextensions/v1beta1/customResourceDefinition.ts @@ -62,8 +62,9 @@ export class CustomResourceDefinition extends pulumi.CustomResource { */ constructor(name: string, args?: CustomResourceDefinitionArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "apiextensions.k8s.io/v1beta1"; @@ -78,15 +79,11 @@ export class CustomResourceDefinition extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CustomResourceDefinition.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apiextensions/v1beta1/customResourceDefinitionList.ts b/sdk/nodejs/apiextensions/v1beta1/customResourceDefinitionList.ts index 532b112e5f..8224ce4703 100644 --- a/sdk/nodejs/apiextensions/v1beta1/customResourceDefinitionList.ts +++ b/sdk/nodejs/apiextensions/v1beta1/customResourceDefinitionList.ts @@ -58,8 +58,9 @@ export class CustomResourceDefinitionList extends pulumi.CustomResource { */ constructor(name: string, args?: CustomResourceDefinitionListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apiextensions.k8s.io/v1beta1"; @@ -72,12 +73,8 @@ export class CustomResourceDefinitionList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CustomResourceDefinitionList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apiregistration/v1/apiservice.ts b/sdk/nodejs/apiregistration/v1/apiservice.ts index 2cb67316da..3dfd0d27a6 100644 --- a/sdk/nodejs/apiregistration/v1/apiservice.ts +++ b/sdk/nodejs/apiregistration/v1/apiservice.ts @@ -62,7 +62,8 @@ export class APIService extends pulumi.CustomResource { */ constructor(name: string, args?: APIServiceArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apiregistration.k8s.io/v1"; inputs["kind"] = "APIService"; inputs["metadata"] = args ? args.metadata : undefined; @@ -75,15 +76,11 @@ export class APIService extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apiregistration.k8s.io/v1beta1:APIService" }, { type: "kubernetes:apiregistration/v1beta1:APIService" }, { type: "kubernetes:apiregistration/v1:APIService" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(APIService.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apiregistration/v1/apiserviceList.ts b/sdk/nodejs/apiregistration/v1/apiserviceList.ts index 9d28895722..44c9361a85 100644 --- a/sdk/nodejs/apiregistration/v1/apiserviceList.ts +++ b/sdk/nodejs/apiregistration/v1/apiserviceList.ts @@ -55,8 +55,9 @@ export class APIServiceList extends pulumi.CustomResource { */ constructor(name: string, args?: APIServiceListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apiregistration.k8s.io/v1"; @@ -69,15 +70,11 @@ export class APIServiceList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apiregistration/v1:APIServiceList" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(APIServiceList.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apiregistration/v1beta1/apiservice.ts b/sdk/nodejs/apiregistration/v1beta1/apiservice.ts index a5778277b9..3e158a8818 100644 --- a/sdk/nodejs/apiregistration/v1beta1/apiservice.ts +++ b/sdk/nodejs/apiregistration/v1beta1/apiservice.ts @@ -62,7 +62,8 @@ export class APIService extends pulumi.CustomResource { */ constructor(name: string, args?: APIServiceArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apiregistration.k8s.io/v1beta1"; inputs["kind"] = "APIService"; inputs["metadata"] = args ? args.metadata : undefined; @@ -75,15 +76,11 @@ export class APIService extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apiregistration.k8s.io/v1:APIService" }, { type: "kubernetes:apiregistration/v1:APIService" }, { type: "kubernetes:apiregistration/v1beta1:APIService" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(APIService.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apiregistration/v1beta1/apiserviceList.ts b/sdk/nodejs/apiregistration/v1beta1/apiserviceList.ts index 4c2555c583..36f6166bfe 100644 --- a/sdk/nodejs/apiregistration/v1beta1/apiserviceList.ts +++ b/sdk/nodejs/apiregistration/v1beta1/apiserviceList.ts @@ -55,8 +55,9 @@ export class APIServiceList extends pulumi.CustomResource { */ constructor(name: string, args?: APIServiceListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apiregistration.k8s.io/v1beta1"; @@ -69,15 +70,11 @@ export class APIServiceList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apiregistration/v1beta1:APIServiceList" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(APIServiceList.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1/controllerRevision.ts b/sdk/nodejs/apps/v1/controllerRevision.ts index 9c3122bad6..ac5c9acccf 100644 --- a/sdk/nodejs/apps/v1/controllerRevision.ts +++ b/sdk/nodejs/apps/v1/controllerRevision.ts @@ -65,8 +65,9 @@ export class ControllerRevision extends pulumi.CustomResource { */ constructor(name: string, args?: ControllerRevisionArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.revision === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.revision === undefined) && !opts.urn) { throw new Error("Missing required property 'revision'"); } inputs["apiVersion"] = "apps/v1"; @@ -81,15 +82,11 @@ export class ControllerRevision extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["revision"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1beta1:ControllerRevision" }, { type: "kubernetes:apps/v1beta2:ControllerRevision" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ControllerRevision.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1/controllerRevisionList.ts b/sdk/nodejs/apps/v1/controllerRevisionList.ts index 55f9245e1a..6bd673e93e 100644 --- a/sdk/nodejs/apps/v1/controllerRevisionList.ts +++ b/sdk/nodejs/apps/v1/controllerRevisionList.ts @@ -61,8 +61,9 @@ export class ControllerRevisionList extends pulumi.CustomResource { */ constructor(name: string, args?: ControllerRevisionListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1"; @@ -75,12 +76,8 @@ export class ControllerRevisionList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ControllerRevisionList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1/daemonSet.ts b/sdk/nodejs/apps/v1/daemonSet.ts index f91783cb9f..d853f6e5c3 100644 --- a/sdk/nodejs/apps/v1/daemonSet.ts +++ b/sdk/nodejs/apps/v1/daemonSet.ts @@ -65,7 +65,8 @@ export class DaemonSet extends pulumi.CustomResource { */ constructor(name: string, args?: DaemonSetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1"; inputs["kind"] = "DaemonSet"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class DaemonSet extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1beta2:DaemonSet" }, { type: "kubernetes:extensions/v1beta1:DaemonSet" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(DaemonSet.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1/daemonSetList.ts b/sdk/nodejs/apps/v1/daemonSetList.ts index d00b852fb8..70ac267f80 100644 --- a/sdk/nodejs/apps/v1/daemonSetList.ts +++ b/sdk/nodejs/apps/v1/daemonSetList.ts @@ -61,8 +61,9 @@ export class DaemonSetList extends pulumi.CustomResource { */ constructor(name: string, args?: DaemonSetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1"; @@ -75,12 +76,8 @@ export class DaemonSetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(DaemonSetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1/deployment.ts b/sdk/nodejs/apps/v1/deployment.ts index cf1cd9d7dc..9a6b9e763e 100644 --- a/sdk/nodejs/apps/v1/deployment.ts +++ b/sdk/nodejs/apps/v1/deployment.ts @@ -87,7 +87,8 @@ export class Deployment extends pulumi.CustomResource { */ constructor(name: string, args?: DeploymentArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1"; inputs["kind"] = "Deployment"; inputs["metadata"] = args ? args.metadata : undefined; @@ -100,15 +101,11 @@ export class Deployment extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1beta1:Deployment" }, { type: "kubernetes:apps/v1beta2:Deployment" }, { type: "kubernetes:extensions/v1beta1:Deployment" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Deployment.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1/deploymentList.ts b/sdk/nodejs/apps/v1/deploymentList.ts index 853d04a74a..96753cee2b 100644 --- a/sdk/nodejs/apps/v1/deploymentList.ts +++ b/sdk/nodejs/apps/v1/deploymentList.ts @@ -61,8 +61,9 @@ export class DeploymentList extends pulumi.CustomResource { */ constructor(name: string, args?: DeploymentListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1"; @@ -75,12 +76,8 @@ export class DeploymentList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(DeploymentList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1/replicaSet.ts b/sdk/nodejs/apps/v1/replicaSet.ts index a5bb9f8c84..049152354d 100644 --- a/sdk/nodejs/apps/v1/replicaSet.ts +++ b/sdk/nodejs/apps/v1/replicaSet.ts @@ -65,7 +65,8 @@ export class ReplicaSet extends pulumi.CustomResource { */ constructor(name: string, args?: ReplicaSetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1"; inputs["kind"] = "ReplicaSet"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class ReplicaSet extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1beta2:ReplicaSet" }, { type: "kubernetes:extensions/v1beta1:ReplicaSet" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ReplicaSet.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1/replicaSetList.ts b/sdk/nodejs/apps/v1/replicaSetList.ts index ece360d1b2..566d0b142d 100644 --- a/sdk/nodejs/apps/v1/replicaSetList.ts +++ b/sdk/nodejs/apps/v1/replicaSetList.ts @@ -61,8 +61,9 @@ export class ReplicaSetList extends pulumi.CustomResource { */ constructor(name: string, args?: ReplicaSetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1"; @@ -75,12 +76,8 @@ export class ReplicaSetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ReplicaSetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1/statefulSet.ts b/sdk/nodejs/apps/v1/statefulSet.ts index 5ad1bea240..4e77603cbb 100644 --- a/sdk/nodejs/apps/v1/statefulSet.ts +++ b/sdk/nodejs/apps/v1/statefulSet.ts @@ -78,7 +78,8 @@ export class StatefulSet extends pulumi.CustomResource { */ constructor(name: string, args?: StatefulSetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1"; inputs["kind"] = "StatefulSet"; inputs["metadata"] = args ? args.metadata : undefined; @@ -91,15 +92,11 @@ export class StatefulSet extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1beta1:StatefulSet" }, { type: "kubernetes:apps/v1beta2:StatefulSet" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(StatefulSet.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1/statefulSetList.ts b/sdk/nodejs/apps/v1/statefulSetList.ts index 09bf95ee30..d215ed898d 100644 --- a/sdk/nodejs/apps/v1/statefulSetList.ts +++ b/sdk/nodejs/apps/v1/statefulSetList.ts @@ -55,8 +55,9 @@ export class StatefulSetList extends pulumi.CustomResource { */ constructor(name: string, args?: StatefulSetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1"; @@ -69,12 +70,8 @@ export class StatefulSetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(StatefulSetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1beta1/controllerRevision.ts b/sdk/nodejs/apps/v1beta1/controllerRevision.ts index caa9dbebab..39ea7e4b30 100644 --- a/sdk/nodejs/apps/v1beta1/controllerRevision.ts +++ b/sdk/nodejs/apps/v1beta1/controllerRevision.ts @@ -68,8 +68,9 @@ export class ControllerRevision extends pulumi.CustomResource { /** @deprecated apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: ControllerRevisionArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.revision === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.revision === undefined) && !opts.urn) { throw new Error("Missing required property 'revision'"); } inputs["apiVersion"] = "apps/v1beta1"; @@ -84,15 +85,11 @@ export class ControllerRevision extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["revision"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:ControllerRevision" }, { type: "kubernetes:apps/v1beta2:ControllerRevision" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ControllerRevision.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1beta1/controllerRevisionList.ts b/sdk/nodejs/apps/v1beta1/controllerRevisionList.ts index 1719bffe46..68ea45a581 100644 --- a/sdk/nodejs/apps/v1beta1/controllerRevisionList.ts +++ b/sdk/nodejs/apps/v1beta1/controllerRevisionList.ts @@ -61,8 +61,9 @@ export class ControllerRevisionList extends pulumi.CustomResource { */ constructor(name: string, args?: ControllerRevisionListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1beta1"; @@ -75,12 +76,8 @@ export class ControllerRevisionList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ControllerRevisionList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1beta1/deployment.ts b/sdk/nodejs/apps/v1beta1/deployment.ts index ecde1cf6f4..f10670a774 100644 --- a/sdk/nodejs/apps/v1beta1/deployment.ts +++ b/sdk/nodejs/apps/v1beta1/deployment.ts @@ -90,7 +90,8 @@ export class Deployment extends pulumi.CustomResource { /** @deprecated apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: DeploymentArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1beta1"; inputs["kind"] = "Deployment"; inputs["metadata"] = args ? args.metadata : undefined; @@ -103,15 +104,11 @@ export class Deployment extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:Deployment" }, { type: "kubernetes:apps/v1beta2:Deployment" }, { type: "kubernetes:extensions/v1beta1:Deployment" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Deployment.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1beta1/deploymentList.ts b/sdk/nodejs/apps/v1beta1/deploymentList.ts index aac46e3e81..b863956845 100644 --- a/sdk/nodejs/apps/v1beta1/deploymentList.ts +++ b/sdk/nodejs/apps/v1beta1/deploymentList.ts @@ -61,8 +61,9 @@ export class DeploymentList extends pulumi.CustomResource { */ constructor(name: string, args?: DeploymentListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1beta1"; @@ -75,12 +76,8 @@ export class DeploymentList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(DeploymentList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1beta1/statefulSet.ts b/sdk/nodejs/apps/v1beta1/statefulSet.ts index 00dd04fb65..71185e97c8 100644 --- a/sdk/nodejs/apps/v1beta1/statefulSet.ts +++ b/sdk/nodejs/apps/v1beta1/statefulSet.ts @@ -81,7 +81,8 @@ export class StatefulSet extends pulumi.CustomResource { /** @deprecated apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: StatefulSetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1beta1"; inputs["kind"] = "StatefulSet"; inputs["metadata"] = args ? args.metadata : undefined; @@ -94,15 +95,11 @@ export class StatefulSet extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:StatefulSet" }, { type: "kubernetes:apps/v1beta2:StatefulSet" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(StatefulSet.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1beta1/statefulSetList.ts b/sdk/nodejs/apps/v1beta1/statefulSetList.ts index 4af13db63c..68b54cc7f9 100644 --- a/sdk/nodejs/apps/v1beta1/statefulSetList.ts +++ b/sdk/nodejs/apps/v1beta1/statefulSetList.ts @@ -55,8 +55,9 @@ export class StatefulSetList extends pulumi.CustomResource { */ constructor(name: string, args?: StatefulSetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1beta1"; @@ -69,12 +70,8 @@ export class StatefulSetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(StatefulSetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1beta2/controllerRevision.ts b/sdk/nodejs/apps/v1beta2/controllerRevision.ts index 2938804282..81f2c0a5d2 100644 --- a/sdk/nodejs/apps/v1beta2/controllerRevision.ts +++ b/sdk/nodejs/apps/v1beta2/controllerRevision.ts @@ -68,8 +68,9 @@ export class ControllerRevision extends pulumi.CustomResource { /** @deprecated apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: ControllerRevisionArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.revision === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.revision === undefined) && !opts.urn) { throw new Error("Missing required property 'revision'"); } inputs["apiVersion"] = "apps/v1beta2"; @@ -84,15 +85,11 @@ export class ControllerRevision extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["revision"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:ControllerRevision" }, { type: "kubernetes:apps/v1beta1:ControllerRevision" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ControllerRevision.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1beta2/controllerRevisionList.ts b/sdk/nodejs/apps/v1beta2/controllerRevisionList.ts index f4a29e3fb5..6354695ed8 100644 --- a/sdk/nodejs/apps/v1beta2/controllerRevisionList.ts +++ b/sdk/nodejs/apps/v1beta2/controllerRevisionList.ts @@ -61,8 +61,9 @@ export class ControllerRevisionList extends pulumi.CustomResource { */ constructor(name: string, args?: ControllerRevisionListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1beta2"; @@ -75,12 +76,8 @@ export class ControllerRevisionList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ControllerRevisionList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1beta2/daemonSet.ts b/sdk/nodejs/apps/v1beta2/daemonSet.ts index 74aef6181c..cab27e8e25 100644 --- a/sdk/nodejs/apps/v1beta2/daemonSet.ts +++ b/sdk/nodejs/apps/v1beta2/daemonSet.ts @@ -68,7 +68,8 @@ export class DaemonSet extends pulumi.CustomResource { /** @deprecated apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: DaemonSetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1beta2"; inputs["kind"] = "DaemonSet"; inputs["metadata"] = args ? args.metadata : undefined; @@ -81,15 +82,11 @@ export class DaemonSet extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:DaemonSet" }, { type: "kubernetes:extensions/v1beta1:DaemonSet" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(DaemonSet.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1beta2/daemonSetList.ts b/sdk/nodejs/apps/v1beta2/daemonSetList.ts index 52b20bf310..58662ec1ba 100644 --- a/sdk/nodejs/apps/v1beta2/daemonSetList.ts +++ b/sdk/nodejs/apps/v1beta2/daemonSetList.ts @@ -61,8 +61,9 @@ export class DaemonSetList extends pulumi.CustomResource { */ constructor(name: string, args?: DaemonSetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1beta2"; @@ -75,12 +76,8 @@ export class DaemonSetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(DaemonSetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1beta2/deployment.ts b/sdk/nodejs/apps/v1beta2/deployment.ts index 7d0eaead17..9f586753d6 100644 --- a/sdk/nodejs/apps/v1beta2/deployment.ts +++ b/sdk/nodejs/apps/v1beta2/deployment.ts @@ -90,7 +90,8 @@ export class Deployment extends pulumi.CustomResource { /** @deprecated apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: DeploymentArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1beta2"; inputs["kind"] = "Deployment"; inputs["metadata"] = args ? args.metadata : undefined; @@ -103,15 +104,11 @@ export class Deployment extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:Deployment" }, { type: "kubernetes:apps/v1beta1:Deployment" }, { type: "kubernetes:extensions/v1beta1:Deployment" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Deployment.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1beta2/deploymentList.ts b/sdk/nodejs/apps/v1beta2/deploymentList.ts index 54f44d5918..7b14d2a1ed 100644 --- a/sdk/nodejs/apps/v1beta2/deploymentList.ts +++ b/sdk/nodejs/apps/v1beta2/deploymentList.ts @@ -61,8 +61,9 @@ export class DeploymentList extends pulumi.CustomResource { */ constructor(name: string, args?: DeploymentListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1beta2"; @@ -75,12 +76,8 @@ export class DeploymentList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(DeploymentList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1beta2/replicaSet.ts b/sdk/nodejs/apps/v1beta2/replicaSet.ts index 660a53cef7..f4b5dd3e0d 100644 --- a/sdk/nodejs/apps/v1beta2/replicaSet.ts +++ b/sdk/nodejs/apps/v1beta2/replicaSet.ts @@ -68,7 +68,8 @@ export class ReplicaSet extends pulumi.CustomResource { /** @deprecated apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: ReplicaSetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1beta2"; inputs["kind"] = "ReplicaSet"; inputs["metadata"] = args ? args.metadata : undefined; @@ -81,15 +82,11 @@ export class ReplicaSet extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:ReplicaSet" }, { type: "kubernetes:extensions/v1beta1:ReplicaSet" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ReplicaSet.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1beta2/replicaSetList.ts b/sdk/nodejs/apps/v1beta2/replicaSetList.ts index df68efe395..d4c72df594 100644 --- a/sdk/nodejs/apps/v1beta2/replicaSetList.ts +++ b/sdk/nodejs/apps/v1beta2/replicaSetList.ts @@ -61,8 +61,9 @@ export class ReplicaSetList extends pulumi.CustomResource { */ constructor(name: string, args?: ReplicaSetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1beta2"; @@ -75,12 +76,8 @@ export class ReplicaSetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ReplicaSetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/apps/v1beta2/statefulSet.ts b/sdk/nodejs/apps/v1beta2/statefulSet.ts index 0a33ba322d..83071ce9fb 100644 --- a/sdk/nodejs/apps/v1beta2/statefulSet.ts +++ b/sdk/nodejs/apps/v1beta2/statefulSet.ts @@ -81,7 +81,8 @@ export class StatefulSet extends pulumi.CustomResource { /** @deprecated apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: StatefulSetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "apps/v1beta2"; inputs["kind"] = "StatefulSet"; inputs["metadata"] = args ? args.metadata : undefined; @@ -94,15 +95,11 @@ export class StatefulSet extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:StatefulSet" }, { type: "kubernetes:apps/v1beta1:StatefulSet" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(StatefulSet.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/apps/v1beta2/statefulSetList.ts b/sdk/nodejs/apps/v1beta2/statefulSetList.ts index 89b0952c79..6d7a2a65fb 100644 --- a/sdk/nodejs/apps/v1beta2/statefulSetList.ts +++ b/sdk/nodejs/apps/v1beta2/statefulSetList.ts @@ -55,8 +55,9 @@ export class StatefulSetList extends pulumi.CustomResource { */ constructor(name: string, args?: StatefulSetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "apps/v1beta2"; @@ -69,12 +70,8 @@ export class StatefulSetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(StatefulSetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/auditregistration/v1alpha1/auditSink.ts b/sdk/nodejs/auditregistration/v1alpha1/auditSink.ts index e4d964a9e7..407bdab93d 100644 --- a/sdk/nodejs/auditregistration/v1alpha1/auditSink.ts +++ b/sdk/nodejs/auditregistration/v1alpha1/auditSink.ts @@ -58,7 +58,8 @@ export class AuditSink extends pulumi.CustomResource { */ constructor(name: string, args?: AuditSinkArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "auditregistration.k8s.io/v1alpha1"; inputs["kind"] = "AuditSink"; inputs["metadata"] = args ? args.metadata : undefined; @@ -69,12 +70,8 @@ export class AuditSink extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(AuditSink.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/auditregistration/v1alpha1/auditSinkList.ts b/sdk/nodejs/auditregistration/v1alpha1/auditSinkList.ts index c2a46b931f..b99d8596a5 100644 --- a/sdk/nodejs/auditregistration/v1alpha1/auditSinkList.ts +++ b/sdk/nodejs/auditregistration/v1alpha1/auditSinkList.ts @@ -58,8 +58,9 @@ export class AuditSinkList extends pulumi.CustomResource { */ constructor(name: string, args?: AuditSinkListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "auditregistration.k8s.io/v1alpha1"; @@ -72,12 +73,8 @@ export class AuditSinkList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(AuditSinkList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/authentication/v1/tokenRequest.ts b/sdk/nodejs/authentication/v1/tokenRequest.ts index ece467753f..e741c06586 100644 --- a/sdk/nodejs/authentication/v1/tokenRequest.ts +++ b/sdk/nodejs/authentication/v1/tokenRequest.ts @@ -56,8 +56,9 @@ export class TokenRequest extends pulumi.CustomResource { */ constructor(name: string, args?: TokenRequestArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authentication.k8s.io/v1"; @@ -72,12 +73,8 @@ export class TokenRequest extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(TokenRequest.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/authentication/v1/tokenReview.ts b/sdk/nodejs/authentication/v1/tokenReview.ts index 83d24125be..2f2a2ecff7 100644 --- a/sdk/nodejs/authentication/v1/tokenReview.ts +++ b/sdk/nodejs/authentication/v1/tokenReview.ts @@ -62,8 +62,9 @@ export class TokenReview extends pulumi.CustomResource { */ constructor(name: string, args?: TokenReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authentication.k8s.io/v1"; @@ -78,15 +79,11 @@ export class TokenReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authentication.k8s.io/v1beta1:TokenReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(TokenReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/authentication/v1beta1/tokenReview.ts b/sdk/nodejs/authentication/v1beta1/tokenReview.ts index 035e803ff4..49c4a93385 100644 --- a/sdk/nodejs/authentication/v1beta1/tokenReview.ts +++ b/sdk/nodejs/authentication/v1beta1/tokenReview.ts @@ -62,8 +62,9 @@ export class TokenReview extends pulumi.CustomResource { */ constructor(name: string, args?: TokenReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authentication.k8s.io/v1beta1"; @@ -78,15 +79,11 @@ export class TokenReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authentication.k8s.io/v1:TokenReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(TokenReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/authorization/v1/localSubjectAccessReview.ts b/sdk/nodejs/authorization/v1/localSubjectAccessReview.ts index 0b22c7c370..01953802d2 100644 --- a/sdk/nodejs/authorization/v1/localSubjectAccessReview.ts +++ b/sdk/nodejs/authorization/v1/localSubjectAccessReview.ts @@ -62,8 +62,9 @@ export class LocalSubjectAccessReview extends pulumi.CustomResource { */ constructor(name: string, args?: LocalSubjectAccessReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authorization.k8s.io/v1"; @@ -78,15 +79,11 @@ export class LocalSubjectAccessReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(LocalSubjectAccessReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/authorization/v1/selfSubjectAccessReview.ts b/sdk/nodejs/authorization/v1/selfSubjectAccessReview.ts index a5f466e173..c15b27bde2 100644 --- a/sdk/nodejs/authorization/v1/selfSubjectAccessReview.ts +++ b/sdk/nodejs/authorization/v1/selfSubjectAccessReview.ts @@ -62,8 +62,9 @@ export class SelfSubjectAccessReview extends pulumi.CustomResource { */ constructor(name: string, args?: SelfSubjectAccessReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authorization.k8s.io/v1"; @@ -78,15 +79,11 @@ export class SelfSubjectAccessReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(SelfSubjectAccessReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/authorization/v1/selfSubjectRulesReview.ts b/sdk/nodejs/authorization/v1/selfSubjectRulesReview.ts index b5160400b1..456c32f4da 100644 --- a/sdk/nodejs/authorization/v1/selfSubjectRulesReview.ts +++ b/sdk/nodejs/authorization/v1/selfSubjectRulesReview.ts @@ -62,8 +62,9 @@ export class SelfSubjectRulesReview extends pulumi.CustomResource { */ constructor(name: string, args?: SelfSubjectRulesReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authorization.k8s.io/v1"; @@ -78,15 +79,11 @@ export class SelfSubjectRulesReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(SelfSubjectRulesReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/authorization/v1/subjectAccessReview.ts b/sdk/nodejs/authorization/v1/subjectAccessReview.ts index 15e462ccfc..4c26e62e58 100644 --- a/sdk/nodejs/authorization/v1/subjectAccessReview.ts +++ b/sdk/nodejs/authorization/v1/subjectAccessReview.ts @@ -62,8 +62,9 @@ export class SubjectAccessReview extends pulumi.CustomResource { */ constructor(name: string, args?: SubjectAccessReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authorization.k8s.io/v1"; @@ -78,15 +79,11 @@ export class SubjectAccessReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(SubjectAccessReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/authorization/v1beta1/localSubjectAccessReview.ts b/sdk/nodejs/authorization/v1beta1/localSubjectAccessReview.ts index 7e8fa6d539..47aa5924ba 100644 --- a/sdk/nodejs/authorization/v1beta1/localSubjectAccessReview.ts +++ b/sdk/nodejs/authorization/v1beta1/localSubjectAccessReview.ts @@ -62,8 +62,9 @@ export class LocalSubjectAccessReview extends pulumi.CustomResource { */ constructor(name: string, args?: LocalSubjectAccessReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authorization.k8s.io/v1beta1"; @@ -78,15 +79,11 @@ export class LocalSubjectAccessReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(LocalSubjectAccessReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/authorization/v1beta1/selfSubjectAccessReview.ts b/sdk/nodejs/authorization/v1beta1/selfSubjectAccessReview.ts index 7344926be1..94814c9a0d 100644 --- a/sdk/nodejs/authorization/v1beta1/selfSubjectAccessReview.ts +++ b/sdk/nodejs/authorization/v1beta1/selfSubjectAccessReview.ts @@ -62,8 +62,9 @@ export class SelfSubjectAccessReview extends pulumi.CustomResource { */ constructor(name: string, args?: SelfSubjectAccessReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authorization.k8s.io/v1beta1"; @@ -78,15 +79,11 @@ export class SelfSubjectAccessReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(SelfSubjectAccessReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/authorization/v1beta1/selfSubjectRulesReview.ts b/sdk/nodejs/authorization/v1beta1/selfSubjectRulesReview.ts index bb1217a555..56dc5d7aaf 100644 --- a/sdk/nodejs/authorization/v1beta1/selfSubjectRulesReview.ts +++ b/sdk/nodejs/authorization/v1beta1/selfSubjectRulesReview.ts @@ -62,8 +62,9 @@ export class SelfSubjectRulesReview extends pulumi.CustomResource { */ constructor(name: string, args?: SelfSubjectRulesReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authorization.k8s.io/v1beta1"; @@ -78,15 +79,11 @@ export class SelfSubjectRulesReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(SelfSubjectRulesReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/authorization/v1beta1/subjectAccessReview.ts b/sdk/nodejs/authorization/v1beta1/subjectAccessReview.ts index 66f629ea7c..9e73ea5df5 100644 --- a/sdk/nodejs/authorization/v1beta1/subjectAccessReview.ts +++ b/sdk/nodejs/authorization/v1beta1/subjectAccessReview.ts @@ -62,8 +62,9 @@ export class SubjectAccessReview extends pulumi.CustomResource { */ constructor(name: string, args?: SubjectAccessReviewArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "authorization.k8s.io/v1beta1"; @@ -78,15 +79,11 @@ export class SubjectAccessReview extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:authorization.k8s.io/v1:SubjectAccessReview" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(SubjectAccessReview.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/autoscaling/v1/horizontalPodAutoscaler.ts b/sdk/nodejs/autoscaling/v1/horizontalPodAutoscaler.ts index 71c01a8d93..ebae6b77ec 100644 --- a/sdk/nodejs/autoscaling/v1/horizontalPodAutoscaler.ts +++ b/sdk/nodejs/autoscaling/v1/horizontalPodAutoscaler.ts @@ -65,7 +65,8 @@ export class HorizontalPodAutoscaler extends pulumi.CustomResource { */ constructor(name: string, args?: HorizontalPodAutoscalerArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "autoscaling/v1"; inputs["kind"] = "HorizontalPodAutoscaler"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class HorizontalPodAutoscaler extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler" }, { type: "kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(HorizontalPodAutoscaler.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/autoscaling/v1/horizontalPodAutoscalerList.ts b/sdk/nodejs/autoscaling/v1/horizontalPodAutoscalerList.ts index 9a0b77eeee..4e5ebebfb0 100644 --- a/sdk/nodejs/autoscaling/v1/horizontalPodAutoscalerList.ts +++ b/sdk/nodejs/autoscaling/v1/horizontalPodAutoscalerList.ts @@ -61,8 +61,9 @@ export class HorizontalPodAutoscalerList extends pulumi.CustomResource { */ constructor(name: string, args?: HorizontalPodAutoscalerListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "autoscaling/v1"; @@ -75,12 +76,8 @@ export class HorizontalPodAutoscalerList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(HorizontalPodAutoscalerList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/autoscaling/v2beta1/horizontalPodAutoscaler.ts b/sdk/nodejs/autoscaling/v2beta1/horizontalPodAutoscaler.ts index 8ec012cea5..35f6c6a7f7 100644 --- a/sdk/nodejs/autoscaling/v2beta1/horizontalPodAutoscaler.ts +++ b/sdk/nodejs/autoscaling/v2beta1/horizontalPodAutoscaler.ts @@ -65,7 +65,8 @@ export class HorizontalPodAutoscaler extends pulumi.CustomResource { */ constructor(name: string, args?: HorizontalPodAutoscalerArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "autoscaling/v2beta1"; inputs["kind"] = "HorizontalPodAutoscaler"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class HorizontalPodAutoscaler extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:autoscaling/v1:HorizontalPodAutoscaler" }, { type: "kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(HorizontalPodAutoscaler.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/autoscaling/v2beta1/horizontalPodAutoscalerList.ts b/sdk/nodejs/autoscaling/v2beta1/horizontalPodAutoscalerList.ts index 12ba64f518..9d4d7a1bed 100644 --- a/sdk/nodejs/autoscaling/v2beta1/horizontalPodAutoscalerList.ts +++ b/sdk/nodejs/autoscaling/v2beta1/horizontalPodAutoscalerList.ts @@ -61,8 +61,9 @@ export class HorizontalPodAutoscalerList extends pulumi.CustomResource { */ constructor(name: string, args?: HorizontalPodAutoscalerListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "autoscaling/v2beta1"; @@ -75,12 +76,8 @@ export class HorizontalPodAutoscalerList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(HorizontalPodAutoscalerList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/autoscaling/v2beta2/horizontalPodAutoscaler.ts b/sdk/nodejs/autoscaling/v2beta2/horizontalPodAutoscaler.ts index 309222127b..5b8055b8b4 100644 --- a/sdk/nodejs/autoscaling/v2beta2/horizontalPodAutoscaler.ts +++ b/sdk/nodejs/autoscaling/v2beta2/horizontalPodAutoscaler.ts @@ -65,7 +65,8 @@ export class HorizontalPodAutoscaler extends pulumi.CustomResource { */ constructor(name: string, args?: HorizontalPodAutoscalerArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "autoscaling/v2beta2"; inputs["kind"] = "HorizontalPodAutoscaler"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class HorizontalPodAutoscaler extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:autoscaling/v1:HorizontalPodAutoscaler" }, { type: "kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(HorizontalPodAutoscaler.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/autoscaling/v2beta2/horizontalPodAutoscalerList.ts b/sdk/nodejs/autoscaling/v2beta2/horizontalPodAutoscalerList.ts index 16404af17b..3155682289 100644 --- a/sdk/nodejs/autoscaling/v2beta2/horizontalPodAutoscalerList.ts +++ b/sdk/nodejs/autoscaling/v2beta2/horizontalPodAutoscalerList.ts @@ -61,8 +61,9 @@ export class HorizontalPodAutoscalerList extends pulumi.CustomResource { */ constructor(name: string, args?: HorizontalPodAutoscalerListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "autoscaling/v2beta2"; @@ -75,12 +76,8 @@ export class HorizontalPodAutoscalerList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(HorizontalPodAutoscalerList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/batch/v1/job.ts b/sdk/nodejs/batch/v1/job.ts index 4745dcda21..e7b8a60108 100644 --- a/sdk/nodejs/batch/v1/job.ts +++ b/sdk/nodejs/batch/v1/job.ts @@ -80,7 +80,8 @@ export class Job extends pulumi.CustomResource { */ constructor(name: string, args?: JobArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "batch/v1"; inputs["kind"] = "Job"; inputs["metadata"] = args ? args.metadata : undefined; @@ -93,12 +94,8 @@ export class Job extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(Job.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/batch/v1/jobList.ts b/sdk/nodejs/batch/v1/jobList.ts index ba40d41e87..a1d589d9e8 100644 --- a/sdk/nodejs/batch/v1/jobList.ts +++ b/sdk/nodejs/batch/v1/jobList.ts @@ -61,8 +61,9 @@ export class JobList extends pulumi.CustomResource { */ constructor(name: string, args?: JobListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "batch/v1"; @@ -75,12 +76,8 @@ export class JobList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(JobList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/batch/v1beta1/cronJob.ts b/sdk/nodejs/batch/v1beta1/cronJob.ts index c833b8fed2..c80f3846fb 100644 --- a/sdk/nodejs/batch/v1beta1/cronJob.ts +++ b/sdk/nodejs/batch/v1beta1/cronJob.ts @@ -65,7 +65,8 @@ export class CronJob extends pulumi.CustomResource { */ constructor(name: string, args?: CronJobArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "batch/v1beta1"; inputs["kind"] = "CronJob"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class CronJob extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:batch/v2alpha1:CronJob" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CronJob.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/batch/v1beta1/cronJobList.ts b/sdk/nodejs/batch/v1beta1/cronJobList.ts index d9f316c080..8cbb2b7d80 100644 --- a/sdk/nodejs/batch/v1beta1/cronJobList.ts +++ b/sdk/nodejs/batch/v1beta1/cronJobList.ts @@ -61,8 +61,9 @@ export class CronJobList extends pulumi.CustomResource { */ constructor(name: string, args?: CronJobListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "batch/v1beta1"; @@ -75,12 +76,8 @@ export class CronJobList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CronJobList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/batch/v2alpha1/cronJob.ts b/sdk/nodejs/batch/v2alpha1/cronJob.ts index 1d28d9d916..924fe7bc89 100644 --- a/sdk/nodejs/batch/v2alpha1/cronJob.ts +++ b/sdk/nodejs/batch/v2alpha1/cronJob.ts @@ -65,7 +65,8 @@ export class CronJob extends pulumi.CustomResource { */ constructor(name: string, args?: CronJobArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "batch/v2alpha1"; inputs["kind"] = "CronJob"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class CronJob extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:batch/v1beta1:CronJob" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CronJob.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/batch/v2alpha1/cronJobList.ts b/sdk/nodejs/batch/v2alpha1/cronJobList.ts index 5e3db501ad..a09a94bf66 100644 --- a/sdk/nodejs/batch/v2alpha1/cronJobList.ts +++ b/sdk/nodejs/batch/v2alpha1/cronJobList.ts @@ -61,8 +61,9 @@ export class CronJobList extends pulumi.CustomResource { */ constructor(name: string, args?: CronJobListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "batch/v2alpha1"; @@ -75,12 +76,8 @@ export class CronJobList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CronJobList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/certificates/v1/certificateSigningRequest.ts b/sdk/nodejs/certificates/v1/certificateSigningRequest.ts index a5705665a5..1f787103be 100644 --- a/sdk/nodejs/certificates/v1/certificateSigningRequest.ts +++ b/sdk/nodejs/certificates/v1/certificateSigningRequest.ts @@ -68,8 +68,9 @@ export class CertificateSigningRequest extends pulumi.CustomResource { */ constructor(name: string, args?: CertificateSigningRequestArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "certificates.k8s.io/v1"; @@ -84,15 +85,11 @@ export class CertificateSigningRequest extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CertificateSigningRequest.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/certificates/v1/certificateSigningRequestList.ts b/sdk/nodejs/certificates/v1/certificateSigningRequestList.ts index 78af07d9bd..0471c53d64 100644 --- a/sdk/nodejs/certificates/v1/certificateSigningRequestList.ts +++ b/sdk/nodejs/certificates/v1/certificateSigningRequestList.ts @@ -58,8 +58,9 @@ export class CertificateSigningRequestList extends pulumi.CustomResource { */ constructor(name: string, args?: CertificateSigningRequestListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "certificates.k8s.io/v1"; @@ -72,12 +73,8 @@ export class CertificateSigningRequestList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CertificateSigningRequestList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/certificates/v1beta1/certificateSigningRequest.ts b/sdk/nodejs/certificates/v1beta1/certificateSigningRequest.ts index 963d76fd43..39677d59f9 100644 --- a/sdk/nodejs/certificates/v1beta1/certificateSigningRequest.ts +++ b/sdk/nodejs/certificates/v1beta1/certificateSigningRequest.ts @@ -62,7 +62,8 @@ export class CertificateSigningRequest extends pulumi.CustomResource { */ constructor(name: string, args?: CertificateSigningRequestArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "certificates.k8s.io/v1beta1"; inputs["kind"] = "CertificateSigningRequest"; inputs["metadata"] = args ? args.metadata : undefined; @@ -75,15 +76,11 @@ export class CertificateSigningRequest extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:certificates.k8s.io/v1:CertificateSigningRequest" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CertificateSigningRequest.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/certificates/v1beta1/certificateSigningRequestList.ts b/sdk/nodejs/certificates/v1beta1/certificateSigningRequestList.ts index 471557ac05..e9151c51f6 100644 --- a/sdk/nodejs/certificates/v1beta1/certificateSigningRequestList.ts +++ b/sdk/nodejs/certificates/v1beta1/certificateSigningRequestList.ts @@ -52,8 +52,9 @@ export class CertificateSigningRequestList extends pulumi.CustomResource { */ constructor(name: string, args?: CertificateSigningRequestListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "certificates.k8s.io/v1beta1"; @@ -66,12 +67,8 @@ export class CertificateSigningRequestList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CertificateSigningRequestList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/coordination/v1/lease.ts b/sdk/nodejs/coordination/v1/lease.ts index 6e7c722b56..c1f71536d8 100644 --- a/sdk/nodejs/coordination/v1/lease.ts +++ b/sdk/nodejs/coordination/v1/lease.ts @@ -61,7 +61,8 @@ export class Lease extends pulumi.CustomResource { */ constructor(name: string, args?: LeaseArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "coordination.k8s.io/v1"; inputs["kind"] = "Lease"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class Lease extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:coordination.k8s.io/v1beta1:Lease" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Lease.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/coordination/v1/leaseList.ts b/sdk/nodejs/coordination/v1/leaseList.ts index b2e7c78572..7aa530e108 100644 --- a/sdk/nodejs/coordination/v1/leaseList.ts +++ b/sdk/nodejs/coordination/v1/leaseList.ts @@ -61,8 +61,9 @@ export class LeaseList extends pulumi.CustomResource { */ constructor(name: string, args?: LeaseListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "coordination.k8s.io/v1"; @@ -75,12 +76,8 @@ export class LeaseList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(LeaseList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/coordination/v1beta1/lease.ts b/sdk/nodejs/coordination/v1beta1/lease.ts index 4c9abee5ed..3f396e4e00 100644 --- a/sdk/nodejs/coordination/v1beta1/lease.ts +++ b/sdk/nodejs/coordination/v1beta1/lease.ts @@ -61,7 +61,8 @@ export class Lease extends pulumi.CustomResource { */ constructor(name: string, args?: LeaseArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "coordination.k8s.io/v1beta1"; inputs["kind"] = "Lease"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class Lease extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:coordination.k8s.io/v1:Lease" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Lease.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/coordination/v1beta1/leaseList.ts b/sdk/nodejs/coordination/v1beta1/leaseList.ts index 62e4301d6c..b2c31707a7 100644 --- a/sdk/nodejs/coordination/v1beta1/leaseList.ts +++ b/sdk/nodejs/coordination/v1beta1/leaseList.ts @@ -61,8 +61,9 @@ export class LeaseList extends pulumi.CustomResource { */ constructor(name: string, args?: LeaseListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "coordination.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class LeaseList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(LeaseList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/binding.ts b/sdk/nodejs/core/v1/binding.ts index 9253dea370..23b320eafa 100644 --- a/sdk/nodejs/core/v1/binding.ts +++ b/sdk/nodejs/core/v1/binding.ts @@ -61,8 +61,9 @@ export class Binding extends pulumi.CustomResource { */ constructor(name: string, args?: BindingArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.target === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.target === undefined) && !opts.urn) { throw new Error("Missing required property 'target'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class Binding extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["target"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(Binding.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/configMap.ts b/sdk/nodejs/core/v1/configMap.ts index 5bd47cbf2a..c0bb148b51 100644 --- a/sdk/nodejs/core/v1/configMap.ts +++ b/sdk/nodejs/core/v1/configMap.ts @@ -69,7 +69,8 @@ export class ConfigMap extends pulumi.CustomResource { */ constructor(name: string, args?: ConfigMapArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["binaryData"] = args ? args.binaryData : undefined; inputs["data"] = args ? args.data : undefined; @@ -84,12 +85,8 @@ export class ConfigMap extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ConfigMap.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/configMapList.ts b/sdk/nodejs/core/v1/configMapList.ts index 6f11d41978..7f3f12e9b1 100644 --- a/sdk/nodejs/core/v1/configMapList.ts +++ b/sdk/nodejs/core/v1/configMapList.ts @@ -61,8 +61,9 @@ export class ConfigMapList extends pulumi.CustomResource { */ constructor(name: string, args?: ConfigMapListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class ConfigMapList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ConfigMapList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/endpoints.ts b/sdk/nodejs/core/v1/endpoints.ts index cbff3e67a3..a009ad2ee6 100644 --- a/sdk/nodejs/core/v1/endpoints.ts +++ b/sdk/nodejs/core/v1/endpoints.ts @@ -72,7 +72,8 @@ export class Endpoints extends pulumi.CustomResource { */ constructor(name: string, args?: EndpointsArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "Endpoints"; inputs["metadata"] = args ? args.metadata : undefined; @@ -83,12 +84,8 @@ export class Endpoints extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["subsets"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(Endpoints.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/endpointsList.ts b/sdk/nodejs/core/v1/endpointsList.ts index 9a318c019d..7508396572 100644 --- a/sdk/nodejs/core/v1/endpointsList.ts +++ b/sdk/nodejs/core/v1/endpointsList.ts @@ -61,8 +61,9 @@ export class EndpointsList extends pulumi.CustomResource { */ constructor(name: string, args?: EndpointsListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class EndpointsList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(EndpointsList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/event.ts b/sdk/nodejs/core/v1/event.ts index e723b99058..3394df7753 100644 --- a/sdk/nodejs/core/v1/event.ts +++ b/sdk/nodejs/core/v1/event.ts @@ -113,11 +113,12 @@ export class Event extends pulumi.CustomResource { */ constructor(name: string, args?: EventArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.involvedObject === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.involvedObject === undefined) && !opts.urn) { throw new Error("Missing required property 'involvedObject'"); } - if ((!args || args.metadata === undefined) && !(opts && opts.urn)) { + if ((!args || args.metadata === undefined) && !opts.urn) { throw new Error("Missing required property 'metadata'"); } inputs["action"] = args ? args.action : undefined; @@ -156,15 +157,11 @@ export class Event extends pulumi.CustomResource { inputs["source"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:events.k8s.io/v1:Event" }, { type: "kubernetes:events.k8s.io/v1beta1:Event" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Event.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/core/v1/eventList.ts b/sdk/nodejs/core/v1/eventList.ts index f80b3f0897..cc9eb306e9 100644 --- a/sdk/nodejs/core/v1/eventList.ts +++ b/sdk/nodejs/core/v1/eventList.ts @@ -61,8 +61,9 @@ export class EventList extends pulumi.CustomResource { */ constructor(name: string, args?: EventListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class EventList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(EventList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/limitRange.ts b/sdk/nodejs/core/v1/limitRange.ts index 3411c376af..84f028adb6 100644 --- a/sdk/nodejs/core/v1/limitRange.ts +++ b/sdk/nodejs/core/v1/limitRange.ts @@ -61,7 +61,8 @@ export class LimitRange extends pulumi.CustomResource { */ constructor(name: string, args?: LimitRangeArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "LimitRange"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,12 +73,8 @@ export class LimitRange extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(LimitRange.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/limitRangeList.ts b/sdk/nodejs/core/v1/limitRangeList.ts index 49000f862e..ad14a67f84 100644 --- a/sdk/nodejs/core/v1/limitRangeList.ts +++ b/sdk/nodejs/core/v1/limitRangeList.ts @@ -61,8 +61,9 @@ export class LimitRangeList extends pulumi.CustomResource { */ constructor(name: string, args?: LimitRangeListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class LimitRangeList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(LimitRangeList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/namespace.ts b/sdk/nodejs/core/v1/namespace.ts index 00de07cada..d80265926c 100644 --- a/sdk/nodejs/core/v1/namespace.ts +++ b/sdk/nodejs/core/v1/namespace.ts @@ -65,7 +65,8 @@ export class Namespace extends pulumi.CustomResource { */ constructor(name: string, args?: NamespaceArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "Namespace"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,12 +79,8 @@ export class Namespace extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(Namespace.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/namespaceList.ts b/sdk/nodejs/core/v1/namespaceList.ts index 07d548247c..e7693be07b 100644 --- a/sdk/nodejs/core/v1/namespaceList.ts +++ b/sdk/nodejs/core/v1/namespaceList.ts @@ -61,8 +61,9 @@ export class NamespaceList extends pulumi.CustomResource { */ constructor(name: string, args?: NamespaceListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class NamespaceList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(NamespaceList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/node.ts b/sdk/nodejs/core/v1/node.ts index 94d03e67f1..40d30ec2d8 100644 --- a/sdk/nodejs/core/v1/node.ts +++ b/sdk/nodejs/core/v1/node.ts @@ -65,7 +65,8 @@ export class Node extends pulumi.CustomResource { */ constructor(name: string, args?: NodeArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "Node"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,12 +79,8 @@ export class Node extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(Node.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/nodeList.ts b/sdk/nodejs/core/v1/nodeList.ts index 0f9733a4d2..770574e0cd 100644 --- a/sdk/nodejs/core/v1/nodeList.ts +++ b/sdk/nodejs/core/v1/nodeList.ts @@ -61,8 +61,9 @@ export class NodeList extends pulumi.CustomResource { */ constructor(name: string, args?: NodeListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class NodeList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(NodeList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/persistentVolume.ts b/sdk/nodejs/core/v1/persistentVolume.ts index 4d9ea6dfca..cf2d171785 100644 --- a/sdk/nodejs/core/v1/persistentVolume.ts +++ b/sdk/nodejs/core/v1/persistentVolume.ts @@ -65,7 +65,8 @@ export class PersistentVolume extends pulumi.CustomResource { */ constructor(name: string, args?: PersistentVolumeArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "PersistentVolume"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,12 +79,8 @@ export class PersistentVolume extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PersistentVolume.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/persistentVolumeClaim.ts b/sdk/nodejs/core/v1/persistentVolumeClaim.ts index 51d5702545..e9ccee6afc 100644 --- a/sdk/nodejs/core/v1/persistentVolumeClaim.ts +++ b/sdk/nodejs/core/v1/persistentVolumeClaim.ts @@ -65,7 +65,8 @@ export class PersistentVolumeClaim extends pulumi.CustomResource { */ constructor(name: string, args?: PersistentVolumeClaimArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "PersistentVolumeClaim"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,12 +79,8 @@ export class PersistentVolumeClaim extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PersistentVolumeClaim.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/persistentVolumeClaimList.ts b/sdk/nodejs/core/v1/persistentVolumeClaimList.ts index 0dee285016..0f12fe6200 100644 --- a/sdk/nodejs/core/v1/persistentVolumeClaimList.ts +++ b/sdk/nodejs/core/v1/persistentVolumeClaimList.ts @@ -61,8 +61,9 @@ export class PersistentVolumeClaimList extends pulumi.CustomResource { */ constructor(name: string, args?: PersistentVolumeClaimListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class PersistentVolumeClaimList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PersistentVolumeClaimList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/persistentVolumeList.ts b/sdk/nodejs/core/v1/persistentVolumeList.ts index a67f726a3b..7994bdb411 100644 --- a/sdk/nodejs/core/v1/persistentVolumeList.ts +++ b/sdk/nodejs/core/v1/persistentVolumeList.ts @@ -61,8 +61,9 @@ export class PersistentVolumeList extends pulumi.CustomResource { */ constructor(name: string, args?: PersistentVolumeListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class PersistentVolumeList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PersistentVolumeList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/pod.ts b/sdk/nodejs/core/v1/pod.ts index 511af76d68..b217332e3d 100644 --- a/sdk/nodejs/core/v1/pod.ts +++ b/sdk/nodejs/core/v1/pod.ts @@ -80,7 +80,8 @@ export class Pod extends pulumi.CustomResource { */ constructor(name: string, args?: PodArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "Pod"; inputs["metadata"] = args ? args.metadata : undefined; @@ -93,12 +94,8 @@ export class Pod extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(Pod.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/podList.ts b/sdk/nodejs/core/v1/podList.ts index 7ad046d192..c6037daac9 100644 --- a/sdk/nodejs/core/v1/podList.ts +++ b/sdk/nodejs/core/v1/podList.ts @@ -61,8 +61,9 @@ export class PodList extends pulumi.CustomResource { */ constructor(name: string, args?: PodListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class PodList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PodList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/podTemplate.ts b/sdk/nodejs/core/v1/podTemplate.ts index 5438c63e34..5d887180eb 100644 --- a/sdk/nodejs/core/v1/podTemplate.ts +++ b/sdk/nodejs/core/v1/podTemplate.ts @@ -61,7 +61,8 @@ export class PodTemplate extends pulumi.CustomResource { */ constructor(name: string, args?: PodTemplateArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "PodTemplate"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,12 +73,8 @@ export class PodTemplate extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["template"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PodTemplate.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/podTemplateList.ts b/sdk/nodejs/core/v1/podTemplateList.ts index 5f026157f5..54a1067802 100644 --- a/sdk/nodejs/core/v1/podTemplateList.ts +++ b/sdk/nodejs/core/v1/podTemplateList.ts @@ -61,8 +61,9 @@ export class PodTemplateList extends pulumi.CustomResource { */ constructor(name: string, args?: PodTemplateListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class PodTemplateList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PodTemplateList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/replicationController.ts b/sdk/nodejs/core/v1/replicationController.ts index 48eb568f18..ffaf3bb809 100644 --- a/sdk/nodejs/core/v1/replicationController.ts +++ b/sdk/nodejs/core/v1/replicationController.ts @@ -65,7 +65,8 @@ export class ReplicationController extends pulumi.CustomResource { */ constructor(name: string, args?: ReplicationControllerArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "ReplicationController"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,12 +79,8 @@ export class ReplicationController extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ReplicationController.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/replicationControllerList.ts b/sdk/nodejs/core/v1/replicationControllerList.ts index 1c4ca9e89a..ff74a88eb4 100644 --- a/sdk/nodejs/core/v1/replicationControllerList.ts +++ b/sdk/nodejs/core/v1/replicationControllerList.ts @@ -61,8 +61,9 @@ export class ReplicationControllerList extends pulumi.CustomResource { */ constructor(name: string, args?: ReplicationControllerListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class ReplicationControllerList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ReplicationControllerList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/resourceQuota.ts b/sdk/nodejs/core/v1/resourceQuota.ts index 57faa702c8..92ffb66cf8 100644 --- a/sdk/nodejs/core/v1/resourceQuota.ts +++ b/sdk/nodejs/core/v1/resourceQuota.ts @@ -65,7 +65,8 @@ export class ResourceQuota extends pulumi.CustomResource { */ constructor(name: string, args?: ResourceQuotaArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "ResourceQuota"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,12 +79,8 @@ export class ResourceQuota extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ResourceQuota.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/resourceQuotaList.ts b/sdk/nodejs/core/v1/resourceQuotaList.ts index e711700db4..013b312a29 100644 --- a/sdk/nodejs/core/v1/resourceQuotaList.ts +++ b/sdk/nodejs/core/v1/resourceQuotaList.ts @@ -61,8 +61,9 @@ export class ResourceQuotaList extends pulumi.CustomResource { */ constructor(name: string, args?: ResourceQuotaListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class ResourceQuotaList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ResourceQuotaList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/secret.ts b/sdk/nodejs/core/v1/secret.ts index 042cc8b97f..c06ba31831 100644 --- a/sdk/nodejs/core/v1/secret.ts +++ b/sdk/nodejs/core/v1/secret.ts @@ -83,7 +83,8 @@ export class Secret extends pulumi.CustomResource { */ constructor(name: string, args?: SecretArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["data"] = args ? args.data : undefined; inputs["immutable"] = args ? args.immutable : undefined; @@ -100,15 +101,11 @@ export class Secret extends pulumi.CustomResource { inputs["stringData"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const secretOpts = { additionalSecretOutputs: ["data", "stringData"] }; - opts = opts ? pulumi.mergeOptions(opts, secretOpts) : secretOpts; + opts = pulumi.mergeOptions(opts, secretOpts); super(Secret.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/core/v1/secretList.ts b/sdk/nodejs/core/v1/secretList.ts index eb6d30e028..40bd5eabf6 100644 --- a/sdk/nodejs/core/v1/secretList.ts +++ b/sdk/nodejs/core/v1/secretList.ts @@ -61,8 +61,9 @@ export class SecretList extends pulumi.CustomResource { */ constructor(name: string, args?: SecretListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class SecretList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(SecretList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/service.ts b/sdk/nodejs/core/v1/service.ts index e05015dc07..55b80bcd4c 100644 --- a/sdk/nodejs/core/v1/service.ts +++ b/sdk/nodejs/core/v1/service.ts @@ -90,7 +90,8 @@ export class Service extends pulumi.CustomResource { */ constructor(name: string, args?: ServiceArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["kind"] = "Service"; inputs["metadata"] = args ? args.metadata : undefined; @@ -103,12 +104,8 @@ export class Service extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(Service.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/serviceAccount.ts b/sdk/nodejs/core/v1/serviceAccount.ts index d7c956cd9e..1bc8fa9474 100644 --- a/sdk/nodejs/core/v1/serviceAccount.ts +++ b/sdk/nodejs/core/v1/serviceAccount.ts @@ -69,7 +69,8 @@ export class ServiceAccount extends pulumi.CustomResource { */ constructor(name: string, args?: ServiceAccountArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["automountServiceAccountToken"] = args ? args.automountServiceAccountToken : undefined; inputs["imagePullSecrets"] = args ? args.imagePullSecrets : undefined; @@ -84,12 +85,8 @@ export class ServiceAccount extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["secrets"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ServiceAccount.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/serviceAccountList.ts b/sdk/nodejs/core/v1/serviceAccountList.ts index fdabf20f48..850bdde7ca 100644 --- a/sdk/nodejs/core/v1/serviceAccountList.ts +++ b/sdk/nodejs/core/v1/serviceAccountList.ts @@ -61,8 +61,9 @@ export class ServiceAccountList extends pulumi.CustomResource { */ constructor(name: string, args?: ServiceAccountListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class ServiceAccountList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ServiceAccountList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/core/v1/serviceList.ts b/sdk/nodejs/core/v1/serviceList.ts index af7f5ee371..44773369b9 100644 --- a/sdk/nodejs/core/v1/serviceList.ts +++ b/sdk/nodejs/core/v1/serviceList.ts @@ -61,8 +61,9 @@ export class ServiceList extends pulumi.CustomResource { */ constructor(name: string, args?: ServiceListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "v1"; @@ -75,12 +76,8 @@ export class ServiceList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ServiceList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/discovery/v1beta1/endpointSlice.ts b/sdk/nodejs/discovery/v1beta1/endpointSlice.ts index ab8c2bd4e1..55ba8e6d4a 100644 --- a/sdk/nodejs/discovery/v1beta1/endpointSlice.ts +++ b/sdk/nodejs/discovery/v1beta1/endpointSlice.ts @@ -69,11 +69,12 @@ export class EndpointSlice extends pulumi.CustomResource { */ constructor(name: string, args?: EndpointSliceArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.addressType === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.addressType === undefined) && !opts.urn) { throw new Error("Missing required property 'addressType'"); } - if ((!args || args.endpoints === undefined) && !(opts && opts.urn)) { + if ((!args || args.endpoints === undefined) && !opts.urn) { throw new Error("Missing required property 'endpoints'"); } inputs["addressType"] = args ? args.addressType : undefined; @@ -90,12 +91,8 @@ export class EndpointSlice extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["ports"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(EndpointSlice.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/discovery/v1beta1/endpointSliceList.ts b/sdk/nodejs/discovery/v1beta1/endpointSliceList.ts index a3fe43d161..2363a183d8 100644 --- a/sdk/nodejs/discovery/v1beta1/endpointSliceList.ts +++ b/sdk/nodejs/discovery/v1beta1/endpointSliceList.ts @@ -61,8 +61,9 @@ export class EndpointSliceList extends pulumi.CustomResource { */ constructor(name: string, args?: EndpointSliceListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "discovery.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class EndpointSliceList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(EndpointSliceList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/events/v1/event.ts b/sdk/nodejs/events/v1/event.ts index 43a7dbdce5..9b0df17dab 100644 --- a/sdk/nodejs/events/v1/event.ts +++ b/sdk/nodejs/events/v1/event.ts @@ -110,11 +110,12 @@ export class Event extends pulumi.CustomResource { */ constructor(name: string, args?: EventArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.eventTime === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.eventTime === undefined) && !opts.urn) { throw new Error("Missing required property 'eventTime'"); } - if ((!args || args.metadata === undefined) && !(opts && opts.urn)) { + if ((!args || args.metadata === undefined) && !opts.urn) { throw new Error("Missing required property 'metadata'"); } inputs["action"] = args ? args.action : undefined; @@ -153,15 +154,11 @@ export class Event extends pulumi.CustomResource { inputs["series"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:core/v1:Event" }, { type: "kubernetes:events.k8s.io/v1beta1:Event" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Event.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/events/v1/eventList.ts b/sdk/nodejs/events/v1/eventList.ts index e5c7efed62..f9d08f06a3 100644 --- a/sdk/nodejs/events/v1/eventList.ts +++ b/sdk/nodejs/events/v1/eventList.ts @@ -61,8 +61,9 @@ export class EventList extends pulumi.CustomResource { */ constructor(name: string, args?: EventListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "events.k8s.io/v1"; @@ -75,12 +76,8 @@ export class EventList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(EventList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/events/v1beta1/event.ts b/sdk/nodejs/events/v1beta1/event.ts index 10a9eeeeca..b7ad2ad080 100644 --- a/sdk/nodejs/events/v1beta1/event.ts +++ b/sdk/nodejs/events/v1beta1/event.ts @@ -110,11 +110,12 @@ export class Event extends pulumi.CustomResource { */ constructor(name: string, args?: EventArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.eventTime === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.eventTime === undefined) && !opts.urn) { throw new Error("Missing required property 'eventTime'"); } - if ((!args || args.metadata === undefined) && !(opts && opts.urn)) { + if ((!args || args.metadata === undefined) && !opts.urn) { throw new Error("Missing required property 'metadata'"); } inputs["action"] = args ? args.action : undefined; @@ -153,15 +154,11 @@ export class Event extends pulumi.CustomResource { inputs["series"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:core/v1:Event" }, { type: "kubernetes:events.k8s.io/v1:Event" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Event.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/events/v1beta1/eventList.ts b/sdk/nodejs/events/v1beta1/eventList.ts index 2e7918eebd..3150b7d7af 100644 --- a/sdk/nodejs/events/v1beta1/eventList.ts +++ b/sdk/nodejs/events/v1beta1/eventList.ts @@ -61,8 +61,9 @@ export class EventList extends pulumi.CustomResource { */ constructor(name: string, args?: EventListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "events.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class EventList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(EventList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/extensions/v1beta1/daemonSet.ts b/sdk/nodejs/extensions/v1beta1/daemonSet.ts index 5f8972639a..563363c9ad 100644 --- a/sdk/nodejs/extensions/v1beta1/daemonSet.ts +++ b/sdk/nodejs/extensions/v1beta1/daemonSet.ts @@ -68,7 +68,8 @@ export class DaemonSet extends pulumi.CustomResource { /** @deprecated extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: DaemonSetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "extensions/v1beta1"; inputs["kind"] = "DaemonSet"; inputs["metadata"] = args ? args.metadata : undefined; @@ -81,15 +82,11 @@ export class DaemonSet extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:DaemonSet" }, { type: "kubernetes:apps/v1beta2:DaemonSet" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(DaemonSet.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/extensions/v1beta1/daemonSetList.ts b/sdk/nodejs/extensions/v1beta1/daemonSetList.ts index 9247586e96..681fb843a8 100644 --- a/sdk/nodejs/extensions/v1beta1/daemonSetList.ts +++ b/sdk/nodejs/extensions/v1beta1/daemonSetList.ts @@ -61,8 +61,9 @@ export class DaemonSetList extends pulumi.CustomResource { */ constructor(name: string, args?: DaemonSetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "extensions/v1beta1"; @@ -75,12 +76,8 @@ export class DaemonSetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(DaemonSetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/extensions/v1beta1/deployment.ts b/sdk/nodejs/extensions/v1beta1/deployment.ts index a30c4a45a0..01ddf98bbd 100644 --- a/sdk/nodejs/extensions/v1beta1/deployment.ts +++ b/sdk/nodejs/extensions/v1beta1/deployment.ts @@ -90,7 +90,8 @@ export class Deployment extends pulumi.CustomResource { /** @deprecated extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: DeploymentArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "extensions/v1beta1"; inputs["kind"] = "Deployment"; inputs["metadata"] = args ? args.metadata : undefined; @@ -103,15 +104,11 @@ export class Deployment extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:Deployment" }, { type: "kubernetes:apps/v1beta1:Deployment" }, { type: "kubernetes:apps/v1beta2:Deployment" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Deployment.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/extensions/v1beta1/deploymentList.ts b/sdk/nodejs/extensions/v1beta1/deploymentList.ts index d07748f704..41f43dd562 100644 --- a/sdk/nodejs/extensions/v1beta1/deploymentList.ts +++ b/sdk/nodejs/extensions/v1beta1/deploymentList.ts @@ -61,8 +61,9 @@ export class DeploymentList extends pulumi.CustomResource { */ constructor(name: string, args?: DeploymentListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "extensions/v1beta1"; @@ -75,12 +76,8 @@ export class DeploymentList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(DeploymentList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/extensions/v1beta1/ingress.ts b/sdk/nodejs/extensions/v1beta1/ingress.ts index a25a0fa887..ded69f54fb 100644 --- a/sdk/nodejs/extensions/v1beta1/ingress.ts +++ b/sdk/nodejs/extensions/v1beta1/ingress.ts @@ -82,7 +82,8 @@ export class Ingress extends pulumi.CustomResource { /** @deprecated extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters. */ constructor(name: string, args?: IngressArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "extensions/v1beta1"; inputs["kind"] = "Ingress"; inputs["metadata"] = args ? args.metadata : undefined; @@ -95,15 +96,11 @@ export class Ingress extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:networking.k8s.io/v1:Ingress" }, { type: "kubernetes:networking.k8s.io/v1beta1:Ingress" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Ingress.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/extensions/v1beta1/ingressList.ts b/sdk/nodejs/extensions/v1beta1/ingressList.ts index 627ca4e3dd..505563eb6d 100644 --- a/sdk/nodejs/extensions/v1beta1/ingressList.ts +++ b/sdk/nodejs/extensions/v1beta1/ingressList.ts @@ -61,8 +61,9 @@ export class IngressList extends pulumi.CustomResource { */ constructor(name: string, args?: IngressListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "extensions/v1beta1"; @@ -75,12 +76,8 @@ export class IngressList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(IngressList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/extensions/v1beta1/networkPolicy.ts b/sdk/nodejs/extensions/v1beta1/networkPolicy.ts index e2cbd8a259..3af466c2b3 100644 --- a/sdk/nodejs/extensions/v1beta1/networkPolicy.ts +++ b/sdk/nodejs/extensions/v1beta1/networkPolicy.ts @@ -61,7 +61,8 @@ export class NetworkPolicy extends pulumi.CustomResource { */ constructor(name: string, args?: NetworkPolicyArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "extensions/v1beta1"; inputs["kind"] = "NetworkPolicy"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class NetworkPolicy extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:networking.k8s.io/v1:NetworkPolicy" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(NetworkPolicy.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/extensions/v1beta1/networkPolicyList.ts b/sdk/nodejs/extensions/v1beta1/networkPolicyList.ts index 180ce81248..ed9df319d1 100644 --- a/sdk/nodejs/extensions/v1beta1/networkPolicyList.ts +++ b/sdk/nodejs/extensions/v1beta1/networkPolicyList.ts @@ -61,8 +61,9 @@ export class NetworkPolicyList extends pulumi.CustomResource { */ constructor(name: string, args?: NetworkPolicyListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "extensions/v1beta1"; @@ -75,12 +76,8 @@ export class NetworkPolicyList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(NetworkPolicyList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/extensions/v1beta1/podSecurityPolicy.ts b/sdk/nodejs/extensions/v1beta1/podSecurityPolicy.ts index 94e812e608..9140724b44 100644 --- a/sdk/nodejs/extensions/v1beta1/podSecurityPolicy.ts +++ b/sdk/nodejs/extensions/v1beta1/podSecurityPolicy.ts @@ -61,7 +61,8 @@ export class PodSecurityPolicy extends pulumi.CustomResource { */ constructor(name: string, args?: PodSecurityPolicyArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "extensions/v1beta1"; inputs["kind"] = "PodSecurityPolicy"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class PodSecurityPolicy extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:policy/v1beta1:PodSecurityPolicy" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(PodSecurityPolicy.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/extensions/v1beta1/podSecurityPolicyList.ts b/sdk/nodejs/extensions/v1beta1/podSecurityPolicyList.ts index 810e988346..10657c6daa 100644 --- a/sdk/nodejs/extensions/v1beta1/podSecurityPolicyList.ts +++ b/sdk/nodejs/extensions/v1beta1/podSecurityPolicyList.ts @@ -61,8 +61,9 @@ export class PodSecurityPolicyList extends pulumi.CustomResource { */ constructor(name: string, args?: PodSecurityPolicyListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "extensions/v1beta1"; @@ -75,12 +76,8 @@ export class PodSecurityPolicyList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PodSecurityPolicyList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/extensions/v1beta1/replicaSet.ts b/sdk/nodejs/extensions/v1beta1/replicaSet.ts index 557770a2f9..17046eafa5 100644 --- a/sdk/nodejs/extensions/v1beta1/replicaSet.ts +++ b/sdk/nodejs/extensions/v1beta1/replicaSet.ts @@ -68,7 +68,8 @@ export class ReplicaSet extends pulumi.CustomResource { /** @deprecated extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters. */ constructor(name: string, args?: ReplicaSetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "extensions/v1beta1"; inputs["kind"] = "ReplicaSet"; inputs["metadata"] = args ? args.metadata : undefined; @@ -81,15 +82,11 @@ export class ReplicaSet extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:ReplicaSet" }, { type: "kubernetes:apps/v1beta2:ReplicaSet" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ReplicaSet.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/extensions/v1beta1/replicaSetList.ts b/sdk/nodejs/extensions/v1beta1/replicaSetList.ts index 7bc5bfefde..168cd5c372 100644 --- a/sdk/nodejs/extensions/v1beta1/replicaSetList.ts +++ b/sdk/nodejs/extensions/v1beta1/replicaSetList.ts @@ -61,8 +61,9 @@ export class ReplicaSetList extends pulumi.CustomResource { */ constructor(name: string, args?: ReplicaSetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "extensions/v1beta1"; @@ -75,12 +76,8 @@ export class ReplicaSetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ReplicaSetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/flowcontrol/v1alpha1/flowSchema.ts b/sdk/nodejs/flowcontrol/v1alpha1/flowSchema.ts index 38f784b47a..7fa9fb483d 100644 --- a/sdk/nodejs/flowcontrol/v1alpha1/flowSchema.ts +++ b/sdk/nodejs/flowcontrol/v1alpha1/flowSchema.ts @@ -65,7 +65,8 @@ export class FlowSchema extends pulumi.CustomResource { */ constructor(name: string, args?: FlowSchemaArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "flowcontrol.apiserver.k8s.io/v1alpha1"; inputs["kind"] = "FlowSchema"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class FlowSchema extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:flowcontrol.apiserver.k8s.io/v1beta1:FlowSchema" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(FlowSchema.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/flowcontrol/v1alpha1/flowSchemaList.ts b/sdk/nodejs/flowcontrol/v1alpha1/flowSchemaList.ts index 6ee9838b1a..83ab478231 100644 --- a/sdk/nodejs/flowcontrol/v1alpha1/flowSchemaList.ts +++ b/sdk/nodejs/flowcontrol/v1alpha1/flowSchemaList.ts @@ -61,8 +61,9 @@ export class FlowSchemaList extends pulumi.CustomResource { */ constructor(name: string, args?: FlowSchemaListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "flowcontrol.apiserver.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class FlowSchemaList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(FlowSchemaList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/flowcontrol/v1alpha1/priorityLevelConfiguration.ts b/sdk/nodejs/flowcontrol/v1alpha1/priorityLevelConfiguration.ts index 74c29fa01e..fc457f1299 100644 --- a/sdk/nodejs/flowcontrol/v1alpha1/priorityLevelConfiguration.ts +++ b/sdk/nodejs/flowcontrol/v1alpha1/priorityLevelConfiguration.ts @@ -65,7 +65,8 @@ export class PriorityLevelConfiguration extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityLevelConfigurationArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "flowcontrol.apiserver.k8s.io/v1alpha1"; inputs["kind"] = "PriorityLevelConfiguration"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class PriorityLevelConfiguration extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:flowcontrol.apiserver.k8s.io/v1beta1:PriorityLevelConfiguration" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(PriorityLevelConfiguration.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/flowcontrol/v1alpha1/priorityLevelConfigurationList.ts b/sdk/nodejs/flowcontrol/v1alpha1/priorityLevelConfigurationList.ts index e597e542e4..f4c6d4b5d8 100644 --- a/sdk/nodejs/flowcontrol/v1alpha1/priorityLevelConfigurationList.ts +++ b/sdk/nodejs/flowcontrol/v1alpha1/priorityLevelConfigurationList.ts @@ -61,8 +61,9 @@ export class PriorityLevelConfigurationList extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityLevelConfigurationListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "flowcontrol.apiserver.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class PriorityLevelConfigurationList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PriorityLevelConfigurationList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/flowcontrol/v1beta1/flowSchema.ts b/sdk/nodejs/flowcontrol/v1beta1/flowSchema.ts index ddca0ae572..fe8774b4f7 100644 --- a/sdk/nodejs/flowcontrol/v1beta1/flowSchema.ts +++ b/sdk/nodejs/flowcontrol/v1beta1/flowSchema.ts @@ -65,7 +65,8 @@ export class FlowSchema extends pulumi.CustomResource { */ constructor(name: string, args?: FlowSchemaArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "flowcontrol.apiserver.k8s.io/v1beta1"; inputs["kind"] = "FlowSchema"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class FlowSchema extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchema" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(FlowSchema.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/flowcontrol/v1beta1/flowSchemaList.ts b/sdk/nodejs/flowcontrol/v1beta1/flowSchemaList.ts index 742a3bf87e..d39d98b481 100644 --- a/sdk/nodejs/flowcontrol/v1beta1/flowSchemaList.ts +++ b/sdk/nodejs/flowcontrol/v1beta1/flowSchemaList.ts @@ -61,8 +61,9 @@ export class FlowSchemaList extends pulumi.CustomResource { */ constructor(name: string, args?: FlowSchemaListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "flowcontrol.apiserver.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class FlowSchemaList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(FlowSchemaList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/flowcontrol/v1beta1/priorityLevelConfiguration.ts b/sdk/nodejs/flowcontrol/v1beta1/priorityLevelConfiguration.ts index fec24cb88c..169a19370b 100644 --- a/sdk/nodejs/flowcontrol/v1beta1/priorityLevelConfiguration.ts +++ b/sdk/nodejs/flowcontrol/v1beta1/priorityLevelConfiguration.ts @@ -65,7 +65,8 @@ export class PriorityLevelConfiguration extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityLevelConfigurationArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "flowcontrol.apiserver.k8s.io/v1beta1"; inputs["kind"] = "PriorityLevelConfiguration"; inputs["metadata"] = args ? args.metadata : undefined; @@ -78,15 +79,11 @@ export class PriorityLevelConfiguration extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfiguration" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(PriorityLevelConfiguration.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/flowcontrol/v1beta1/priorityLevelConfigurationList.ts b/sdk/nodejs/flowcontrol/v1beta1/priorityLevelConfigurationList.ts index 6e7fe11a6e..9792aaf265 100644 --- a/sdk/nodejs/flowcontrol/v1beta1/priorityLevelConfigurationList.ts +++ b/sdk/nodejs/flowcontrol/v1beta1/priorityLevelConfigurationList.ts @@ -61,8 +61,9 @@ export class PriorityLevelConfigurationList extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityLevelConfigurationListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "flowcontrol.apiserver.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class PriorityLevelConfigurationList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PriorityLevelConfigurationList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/meta/v1/status.ts b/sdk/nodejs/meta/v1/status.ts index 6bcdf05030..66eb181454 100644 --- a/sdk/nodejs/meta/v1/status.ts +++ b/sdk/nodejs/meta/v1/status.ts @@ -77,7 +77,8 @@ export class Status extends pulumi.CustomResource { */ constructor(name: string, args?: StatusArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "v1"; inputs["code"] = args ? args.code : undefined; inputs["details"] = args ? args.details : undefined; @@ -96,12 +97,8 @@ export class Status extends pulumi.CustomResource { inputs["reason"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(Status.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/networking/v1/ingress.ts b/sdk/nodejs/networking/v1/ingress.ts index 571234ef3b..3a7113051e 100644 --- a/sdk/nodejs/networking/v1/ingress.ts +++ b/sdk/nodejs/networking/v1/ingress.ts @@ -79,7 +79,8 @@ export class Ingress extends pulumi.CustomResource { */ constructor(name: string, args?: IngressArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "networking.k8s.io/v1"; inputs["kind"] = "Ingress"; inputs["metadata"] = args ? args.metadata : undefined; @@ -92,15 +93,11 @@ export class Ingress extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:extensions/v1beta1:Ingress" }, { type: "kubernetes:networking.k8s.io/v1beta1:Ingress" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Ingress.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/networking/v1/ingressClass.ts b/sdk/nodejs/networking/v1/ingressClass.ts index a58e06d16a..8bdf6c606a 100644 --- a/sdk/nodejs/networking/v1/ingressClass.ts +++ b/sdk/nodejs/networking/v1/ingressClass.ts @@ -61,7 +61,8 @@ export class IngressClass extends pulumi.CustomResource { */ constructor(name: string, args?: IngressClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "networking.k8s.io/v1"; inputs["kind"] = "IngressClass"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class IngressClass extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:networking.k8s.io/v1beta1:IngressClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(IngressClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/networking/v1/ingressClassList.ts b/sdk/nodejs/networking/v1/ingressClassList.ts index 0808877098..3a279ee698 100644 --- a/sdk/nodejs/networking/v1/ingressClassList.ts +++ b/sdk/nodejs/networking/v1/ingressClassList.ts @@ -61,8 +61,9 @@ export class IngressClassList extends pulumi.CustomResource { */ constructor(name: string, args?: IngressClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "networking.k8s.io/v1"; @@ -75,12 +76,8 @@ export class IngressClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(IngressClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/networking/v1/ingressList.ts b/sdk/nodejs/networking/v1/ingressList.ts index bc6f4ac604..829583acf9 100644 --- a/sdk/nodejs/networking/v1/ingressList.ts +++ b/sdk/nodejs/networking/v1/ingressList.ts @@ -61,8 +61,9 @@ export class IngressList extends pulumi.CustomResource { */ constructor(name: string, args?: IngressListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "networking.k8s.io/v1"; @@ -75,12 +76,8 @@ export class IngressList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(IngressList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/networking/v1/networkPolicy.ts b/sdk/nodejs/networking/v1/networkPolicy.ts index 0b987d5733..c210ca1c35 100644 --- a/sdk/nodejs/networking/v1/networkPolicy.ts +++ b/sdk/nodejs/networking/v1/networkPolicy.ts @@ -61,7 +61,8 @@ export class NetworkPolicy extends pulumi.CustomResource { */ constructor(name: string, args?: NetworkPolicyArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "networking.k8s.io/v1"; inputs["kind"] = "NetworkPolicy"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class NetworkPolicy extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:extensions/v1beta1:NetworkPolicy" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(NetworkPolicy.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/networking/v1/networkPolicyList.ts b/sdk/nodejs/networking/v1/networkPolicyList.ts index 09dbf66253..29969a1471 100644 --- a/sdk/nodejs/networking/v1/networkPolicyList.ts +++ b/sdk/nodejs/networking/v1/networkPolicyList.ts @@ -61,8 +61,9 @@ export class NetworkPolicyList extends pulumi.CustomResource { */ constructor(name: string, args?: NetworkPolicyListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "networking.k8s.io/v1"; @@ -75,12 +76,8 @@ export class NetworkPolicyList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(NetworkPolicyList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/networking/v1beta1/ingress.ts b/sdk/nodejs/networking/v1beta1/ingress.ts index e5c879acf5..6b9dabb750 100644 --- a/sdk/nodejs/networking/v1beta1/ingress.ts +++ b/sdk/nodejs/networking/v1beta1/ingress.ts @@ -79,7 +79,8 @@ export class Ingress extends pulumi.CustomResource { */ constructor(name: string, args?: IngressArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "networking.k8s.io/v1beta1"; inputs["kind"] = "Ingress"; inputs["metadata"] = args ? args.metadata : undefined; @@ -92,15 +93,11 @@ export class Ingress extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:extensions/v1beta1:Ingress" }, { type: "kubernetes:networking.k8s.io/v1:Ingress" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Ingress.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/networking/v1beta1/ingressClass.ts b/sdk/nodejs/networking/v1beta1/ingressClass.ts index e34c2e2f3e..dbaadfabe1 100644 --- a/sdk/nodejs/networking/v1beta1/ingressClass.ts +++ b/sdk/nodejs/networking/v1beta1/ingressClass.ts @@ -61,7 +61,8 @@ export class IngressClass extends pulumi.CustomResource { */ constructor(name: string, args?: IngressClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "networking.k8s.io/v1beta1"; inputs["kind"] = "IngressClass"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class IngressClass extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:networking.k8s.io/v1:IngressClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(IngressClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/networking/v1beta1/ingressClassList.ts b/sdk/nodejs/networking/v1beta1/ingressClassList.ts index eea554fd18..54f7bbb924 100644 --- a/sdk/nodejs/networking/v1beta1/ingressClassList.ts +++ b/sdk/nodejs/networking/v1beta1/ingressClassList.ts @@ -61,8 +61,9 @@ export class IngressClassList extends pulumi.CustomResource { */ constructor(name: string, args?: IngressClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "networking.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class IngressClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(IngressClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/networking/v1beta1/ingressList.ts b/sdk/nodejs/networking/v1beta1/ingressList.ts index eacaba18e6..3253cba9e3 100644 --- a/sdk/nodejs/networking/v1beta1/ingressList.ts +++ b/sdk/nodejs/networking/v1beta1/ingressList.ts @@ -61,8 +61,9 @@ export class IngressList extends pulumi.CustomResource { */ constructor(name: string, args?: IngressListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "networking.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class IngressList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(IngressList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/node/v1/runtimeClass.ts b/sdk/nodejs/node/v1/runtimeClass.ts index 8eb1d18ca9..dcde4607fd 100644 --- a/sdk/nodejs/node/v1/runtimeClass.ts +++ b/sdk/nodejs/node/v1/runtimeClass.ts @@ -71,8 +71,9 @@ export class RuntimeClass extends pulumi.CustomResource { */ constructor(name: string, args?: RuntimeClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.handler === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.handler === undefined) && !opts.urn) { throw new Error("Missing required property 'handler'"); } inputs["apiVersion"] = "node.k8s.io/v1"; @@ -89,15 +90,11 @@ export class RuntimeClass extends pulumi.CustomResource { inputs["overhead"] = undefined /*out*/; inputs["scheduling"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:node.k8s.io/v1alpha1:RuntimeClass" }, { type: "kubernetes:node.k8s.io/v1beta1:RuntimeClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(RuntimeClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/node/v1/runtimeClassList.ts b/sdk/nodejs/node/v1/runtimeClassList.ts index 52e7e6995e..2360eb5a53 100644 --- a/sdk/nodejs/node/v1/runtimeClassList.ts +++ b/sdk/nodejs/node/v1/runtimeClassList.ts @@ -61,8 +61,9 @@ export class RuntimeClassList extends pulumi.CustomResource { */ constructor(name: string, args?: RuntimeClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "node.k8s.io/v1"; @@ -75,12 +76,8 @@ export class RuntimeClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(RuntimeClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/node/v1alpha1/runtimeClass.ts b/sdk/nodejs/node/v1alpha1/runtimeClass.ts index 9044805f1a..c173ee5351 100644 --- a/sdk/nodejs/node/v1alpha1/runtimeClass.ts +++ b/sdk/nodejs/node/v1alpha1/runtimeClass.ts @@ -61,8 +61,9 @@ export class RuntimeClass extends pulumi.CustomResource { */ constructor(name: string, args?: RuntimeClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "node.k8s.io/v1alpha1"; @@ -75,15 +76,11 @@ export class RuntimeClass extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:node.k8s.io/v1:RuntimeClass" }, { type: "kubernetes:node.k8s.io/v1beta1:RuntimeClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(RuntimeClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/node/v1alpha1/runtimeClassList.ts b/sdk/nodejs/node/v1alpha1/runtimeClassList.ts index c68068a670..29fd24eb71 100644 --- a/sdk/nodejs/node/v1alpha1/runtimeClassList.ts +++ b/sdk/nodejs/node/v1alpha1/runtimeClassList.ts @@ -61,8 +61,9 @@ export class RuntimeClassList extends pulumi.CustomResource { */ constructor(name: string, args?: RuntimeClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "node.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class RuntimeClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(RuntimeClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/node/v1beta1/runtimeClass.ts b/sdk/nodejs/node/v1beta1/runtimeClass.ts index 28f7982349..08cf791134 100644 --- a/sdk/nodejs/node/v1beta1/runtimeClass.ts +++ b/sdk/nodejs/node/v1beta1/runtimeClass.ts @@ -69,8 +69,9 @@ export class RuntimeClass extends pulumi.CustomResource { */ constructor(name: string, args?: RuntimeClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.handler === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.handler === undefined) && !opts.urn) { throw new Error("Missing required property 'handler'"); } inputs["apiVersion"] = "node.k8s.io/v1beta1"; @@ -87,15 +88,11 @@ export class RuntimeClass extends pulumi.CustomResource { inputs["overhead"] = undefined /*out*/; inputs["scheduling"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:node.k8s.io/v1:RuntimeClass" }, { type: "kubernetes:node.k8s.io/v1alpha1:RuntimeClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(RuntimeClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/node/v1beta1/runtimeClassList.ts b/sdk/nodejs/node/v1beta1/runtimeClassList.ts index 5808822595..d1be2e8320 100644 --- a/sdk/nodejs/node/v1beta1/runtimeClassList.ts +++ b/sdk/nodejs/node/v1beta1/runtimeClassList.ts @@ -61,8 +61,9 @@ export class RuntimeClassList extends pulumi.CustomResource { */ constructor(name: string, args?: RuntimeClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "node.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class RuntimeClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(RuntimeClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/policy/v1beta1/podDisruptionBudget.ts b/sdk/nodejs/policy/v1beta1/podDisruptionBudget.ts index fa70105071..05398b10f7 100644 --- a/sdk/nodejs/policy/v1beta1/podDisruptionBudget.ts +++ b/sdk/nodejs/policy/v1beta1/podDisruptionBudget.ts @@ -62,7 +62,8 @@ export class PodDisruptionBudget extends pulumi.CustomResource { */ constructor(name: string, args?: PodDisruptionBudgetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "policy/v1beta1"; inputs["kind"] = "PodDisruptionBudget"; inputs["metadata"] = args ? args.metadata : undefined; @@ -75,12 +76,8 @@ export class PodDisruptionBudget extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PodDisruptionBudget.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/policy/v1beta1/podDisruptionBudgetList.ts b/sdk/nodejs/policy/v1beta1/podDisruptionBudgetList.ts index f876d811fd..70c65e6362 100644 --- a/sdk/nodejs/policy/v1beta1/podDisruptionBudgetList.ts +++ b/sdk/nodejs/policy/v1beta1/podDisruptionBudgetList.ts @@ -55,8 +55,9 @@ export class PodDisruptionBudgetList extends pulumi.CustomResource { */ constructor(name: string, args?: PodDisruptionBudgetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "policy/v1beta1"; @@ -69,12 +70,8 @@ export class PodDisruptionBudgetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PodDisruptionBudgetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/policy/v1beta1/podSecurityPolicy.ts b/sdk/nodejs/policy/v1beta1/podSecurityPolicy.ts index 3c1d87a39c..1e3d5a7211 100644 --- a/sdk/nodejs/policy/v1beta1/podSecurityPolicy.ts +++ b/sdk/nodejs/policy/v1beta1/podSecurityPolicy.ts @@ -61,7 +61,8 @@ export class PodSecurityPolicy extends pulumi.CustomResource { */ constructor(name: string, args?: PodSecurityPolicyArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "policy/v1beta1"; inputs["kind"] = "PodSecurityPolicy"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class PodSecurityPolicy extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:extensions/v1beta1:PodSecurityPolicy" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(PodSecurityPolicy.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/policy/v1beta1/podSecurityPolicyList.ts b/sdk/nodejs/policy/v1beta1/podSecurityPolicyList.ts index 395d12b107..89b1acec9a 100644 --- a/sdk/nodejs/policy/v1beta1/podSecurityPolicyList.ts +++ b/sdk/nodejs/policy/v1beta1/podSecurityPolicyList.ts @@ -61,8 +61,9 @@ export class PodSecurityPolicyList extends pulumi.CustomResource { */ constructor(name: string, args?: PodSecurityPolicyListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "policy/v1beta1"; @@ -75,12 +76,8 @@ export class PodSecurityPolicyList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PodSecurityPolicyList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/provider.ts b/sdk/nodejs/provider.ts index 0a7eecddd3..b1e7fd7a88 100644 --- a/sdk/nodejs/provider.ts +++ b/sdk/nodejs/provider.ts @@ -32,6 +32,7 @@ export class Provider extends pulumi.ProviderResource { */ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions) { let inputs: pulumi.Inputs = {}; + opts = opts || {}; { inputs["cluster"] = args ? args.cluster : undefined; inputs["context"] = args ? args.context : undefined; @@ -41,12 +42,8 @@ export class Provider extends pulumi.ProviderResource { inputs["renderYamlToDirectory"] = args ? args.renderYamlToDirectory : undefined; inputs["suppressDeprecationWarnings"] = pulumi.output(((args ? args.suppressDeprecationWarnings : undefined) || utilities.getEnvBoolean("PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS")) ?? utilities.getEnvBoolean("PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS")).apply(JSON.stringify); } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(Provider.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1/clusterRole.ts b/sdk/nodejs/rbac/v1/clusterRole.ts index 82816bbd4a..43b70bf2d4 100644 --- a/sdk/nodejs/rbac/v1/clusterRole.ts +++ b/sdk/nodejs/rbac/v1/clusterRole.ts @@ -65,7 +65,8 @@ export class ClusterRole extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["aggregationRule"] = args ? args.aggregationRule : undefined; inputs["apiVersion"] = "rbac.authorization.k8s.io/v1"; inputs["kind"] = "ClusterRole"; @@ -78,15 +79,11 @@ export class ClusterRole extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["rules"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole" }, { type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ClusterRole.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1/clusterRoleBinding.ts b/sdk/nodejs/rbac/v1/clusterRoleBinding.ts index 24b3b1eee3..fdb68a5de5 100644 --- a/sdk/nodejs/rbac/v1/clusterRoleBinding.ts +++ b/sdk/nodejs/rbac/v1/clusterRoleBinding.ts @@ -65,8 +65,9 @@ export class ClusterRoleBinding extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleBindingArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.roleRef === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.roleRef === undefined) && !opts.urn) { throw new Error("Missing required property 'roleRef'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1"; @@ -81,15 +82,11 @@ export class ClusterRoleBinding extends pulumi.CustomResource { inputs["roleRef"] = undefined /*out*/; inputs["subjects"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding" }, { type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ClusterRoleBinding.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1/clusterRoleBindingList.ts b/sdk/nodejs/rbac/v1/clusterRoleBindingList.ts index f47670ae1a..7193fbc30e 100644 --- a/sdk/nodejs/rbac/v1/clusterRoleBindingList.ts +++ b/sdk/nodejs/rbac/v1/clusterRoleBindingList.ts @@ -61,8 +61,9 @@ export class ClusterRoleBindingList extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleBindingListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1"; @@ -75,12 +76,8 @@ export class ClusterRoleBindingList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ClusterRoleBindingList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1/clusterRoleList.ts b/sdk/nodejs/rbac/v1/clusterRoleList.ts index 0a310592ce..0fd94580f1 100644 --- a/sdk/nodejs/rbac/v1/clusterRoleList.ts +++ b/sdk/nodejs/rbac/v1/clusterRoleList.ts @@ -61,8 +61,9 @@ export class ClusterRoleList extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1"; @@ -75,12 +76,8 @@ export class ClusterRoleList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ClusterRoleList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1/role.ts b/sdk/nodejs/rbac/v1/role.ts index 9ccd9080e7..5dc926433a 100644 --- a/sdk/nodejs/rbac/v1/role.ts +++ b/sdk/nodejs/rbac/v1/role.ts @@ -61,7 +61,8 @@ export class Role extends pulumi.CustomResource { */ constructor(name: string, args?: RoleArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "rbac.authorization.k8s.io/v1"; inputs["kind"] = "Role"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class Role extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["rules"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role" }, { type: "kubernetes:rbac.authorization.k8s.io/v1beta1:Role" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Role.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1/roleBinding.ts b/sdk/nodejs/rbac/v1/roleBinding.ts index fb2632df01..1810b15f0a 100644 --- a/sdk/nodejs/rbac/v1/roleBinding.ts +++ b/sdk/nodejs/rbac/v1/roleBinding.ts @@ -65,8 +65,9 @@ export class RoleBinding extends pulumi.CustomResource { */ constructor(name: string, args?: RoleBindingArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.roleRef === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.roleRef === undefined) && !opts.urn) { throw new Error("Missing required property 'roleRef'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1"; @@ -81,15 +82,11 @@ export class RoleBinding extends pulumi.CustomResource { inputs["roleRef"] = undefined /*out*/; inputs["subjects"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding" }, { type: "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(RoleBinding.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1/roleBindingList.ts b/sdk/nodejs/rbac/v1/roleBindingList.ts index 8b7ecd48a9..7871489f68 100644 --- a/sdk/nodejs/rbac/v1/roleBindingList.ts +++ b/sdk/nodejs/rbac/v1/roleBindingList.ts @@ -61,8 +61,9 @@ export class RoleBindingList extends pulumi.CustomResource { */ constructor(name: string, args?: RoleBindingListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1"; @@ -75,12 +76,8 @@ export class RoleBindingList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(RoleBindingList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1/roleList.ts b/sdk/nodejs/rbac/v1/roleList.ts index 186447ed07..44e71cc126 100644 --- a/sdk/nodejs/rbac/v1/roleList.ts +++ b/sdk/nodejs/rbac/v1/roleList.ts @@ -61,8 +61,9 @@ export class RoleList extends pulumi.CustomResource { */ constructor(name: string, args?: RoleListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1"; @@ -75,12 +76,8 @@ export class RoleList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(RoleList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1alpha1/clusterRole.ts b/sdk/nodejs/rbac/v1alpha1/clusterRole.ts index 58863ded47..1aba542038 100644 --- a/sdk/nodejs/rbac/v1alpha1/clusterRole.ts +++ b/sdk/nodejs/rbac/v1alpha1/clusterRole.ts @@ -65,7 +65,8 @@ export class ClusterRole extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["aggregationRule"] = args ? args.aggregationRule : undefined; inputs["apiVersion"] = "rbac.authorization.k8s.io/v1alpha1"; inputs["kind"] = "ClusterRole"; @@ -78,15 +79,11 @@ export class ClusterRole extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["rules"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRole" }, { type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ClusterRole.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1alpha1/clusterRoleBinding.ts b/sdk/nodejs/rbac/v1alpha1/clusterRoleBinding.ts index 338b5c1589..b7fa05cb80 100644 --- a/sdk/nodejs/rbac/v1alpha1/clusterRoleBinding.ts +++ b/sdk/nodejs/rbac/v1alpha1/clusterRoleBinding.ts @@ -65,8 +65,9 @@ export class ClusterRoleBinding extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleBindingArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.roleRef === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.roleRef === undefined) && !opts.urn) { throw new Error("Missing required property 'roleRef'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1alpha1"; @@ -81,15 +82,11 @@ export class ClusterRoleBinding extends pulumi.CustomResource { inputs["roleRef"] = undefined /*out*/; inputs["subjects"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding" }, { type: "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ClusterRoleBinding.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1alpha1/clusterRoleBindingList.ts b/sdk/nodejs/rbac/v1alpha1/clusterRoleBindingList.ts index d22fd2c854..d4c56dab2c 100644 --- a/sdk/nodejs/rbac/v1alpha1/clusterRoleBindingList.ts +++ b/sdk/nodejs/rbac/v1alpha1/clusterRoleBindingList.ts @@ -61,8 +61,9 @@ export class ClusterRoleBindingList extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleBindingListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class ClusterRoleBindingList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ClusterRoleBindingList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1alpha1/clusterRoleList.ts b/sdk/nodejs/rbac/v1alpha1/clusterRoleList.ts index 3fc3132fb3..a8c66c9d10 100644 --- a/sdk/nodejs/rbac/v1alpha1/clusterRoleList.ts +++ b/sdk/nodejs/rbac/v1alpha1/clusterRoleList.ts @@ -61,8 +61,9 @@ export class ClusterRoleList extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class ClusterRoleList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ClusterRoleList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1alpha1/role.ts b/sdk/nodejs/rbac/v1alpha1/role.ts index d4cb7e54de..d2a37e72e1 100644 --- a/sdk/nodejs/rbac/v1alpha1/role.ts +++ b/sdk/nodejs/rbac/v1alpha1/role.ts @@ -61,7 +61,8 @@ export class Role extends pulumi.CustomResource { */ constructor(name: string, args?: RoleArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "rbac.authorization.k8s.io/v1alpha1"; inputs["kind"] = "Role"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class Role extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["rules"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1:Role" }, { type: "kubernetes:rbac.authorization.k8s.io/v1beta1:Role" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Role.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1alpha1/roleBinding.ts b/sdk/nodejs/rbac/v1alpha1/roleBinding.ts index cd178fd627..3c8a07375b 100644 --- a/sdk/nodejs/rbac/v1alpha1/roleBinding.ts +++ b/sdk/nodejs/rbac/v1alpha1/roleBinding.ts @@ -65,8 +65,9 @@ export class RoleBinding extends pulumi.CustomResource { */ constructor(name: string, args?: RoleBindingArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.roleRef === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.roleRef === undefined) && !opts.urn) { throw new Error("Missing required property 'roleRef'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1alpha1"; @@ -81,15 +82,11 @@ export class RoleBinding extends pulumi.CustomResource { inputs["roleRef"] = undefined /*out*/; inputs["subjects"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1:RoleBinding" }, { type: "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(RoleBinding.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1alpha1/roleBindingList.ts b/sdk/nodejs/rbac/v1alpha1/roleBindingList.ts index bc7fa1746b..582ab84867 100644 --- a/sdk/nodejs/rbac/v1alpha1/roleBindingList.ts +++ b/sdk/nodejs/rbac/v1alpha1/roleBindingList.ts @@ -61,8 +61,9 @@ export class RoleBindingList extends pulumi.CustomResource { */ constructor(name: string, args?: RoleBindingListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class RoleBindingList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(RoleBindingList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1alpha1/roleList.ts b/sdk/nodejs/rbac/v1alpha1/roleList.ts index d1c61379aa..e21a91720c 100644 --- a/sdk/nodejs/rbac/v1alpha1/roleList.ts +++ b/sdk/nodejs/rbac/v1alpha1/roleList.ts @@ -61,8 +61,9 @@ export class RoleList extends pulumi.CustomResource { */ constructor(name: string, args?: RoleListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class RoleList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(RoleList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1beta1/clusterRole.ts b/sdk/nodejs/rbac/v1beta1/clusterRole.ts index dc674aa1cc..cc6e39b81b 100644 --- a/sdk/nodejs/rbac/v1beta1/clusterRole.ts +++ b/sdk/nodejs/rbac/v1beta1/clusterRole.ts @@ -65,7 +65,8 @@ export class ClusterRole extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["aggregationRule"] = args ? args.aggregationRule : undefined; inputs["apiVersion"] = "rbac.authorization.k8s.io/v1beta1"; inputs["kind"] = "ClusterRole"; @@ -78,15 +79,11 @@ export class ClusterRole extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["rules"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRole" }, { type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ClusterRole.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1beta1/clusterRoleBinding.ts b/sdk/nodejs/rbac/v1beta1/clusterRoleBinding.ts index 682ea38d4b..90522a2a36 100644 --- a/sdk/nodejs/rbac/v1beta1/clusterRoleBinding.ts +++ b/sdk/nodejs/rbac/v1beta1/clusterRoleBinding.ts @@ -65,8 +65,9 @@ export class ClusterRoleBinding extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleBindingArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.roleRef === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.roleRef === undefined) && !opts.urn) { throw new Error("Missing required property 'roleRef'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1beta1"; @@ -81,15 +82,11 @@ export class ClusterRoleBinding extends pulumi.CustomResource { inputs["roleRef"] = undefined /*out*/; inputs["subjects"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding" }, { type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(ClusterRoleBinding.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1beta1/clusterRoleBindingList.ts b/sdk/nodejs/rbac/v1beta1/clusterRoleBindingList.ts index 2af78d0b0d..0b40ee5f67 100644 --- a/sdk/nodejs/rbac/v1beta1/clusterRoleBindingList.ts +++ b/sdk/nodejs/rbac/v1beta1/clusterRoleBindingList.ts @@ -61,8 +61,9 @@ export class ClusterRoleBindingList extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleBindingListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class ClusterRoleBindingList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ClusterRoleBindingList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1beta1/clusterRoleList.ts b/sdk/nodejs/rbac/v1beta1/clusterRoleList.ts index 8a57e0e560..ffb38efb0a 100644 --- a/sdk/nodejs/rbac/v1beta1/clusterRoleList.ts +++ b/sdk/nodejs/rbac/v1beta1/clusterRoleList.ts @@ -61,8 +61,9 @@ export class ClusterRoleList extends pulumi.CustomResource { */ constructor(name: string, args?: ClusterRoleListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class ClusterRoleList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(ClusterRoleList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1beta1/role.ts b/sdk/nodejs/rbac/v1beta1/role.ts index 5d48634810..1da1575529 100644 --- a/sdk/nodejs/rbac/v1beta1/role.ts +++ b/sdk/nodejs/rbac/v1beta1/role.ts @@ -61,7 +61,8 @@ export class Role extends pulumi.CustomResource { */ constructor(name: string, args?: RoleArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "rbac.authorization.k8s.io/v1beta1"; inputs["kind"] = "Role"; inputs["metadata"] = args ? args.metadata : undefined; @@ -72,15 +73,11 @@ export class Role extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["rules"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1:Role" }, { type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(Role.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1beta1/roleBinding.ts b/sdk/nodejs/rbac/v1beta1/roleBinding.ts index 7d6785fad0..31031d9991 100644 --- a/sdk/nodejs/rbac/v1beta1/roleBinding.ts +++ b/sdk/nodejs/rbac/v1beta1/roleBinding.ts @@ -65,8 +65,9 @@ export class RoleBinding extends pulumi.CustomResource { */ constructor(name: string, args?: RoleBindingArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.roleRef === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.roleRef === undefined) && !opts.urn) { throw new Error("Missing required property 'roleRef'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1beta1"; @@ -81,15 +82,11 @@ export class RoleBinding extends pulumi.CustomResource { inputs["roleRef"] = undefined /*out*/; inputs["subjects"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:rbac.authorization.k8s.io/v1:RoleBinding" }, { type: "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(RoleBinding.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/rbac/v1beta1/roleBindingList.ts b/sdk/nodejs/rbac/v1beta1/roleBindingList.ts index b8271dc977..fc01ee0a17 100644 --- a/sdk/nodejs/rbac/v1beta1/roleBindingList.ts +++ b/sdk/nodejs/rbac/v1beta1/roleBindingList.ts @@ -61,8 +61,9 @@ export class RoleBindingList extends pulumi.CustomResource { */ constructor(name: string, args?: RoleBindingListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class RoleBindingList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(RoleBindingList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/rbac/v1beta1/roleList.ts b/sdk/nodejs/rbac/v1beta1/roleList.ts index b9948b8c68..8c6e331448 100644 --- a/sdk/nodejs/rbac/v1beta1/roleList.ts +++ b/sdk/nodejs/rbac/v1beta1/roleList.ts @@ -61,8 +61,9 @@ export class RoleList extends pulumi.CustomResource { */ constructor(name: string, args?: RoleListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "rbac.authorization.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class RoleList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(RoleList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/scheduling/v1/priorityClass.ts b/sdk/nodejs/scheduling/v1/priorityClass.ts index dede90235a..805d572e05 100644 --- a/sdk/nodejs/scheduling/v1/priorityClass.ts +++ b/sdk/nodejs/scheduling/v1/priorityClass.ts @@ -73,8 +73,9 @@ export class PriorityClass extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.value === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.value === undefined) && !opts.urn) { throw new Error("Missing required property 'value'"); } inputs["apiVersion"] = "scheduling.k8s.io/v1"; @@ -93,15 +94,11 @@ export class PriorityClass extends pulumi.CustomResource { inputs["preemptionPolicy"] = undefined /*out*/; inputs["value"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass" }, { type: "kubernetes:scheduling.k8s.io/v1beta1:PriorityClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(PriorityClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/scheduling/v1/priorityClassList.ts b/sdk/nodejs/scheduling/v1/priorityClassList.ts index d7347f169e..49fb0171fe 100644 --- a/sdk/nodejs/scheduling/v1/priorityClassList.ts +++ b/sdk/nodejs/scheduling/v1/priorityClassList.ts @@ -61,8 +61,9 @@ export class PriorityClassList extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "scheduling.k8s.io/v1"; @@ -75,12 +76,8 @@ export class PriorityClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PriorityClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/scheduling/v1alpha1/priorityClass.ts b/sdk/nodejs/scheduling/v1alpha1/priorityClass.ts index 7fefbde2b1..b302d035d0 100644 --- a/sdk/nodejs/scheduling/v1alpha1/priorityClass.ts +++ b/sdk/nodejs/scheduling/v1alpha1/priorityClass.ts @@ -73,8 +73,9 @@ export class PriorityClass extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.value === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.value === undefined) && !opts.urn) { throw new Error("Missing required property 'value'"); } inputs["apiVersion"] = "scheduling.k8s.io/v1alpha1"; @@ -93,15 +94,11 @@ export class PriorityClass extends pulumi.CustomResource { inputs["preemptionPolicy"] = undefined /*out*/; inputs["value"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:scheduling.k8s.io/v1:PriorityClass" }, { type: "kubernetes:scheduling.k8s.io/v1beta1:PriorityClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(PriorityClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/scheduling/v1alpha1/priorityClassList.ts b/sdk/nodejs/scheduling/v1alpha1/priorityClassList.ts index d7d3696e32..b2ca9d6ba7 100644 --- a/sdk/nodejs/scheduling/v1alpha1/priorityClassList.ts +++ b/sdk/nodejs/scheduling/v1alpha1/priorityClassList.ts @@ -61,8 +61,9 @@ export class PriorityClassList extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "scheduling.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class PriorityClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PriorityClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/scheduling/v1beta1/priorityClass.ts b/sdk/nodejs/scheduling/v1beta1/priorityClass.ts index d2f0604a57..a7f62d38e6 100644 --- a/sdk/nodejs/scheduling/v1beta1/priorityClass.ts +++ b/sdk/nodejs/scheduling/v1beta1/priorityClass.ts @@ -73,8 +73,9 @@ export class PriorityClass extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.value === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.value === undefined) && !opts.urn) { throw new Error("Missing required property 'value'"); } inputs["apiVersion"] = "scheduling.k8s.io/v1beta1"; @@ -93,15 +94,11 @@ export class PriorityClass extends pulumi.CustomResource { inputs["preemptionPolicy"] = undefined /*out*/; inputs["value"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:scheduling.k8s.io/v1:PriorityClass" }, { type: "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(PriorityClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/scheduling/v1beta1/priorityClassList.ts b/sdk/nodejs/scheduling/v1beta1/priorityClassList.ts index 054688f64e..4333ec9b29 100644 --- a/sdk/nodejs/scheduling/v1beta1/priorityClassList.ts +++ b/sdk/nodejs/scheduling/v1beta1/priorityClassList.ts @@ -61,8 +61,9 @@ export class PriorityClassList extends pulumi.CustomResource { */ constructor(name: string, args?: PriorityClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "scheduling.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class PriorityClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PriorityClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/settings/v1alpha1/podPreset.ts b/sdk/nodejs/settings/v1alpha1/podPreset.ts index 113196c4b6..2a06ba61a7 100644 --- a/sdk/nodejs/settings/v1alpha1/podPreset.ts +++ b/sdk/nodejs/settings/v1alpha1/podPreset.ts @@ -55,7 +55,8 @@ export class PodPreset extends pulumi.CustomResource { */ constructor(name: string, args?: PodPresetArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { + opts = opts || {}; + if (!opts.id) { inputs["apiVersion"] = "settings.k8s.io/v1alpha1"; inputs["kind"] = "PodPreset"; inputs["metadata"] = args ? args.metadata : undefined; @@ -66,12 +67,8 @@ export class PodPreset extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PodPreset.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/settings/v1alpha1/podPresetList.ts b/sdk/nodejs/settings/v1alpha1/podPresetList.ts index 0e64fd4e91..7990eb2dd5 100644 --- a/sdk/nodejs/settings/v1alpha1/podPresetList.ts +++ b/sdk/nodejs/settings/v1alpha1/podPresetList.ts @@ -61,8 +61,9 @@ export class PodPresetList extends pulumi.CustomResource { */ constructor(name: string, args?: PodPresetListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "settings.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class PodPresetList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(PodPresetList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/storage/v1/csidriver.ts b/sdk/nodejs/storage/v1/csidriver.ts index 1251c2556a..4e8b514b78 100644 --- a/sdk/nodejs/storage/v1/csidriver.ts +++ b/sdk/nodejs/storage/v1/csidriver.ts @@ -61,8 +61,9 @@ export class CSIDriver extends pulumi.CustomResource { */ constructor(name: string, args?: CSIDriverArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "storage.k8s.io/v1"; @@ -75,15 +76,11 @@ export class CSIDriver extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1beta1:CSIDriver" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CSIDriver.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/storage/v1/csidriverList.ts b/sdk/nodejs/storage/v1/csidriverList.ts index d3121c1e1e..87c1fd3daa 100644 --- a/sdk/nodejs/storage/v1/csidriverList.ts +++ b/sdk/nodejs/storage/v1/csidriverList.ts @@ -61,8 +61,9 @@ export class CSIDriverList extends pulumi.CustomResource { */ constructor(name: string, args?: CSIDriverListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "storage.k8s.io/v1"; @@ -75,12 +76,8 @@ export class CSIDriverList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CSIDriverList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/storage/v1/csinode.ts b/sdk/nodejs/storage/v1/csinode.ts index a39e16708b..657d0ba686 100644 --- a/sdk/nodejs/storage/v1/csinode.ts +++ b/sdk/nodejs/storage/v1/csinode.ts @@ -61,8 +61,9 @@ export class CSINode extends pulumi.CustomResource { */ constructor(name: string, args?: CSINodeArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "storage.k8s.io/v1"; @@ -75,15 +76,11 @@ export class CSINode extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1beta1:CSINode" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CSINode.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/storage/v1/csinodeList.ts b/sdk/nodejs/storage/v1/csinodeList.ts index 1e163fade5..225a085064 100644 --- a/sdk/nodejs/storage/v1/csinodeList.ts +++ b/sdk/nodejs/storage/v1/csinodeList.ts @@ -61,8 +61,9 @@ export class CSINodeList extends pulumi.CustomResource { */ constructor(name: string, args?: CSINodeListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "storage.k8s.io/v1"; @@ -75,12 +76,8 @@ export class CSINodeList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CSINodeList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/storage/v1/storageClass.ts b/sdk/nodejs/storage/v1/storageClass.ts index 4815bd0476..42d08e911c 100644 --- a/sdk/nodejs/storage/v1/storageClass.ts +++ b/sdk/nodejs/storage/v1/storageClass.ts @@ -87,8 +87,9 @@ export class StorageClass extends pulumi.CustomResource { */ constructor(name: string, args?: StorageClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.provisioner === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.provisioner === undefined) && !opts.urn) { throw new Error("Missing required property 'provisioner'"); } inputs["allowVolumeExpansion"] = args ? args.allowVolumeExpansion : undefined; @@ -113,15 +114,11 @@ export class StorageClass extends pulumi.CustomResource { inputs["reclaimPolicy"] = undefined /*out*/; inputs["volumeBindingMode"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1beta1:StorageClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(StorageClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/storage/v1/storageClassList.ts b/sdk/nodejs/storage/v1/storageClassList.ts index cd42db4ab0..7c565c5ad7 100644 --- a/sdk/nodejs/storage/v1/storageClassList.ts +++ b/sdk/nodejs/storage/v1/storageClassList.ts @@ -61,8 +61,9 @@ export class StorageClassList extends pulumi.CustomResource { */ constructor(name: string, args?: StorageClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "storage.k8s.io/v1"; @@ -75,12 +76,8 @@ export class StorageClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(StorageClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/storage/v1/volumeAttachment.ts b/sdk/nodejs/storage/v1/volumeAttachment.ts index 73c51a8b18..5e6cf3d1c7 100644 --- a/sdk/nodejs/storage/v1/volumeAttachment.ts +++ b/sdk/nodejs/storage/v1/volumeAttachment.ts @@ -67,8 +67,9 @@ export class VolumeAttachment extends pulumi.CustomResource { */ constructor(name: string, args?: VolumeAttachmentArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "storage.k8s.io/v1"; @@ -83,15 +84,11 @@ export class VolumeAttachment extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment" }, { type: "kubernetes:storage.k8s.io/v1beta1:VolumeAttachment" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(VolumeAttachment.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/storage/v1/volumeAttachmentList.ts b/sdk/nodejs/storage/v1/volumeAttachmentList.ts index 2614a979b9..901f75aca4 100644 --- a/sdk/nodejs/storage/v1/volumeAttachmentList.ts +++ b/sdk/nodejs/storage/v1/volumeAttachmentList.ts @@ -61,8 +61,9 @@ export class VolumeAttachmentList extends pulumi.CustomResource { */ constructor(name: string, args?: VolumeAttachmentListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "storage.k8s.io/v1"; @@ -75,12 +76,8 @@ export class VolumeAttachmentList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(VolumeAttachmentList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/storage/v1alpha1/volumeAttachment.ts b/sdk/nodejs/storage/v1alpha1/volumeAttachment.ts index e97ad37077..6d9f146c53 100644 --- a/sdk/nodejs/storage/v1alpha1/volumeAttachment.ts +++ b/sdk/nodejs/storage/v1alpha1/volumeAttachment.ts @@ -67,8 +67,9 @@ export class VolumeAttachment extends pulumi.CustomResource { */ constructor(name: string, args?: VolumeAttachmentArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "storage.k8s.io/v1alpha1"; @@ -83,15 +84,11 @@ export class VolumeAttachment extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1:VolumeAttachment" }, { type: "kubernetes:storage.k8s.io/v1beta1:VolumeAttachment" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(VolumeAttachment.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/storage/v1alpha1/volumeAttachmentList.ts b/sdk/nodejs/storage/v1alpha1/volumeAttachmentList.ts index 6a1d1883bd..7e834b2d71 100644 --- a/sdk/nodejs/storage/v1alpha1/volumeAttachmentList.ts +++ b/sdk/nodejs/storage/v1alpha1/volumeAttachmentList.ts @@ -61,8 +61,9 @@ export class VolumeAttachmentList extends pulumi.CustomResource { */ constructor(name: string, args?: VolumeAttachmentListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "storage.k8s.io/v1alpha1"; @@ -75,12 +76,8 @@ export class VolumeAttachmentList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(VolumeAttachmentList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/storage/v1beta1/csidriver.ts b/sdk/nodejs/storage/v1beta1/csidriver.ts index de140d4b24..d9f34e03cc 100644 --- a/sdk/nodejs/storage/v1beta1/csidriver.ts +++ b/sdk/nodejs/storage/v1beta1/csidriver.ts @@ -61,8 +61,9 @@ export class CSIDriver extends pulumi.CustomResource { */ constructor(name: string, args?: CSIDriverArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "storage.k8s.io/v1beta1"; @@ -75,15 +76,11 @@ export class CSIDriver extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1:CSIDriver" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CSIDriver.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/storage/v1beta1/csidriverList.ts b/sdk/nodejs/storage/v1beta1/csidriverList.ts index 226a282107..7fb69cea26 100644 --- a/sdk/nodejs/storage/v1beta1/csidriverList.ts +++ b/sdk/nodejs/storage/v1beta1/csidriverList.ts @@ -61,8 +61,9 @@ export class CSIDriverList extends pulumi.CustomResource { */ constructor(name: string, args?: CSIDriverListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "storage.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class CSIDriverList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CSIDriverList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/storage/v1beta1/csinode.ts b/sdk/nodejs/storage/v1beta1/csinode.ts index 5338522dea..1b82a4394d 100644 --- a/sdk/nodejs/storage/v1beta1/csinode.ts +++ b/sdk/nodejs/storage/v1beta1/csinode.ts @@ -64,8 +64,9 @@ export class CSINode extends pulumi.CustomResource { /** @deprecated storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode. */ constructor(name: string, args?: CSINodeArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "storage.k8s.io/v1beta1"; @@ -78,15 +79,11 @@ export class CSINode extends pulumi.CustomResource { inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1:CSINode" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(CSINode.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/storage/v1beta1/csinodeList.ts b/sdk/nodejs/storage/v1beta1/csinodeList.ts index 1dca7190df..3f491192f9 100644 --- a/sdk/nodejs/storage/v1beta1/csinodeList.ts +++ b/sdk/nodejs/storage/v1beta1/csinodeList.ts @@ -61,8 +61,9 @@ export class CSINodeList extends pulumi.CustomResource { */ constructor(name: string, args?: CSINodeListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "storage.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class CSINodeList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(CSINodeList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/storage/v1beta1/storageClass.ts b/sdk/nodejs/storage/v1beta1/storageClass.ts index 0f3115421b..c8f08674b3 100644 --- a/sdk/nodejs/storage/v1beta1/storageClass.ts +++ b/sdk/nodejs/storage/v1beta1/storageClass.ts @@ -87,8 +87,9 @@ export class StorageClass extends pulumi.CustomResource { */ constructor(name: string, args?: StorageClassArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.provisioner === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.provisioner === undefined) && !opts.urn) { throw new Error("Missing required property 'provisioner'"); } inputs["allowVolumeExpansion"] = args ? args.allowVolumeExpansion : undefined; @@ -113,15 +114,11 @@ export class StorageClass extends pulumi.CustomResource { inputs["reclaimPolicy"] = undefined /*out*/; inputs["volumeBindingMode"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1:StorageClass" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(StorageClass.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/storage/v1beta1/storageClassList.ts b/sdk/nodejs/storage/v1beta1/storageClassList.ts index f41b517a61..18b8b995b9 100644 --- a/sdk/nodejs/storage/v1beta1/storageClassList.ts +++ b/sdk/nodejs/storage/v1beta1/storageClassList.ts @@ -61,8 +61,9 @@ export class StorageClassList extends pulumi.CustomResource { */ constructor(name: string, args?: StorageClassListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "storage.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class StorageClassList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(StorageClassList.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/storage/v1beta1/volumeAttachment.ts b/sdk/nodejs/storage/v1beta1/volumeAttachment.ts index e747623656..c73534595c 100644 --- a/sdk/nodejs/storage/v1beta1/volumeAttachment.ts +++ b/sdk/nodejs/storage/v1beta1/volumeAttachment.ts @@ -67,8 +67,9 @@ export class VolumeAttachment extends pulumi.CustomResource { */ constructor(name: string, args?: VolumeAttachmentArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.spec === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.spec === undefined) && !opts.urn) { throw new Error("Missing required property 'spec'"); } inputs["apiVersion"] = "storage.k8s.io/v1beta1"; @@ -83,15 +84,11 @@ export class VolumeAttachment extends pulumi.CustomResource { inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1:VolumeAttachment" }, { type: "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment" }] }; - opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + opts = pulumi.mergeOptions(opts, aliasOpts); super(VolumeAttachment.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/storage/v1beta1/volumeAttachmentList.ts b/sdk/nodejs/storage/v1beta1/volumeAttachmentList.ts index c2a5ea6e64..b8af5fabd1 100644 --- a/sdk/nodejs/storage/v1beta1/volumeAttachmentList.ts +++ b/sdk/nodejs/storage/v1beta1/volumeAttachmentList.ts @@ -61,8 +61,9 @@ export class VolumeAttachmentList extends pulumi.CustomResource { */ constructor(name: string, args?: VolumeAttachmentListArgs, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; - if (!(opts && opts.id)) { - if ((!args || args.items === undefined) && !(opts && opts.urn)) { + opts = opts || {}; + if (!opts.id) { + if ((!args || args.items === undefined) && !opts.urn) { throw new Error("Missing required property 'items'"); } inputs["apiVersion"] = "storage.k8s.io/v1beta1"; @@ -75,12 +76,8 @@ export class VolumeAttachmentList extends pulumi.CustomResource { inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; } - if (!opts) { - opts = {} - } - if (!opts.version) { - opts.version = utilities.getVersion(); + opts = pulumi.mergeOptions(opts, { version: utilities.getVersion()}); } super(VolumeAttachmentList.__pulumiType, name, inputs, opts); } diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py index dba02e30d8..d1df52d5d2 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["webhooks"] = None return MutatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py index 5304dc19ef..1f4967b304 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return MutatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py index 5ff112e00e..bac7a89504 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["webhooks"] = None return ValidatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py index 1918de42ee..85fbda3e33 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ValidatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py index 7849488bfa..327d180872 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["webhooks"] = None return MutatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py index 850c0169cd..106f52bc39 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return MutatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py index 99d8768dee..00aea755e2 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["webhooks"] = None return ValidatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py index 1a67e021e3..20f46037f2 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ValidatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py index 21c60bb107..81f3d23491 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return CustomResourceDefinition(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py index 35d943da11..6471e31cf6 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py @@ -79,6 +79,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CustomResourceDefinitionList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py index fa7a3b3a57..7bbdf6d2a3 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return CustomResourceDefinition(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py index d65fbeb89e..7e56a2b27a 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py @@ -79,6 +79,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CustomResourceDefinitionList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py index 4451fd70e8..64bbb0d6fb 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py @@ -80,6 +80,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return APIService(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py index 0210a2e975..65229d5875 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return APIServiceList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py index 42eee87f66..228a53daa6 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py @@ -80,6 +80,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return APIService(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py index f28ca79256..2d7f71e872 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return APIServiceList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py index ab7b256aee..521f602142 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py @@ -83,6 +83,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["data"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["revision"] = None return ControllerRevision(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py index 6fe77500d7..221e9a3869 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py index 35a147027e..86bd1b98da 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return DaemonSet(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py index 37260278d8..ef5e8eadeb 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return DaemonSetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py index ca9a28b28e..f78393d9d5 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py @@ -104,6 +104,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Deployment(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py index 7f60b63d9d..31d4888b8c 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return DeploymentList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py index 71fd0a153c..958aa22928 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return ReplicaSet(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py index e0fe801fff..1ad7b799cb 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ReplicaSetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py index d0ecbbc5bb..63598924fb 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py @@ -97,6 +97,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return StatefulSet(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py index 913a8deb57..992f102c61 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py @@ -79,6 +79,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return StatefulSetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py index c0ee0c217d..d2d18b55e0 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py @@ -83,6 +83,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["data"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["revision"] = None return ControllerRevision(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py index 510ea4fc21..0bcc79afbb 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py index d0b9a3b0fb..2b6f42d368 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py @@ -104,6 +104,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Deployment(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py index 7a43b140dd..57742e0b77 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return DeploymentList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py index abdebf4f6b..4777501710 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py @@ -97,6 +97,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return StatefulSet(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py index 5882828c14..942eebffd3 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py @@ -79,6 +79,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return StatefulSetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py index 89e793006c..051c45350b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py @@ -83,6 +83,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["data"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["revision"] = None return ControllerRevision(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py index 7933bb2f95..f7920a5a40 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py index f27ed338e1..600cb920cd 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return DaemonSet(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py index cc8cb97d26..62628ce206 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return DaemonSetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py index 6f4bb181b7..bf84a312ef 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py @@ -104,6 +104,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Deployment(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py index ed4d19cd4e..0617e98df1 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return DeploymentList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py index b233c64d15..9932225d7a 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return ReplicaSet(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py index 6c4c78d8dd..e6233e97ea 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ReplicaSetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py index 5ffc010937..7591629ef0 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py @@ -97,6 +97,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return StatefulSet(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py index 0396e6d201..8d25498244 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py @@ -79,6 +79,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return StatefulSetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py index 19516a5703..e0534a51e7 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py @@ -77,6 +77,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return AuditSink(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py index cd558a9e09..a05d20f0e0 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py @@ -79,6 +79,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return AuditSinkList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py index 06c3837782..3f740ea7d9 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py @@ -79,6 +79,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return TokenRequest(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py index b881c0e2a0..0fd5520fd5 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return TokenReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py index 7602937650..47db1add3a 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return TokenReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py index 233608ba09..3372cfd418 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return LocalSubjectAccessReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py index 9ba05feae8..fad330be68 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return SelfSubjectAccessReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py index 2315618840..68aa150037 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return SelfSubjectRulesReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py index 5c3d71e62b..db41439c28 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return SubjectAccessReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py index 068b31ccf8..2fe15d2c23 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return LocalSubjectAccessReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py index f9b8126dd2..874c0524cf 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return SelfSubjectAccessReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py index 885841fc2f..9a63ad0632 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return SelfSubjectRulesReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py index 43f15b387d..c5228409bc 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return SubjectAccessReview(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py index 69aeb23b39..14988a7b4d 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py @@ -81,6 +81,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py index b902c2ff2c..10d316ca20 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py index c4e918f059..b1221ce1c1 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py @@ -81,6 +81,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py index 1551d857f4..bf7c4a3154 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py index 9c8f348441..a69d3892cc 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py @@ -81,6 +81,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py index ff85e7e029..9d4cdb4204 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/batch/v1/Job.py b/sdk/python/pulumi_kubernetes/batch/v1/Job.py index e58844bab2..5bc6678e0f 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/Job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/Job.py @@ -95,6 +95,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Job(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py index 179a0871af..9372fbb223 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return JobList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py index a270835378..ef0ef0687c 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py @@ -83,6 +83,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return CronJob(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py index 78899c07b0..86c999f1bd 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py @@ -82,6 +82,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CronJobList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py index a0cc9fc2af..76245dbedc 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py @@ -83,6 +83,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return CronJob(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py index 7f3d1267e3..8fbc485a84 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py @@ -82,6 +82,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CronJobList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py index fb07a32f7c..800c96b9c1 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py @@ -88,6 +88,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return CertificateSigningRequest(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py index dcc49d6276..edde629e2d 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py @@ -79,6 +79,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CertificateSigningRequestList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py index 1682a7be19..02c20f5ef8 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py @@ -80,6 +80,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return CertificateSigningRequest(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py index e15d9ef0f5..b032524afa 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py @@ -77,6 +77,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CertificateSigningRequestList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py index eec7360bc8..40897618f4 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return Lease(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py index 9cea7355dc..728d18a7c6 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return LeaseList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py index 3a71f3c22e..723d3068ed 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return Lease(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py index 62bb137b21..7c25112e2a 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return LeaseList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/Binding.py b/sdk/python/pulumi_kubernetes/core/v1/Binding.py index 541a3dbd1c..7b47c38441 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Binding.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Binding.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["target"] = None return Binding(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py index 24bcf7c886..614d0f6b6a 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py @@ -82,6 +82,12 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["binary_data"] = None + __props__["data"] = None + __props__["immutable"] = None + __props__["kind"] = None + __props__["metadata"] = None return ConfigMap(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py index 3faf93cbaf..e8c04d3e87 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ConfigMapList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py index fbeeee640f..5b0f3dfa0f 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py @@ -89,6 +89,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["subsets"] = None return Endpoints(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py index 2746032718..8a54aa91ff 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return EndpointsList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/Event.py b/sdk/python/pulumi_kubernetes/core/v1/Event.py index 3be1120057..a3db2fd0ba 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Event.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Event.py @@ -123,6 +123,23 @@ def get(resource_name: str, __props__ = dict() + __props__["action"] = None + __props__["api_version"] = None + __props__["count"] = None + __props__["event_time"] = None + __props__["first_timestamp"] = None + __props__["involved_object"] = None + __props__["kind"] = None + __props__["last_timestamp"] = None + __props__["message"] = None + __props__["metadata"] = None + __props__["reason"] = None + __props__["related"] = None + __props__["reporting_component"] = None + __props__["reporting_instance"] = None + __props__["series"] = None + __props__["source"] = None + __props__["type"] = None return Event(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/EventList.py b/sdk/python/pulumi_kubernetes/core/v1/EventList.py index 7c95801c6e..9dea27365d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EventList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EventList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return EventList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py index 132da1638e..a6a3ad9b11 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py @@ -78,6 +78,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return LimitRange(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py index c11d759172..2d761ba5b7 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return LimitRangeList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py index fbc7ffa420..adcf4f0549 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py @@ -79,6 +79,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Namespace(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py index c37abdef39..2cc1b31e1e 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return NamespaceList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/Node.py b/sdk/python/pulumi_kubernetes/core/v1/Node.py index 6d579900e3..2029414efd 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Node.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Node.py @@ -79,6 +79,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Node(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py index 2441d018bc..d094d2e93e 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return NodeList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py index 3f7f82d53c..b8c50568e8 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py @@ -79,6 +79,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return PersistentVolume(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py index 6c128ecb94..9514bec676 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py @@ -79,6 +79,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return PersistentVolumeClaim(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py index 0849979e91..7f277f4435 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PersistentVolumeClaimList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py index edd06d66cc..37ffdf7155 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PersistentVolumeList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/Pod.py b/sdk/python/pulumi_kubernetes/core/v1/Pod.py index 9348714a3e..0c22bac647 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Pod.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Pod.py @@ -94,6 +94,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Pod(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodList.py b/sdk/python/pulumi_kubernetes/core/v1/PodList.py index 0b96d7b216..d107ffb899 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PodList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py index 4701d7b0be..fe204a3f7e 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py @@ -78,6 +78,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["template"] = None return PodTemplate(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py index c3dae28c02..1187be9b48 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PodTemplateList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py index 332f3d6bef..2a0d7e79a4 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py @@ -79,6 +79,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return ReplicationController(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py index be634929f9..4995d28235 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ReplicationControllerList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py index 13ba6d8c23..a782e20e86 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py @@ -79,6 +79,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return ResourceQuota(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py index 1e6046e724..4ab9bc8dbb 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ResourceQuotaList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/Secret.py b/sdk/python/pulumi_kubernetes/core/v1/Secret.py index 10b1bd30de..4f4168c8ce 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Secret.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Secret.py @@ -97,6 +97,13 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["data"] = None + __props__["immutable"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["string_data"] = None + __props__["type"] = None return Secret(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py index f20deab7d0..b403ea29f4 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return SecretList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/Service.py b/sdk/python/pulumi_kubernetes/core/v1/Service.py index 9333481bbb..9771d2d6c0 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Service.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Service.py @@ -105,6 +105,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Service(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py index 5ba9e145ba..0aa8b53328 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py @@ -84,6 +84,12 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["automount_service_account_token"] = None + __props__["image_pull_secrets"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["secrets"] = None return ServiceAccount(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py index bb1ab75dcd..1bf1061f08 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ServiceAccountList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py index f8ac04cf3c..b2dc1f4936 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ServiceList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py index a99404a708..e13ab3f505 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py @@ -89,6 +89,12 @@ def get(resource_name: str, __props__ = dict() + __props__["address_type"] = None + __props__["api_version"] = None + __props__["endpoints"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["ports"] = None return EndpointSlice(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py index 34ba38f9d8..2de5acf87b 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return EndpointSliceList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/events/v1/Event.py b/sdk/python/pulumi_kubernetes/events/v1/Event.py index 18c2759c3a..8c155aaeb4 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/Event.py +++ b/sdk/python/pulumi_kubernetes/events/v1/Event.py @@ -123,6 +123,23 @@ def get(resource_name: str, __props__ = dict() + __props__["action"] = None + __props__["api_version"] = None + __props__["deprecated_count"] = None + __props__["deprecated_first_timestamp"] = None + __props__["deprecated_last_timestamp"] = None + __props__["deprecated_source"] = None + __props__["event_time"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["note"] = None + __props__["reason"] = None + __props__["regarding"] = None + __props__["related"] = None + __props__["reporting_controller"] = None + __props__["reporting_instance"] = None + __props__["series"] = None + __props__["type"] = None return Event(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/events/v1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1/EventList.py index f0d5aeb5a5..ed6e2252c9 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/EventList.py +++ b/sdk/python/pulumi_kubernetes/events/v1/EventList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return EventList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py index 0dfdbfe899..064d67d9c7 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py @@ -123,6 +123,23 @@ def get(resource_name: str, __props__ = dict() + __props__["action"] = None + __props__["api_version"] = None + __props__["deprecated_count"] = None + __props__["deprecated_first_timestamp"] = None + __props__["deprecated_last_timestamp"] = None + __props__["deprecated_source"] = None + __props__["event_time"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["note"] = None + __props__["reason"] = None + __props__["regarding"] = None + __props__["related"] = None + __props__["reporting_controller"] = None + __props__["reporting_instance"] = None + __props__["series"] = None + __props__["type"] = None return Event(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py index 29614ce74e..cba86162b6 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return EventList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py index 3de96c89b7..24ec2a3385 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return DaemonSet(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py index ab92edad8b..05ebd706d0 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return DaemonSetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py index b0bfa13d89..467979c5c7 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py @@ -104,6 +104,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Deployment(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py index 33c2247cd4..ecc276d536 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return DeploymentList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py index 521687347b..6b9fc15a83 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py @@ -96,6 +96,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Ingress(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py index bfe6ea35fb..9d5023d500 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return IngressList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py index 59c96140a3..8ad7450a6f 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return NetworkPolicy(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py index c81cab7198..c9c18bffb0 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return NetworkPolicyList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py index 350adcfe94..fd37e6fcb7 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return PodSecurityPolicy(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py index 7cee7767ad..944e39f8bd 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PodSecurityPolicyList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py index accace3218..e3ed4bb077 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py @@ -82,6 +82,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return ReplicaSet(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py index 8a7157b3c8..0bedfb8be9 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ReplicaSetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py index 2eeb06f6f7..e5987ac954 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py @@ -81,6 +81,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return FlowSchema(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py index a730c2bb80..59faa683cc 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return FlowSchemaList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py index e9eed4ece3..38f7b0b750 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py @@ -81,6 +81,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return PriorityLevelConfiguration(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py index c218769be1..56dcbfabcd 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PriorityLevelConfigurationList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py index 072c95bd89..872ebfef27 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py @@ -81,6 +81,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return FlowSchema(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py index b72a979828..221d2a332c 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return FlowSchemaList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py index 59a0ae6871..fdb9285bd4 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py @@ -81,6 +81,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return PriorityLevelConfiguration(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py index f03a47ca9c..5a6c3c2b6b 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PriorityLevelConfigurationList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/meta/v1/Status.py b/sdk/python/pulumi_kubernetes/meta/v1/Status.py index 71fffaf16c..5a17645717 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/Status.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/Status.py @@ -87,6 +87,14 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["code"] = None + __props__["details"] = None + __props__["kind"] = None + __props__["message"] = None + __props__["metadata"] = None + __props__["reason"] = None + __props__["status"] = None return Status(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py index 4366ed8f89..cbca6fd735 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py @@ -96,6 +96,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Ingress(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py index 2416576ddb..4c1dedda7f 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return IngressClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py index 9b99c3f8e5..85d087a812 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return IngressClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py index d35c528f3e..197bebdf15 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return IngressList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py index 5e7767df77..fd6dfb2dbd 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return NetworkPolicy(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py index b81d740f34..2b9128ff98 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return NetworkPolicyList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py index f1ec7c86d8..07d93e012a 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py @@ -96,6 +96,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return Ingress(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py index 05094ad11c..7d23e22ac1 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return IngressClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py index d8d3b749b7..70bb48491d 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return IngressClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py index f661fc9781..54ec04d7f2 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return IngressList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py index 53540ffae2..f79685b095 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py @@ -91,6 +91,12 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["handler"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["overhead"] = None + __props__["scheduling"] = None return RuntimeClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py index 8f461839be..c8be6e08a5 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return RuntimeClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py index f1f4d2b5d7..b0953f7861 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py @@ -83,6 +83,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return RuntimeClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py index e6cc6371c7..e4b7d6add7 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return RuntimeClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py index 3e5017a88e..be6d42ea64 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py @@ -89,6 +89,12 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["handler"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["overhead"] = None + __props__["scheduling"] = None return RuntimeClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py index aa15889180..1ebb68e8e6 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return RuntimeClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py index e8dadee121..881e99660d 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py @@ -78,6 +78,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return PodDisruptionBudget(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py index 08b92b5fe0..48ebd02e30 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py @@ -78,6 +78,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PodDisruptionBudgetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py index ba81d914f5..6440f570e9 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return PodSecurityPolicy(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py index 24482f7f62..ed4fb0d176 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PodSecurityPolicyList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py index dc6c44f7b8..488160932f 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py @@ -83,6 +83,11 @@ def get(resource_name: str, __props__ = dict() + __props__["aggregation_rule"] = None + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["rules"] = None return ClusterRole(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py index 0e2b4e215c..cf5c1af415 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py @@ -85,6 +85,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["role_ref"] = None + __props__["subjects"] = None return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py index 5bb758ff7d..98192bfa11 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py index c0aafb3d1c..cd90195bac 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ClusterRoleList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py index 50c3c773a0..7c767a46f9 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["rules"] = None return Role(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py index c481e1a83e..710b69e8e2 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py @@ -85,6 +85,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["role_ref"] = None + __props__["subjects"] = None return RoleBinding(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py index c052096de9..a2b5ce1dd6 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return RoleBindingList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py index d7c6681d62..32f2a19976 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return RoleList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py index f7977cb646..e666e7da8b 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py @@ -83,6 +83,11 @@ def get(resource_name: str, __props__ = dict() + __props__["aggregation_rule"] = None + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["rules"] = None return ClusterRole(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py index 818d0adbd9..b173c7764d 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py @@ -85,6 +85,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["role_ref"] = None + __props__["subjects"] = None return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py index bee0ec9f04..29301388ce 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py index 8dff92a859..a2bb56edd8 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ClusterRoleList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py index cf076c357e..3f7d6616ce 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["rules"] = None return Role(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py index c389108749..6d75f2d4a8 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py @@ -85,6 +85,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["role_ref"] = None + __props__["subjects"] = None return RoleBinding(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py index 6f5c369801..bed0f1ab45 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return RoleBindingList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py index 9f0d471953..374ddfb29c 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return RoleList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py index 7225b7ea72..839e60ae29 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py @@ -83,6 +83,11 @@ def get(resource_name: str, __props__ = dict() + __props__["aggregation_rule"] = None + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["rules"] = None return ClusterRole(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py index c88accef5e..e5c71af879 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py @@ -85,6 +85,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["role_ref"] = None + __props__["subjects"] = None return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py index c6ad8e6176..eefa4b8ab5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py index d252252d02..a3d4dfefa7 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return ClusterRoleList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py index 318b2d81eb..3e15d6798e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["rules"] = None return Role(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py index dc5bb48320..9051def087 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py @@ -85,6 +85,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["role_ref"] = None + __props__["subjects"] = None return RoleBinding(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py index 4f81bfb2d7..e8d18f0dd3 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return RoleBindingList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py index 403442a029..40f86af467 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return RoleList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py index 216deb803f..46a17e176b 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py @@ -89,6 +89,13 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["description"] = None + __props__["global_default"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["preemption_policy"] = None + __props__["value"] = None return PriorityClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py index 1d2351fe68..d07946442c 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PriorityClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py index 21fba8fd8f..72bcadfb31 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py @@ -89,6 +89,13 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["description"] = None + __props__["global_default"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["preemption_policy"] = None + __props__["value"] = None return PriorityClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py index 8c6ce35e0d..aab9af07fd 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PriorityClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py index 32985b907c..d4f599255f 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py @@ -89,6 +89,13 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["description"] = None + __props__["global_default"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["preemption_policy"] = None + __props__["value"] = None return PriorityClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py index e799869d2a..0d6466c565 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PriorityClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py index 6c3b0a4c1a..694396ad7c 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py @@ -77,6 +77,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return PodPreset(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py index e504b96c45..8d05e8317d 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return PodPresetList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py index 9c6a9913c5..8503637580 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py @@ -82,6 +82,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return CSIDriver(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py index 8975fcf1ce..bfb9423dbb 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CSIDriverList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py index 44992d62e6..6b8c1c868f 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py @@ -82,6 +82,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return CSINode(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py index ea7baa3f1c..13492b5606 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CSINodeList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py index 733239c326..09e65bdaa6 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py @@ -101,6 +101,16 @@ def get(resource_name: str, __props__ = dict() + __props__["allow_volume_expansion"] = None + __props__["allowed_topologies"] = None + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["mount_options"] = None + __props__["parameters"] = None + __props__["provisioner"] = None + __props__["reclaim_policy"] = None + __props__["volume_binding_mode"] = None return StorageClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py index ced4306d9d..9f7571baf3 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return StorageClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py index 66d9d4096f..fa9ecddfbb 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py @@ -86,6 +86,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return VolumeAttachment(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py index 70038dac60..e3771f0cfa 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py index b083842e7d..478a20e36e 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py @@ -86,6 +86,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return VolumeAttachment(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py index f319c686c0..bbc97bc31e 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py index a35fc97256..75bba6c8fe 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py @@ -82,6 +82,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return CSIDriver(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py index 21c7a4e306..ec42c9aaaf 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CSIDriverList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py index b41edc9e51..e6ea36778c 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py @@ -82,6 +82,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None return CSINode(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py index 8a35971632..f63028627d 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py @@ -80,6 +80,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return CSINodeList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py index c1e88bb32a..398d56c768 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py @@ -101,6 +101,16 @@ def get(resource_name: str, __props__ = dict() + __props__["allow_volume_expansion"] = None + __props__["allowed_topologies"] = None + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["mount_options"] = None + __props__["parameters"] = None + __props__["provisioner"] = None + __props__["reclaim_policy"] = None + __props__["volume_binding_mode"] = None return StorageClass(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py index aab76e843e..65f18ee9c2 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return StorageClassList(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py index 678c217049..5d60675909 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py @@ -86,6 +86,11 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["kind"] = None + __props__["metadata"] = None + __props__["spec"] = None + __props__["status"] = None return VolumeAttachment(resource_name, opts=opts, __props__=__props__) @property diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py index b2372ded61..4484d3093b 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py @@ -81,6 +81,10 @@ def get(resource_name: str, __props__ = dict() + __props__["api_version"] = None + __props__["items"] = None + __props__["kind"] = None + __props__["metadata"] = None return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) @property From 9f60fbb51a620fe79096c9b01db4b38fe6fab128 Mon Sep 17 00:00:00 2001 From: Komal Ali Date: Mon, 1 Mar 2021 10:15:32 -0800 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a66b676a91..70ae315af7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## HEAD (Unreleased) - Fix bug where rendering manifests results in files being overwritten by subsequent resources with the same kind and name, but different namespace (https://github.com/pulumi/pulumi-kubernetes/pull/1429) +- Update pulumi dependency to fix python Resource.get() functions (https://github.com/pulumi/pulumi-kubernetes/pull/1480) ## 2.8.2 (February 23, 2021)