From 9993a90fbfd295c8b8ad31ab763faeb40fd9ce95 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Mon, 23 Oct 2023 14:27:18 -0700 Subject: [PATCH] Automated Pulumi/Pulumi upgrade (#2623) --- provider/go.mod | 28 +- provider/go.sum | 41 +- sdk/go.mod | 12 +- sdk/go.sum | 24 +- sdk/python/pulumi_kubernetes/_inputs.py | 8 +- .../v1/MutatingWebhookConfiguration.py | 2 +- .../v1/MutatingWebhookConfigurationList.py | 6 +- .../v1/MutatingWebhookConfigurationPatch.py | 2 +- .../v1/ValidatingWebhookConfiguration.py | 2 +- .../v1/ValidatingWebhookConfigurationList.py | 6 +- .../v1/ValidatingWebhookConfigurationPatch.py | 2 +- .../admissionregistration/v1/_inputs.py | 140 +- .../admissionregistration/v1/outputs.py | 140 +- .../v1alpha1/ValidatingAdmissionPolicy.py | 2 +- .../ValidatingAdmissionPolicyBinding.py | 2 +- .../ValidatingAdmissionPolicyBindingList.py | 2 +- .../ValidatingAdmissionPolicyBindingPatch.py | 2 +- .../v1alpha1/ValidatingAdmissionPolicyList.py | 2 +- .../ValidatingAdmissionPolicyPatch.py | 2 +- .../admissionregistration/v1alpha1/_inputs.py | 136 +- .../admissionregistration/v1alpha1/outputs.py | 144 +- .../v1beta1/MutatingWebhookConfiguration.py | 2 +- .../MutatingWebhookConfigurationList.py | 6 +- .../MutatingWebhookConfigurationPatch.py | 2 +- .../v1beta1/ValidatingAdmissionPolicy.py | 2 +- .../ValidatingAdmissionPolicyBinding.py | 2 +- .../ValidatingAdmissionPolicyBindingList.py | 2 +- .../ValidatingAdmissionPolicyBindingPatch.py | 2 +- .../v1beta1/ValidatingAdmissionPolicyList.py | 2 +- .../v1beta1/ValidatingAdmissionPolicyPatch.py | 2 +- .../v1beta1/ValidatingWebhookConfiguration.py | 2 +- .../ValidatingWebhookConfigurationList.py | 6 +- .../ValidatingWebhookConfigurationPatch.py | 2 +- .../admissionregistration/v1beta1/_inputs.py | 240 +- .../admissionregistration/v1beta1/outputs.py | 248 +- .../v1/CustomResourceDefinition.py | 6 +- .../v1/CustomResourceDefinitionList.py | 6 +- .../v1/CustomResourceDefinitionPatch.py | 2 +- .../apiextensions/v1/_inputs.py | 244 +- .../apiextensions/v1/outputs.py | 250 +- .../v1beta1/CustomResourceDefinition.py | 6 +- .../v1beta1/CustomResourceDefinitionList.py | 6 +- .../v1beta1/CustomResourceDefinitionPatch.py | 2 +- .../apiextensions/v1beta1/_inputs.py | 228 +- .../apiextensions/v1beta1/outputs.py | 234 +- .../apiregistration/v1/APIService.py | 2 +- .../apiregistration/v1/APIServiceList.py | 6 +- .../apiregistration/v1/APIServicePatch.py | 2 +- .../apiregistration/v1/_inputs.py | 36 +- .../apiregistration/v1/outputs.py | 38 +- .../apiregistration/v1beta1/APIService.py | 2 +- .../apiregistration/v1beta1/APIServiceList.py | 6 +- .../v1beta1/APIServicePatch.py | 2 +- .../apiregistration/v1beta1/_inputs.py | 40 +- .../apiregistration/v1beta1/outputs.py | 42 +- .../apps/v1/ControllerRevision.py | 6 +- .../apps/v1/ControllerRevisionList.py | 6 +- .../apps/v1/ControllerRevisionPatch.py | 2 +- .../pulumi_kubernetes/apps/v1/DaemonSet.py | 2 +- .../apps/v1/DaemonSetList.py | 6 +- .../apps/v1/DaemonSetPatch.py | 2 +- .../pulumi_kubernetes/apps/v1/Deployment.py | 2 +- .../apps/v1/DeploymentList.py | 6 +- .../apps/v1/DeploymentPatch.py | 2 +- .../pulumi_kubernetes/apps/v1/ReplicaSet.py | 2 +- .../apps/v1/ReplicaSetList.py | 6 +- .../apps/v1/ReplicaSetPatch.py | 2 +- .../pulumi_kubernetes/apps/v1/StatefulSet.py | 2 +- .../apps/v1/StatefulSetList.py | 6 +- .../apps/v1/StatefulSetPatch.py | 2 +- .../pulumi_kubernetes/apps/v1/_inputs.py | 262 +- .../pulumi_kubernetes/apps/v1/outputs.py | 326 ++- .../apps/v1beta1/ControllerRevision.py | 6 +- .../apps/v1beta1/ControllerRevisionList.py | 6 +- .../apps/v1beta1/ControllerRevisionPatch.py | 2 +- .../apps/v1beta1/Deployment.py | 2 +- .../apps/v1beta1/DeploymentList.py | 6 +- .../apps/v1beta1/DeploymentPatch.py | 2 +- .../apps/v1beta1/StatefulSet.py | 2 +- .../apps/v1beta1/StatefulSetList.py | 6 +- .../apps/v1beta1/StatefulSetPatch.py | 2 +- .../pulumi_kubernetes/apps/v1beta1/_inputs.py | 126 +- .../pulumi_kubernetes/apps/v1beta1/outputs.py | 158 +- .../apps/v1beta2/ControllerRevision.py | 6 +- .../apps/v1beta2/ControllerRevisionList.py | 6 +- .../apps/v1beta2/ControllerRevisionPatch.py | 2 +- .../apps/v1beta2/DaemonSet.py | 2 +- .../apps/v1beta2/DaemonSetList.py | 6 +- .../apps/v1beta2/DaemonSetPatch.py | 2 +- .../apps/v1beta2/Deployment.py | 2 +- .../apps/v1beta2/DeploymentList.py | 6 +- .../apps/v1beta2/DeploymentPatch.py | 2 +- .../apps/v1beta2/ReplicaSet.py | 2 +- .../apps/v1beta2/ReplicaSetList.py | 6 +- .../apps/v1beta2/ReplicaSetPatch.py | 2 +- .../apps/v1beta2/StatefulSet.py | 2 +- .../apps/v1beta2/StatefulSetList.py | 6 +- .../apps/v1beta2/StatefulSetPatch.py | 2 +- .../pulumi_kubernetes/apps/v1beta2/_inputs.py | 236 +- .../pulumi_kubernetes/apps/v1beta2/outputs.py | 298 ++- .../auditregistration/v1alpha1/AuditSink.py | 2 +- .../v1alpha1/AuditSinkList.py | 6 +- .../v1alpha1/AuditSinkPatch.py | 2 +- .../auditregistration/v1alpha1/_inputs.py | 34 +- .../auditregistration/v1alpha1/outputs.py | 34 +- .../autoscaling/v1/HorizontalPodAutoscaler.py | 2 +- .../v1/HorizontalPodAutoscalerList.py | 6 +- .../v1/HorizontalPodAutoscalerPatch.py | 2 +- .../autoscaling/v1/_inputs.py | 56 +- .../autoscaling/v1/outputs.py | 66 +- .../autoscaling/v2/HorizontalPodAutoscaler.py | 2 +- .../v2/HorizontalPodAutoscalerList.py | 6 +- .../v2/HorizontalPodAutoscalerPatch.py | 2 +- .../autoscaling/v2/_inputs.py | 226 +- .../autoscaling/v2/outputs.py | 246 +- .../v2beta1/HorizontalPodAutoscaler.py | 2 +- .../v2beta1/HorizontalPodAutoscalerList.py | 6 +- .../v2beta1/HorizontalPodAutoscalerPatch.py | 2 +- .../autoscaling/v2beta1/_inputs.py | 242 +- .../autoscaling/v2beta1/outputs.py | 282 +- .../v2beta2/HorizontalPodAutoscaler.py | 2 +- .../v2beta2/HorizontalPodAutoscalerList.py | 6 +- .../v2beta2/HorizontalPodAutoscalerPatch.py | 2 +- .../autoscaling/v2beta2/_inputs.py | 234 +- .../autoscaling/v2beta2/outputs.py | 254 +- .../pulumi_kubernetes/batch/v1/CronJob.py | 2 +- .../pulumi_kubernetes/batch/v1/CronJobList.py | 6 +- .../batch/v1/CronJobPatch.py | 2 +- sdk/python/pulumi_kubernetes/batch/v1/Job.py | 2 +- .../pulumi_kubernetes/batch/v1/JobList.py | 6 +- .../pulumi_kubernetes/batch/v1/JobPatch.py | 2 +- .../pulumi_kubernetes/batch/v1/_inputs.py | 142 +- .../pulumi_kubernetes/batch/v1/outputs.py | 160 +- .../batch/v1beta1/CronJob.py | 2 +- .../batch/v1beta1/CronJobList.py | 6 +- .../batch/v1beta1/CronJobPatch.py | 2 +- .../batch/v1beta1/_inputs.py | 32 +- .../batch/v1beta1/outputs.py | 34 +- .../batch/v2alpha1/CronJob.py | 2 +- .../batch/v2alpha1/CronJobList.py | 6 +- .../batch/v2alpha1/CronJobPatch.py | 2 +- .../batch/v2alpha1/_inputs.py | 32 +- .../batch/v2alpha1/outputs.py | 34 +- .../v1/CertificateSigningRequest.py | 6 +- .../v1/CertificateSigningRequestList.py | 6 +- .../v1/CertificateSigningRequestPatch.py | 2 +- .../certificates/v1/_inputs.py | 34 +- .../certificates/v1/outputs.py | 38 +- .../v1alpha1/ClusterTrustBundle.py | 6 +- .../v1alpha1/ClusterTrustBundleList.py | 6 +- .../v1alpha1/ClusterTrustBundlePatch.py | 2 +- .../certificates/v1alpha1/_inputs.py | 18 +- .../certificates/v1alpha1/outputs.py | 18 +- .../v1beta1/CertificateSigningRequest.py | 2 +- .../v1beta1/CertificateSigningRequestList.py | 6 +- .../v1beta1/CertificateSigningRequestPatch.py | 2 +- .../certificates/v1beta1/_inputs.py | 18 +- .../certificates/v1beta1/outputs.py | 22 +- .../coordination/v1/Lease.py | 2 +- .../coordination/v1/LeaseList.py | 6 +- .../coordination/v1/LeasePatch.py | 2 +- .../coordination/v1/_inputs.py | 22 +- .../coordination/v1/outputs.py | 22 +- .../coordination/v1beta1/Lease.py | 2 +- .../coordination/v1beta1/LeaseList.py | 6 +- .../coordination/v1beta1/LeasePatch.py | 2 +- .../coordination/v1beta1/_inputs.py | 22 +- .../coordination/v1beta1/outputs.py | 22 +- .../pulumi_kubernetes/core/v1/Binding.py | 6 +- .../pulumi_kubernetes/core/v1/BindingPatch.py | 2 +- .../pulumi_kubernetes/core/v1/ConfigMap.py | 4 +- .../core/v1/ConfigMapList.py | 6 +- .../core/v1/ConfigMapPatch.py | 4 +- .../pulumi_kubernetes/core/v1/Endpoints.py | 2 +- .../core/v1/EndpointsList.py | 6 +- .../core/v1/EndpointsPatch.py | 2 +- sdk/python/pulumi_kubernetes/core/v1/Event.py | 22 +- .../pulumi_kubernetes/core/v1/EventList.py | 6 +- .../pulumi_kubernetes/core/v1/EventPatch.py | 14 +- .../pulumi_kubernetes/core/v1/LimitRange.py | 2 +- .../core/v1/LimitRangeList.py | 6 +- .../core/v1/LimitRangePatch.py | 2 +- .../pulumi_kubernetes/core/v1/Namespace.py | 2 +- .../core/v1/NamespaceList.py | 6 +- .../core/v1/NamespacePatch.py | 2 +- sdk/python/pulumi_kubernetes/core/v1/Node.py | 2 +- .../pulumi_kubernetes/core/v1/NodeList.py | 6 +- .../pulumi_kubernetes/core/v1/NodePatch.py | 2 +- .../core/v1/PersistentVolume.py | 2 +- .../core/v1/PersistentVolumeClaim.py | 2 +- .../core/v1/PersistentVolumeClaimList.py | 6 +- .../core/v1/PersistentVolumeClaimPatch.py | 2 +- .../core/v1/PersistentVolumeList.py | 6 +- .../core/v1/PersistentVolumePatch.py | 2 +- sdk/python/pulumi_kubernetes/core/v1/Pod.py | 2 +- .../pulumi_kubernetes/core/v1/PodList.py | 6 +- .../pulumi_kubernetes/core/v1/PodPatch.py | 2 +- .../pulumi_kubernetes/core/v1/PodTemplate.py | 2 +- .../core/v1/PodTemplateList.py | 6 +- .../core/v1/PodTemplatePatch.py | 2 +- .../core/v1/ReplicationController.py | 2 +- .../core/v1/ReplicationControllerList.py | 6 +- .../core/v1/ReplicationControllerPatch.py | 2 +- .../core/v1/ResourceQuota.py | 2 +- .../core/v1/ResourceQuotaList.py | 6 +- .../core/v1/ResourceQuotaPatch.py | 2 +- .../pulumi_kubernetes/core/v1/Secret.py | 4 +- .../pulumi_kubernetes/core/v1/SecretList.py | 6 +- .../pulumi_kubernetes/core/v1/SecretPatch.py | 4 +- .../pulumi_kubernetes/core/v1/Service.py | 2 +- .../core/v1/ServiceAccount.py | 6 +- .../core/v1/ServiceAccountList.py | 6 +- .../core/v1/ServiceAccountPatch.py | 6 +- .../pulumi_kubernetes/core/v1/ServiceList.py | 6 +- .../pulumi_kubernetes/core/v1/ServicePatch.py | 2 +- .../pulumi_kubernetes/core/v1/_inputs.py | 2252 +++++++++------- .../pulumi_kubernetes/core/v1/outputs.py | 2356 ++++++++++------- .../discovery/v1/EndpointSlice.py | 12 +- .../discovery/v1/EndpointSliceList.py | 6 +- .../discovery/v1/EndpointSlicePatch.py | 4 +- .../pulumi_kubernetes/discovery/v1/_inputs.py | 40 +- .../pulumi_kubernetes/discovery/v1/outputs.py | 40 +- .../discovery/v1beta1/EndpointSlice.py | 12 +- .../discovery/v1beta1/EndpointSliceList.py | 6 +- .../discovery/v1beta1/EndpointSlicePatch.py | 4 +- .../discovery/v1beta1/_inputs.py | 28 +- .../discovery/v1beta1/outputs.py | 28 +- .../pulumi_kubernetes/events/v1/Event.py | 20 +- .../pulumi_kubernetes/events/v1/EventList.py | 6 +- .../pulumi_kubernetes/events/v1/EventPatch.py | 16 +- .../pulumi_kubernetes/events/v1/_inputs.py | 32 +- .../pulumi_kubernetes/events/v1/outputs.py | 32 +- .../pulumi_kubernetes/events/v1beta1/Event.py | 20 +- .../events/v1beta1/EventList.py | 6 +- .../events/v1beta1/EventPatch.py | 16 +- .../events/v1beta1/_inputs.py | 36 +- .../events/v1beta1/outputs.py | 36 +- .../extensions/v1beta1/DaemonSet.py | 2 +- .../extensions/v1beta1/DaemonSetList.py | 6 +- .../extensions/v1beta1/DaemonSetPatch.py | 2 +- .../extensions/v1beta1/Deployment.py | 2 +- .../extensions/v1beta1/DeploymentList.py | 6 +- .../extensions/v1beta1/DeploymentPatch.py | 2 +- .../extensions/v1beta1/Ingress.py | 2 +- .../extensions/v1beta1/IngressList.py | 6 +- .../extensions/v1beta1/IngressPatch.py | 2 +- .../extensions/v1beta1/NetworkPolicy.py | 2 +- .../extensions/v1beta1/NetworkPolicyList.py | 6 +- .../extensions/v1beta1/NetworkPolicyPatch.py | 2 +- .../extensions/v1beta1/PodSecurityPolicy.py | 2 +- .../v1beta1/PodSecurityPolicyList.py | 6 +- .../v1beta1/PodSecurityPolicyPatch.py | 2 +- .../extensions/v1beta1/ReplicaSet.py | 2 +- .../extensions/v1beta1/ReplicaSetList.py | 6 +- .../extensions/v1beta1/ReplicaSetPatch.py | 2 +- .../extensions/v1beta1/_inputs.py | 404 +-- .../extensions/v1beta1/outputs.py | 452 ++-- .../flowcontrol/v1alpha1/FlowSchema.py | 2 +- .../flowcontrol/v1alpha1/FlowSchemaList.py | 6 +- .../flowcontrol/v1alpha1/FlowSchemaPatch.py | 2 +- .../v1alpha1/PriorityLevelConfiguration.py | 2 +- .../PriorityLevelConfigurationList.py | 6 +- .../PriorityLevelConfigurationPatch.py | 2 +- .../flowcontrol/v1alpha1/_inputs.py | 124 +- .../flowcontrol/v1alpha1/outputs.py | 128 +- .../flowcontrol/v1beta1/FlowSchema.py | 2 +- .../flowcontrol/v1beta1/FlowSchemaList.py | 6 +- .../flowcontrol/v1beta1/FlowSchemaPatch.py | 2 +- .../v1beta1/PriorityLevelConfiguration.py | 2 +- .../v1beta1/PriorityLevelConfigurationList.py | 6 +- .../PriorityLevelConfigurationPatch.py | 2 +- .../flowcontrol/v1beta1/_inputs.py | 124 +- .../flowcontrol/v1beta1/outputs.py | 128 +- .../flowcontrol/v1beta2/FlowSchema.py | 2 +- .../flowcontrol/v1beta2/FlowSchemaList.py | 6 +- .../flowcontrol/v1beta2/FlowSchemaPatch.py | 2 +- .../v1beta2/PriorityLevelConfiguration.py | 2 +- .../v1beta2/PriorityLevelConfigurationList.py | 6 +- .../PriorityLevelConfigurationPatch.py | 2 +- .../flowcontrol/v1beta2/_inputs.py | 140 +- .../flowcontrol/v1beta2/outputs.py | 144 +- .../flowcontrol/v1beta3/FlowSchema.py | 2 +- .../flowcontrol/v1beta3/FlowSchemaList.py | 6 +- .../flowcontrol/v1beta3/FlowSchemaPatch.py | 2 +- .../v1beta3/PriorityLevelConfiguration.py | 2 +- .../v1beta3/PriorityLevelConfigurationList.py | 6 +- .../PriorityLevelConfigurationPatch.py | 2 +- .../flowcontrol/v1beta3/_inputs.py | 140 +- .../flowcontrol/v1beta3/outputs.py | 144 +- .../pulumi_kubernetes/helm/v3/Release.py | 42 +- .../pulumi_kubernetes/helm/v3/_inputs.py | 6 +- .../pulumi_kubernetes/helm/v3/outputs.py | 12 +- .../pulumi_kubernetes/meta/v1/Status.py | 2 +- .../pulumi_kubernetes/meta/v1/StatusPatch.py | 2 +- .../pulumi_kubernetes/meta/v1/_inputs.py | 132 +- .../pulumi_kubernetes/meta/v1/outputs.py | 136 +- .../networking/v1/Ingress.py | 2 +- .../networking/v1/IngressClass.py | 2 +- .../networking/v1/IngressClassList.py | 6 +- .../networking/v1/IngressClassPatch.py | 2 +- .../networking/v1/IngressList.py | 6 +- .../networking/v1/IngressPatch.py | 2 +- .../networking/v1/NetworkPolicy.py | 2 +- .../networking/v1/NetworkPolicyList.py | 6 +- .../networking/v1/NetworkPolicyPatch.py | 2 +- .../networking/v1/_inputs.py | 100 +- .../networking/v1/outputs.py | 102 +- .../networking/v1alpha1/ClusterCIDR.py | 2 +- .../networking/v1alpha1/ClusterCIDRList.py | 6 +- .../networking/v1alpha1/ClusterCIDRPatch.py | 2 +- .../networking/v1alpha1/IPAddress.py | 2 +- .../networking/v1alpha1/IPAddressList.py | 6 +- .../networking/v1alpha1/IPAddressPatch.py | 2 +- .../networking/v1alpha1/_inputs.py | 20 +- .../networking/v1alpha1/outputs.py | 20 +- .../networking/v1beta1/Ingress.py | 2 +- .../networking/v1beta1/IngressClass.py | 2 +- .../networking/v1beta1/IngressClassList.py | 6 +- .../networking/v1beta1/IngressClassPatch.py | 2 +- .../networking/v1beta1/IngressList.py | 6 +- .../networking/v1beta1/IngressPatch.py | 2 +- .../networking/v1beta1/_inputs.py | 42 +- .../networking/v1beta1/outputs.py | 44 +- .../pulumi_kubernetes/node/v1/RuntimeClass.py | 6 +- .../node/v1/RuntimeClassList.py | 6 +- .../node/v1/RuntimeClassPatch.py | 2 +- .../pulumi_kubernetes/node/v1/_inputs.py | 14 +- .../pulumi_kubernetes/node/v1/outputs.py | 14 +- .../node/v1alpha1/RuntimeClass.py | 6 +- .../node/v1alpha1/RuntimeClassList.py | 6 +- .../node/v1alpha1/RuntimeClassPatch.py | 2 +- .../node/v1alpha1/_inputs.py | 22 +- .../node/v1alpha1/outputs.py | 22 +- .../node/v1beta1/RuntimeClass.py | 6 +- .../node/v1beta1/RuntimeClassList.py | 6 +- .../node/v1beta1/RuntimeClassPatch.py | 2 +- .../pulumi_kubernetes/node/v1beta1/_inputs.py | 14 +- .../pulumi_kubernetes/node/v1beta1/outputs.py | 14 +- .../policy/v1/PodDisruptionBudget.py | 2 +- .../policy/v1/PodDisruptionBudgetList.py | 6 +- .../policy/v1/PodDisruptionBudgetPatch.py | 2 +- .../pulumi_kubernetes/policy/v1/_inputs.py | 42 +- .../pulumi_kubernetes/policy/v1/outputs.py | 54 +- .../policy/v1beta1/PodDisruptionBudget.py | 2 +- .../policy/v1beta1/PodDisruptionBudgetList.py | 6 +- .../v1beta1/PodDisruptionBudgetPatch.py | 2 +- .../policy/v1beta1/PodSecurityPolicy.py | 2 +- .../policy/v1beta1/PodSecurityPolicyList.py | 6 +- .../policy/v1beta1/PodSecurityPolicyPatch.py | 2 +- .../policy/v1beta1/_inputs.py | 204 +- .../policy/v1beta1/outputs.py | 216 +- sdk/python/pulumi_kubernetes/provider.py | 18 +- .../pulumi_kubernetes/rbac/v1/ClusterRole.py | 4 +- .../rbac/v1/ClusterRoleBinding.py | 8 +- .../rbac/v1/ClusterRoleBindingList.py | 6 +- .../rbac/v1/ClusterRoleBindingPatch.py | 4 +- .../rbac/v1/ClusterRoleList.py | 6 +- .../rbac/v1/ClusterRolePatch.py | 4 +- sdk/python/pulumi_kubernetes/rbac/v1/Role.py | 2 +- .../pulumi_kubernetes/rbac/v1/RoleBinding.py | 8 +- .../rbac/v1/RoleBindingList.py | 6 +- .../rbac/v1/RoleBindingPatch.py | 4 +- .../pulumi_kubernetes/rbac/v1/RoleList.py | 6 +- .../pulumi_kubernetes/rbac/v1/RolePatch.py | 2 +- .../pulumi_kubernetes/rbac/v1/_inputs.py | 70 +- .../pulumi_kubernetes/rbac/v1/outputs.py | 70 +- .../rbac/v1alpha1/ClusterRole.py | 4 +- .../rbac/v1alpha1/ClusterRoleBinding.py | 8 +- .../rbac/v1alpha1/ClusterRoleBindingList.py | 6 +- .../rbac/v1alpha1/ClusterRoleBindingPatch.py | 4 +- .../rbac/v1alpha1/ClusterRoleList.py | 6 +- .../rbac/v1alpha1/ClusterRolePatch.py | 4 +- .../pulumi_kubernetes/rbac/v1alpha1/Role.py | 2 +- .../rbac/v1alpha1/RoleBinding.py | 8 +- .../rbac/v1alpha1/RoleBindingList.py | 6 +- .../rbac/v1alpha1/RoleBindingPatch.py | 4 +- .../rbac/v1alpha1/RoleList.py | 6 +- .../rbac/v1alpha1/RolePatch.py | 2 +- .../rbac/v1alpha1/_inputs.py | 70 +- .../rbac/v1alpha1/outputs.py | 70 +- .../rbac/v1beta1/ClusterRole.py | 4 +- .../rbac/v1beta1/ClusterRoleBinding.py | 8 +- .../rbac/v1beta1/ClusterRoleBindingList.py | 6 +- .../rbac/v1beta1/ClusterRoleBindingPatch.py | 4 +- .../rbac/v1beta1/ClusterRoleList.py | 6 +- .../rbac/v1beta1/ClusterRolePatch.py | 4 +- .../pulumi_kubernetes/rbac/v1beta1/Role.py | 2 +- .../rbac/v1beta1/RoleBinding.py | 8 +- .../rbac/v1beta1/RoleBindingList.py | 6 +- .../rbac/v1beta1/RoleBindingPatch.py | 4 +- .../rbac/v1beta1/RoleList.py | 6 +- .../rbac/v1beta1/RolePatch.py | 2 +- .../pulumi_kubernetes/rbac/v1beta1/_inputs.py | 70 +- .../pulumi_kubernetes/rbac/v1beta1/outputs.py | 70 +- .../resource/v1alpha1/PodScheduling.py | 6 +- .../resource/v1alpha1/PodSchedulingList.py | 6 +- .../resource/v1alpha1/PodSchedulingPatch.py | 2 +- .../resource/v1alpha1/ResourceClaim.py | 6 +- .../resource/v1alpha1/ResourceClaimList.py | 6 +- .../resource/v1alpha1/ResourceClaimPatch.py | 2 +- .../v1alpha1/ResourceClaimTemplate.py | 6 +- .../v1alpha1/ResourceClaimTemplateList.py | 6 +- .../v1alpha1/ResourceClaimTemplatePatch.py | 2 +- .../resource/v1alpha1/ResourceClass.py | 12 +- .../resource/v1alpha1/ResourceClassList.py | 6 +- .../resource/v1alpha1/ResourceClassPatch.py | 8 +- .../resource/v1alpha1/_inputs.py | 110 +- .../resource/v1alpha1/outputs.py | 126 +- .../resource/v1alpha2/PodSchedulingContext.py | 6 +- .../v1alpha2/PodSchedulingContextList.py | 6 +- .../v1alpha2/PodSchedulingContextPatch.py | 2 +- .../resource/v1alpha2/ResourceClaim.py | 6 +- .../resource/v1alpha2/ResourceClaimList.py | 6 +- .../resource/v1alpha2/ResourceClaimPatch.py | 2 +- .../v1alpha2/ResourceClaimTemplate.py | 6 +- .../v1alpha2/ResourceClaimTemplateList.py | 6 +- .../v1alpha2/ResourceClaimTemplatePatch.py | 2 +- .../resource/v1alpha2/ResourceClass.py | 12 +- .../resource/v1alpha2/ResourceClassList.py | 6 +- .../resource/v1alpha2/ResourceClassPatch.py | 8 +- .../resource/v1alpha2/_inputs.py | 112 +- .../resource/v1alpha2/outputs.py | 130 +- .../scheduling/v1/PriorityClass.py | 10 +- .../scheduling/v1/PriorityClassList.py | 6 +- .../scheduling/v1/PriorityClassPatch.py | 6 +- .../scheduling/v1/_inputs.py | 10 +- .../scheduling/v1/outputs.py | 10 +- .../scheduling/v1alpha1/PriorityClass.py | 10 +- .../scheduling/v1alpha1/PriorityClassList.py | 6 +- .../scheduling/v1alpha1/PriorityClassPatch.py | 6 +- .../scheduling/v1alpha1/_inputs.py | 10 +- .../scheduling/v1alpha1/outputs.py | 10 +- .../scheduling/v1beta1/PriorityClass.py | 10 +- .../scheduling/v1beta1/PriorityClassList.py | 6 +- .../scheduling/v1beta1/PriorityClassPatch.py | 6 +- .../scheduling/v1beta1/_inputs.py | 10 +- .../scheduling/v1beta1/outputs.py | 10 +- .../settings/v1alpha1/PodPreset.py | 2 +- .../settings/v1alpha1/PodPresetList.py | 6 +- .../settings/v1alpha1/PodPresetPatch.py | 2 +- .../settings/v1alpha1/_inputs.py | 10 +- .../settings/v1alpha1/outputs.py | 10 +- .../pulumi_kubernetes/storage/v1/CSIDriver.py | 6 +- .../storage/v1/CSIDriverList.py | 6 +- .../storage/v1/CSIDriverPatch.py | 2 +- .../pulumi_kubernetes/storage/v1/CSINode.py | 6 +- .../storage/v1/CSINodeList.py | 6 +- .../storage/v1/CSINodePatch.py | 2 +- .../storage/v1/CSIStorageCapacity.py | 12 +- .../storage/v1/CSIStorageCapacityList.py | 6 +- .../storage/v1/CSIStorageCapacityPatch.py | 8 +- .../storage/v1/StorageClass.py | 16 +- .../storage/v1/StorageClassList.py | 6 +- .../storage/v1/StorageClassPatch.py | 12 +- .../storage/v1/VolumeAttachment.py | 6 +- .../storage/v1/VolumeAttachmentList.py | 6 +- .../storage/v1/VolumeAttachmentPatch.py | 2 +- .../pulumi_kubernetes/storage/v1/_inputs.py | 140 +- .../pulumi_kubernetes/storage/v1/outputs.py | 146 +- .../storage/v1alpha1/VolumeAttachment.py | 6 +- .../storage/v1alpha1/VolumeAttachmentList.py | 6 +- .../storage/v1alpha1/VolumeAttachmentPatch.py | 2 +- .../storage/v1alpha1/_inputs.py | 40 +- .../storage/v1alpha1/outputs.py | 46 +- .../storage/v1beta1/CSIDriver.py | 6 +- .../storage/v1beta1/CSIDriverList.py | 6 +- .../storage/v1beta1/CSIDriverPatch.py | 2 +- .../storage/v1beta1/CSINode.py | 6 +- .../storage/v1beta1/CSINodeList.py | 6 +- .../storage/v1beta1/CSINodePatch.py | 2 +- .../storage/v1beta1/CSIStorageCapacity.py | 12 +- .../storage/v1beta1/CSIStorageCapacityList.py | 6 +- .../v1beta1/CSIStorageCapacityPatch.py | 8 +- .../storage/v1beta1/StorageClass.py | 16 +- .../storage/v1beta1/StorageClassList.py | 6 +- .../storage/v1beta1/StorageClassPatch.py | 12 +- .../storage/v1beta1/VolumeAttachment.py | 6 +- .../storage/v1beta1/VolumeAttachmentList.py | 6 +- .../storage/v1beta1/VolumeAttachmentPatch.py | 2 +- .../storage/v1beta1/_inputs.py | 136 +- .../storage/v1beta1/outputs.py | 142 +- tests/go.mod | 30 +- tests/go.sum | 42 +- 483 files changed, 10226 insertions(+), 7227 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index 3846d38bad..341fc940da 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -12,8 +12,8 @@ require ( github.com/mitchellh/mapstructure v1.5.0 github.com/pkg/errors v0.9.1 github.com/pulumi/cloud-ready-checks v1.0.1-0.20230201174945-00fe9c1b68fd - github.com/pulumi/pulumi/pkg/v3 v3.89.0 - github.com/pulumi/pulumi/sdk/v3 v3.89.0 + github.com/pulumi/pulumi/pkg/v3 v3.90.0 + github.com/pulumi/pulumi/sdk/v3 v3.90.0 github.com/stretchr/testify v1.8.4 golang.org/x/crypto v0.14.0 google.golang.org/grpc v1.58.2 @@ -85,7 +85,6 @@ require ( github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-metrics v0.0.1 // indirect github.com/docker/go-units v0.5.0 // indirect - github.com/dustin/go-humanize v1.0.1 // indirect github.com/emirpasic/gods v1.18.1 // indirect github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect github.com/fatih/color v1.13.0 // indirect @@ -127,14 +126,12 @@ require ( github.com/hashicorp/vault/sdk v0.6.1 // indirect github.com/huandu/xstrings v1.4.0 // indirect github.com/iancoleman/strcase v0.2.0 // indirect - github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmoiron/sqlx v1.3.5 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect @@ -145,7 +142,6 @@ require ( github.com/mattn/go-isatty v0.0.18 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect - github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-ps v1.0.0 // indirect @@ -201,7 +197,7 @@ require ( go.uber.org/atomic v1.11.0 // indirect gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/net v0.16.0 // indirect + golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.12.0 // indirect golang.org/x/sync v0.4.0 // indirect golang.org/x/sys v0.13.0 // indirect @@ -232,12 +228,6 @@ require ( cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/longrunning v0.5.1 // indirect github.com/AdaLogics/go-fuzz-headers v0.0.0-20230106234847-43070de90fa1 // indirect - github.com/AlecAivazis/survey/v2 v2.3.7 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect github.com/Microsoft/go-winio v0.6.0 // indirect github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 // indirect github.com/acomagu/bufpipe v1.0.3 // indirect @@ -245,15 +235,8 @@ require ( github.com/armon/go-metrics v0.4.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/atotto/clipboard v0.1.4 // indirect - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3 // indirect - github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.21 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.27 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.21 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.3 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.10 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.13.9 // indirect - github.com/aws/aws-sdk-go-v2/service/s3 v1.27.2 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/charmbracelet/bubbles v0.16.1 // indirect github.com/charmbracelet/bubbletea v0.24.2 // indirect @@ -268,7 +251,6 @@ require ( github.com/go-git/go-billy/v5 v5.4.0 // indirect github.com/go-git/go-git/v5 v5.6.0 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect github.com/google/s2a-go v0.1.4 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.4 // indirect github.com/hashicorp/go-hclog v1.2.2 // indirect @@ -282,7 +264,6 @@ require ( github.com/hashicorp/golang-lru v0.5.4 // indirect github.com/hashicorp/yamux v0.1.1 // indirect github.com/klauspost/compress v1.16.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/mattn/go-localereader v0.0.1 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect @@ -293,8 +274,7 @@ require ( github.com/natefinch/atomic v1.0.1 // indirect github.com/oklog/run v1.1.0 // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect - github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect - github.com/pulumi/esc v0.5.2 // indirect + github.com/pulumi/esc v0.5.6 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/skeema/knownhosts v1.1.0 // indirect github.com/spf13/afero v1.9.5 // indirect diff --git a/provider/go.sum b/provider/go.sum index a7ab6a7523..d5ac9b8fc5 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -98,8 +98,6 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7 github.com/AdaLogics/go-fuzz-headers v0.0.0-20210715213245-6c3934b029d8/go.mod h1:CzsSbkDixRphAF5hS6wbMKq0eI6ccJRb7/A0M6JBnwg= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230106234847-43070de90fa1 h1:EKPd1INOIyr5hWOWhvpmQpY6tKjeG0hT1s3AMC/9fic= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230106234847-43070de90fa1/go.mod h1:VzwV+t+dZ9j/H867F1M2ziD+yLHtB46oM35FxxMJ4d0= -github.com/AlecAivazis/survey/v2 v2.3.7 h1:6I/u8FvytdGsgonrYsVn2t8t4QiRnh6QSTqkkhIiSjQ= -github.com/AlecAivazis/survey/v2 v2.3.7/go.mod h1:xUTIdE4KCOIjsBAE1JYsUPoCqYdZ1reCfTwbto0Fduo= github.com/Azure/azure-amqp-common-go/v3 v3.2.3/go.mod h1:7rPmbSfszeovxGfc5fSAXE4ehlXQZHpMja2OtxC2Tas= github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v63.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= @@ -108,16 +106,12 @@ github.com/Azure/azure-sdk-for-go v66.0.0+incompatible h1:bmmC38SlE8/E81nNADlgmV github.com/Azure/azure-sdk-for-go v66.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 h1:tz19qLF65vuu2ibfTqGVJxG/zZAI27NEIIbvAOQwYbw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.11.0/go.mod h1:HcM1YX14R7CJcghJGOYCgdezslRSVzqwLf/q+4Y2r/0= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 h1:Yoicul8bnVdQrhDMTHxdEckRGX01XvwXDHUT9zYZ3k0= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0/go.mod h1:+6sju8gk8FRmSajX3Oz4G5Gm7P+mbqE9FVaXXFYTkCM= github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2TzfVZ1pCb5vxm4BtZPUdYWe/Xo8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.0.2/go.mod h1:LH9XQnMr2ZYxQdVdCrzLO9mxeDyrDFa6wbSI3x5zCZk= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1 h1:QSdcrd/UFJv6Bp/CfoVf2SrENpFn9P6Yh8yb+xNhYMM= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1/go.mod h1:eZ4g6GUvXiGulfIbbhh1Xr4XwUYaYaWMqzGD/284wCA= github.com/Azure/go-amqp v0.17.0/go.mod h1:9YJ3RhxRT1gquYnzpZO1vcYMMpAdJT+QEg6fwmw9Zlg= github.com/Azure/go-amqp v0.17.5/go.mod h1:9YJ3RhxRT1gquYnzpZO1vcYMMpAdJT+QEg6fwmw9Zlg= @@ -162,7 +156,6 @@ github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+Z github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= @@ -217,8 +210,6 @@ github.com/Microsoft/hcsshim/test v0.0.0-20201218223536-d3e5debf77da/go.mod h1:5 github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3/go.mod h1:mw7qgWloBUl75W/gVH3cQszUg1+gUITj7D6NY7ywVnY= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= -github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s= -github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 h1:ra2OtmuW0AE5csawV4YXMNGNQQXvLRps3z2Z59OPO+I= github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4/go.mod h1:UBYPn8k0D56RtnR8RFQMjmh4KrZzWJ5o7Z9SYjossQ8= @@ -559,7 +550,6 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4= @@ -592,7 +582,6 @@ github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/cli v20.10.21+incompatible h1:qVkgyYUnOLQ98LtXBrwd/duVqPT2X4SHndOuGsfwyhU= @@ -628,8 +617,6 @@ github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZ github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= -github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= @@ -866,7 +853,6 @@ github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= @@ -1150,9 +1136,6 @@ github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hetznercloud/hcloud-go v1.33.1/go.mod h1:XX/TQub3ge0yWR2yHWmnDVIrB+MQbda1pHxkUmDlUME= github.com/hetznercloud/hcloud-go v1.35.0/go.mod h1:mepQwR6va27S3UQthaEPGS86jtzSY9xWL1e9dyxXpgA= -github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= -github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02 h1:AgcIVYPa6XJnU3phs104wLj8l5GEththEw6+F79YsIY= -github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= @@ -1166,8 +1149,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1: github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= -github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd h1:anPrsicrIi2ColgWTVPk+TrN42hJIWlfPHSBP9S0ZkM= -github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd/go.mod h1:3LVOLeyx9XVvwPgrt2be44XgSqndprz1G18rSk8KD84= github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= @@ -1261,8 +1242,6 @@ github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaR github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= github.com/karrick/godirwalk v1.16.1 h1:DynhcF+bztK8gooS0+NDJFrdNZjJ3gzVzC545UNA9iw= github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= @@ -1344,7 +1323,6 @@ github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A= github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= @@ -1385,8 +1363,6 @@ github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182aff github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/microsoft/ApplicationInsights-Go v0.4.4/go.mod h1:fKRUseBqkw6bDiXTs3ESTiU/4YTIHsQS4W3fP2ieF4U= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= @@ -1591,7 +1567,6 @@ github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= -github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -1678,12 +1653,12 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/cloud-ready-checks v1.0.1-0.20230201174945-00fe9c1b68fd h1:shFTLvh3MZbBzVDr3xwYjUr5H1y3N5n4pczWtVaUZxo= github.com/pulumi/cloud-ready-checks v1.0.1-0.20230201174945-00fe9c1b68fd/go.mod h1:C6HmNtth9oPAWKyRJveZSU4rK/tvzhSGuoOV5y+S17g= -github.com/pulumi/esc v0.5.2 h1:Wnr0oXy8MAyRMtVrMHPI2frjyuylVnU47ReFPNjE3C0= -github.com/pulumi/esc v0.5.2/go.mod h1:lp6lkE9JrifhmjlXVH9//Rj45OETlVPHZKvoNRyU54Q= -github.com/pulumi/pulumi/pkg/v3 v3.89.0 h1:4gaR9ZerHqtc0NYcq7TLxhj2029H9CtRrirmibyLw/E= -github.com/pulumi/pulumi/pkg/v3 v3.89.0/go.mod h1:5DIoI81I+NmW/y2BDlQR4CwnzTeVwkI3DZ4FBnSprXs= -github.com/pulumi/pulumi/sdk/v3 v3.89.0 h1:WlkOQ4Q/Xyxu4lckGWssNI4Wdrobo5Zb7JQVoFVkzMo= -github.com/pulumi/pulumi/sdk/v3 v3.89.0/go.mod h1:XBIlxfHv/jnRj6v8rXP79Z3E11jQz/Ky+bDhwVAHOPk= +github.com/pulumi/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI= +github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04= +github.com/pulumi/pulumi/pkg/v3 v3.90.0 h1:Yp+AKcc3eTdrM/miH4OUX4JGc3JIyM9fVlcuuob1htk= +github.com/pulumi/pulumi/pkg/v3 v3.90.0/go.mod h1:rTbLpsshtBTLFsxMqOnqfHYLus12OqbI/3U4FdeeZYA= +github.com/pulumi/pulumi/sdk/v3 v3.90.0 h1:+P8fE0Ja8Q93G5uKBAtxGlc9xt+z+E7+7Ggx366Bb38= +github.com/pulumi/pulumi/sdk/v3 v3.90.0/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ= github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= @@ -2176,8 +2151,8 @@ golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfS golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/net v0.16.0 h1:7eBu7KsSvFDtSXUIDbh3aqlK4DPsZ1rByC8PFfBThos= -golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/sdk/go.mod b/sdk/go.mod index 34b96aaba9..6ac0beaf8c 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/sdk/v3 v3.89.0 + github.com/pulumi/pulumi/sdk/v3 v3.90.0 ) require ( @@ -53,7 +53,7 @@ require ( github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect github.com/pkg/term v1.1.0 // indirect - github.com/pulumi/esc v0.5.2 // indirect + github.com/pulumi/esc v0.5.6 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect @@ -70,13 +70,13 @@ require ( github.com/xanzy/ssh-agent v0.3.3 // indirect github.com/zclconf/go-cty v1.13.2 // indirect go.uber.org/atomic v1.9.0 // indirect - golang.org/x/crypto v0.9.0 // indirect + golang.org/x/crypto v0.14.0 // indirect golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect - golang.org/x/net v0.10.0 // indirect + golang.org/x/net v0.17.0 // indirect golang.org/x/sync v0.2.0 // indirect golang.org/x/sys v0.13.0 // indirect - golang.org/x/term v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect + golang.org/x/term v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect google.golang.org/grpc v1.57.0 // indirect google.golang.org/protobuf v1.31.0 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index a5c9c37ea7..99059e446e 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -142,10 +142,10 @@ github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk= github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pulumi/esc v0.5.2 h1:Wnr0oXy8MAyRMtVrMHPI2frjyuylVnU47ReFPNjE3C0= -github.com/pulumi/esc v0.5.2/go.mod h1:lp6lkE9JrifhmjlXVH9//Rj45OETlVPHZKvoNRyU54Q= -github.com/pulumi/pulumi/sdk/v3 v3.89.0 h1:WlkOQ4Q/Xyxu4lckGWssNI4Wdrobo5Zb7JQVoFVkzMo= -github.com/pulumi/pulumi/sdk/v3 v3.89.0/go.mod h1:XBIlxfHv/jnRj6v8rXP79Z3E11jQz/Ky+bDhwVAHOPk= +github.com/pulumi/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI= +github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04= +github.com/pulumi/pulumi/sdk/v3 v3.90.0 h1:+P8fE0Ja8Q93G5uKBAtxGlc9xt+z+E7+7Ggx366Bb38= +github.com/pulumi/pulumi/sdk/v3 v3.90.0/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= @@ -206,8 +206,8 @@ golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.0.0-20220826181053-bd7e27e6170d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= @@ -227,8 +227,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -266,15 +266,15 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= diff --git a/sdk/python/pulumi_kubernetes/_inputs.py b/sdk/python/pulumi_kubernetes/_inputs.py index b303cb5cc5..8637c8af09 100644 --- a/sdk/python/pulumi_kubernetes/_inputs.py +++ b/sdk/python/pulumi_kubernetes/_inputs.py @@ -48,13 +48,13 @@ def _configure( repository_config_path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pluginsPath' in kwargs: + if plugins_path is None and 'pluginsPath' in kwargs: plugins_path = kwargs['pluginsPath'] - if 'registryConfigPath' in kwargs: + if registry_config_path is None and 'registryConfigPath' in kwargs: registry_config_path = kwargs['registryConfigPath'] - if 'repositoryCache' in kwargs: + if repository_cache is None and 'repositoryCache' in kwargs: repository_cache = kwargs['repositoryCache'] - if 'repositoryConfigPath' in kwargs: + if repository_config_path is None and 'repositoryConfigPath' in kwargs: repository_config_path = kwargs['repositoryConfigPath'] if driver is None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py index 54130ff081..5cc0a10047 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py @@ -44,7 +44,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py index 5c6670c5e2..31e59ea86a 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py index 2116547ef7..28d093c755 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py @@ -44,7 +44,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py index dcdd554e9d..5567afda41 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py @@ -44,7 +44,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py index 49613d96bf..65bf5c5338 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py index d93b67f39d..d96758889a 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py @@ -44,7 +44,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/_inputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/_inputs.py index e0642778df..9c652ccb31 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/_inputs.py @@ -128,10 +128,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: pulumi.Input[str], - name: pulumi.Input[str], + expression: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) @@ -201,7 +205,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -375,25 +379,25 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'reinvocationPolicy' in kwargs: + if reinvocation_policy is None and 'reinvocationPolicy' in kwargs: reinvocation_policy = kwargs['reinvocationPolicy'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if admission_review_versions is not None: @@ -716,10 +720,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - admission_review_versions: pulumi.Input[Sequence[pulumi.Input[str]]], - client_config: pulumi.Input['WebhookClientConfigArgs'], - name: pulumi.Input[str], - side_effects: pulumi.Input[str], + admission_review_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + client_config: Optional[pulumi.Input['WebhookClientConfigArgs']] = None, + name: Optional[pulumi.Input[str]] = None, + side_effects: Optional[pulumi.Input[str]] = None, failure_policy: Optional[pulumi.Input[str]] = None, match_conditions: Optional[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgs']]]] = None, match_policy: Optional[pulumi.Input[str]] = None, @@ -730,25 +734,33 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if admission_review_versions is None: + raise TypeError("Missing 'admission_review_versions' argument") + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'sideEffects' in kwargs: + if client_config is None: + raise TypeError("Missing 'client_config' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'failurePolicy' in kwargs: + if side_effects is None: + raise TypeError("Missing 'side_effects' argument") + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'reinvocationPolicy' in kwargs: + if reinvocation_policy is None and 'reinvocationPolicy' in kwargs: reinvocation_policy = kwargs['reinvocationPolicy'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] _setter("admission_review_versions", admission_review_versions) @@ -1008,9 +1020,9 @@ def _configure( scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] if api_groups is not None: @@ -1131,9 +1143,9 @@ def _configure( scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] if api_groups is not None: @@ -1327,12 +1339,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, path: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -1420,7 +1436,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1584,23 +1600,23 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if admission_review_versions is not None: @@ -1894,10 +1910,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - admission_review_versions: pulumi.Input[Sequence[pulumi.Input[str]]], - client_config: pulumi.Input['WebhookClientConfigArgs'], - name: pulumi.Input[str], - side_effects: pulumi.Input[str], + admission_review_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + client_config: Optional[pulumi.Input['WebhookClientConfigArgs']] = None, + name: Optional[pulumi.Input[str]] = None, + side_effects: Optional[pulumi.Input[str]] = None, failure_policy: Optional[pulumi.Input[str]] = None, match_conditions: Optional[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgs']]]] = None, match_policy: Optional[pulumi.Input[str]] = None, @@ -1907,23 +1923,31 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if admission_review_versions is None: + raise TypeError("Missing 'admission_review_versions' argument") + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'sideEffects' in kwargs: + if client_config is None: + raise TypeError("Missing 'client_config' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'failurePolicy' in kwargs: + if side_effects is None: + raise TypeError("Missing 'side_effects' argument") + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] _setter("admission_review_versions", admission_review_versions) @@ -2161,7 +2185,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -2258,7 +2282,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/outputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/outputs.py index 1230f763b7..7f0331c0a7 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/outputs.py @@ -59,10 +59,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: str, - name: str, + expression: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) @@ -299,10 +303,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - admission_review_versions: Sequence[str], - client_config: 'outputs.WebhookClientConfig', - name: str, - side_effects: str, + admission_review_versions: Optional[Sequence[str]] = None, + client_config: Optional['outputs.WebhookClientConfig'] = None, + name: Optional[str] = None, + side_effects: Optional[str] = None, failure_policy: Optional[str] = None, match_conditions: Optional[Sequence['outputs.MatchCondition']] = None, match_policy: Optional[str] = None, @@ -313,25 +317,33 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if admission_review_versions is None: + raise TypeError("Missing 'admission_review_versions' argument") + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'sideEffects' in kwargs: + if client_config is None: + raise TypeError("Missing 'client_config' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'failurePolicy' in kwargs: + if side_effects is None: + raise TypeError("Missing 'side_effects' argument") + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'reinvocationPolicy' in kwargs: + if reinvocation_policy is None and 'reinvocationPolicy' in kwargs: reinvocation_policy = kwargs['reinvocationPolicy'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] _setter("admission_review_versions", admission_review_versions) @@ -553,7 +565,7 @@ def _configure( webhooks: Optional[Sequence['outputs.MutatingWebhook']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -749,25 +761,25 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'reinvocationPolicy' in kwargs: + if reinvocation_policy is None and 'reinvocationPolicy' in kwargs: reinvocation_policy = kwargs['reinvocationPolicy'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if admission_review_versions is not None: @@ -1005,9 +1017,9 @@ def _configure( scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] if api_groups is not None: @@ -1130,9 +1142,9 @@ def _configure( scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] if api_groups is not None: @@ -1220,12 +1232,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - namespace: str, + name: Optional[str] = None, + namespace: Optional[str] = None, path: Optional[str] = None, port: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -1469,10 +1485,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - admission_review_versions: Sequence[str], - client_config: 'outputs.WebhookClientConfig', - name: str, - side_effects: str, + admission_review_versions: Optional[Sequence[str]] = None, + client_config: Optional['outputs.WebhookClientConfig'] = None, + name: Optional[str] = None, + side_effects: Optional[str] = None, failure_policy: Optional[str] = None, match_conditions: Optional[Sequence['outputs.MatchCondition']] = None, match_policy: Optional[str] = None, @@ -1482,23 +1498,31 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if admission_review_versions is None: + raise TypeError("Missing 'admission_review_versions' argument") + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'sideEffects' in kwargs: + if client_config is None: + raise TypeError("Missing 'client_config' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'failurePolicy' in kwargs: + if side_effects is None: + raise TypeError("Missing 'side_effects' argument") + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] _setter("admission_review_versions", admission_review_versions) @@ -1704,7 +1728,7 @@ def _configure( webhooks: Optional[Sequence['outputs.ValidatingWebhook']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1888,23 +1912,23 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if admission_review_versions is not None: @@ -2122,7 +2146,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -2227,7 +2251,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py index 62d618fc66..a9811f33db 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicySpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py index 5c8aa241ba..0913f76a71 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicyBindingSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py index 04e89a8be7..dc9f065df2 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py @@ -44,7 +44,7 @@ def _configure( metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py index dff1cf6c9e..930db33e26 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicyBindingSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py index 0c08e3dd0d..f2b4f8cd8d 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py @@ -44,7 +44,7 @@ def _configure( metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py index 955ec8a2da..b84224babf 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicySpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py index 61510eb870..841eec5135 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py @@ -70,7 +70,7 @@ def _configure( value_expression: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueExpression' in kwargs: + if value_expression is None and 'valueExpression' in kwargs: value_expression = kwargs['valueExpression'] if key is not None: @@ -141,12 +141,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - value_expression: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, + value_expression: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueExpression' in kwargs: + if key is None: + raise TypeError("Missing 'key' argument") + if value_expression is None and 'valueExpression' in kwargs: value_expression = kwargs['valueExpression'] + if value_expression is None: + raise TypeError("Missing 'value_expression' argument") _setter("key", key) _setter("value_expression", value_expression) @@ -204,12 +208,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - field_ref: pulumi.Input[str], - warning: pulumi.Input[str], + field_ref: Optional[pulumi.Input[str]] = None, + warning: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] + if field_ref is None: + raise TypeError("Missing 'field_ref' argument") + if warning is None: + raise TypeError("Missing 'warning' argument") _setter("field_ref", field_ref) _setter("warning", warning) @@ -338,10 +346,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: pulumi.Input[str], - name: pulumi.Input[str], + expression: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) @@ -451,15 +463,15 @@ def _configure( resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'excludeResourceRules' in kwargs: + if exclude_resource_rules is None and 'excludeResourceRules' in kwargs: exclude_resource_rules = kwargs['excludeResourceRules'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if exclude_resource_rules is not None: @@ -640,15 +652,15 @@ def _configure( resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'excludeResourceRules' in kwargs: + if exclude_resource_rules is None and 'excludeResourceRules' in kwargs: exclude_resource_rules = kwargs['excludeResourceRules'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if exclude_resource_rules is not None: @@ -803,11 +815,11 @@ def _configure( scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -946,11 +958,11 @@ def _configure( scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -1067,7 +1079,7 @@ def _configure( kind: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1122,7 +1134,7 @@ def _configure( kind: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1199,7 +1211,7 @@ def _configure( selector: Optional[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parameterNotFoundAction' in kwargs: + if parameter_not_found_action is None and 'parameterNotFoundAction' in kwargs: parameter_not_found_action = kwargs['parameterNotFoundAction'] if name is not None: @@ -1318,7 +1330,7 @@ def _configure( selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parameterNotFoundAction' in kwargs: + if parameter_not_found_action is None and 'parameterNotFoundAction' in kwargs: parameter_not_found_action = kwargs['parameterNotFoundAction'] if name is not None: @@ -1411,7 +1423,7 @@ def _configure( expression_warnings: Optional[pulumi.Input[Sequence[pulumi.Input['ExpressionWarningArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expressionWarnings' in kwargs: + if expression_warnings is None and 'expressionWarnings' in kwargs: expression_warnings = kwargs['expressionWarnings'] if expression_warnings is not None: @@ -1478,13 +1490,13 @@ def _configure( validation_actions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchResources' in kwargs: + if match_resources is None and 'matchResources' in kwargs: match_resources = kwargs['matchResources'] - if 'paramRef' in kwargs: + if param_ref is None and 'paramRef' in kwargs: param_ref = kwargs['paramRef'] - if 'policyName' in kwargs: + if policy_name is None and 'policyName' in kwargs: policy_name = kwargs['policyName'] - if 'validationActions' in kwargs: + if validation_actions is None and 'validationActions' in kwargs: validation_actions = kwargs['validationActions'] if match_resources is not None: @@ -1611,13 +1623,13 @@ def _configure( validation_actions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchResources' in kwargs: + if match_resources is None and 'matchResources' in kwargs: match_resources = kwargs['matchResources'] - if 'paramRef' in kwargs: + if param_ref is None and 'paramRef' in kwargs: param_ref = kwargs['paramRef'] - if 'policyName' in kwargs: + if policy_name is None and 'policyName' in kwargs: policy_name = kwargs['policyName'] - if 'validationActions' in kwargs: + if validation_actions is None and 'validationActions' in kwargs: validation_actions = kwargs['validationActions'] if match_resources is not None: @@ -1730,7 +1742,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicyBindingSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1852,15 +1864,15 @@ def _configure( variables: Optional[pulumi.Input[Sequence[pulumi.Input['VariablePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'auditAnnotations' in kwargs: + if audit_annotations is None and 'auditAnnotations' in kwargs: audit_annotations = kwargs['auditAnnotations'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchConstraints' in kwargs: + if match_constraints is None and 'matchConstraints' in kwargs: match_constraints = kwargs['matchConstraints'] - if 'paramKind' in kwargs: + if param_kind is None and 'paramKind' in kwargs: param_kind = kwargs['paramKind'] if audit_annotations is not None: @@ -2034,7 +2046,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - validations: pulumi.Input[Sequence[pulumi.Input['ValidationArgs']]], + validations: Optional[pulumi.Input[Sequence[pulumi.Input['ValidationArgs']]]] = None, audit_annotations: Optional[pulumi.Input[Sequence[pulumi.Input['AuditAnnotationArgs']]]] = None, failure_policy: Optional[pulumi.Input[str]] = None, match_conditions: Optional[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgs']]]] = None, @@ -2043,15 +2055,17 @@ def _configure( variables: Optional[pulumi.Input[Sequence[pulumi.Input['VariableArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'auditAnnotations' in kwargs: + if validations is None: + raise TypeError("Missing 'validations' argument") + if audit_annotations is None and 'auditAnnotations' in kwargs: audit_annotations = kwargs['auditAnnotations'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchConstraints' in kwargs: + if match_constraints is None and 'matchConstraints' in kwargs: match_constraints = kwargs['matchConstraints'] - if 'paramKind' in kwargs: + if param_kind is None and 'paramKind' in kwargs: param_kind = kwargs['paramKind'] _setter("validations", validations) @@ -2198,9 +2212,9 @@ def _configure( type_checking: Optional[pulumi.Input['TypeCheckingArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'typeChecking' in kwargs: + if type_checking is None and 'typeChecking' in kwargs: type_checking = kwargs['typeChecking'] if conditions is not None: @@ -2281,7 +2295,7 @@ def _configure( status: Optional[pulumi.Input['ValidatingAdmissionPolicyStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2411,7 +2425,7 @@ def _configure( reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'messageExpression' in kwargs: + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] if expression is not None: @@ -2546,13 +2560,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: pulumi.Input[str], + expression: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, message_expression: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'messageExpression' in kwargs: + if expression is None: + raise TypeError("Missing 'expression' argument") + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] _setter("expression", expression) @@ -2708,10 +2724,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: pulumi.Input[str], - name: pulumi.Input[str], + expression: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py index 28ef9ab002..f651ecf662 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py @@ -90,12 +90,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: str, - value_expression: str, + key: Optional[str] = None, + value_expression: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueExpression' in kwargs: + if key is None: + raise TypeError("Missing 'key' argument") + if value_expression is None and 'valueExpression' in kwargs: value_expression = kwargs['valueExpression'] + if value_expression is None: + raise TypeError("Missing 'value_expression' argument") _setter("key", key) _setter("value_expression", value_expression) @@ -179,7 +183,7 @@ def _configure( value_expression: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueExpression' in kwargs: + if value_expression is None and 'valueExpression' in kwargs: value_expression = kwargs['valueExpression'] if key is not None: @@ -252,12 +256,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - field_ref: str, - warning: str, + field_ref: Optional[str] = None, + warning: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] + if field_ref is None: + raise TypeError("Missing 'field_ref' argument") + if warning is None: + raise TypeError("Missing 'warning' argument") _setter("field_ref", field_ref) _setter("warning", warning) @@ -321,7 +329,7 @@ def _configure( warning: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] if field_ref is not None: @@ -373,10 +381,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: str, - name: str, + expression: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) @@ -570,15 +582,15 @@ def _configure( resource_rules: Optional[Sequence['outputs.NamedRuleWithOperations']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'excludeResourceRules' in kwargs: + if exclude_resource_rules is None and 'excludeResourceRules' in kwargs: exclude_resource_rules = kwargs['excludeResourceRules'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if exclude_resource_rules is not None: @@ -767,15 +779,15 @@ def _configure( resource_rules: Optional[Sequence['outputs.NamedRuleWithOperationsPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'excludeResourceRules' in kwargs: + if exclude_resource_rules is None and 'excludeResourceRules' in kwargs: exclude_resource_rules = kwargs['excludeResourceRules'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if exclude_resource_rules is not None: @@ -934,11 +946,11 @@ def _configure( scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -1077,11 +1089,11 @@ def _configure( scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -1194,7 +1206,7 @@ def _configure( kind: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1261,7 +1273,7 @@ def _configure( kind: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1350,7 +1362,7 @@ def _configure( selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parameterNotFoundAction' in kwargs: + if parameter_not_found_action is None and 'parameterNotFoundAction' in kwargs: parameter_not_found_action = kwargs['parameterNotFoundAction'] if name is not None: @@ -1473,7 +1485,7 @@ def _configure( selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parameterNotFoundAction' in kwargs: + if parameter_not_found_action is None and 'parameterNotFoundAction' in kwargs: parameter_not_found_action = kwargs['parameterNotFoundAction'] if name is not None: @@ -1570,7 +1582,7 @@ def _configure( expression_warnings: Optional[Sequence['outputs.ExpressionWarning']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expressionWarnings' in kwargs: + if expression_warnings is None and 'expressionWarnings' in kwargs: expression_warnings = kwargs['expressionWarnings'] if expression_warnings is not None: @@ -1623,7 +1635,7 @@ def _configure( expression_warnings: Optional[Sequence['outputs.ExpressionWarningPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expressionWarnings' in kwargs: + if expression_warnings is None and 'expressionWarnings' in kwargs: expression_warnings = kwargs['expressionWarnings'] if expression_warnings is not None: @@ -1692,7 +1704,7 @@ def _configure( status: Optional['outputs.ValidatingAdmissionPolicyStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1805,7 +1817,7 @@ def _configure( spec: Optional['outputs.ValidatingAdmissionPolicyBindingSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1924,13 +1936,13 @@ def _configure( validation_actions: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchResources' in kwargs: + if match_resources is None and 'matchResources' in kwargs: match_resources = kwargs['matchResources'] - if 'paramRef' in kwargs: + if param_ref is None and 'paramRef' in kwargs: param_ref = kwargs['paramRef'] - if 'policyName' in kwargs: + if policy_name is None and 'policyName' in kwargs: policy_name = kwargs['policyName'] - if 'validationActions' in kwargs: + if validation_actions is None and 'validationActions' in kwargs: validation_actions = kwargs['validationActions'] if match_resources is not None: @@ -2067,13 +2079,13 @@ def _configure( validation_actions: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchResources' in kwargs: + if match_resources is None and 'matchResources' in kwargs: match_resources = kwargs['matchResources'] - if 'paramRef' in kwargs: + if param_ref is None and 'paramRef' in kwargs: param_ref = kwargs['paramRef'] - if 'policyName' in kwargs: + if policy_name is None and 'policyName' in kwargs: policy_name = kwargs['policyName'] - if 'validationActions' in kwargs: + if validation_actions is None and 'validationActions' in kwargs: validation_actions = kwargs['validationActions'] if match_resources is not None: @@ -2216,7 +2228,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - validations: Sequence['outputs.Validation'], + validations: Optional[Sequence['outputs.Validation']] = None, audit_annotations: Optional[Sequence['outputs.AuditAnnotation']] = None, failure_policy: Optional[str] = None, match_conditions: Optional[Sequence['outputs.MatchCondition']] = None, @@ -2225,15 +2237,17 @@ def _configure( variables: Optional[Sequence['outputs.Variable']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'auditAnnotations' in kwargs: + if validations is None: + raise TypeError("Missing 'validations' argument") + if audit_annotations is None and 'auditAnnotations' in kwargs: audit_annotations = kwargs['auditAnnotations'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchConstraints' in kwargs: + if match_constraints is None and 'matchConstraints' in kwargs: match_constraints = kwargs['matchConstraints'] - if 'paramKind' in kwargs: + if param_kind is None and 'paramKind' in kwargs: param_kind = kwargs['paramKind'] _setter("validations", validations) @@ -2415,15 +2429,15 @@ def _configure( variables: Optional[Sequence['outputs.VariablePatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'auditAnnotations' in kwargs: + if audit_annotations is None and 'auditAnnotations' in kwargs: audit_annotations = kwargs['auditAnnotations'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchConstraints' in kwargs: + if match_constraints is None and 'matchConstraints' in kwargs: match_constraints = kwargs['matchConstraints'] - if 'paramKind' in kwargs: + if param_kind is None and 'paramKind' in kwargs: param_kind = kwargs['paramKind'] if audit_annotations is not None: @@ -2565,9 +2579,9 @@ def _configure( type_checking: Optional['outputs.TypeChecking'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'typeChecking' in kwargs: + if type_checking is None and 'typeChecking' in kwargs: type_checking = kwargs['typeChecking'] if conditions is not None: @@ -2650,9 +2664,9 @@ def _configure( type_checking: Optional['outputs.TypeCheckingPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'typeChecking' in kwargs: + if type_checking is None and 'typeChecking' in kwargs: type_checking = kwargs['typeChecking'] if conditions is not None: @@ -2756,13 +2770,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: str, + expression: Optional[str] = None, message: Optional[str] = None, message_expression: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'messageExpression' in kwargs: + if expression is None: + raise TypeError("Missing 'expression' argument") + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] _setter("expression", expression) @@ -2906,7 +2922,7 @@ def _configure( reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'messageExpression' in kwargs: + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] if expression is not None: @@ -2997,10 +3013,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: str, - name: str, + expression: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py index 895dd13f54..bd02b729cb 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py @@ -44,7 +44,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py index e16f500b74..1f47469ae5 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookConfigurationArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py index 50020937c7..cd7f683b9f 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py @@ -44,7 +44,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py index d5ed3ab1f2..e6f9e83f9a 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicySpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py index 43d946af79..d7a2f3b77f 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicyBindingSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py index 744d67255b..69cf294a31 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py @@ -44,7 +44,7 @@ def _configure( metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py index 3db2e60b37..5f70aaabf5 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicyBindingSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py index 4e6b1a6580..35e2fcf78f 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py @@ -44,7 +44,7 @@ def _configure( metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py index 4ab1dfb78b..7a5e032103 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicySpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py index 42a82d9269..8c7ca9ea99 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py @@ -44,7 +44,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py index 4501f5b056..89066dcbbf 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookConfigurationArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py index 3e38494e76..09a695107a 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py @@ -44,7 +44,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py index 2bfcc2321e..2989e7dfeb 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py @@ -82,7 +82,7 @@ def _configure( value_expression: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueExpression' in kwargs: + if value_expression is None and 'valueExpression' in kwargs: value_expression = kwargs['valueExpression'] if key is not None: @@ -153,12 +153,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - value_expression: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, + value_expression: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueExpression' in kwargs: + if key is None: + raise TypeError("Missing 'key' argument") + if value_expression is None and 'valueExpression' in kwargs: value_expression = kwargs['valueExpression'] + if value_expression is None: + raise TypeError("Missing 'value_expression' argument") _setter("key", key) _setter("value_expression", value_expression) @@ -216,12 +220,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - field_ref: pulumi.Input[str], - warning: pulumi.Input[str], + field_ref: Optional[pulumi.Input[str]] = None, + warning: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] + if field_ref is None: + raise TypeError("Missing 'field_ref' argument") + if warning is None: + raise TypeError("Missing 'warning' argument") _setter("field_ref", field_ref) _setter("warning", warning) @@ -352,10 +360,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: pulumi.Input[str], - name: pulumi.Input[str], + expression: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) @@ -465,15 +477,15 @@ def _configure( resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'excludeResourceRules' in kwargs: + if exclude_resource_rules is None and 'excludeResourceRules' in kwargs: exclude_resource_rules = kwargs['excludeResourceRules'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if exclude_resource_rules is not None: @@ -654,15 +666,15 @@ def _configure( resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'excludeResourceRules' in kwargs: + if exclude_resource_rules is None and 'excludeResourceRules' in kwargs: exclude_resource_rules = kwargs['excludeResourceRules'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if exclude_resource_rules is not None: @@ -803,7 +815,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -964,23 +976,23 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'reinvocationPolicy' in kwargs: + if reinvocation_policy is None and 'reinvocationPolicy' in kwargs: reinvocation_policy = kwargs['reinvocationPolicy'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if admission_review_versions is not None: @@ -1268,8 +1280,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - client_config: pulumi.Input['WebhookClientConfigArgs'], - name: pulumi.Input[str], + client_config: Optional[pulumi.Input['WebhookClientConfigArgs']] = None, + name: Optional[pulumi.Input[str]] = None, admission_review_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, failure_policy: Optional[pulumi.Input[str]] = None, match_policy: Optional[pulumi.Input[str]] = None, @@ -1281,23 +1293,27 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'admissionReviewVersions' in kwargs: + if client_config is None: + raise TypeError("Missing 'client_config' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'reinvocationPolicy' in kwargs: + if reinvocation_policy is None and 'reinvocationPolicy' in kwargs: reinvocation_policy = kwargs['reinvocationPolicy'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] _setter("client_config", client_config) @@ -1540,11 +1556,11 @@ def _configure( scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -1683,11 +1699,11 @@ def _configure( scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -1804,7 +1820,7 @@ def _configure( kind: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1859,7 +1875,7 @@ def _configure( kind: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1940,7 +1956,7 @@ def _configure( selector: Optional[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parameterNotFoundAction' in kwargs: + if parameter_not_found_action is None and 'parameterNotFoundAction' in kwargs: parameter_not_found_action = kwargs['parameterNotFoundAction'] if name is not None: @@ -2067,7 +2083,7 @@ def _configure( selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parameterNotFoundAction' in kwargs: + if parameter_not_found_action is None and 'parameterNotFoundAction' in kwargs: parameter_not_found_action = kwargs['parameterNotFoundAction'] if name is not None: @@ -2186,9 +2202,9 @@ def _configure( scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] if api_groups is not None: @@ -2309,9 +2325,9 @@ def _configure( scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] if api_groups is not None: @@ -2505,12 +2521,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, path: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2586,7 +2606,7 @@ def _configure( expression_warnings: Optional[pulumi.Input[Sequence[pulumi.Input['ExpressionWarningArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expressionWarnings' in kwargs: + if expression_warnings is None and 'expressionWarnings' in kwargs: expression_warnings = kwargs['expressionWarnings'] if expression_warnings is not None: @@ -2653,13 +2673,13 @@ def _configure( validation_actions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchResources' in kwargs: + if match_resources is None and 'matchResources' in kwargs: match_resources = kwargs['matchResources'] - if 'paramRef' in kwargs: + if param_ref is None and 'paramRef' in kwargs: param_ref = kwargs['paramRef'] - if 'policyName' in kwargs: + if policy_name is None and 'policyName' in kwargs: policy_name = kwargs['policyName'] - if 'validationActions' in kwargs: + if validation_actions is None and 'validationActions' in kwargs: validation_actions = kwargs['validationActions'] if match_resources is not None: @@ -2786,13 +2806,13 @@ def _configure( validation_actions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchResources' in kwargs: + if match_resources is None and 'matchResources' in kwargs: match_resources = kwargs['matchResources'] - if 'paramRef' in kwargs: + if param_ref is None and 'paramRef' in kwargs: param_ref = kwargs['paramRef'] - if 'policyName' in kwargs: + if policy_name is None and 'policyName' in kwargs: policy_name = kwargs['policyName'] - if 'validationActions' in kwargs: + if validation_actions is None and 'validationActions' in kwargs: validation_actions = kwargs['validationActions'] if match_resources is not None: @@ -2905,7 +2925,7 @@ def _configure( spec: Optional[pulumi.Input['ValidatingAdmissionPolicyBindingSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -3027,15 +3047,15 @@ def _configure( variables: Optional[pulumi.Input[Sequence[pulumi.Input['VariablePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'auditAnnotations' in kwargs: + if audit_annotations is None and 'auditAnnotations' in kwargs: audit_annotations = kwargs['auditAnnotations'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchConstraints' in kwargs: + if match_constraints is None and 'matchConstraints' in kwargs: match_constraints = kwargs['matchConstraints'] - if 'paramKind' in kwargs: + if param_kind is None and 'paramKind' in kwargs: param_kind = kwargs['paramKind'] if audit_annotations is not None: @@ -3218,15 +3238,15 @@ def _configure( variables: Optional[pulumi.Input[Sequence[pulumi.Input['VariableArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'auditAnnotations' in kwargs: + if audit_annotations is None and 'auditAnnotations' in kwargs: audit_annotations = kwargs['auditAnnotations'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchConstraints' in kwargs: + if match_constraints is None and 'matchConstraints' in kwargs: match_constraints = kwargs['matchConstraints'] - if 'paramKind' in kwargs: + if param_kind is None and 'paramKind' in kwargs: param_kind = kwargs['paramKind'] if audit_annotations is not None: @@ -3374,9 +3394,9 @@ def _configure( type_checking: Optional[pulumi.Input['TypeCheckingArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'typeChecking' in kwargs: + if type_checking is None and 'typeChecking' in kwargs: type_checking = kwargs['typeChecking'] if conditions is not None: @@ -3457,7 +3477,7 @@ def _configure( status: Optional[pulumi.Input['ValidatingAdmissionPolicyStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -3562,7 +3582,7 @@ def _configure( webhooks: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -3713,21 +3733,21 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if admission_review_versions is not None: @@ -3986,8 +4006,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - client_config: pulumi.Input['WebhookClientConfigArgs'], - name: pulumi.Input[str], + client_config: Optional[pulumi.Input['WebhookClientConfigArgs']] = None, + name: Optional[pulumi.Input[str]] = None, admission_review_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, failure_policy: Optional[pulumi.Input[str]] = None, match_policy: Optional[pulumi.Input[str]] = None, @@ -3998,21 +4018,25 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'admissionReviewVersions' in kwargs: + if client_config is None: + raise TypeError("Missing 'client_config' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] _setter("client_config", client_config) @@ -4246,7 +4270,7 @@ def _configure( reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'messageExpression' in kwargs: + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] if expression is not None: @@ -4381,13 +4405,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: pulumi.Input[str], + expression: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, message_expression: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'messageExpression' in kwargs: + if expression is None: + raise TypeError("Missing 'expression' argument") + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] _setter("expression", expression) @@ -4543,10 +4569,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: pulumi.Input[str], - name: pulumi.Input[str], + expression: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) @@ -4614,7 +4644,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -4711,7 +4741,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/outputs.py index 212b45a4ef..4de63035cc 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/outputs.py @@ -102,12 +102,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: str, - value_expression: str, + key: Optional[str] = None, + value_expression: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueExpression' in kwargs: + if key is None: + raise TypeError("Missing 'key' argument") + if value_expression is None and 'valueExpression' in kwargs: value_expression = kwargs['valueExpression'] + if value_expression is None: + raise TypeError("Missing 'value_expression' argument") _setter("key", key) _setter("value_expression", value_expression) @@ -191,7 +195,7 @@ def _configure( value_expression: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueExpression' in kwargs: + if value_expression is None and 'valueExpression' in kwargs: value_expression = kwargs['valueExpression'] if key is not None: @@ -264,12 +268,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - field_ref: str, - warning: str, + field_ref: Optional[str] = None, + warning: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] + if field_ref is None: + raise TypeError("Missing 'field_ref' argument") + if warning is None: + raise TypeError("Missing 'warning' argument") _setter("field_ref", field_ref) _setter("warning", warning) @@ -333,7 +341,7 @@ def _configure( warning: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] if field_ref is not None: @@ -389,10 +397,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: str, - name: str, + expression: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) @@ -590,15 +602,15 @@ def _configure( resource_rules: Optional[Sequence['outputs.NamedRuleWithOperations']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'excludeResourceRules' in kwargs: + if exclude_resource_rules is None and 'excludeResourceRules' in kwargs: exclude_resource_rules = kwargs['excludeResourceRules'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if exclude_resource_rules is not None: @@ -787,15 +799,15 @@ def _configure( resource_rules: Optional[Sequence['outputs.NamedRuleWithOperationsPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'excludeResourceRules' in kwargs: + if exclude_resource_rules is None and 'excludeResourceRules' in kwargs: exclude_resource_rules = kwargs['excludeResourceRules'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if exclude_resource_rules is not None: @@ -1009,8 +1021,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - client_config: 'outputs.WebhookClientConfig', - name: str, + client_config: Optional['outputs.WebhookClientConfig'] = None, + name: Optional[str] = None, admission_review_versions: Optional[Sequence[str]] = None, failure_policy: Optional[str] = None, match_policy: Optional[str] = None, @@ -1022,23 +1034,27 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'admissionReviewVersions' in kwargs: + if client_config is None: + raise TypeError("Missing 'client_config' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'reinvocationPolicy' in kwargs: + if reinvocation_policy is None and 'reinvocationPolicy' in kwargs: reinvocation_policy = kwargs['reinvocationPolicy'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] _setter("client_config", client_config) @@ -1243,7 +1259,7 @@ def _configure( webhooks: Optional[Sequence['outputs.MutatingWebhook']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1424,23 +1440,23 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'reinvocationPolicy' in kwargs: + if reinvocation_policy is None and 'reinvocationPolicy' in kwargs: reinvocation_policy = kwargs['reinvocationPolicy'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if admission_review_versions is not None: @@ -1665,11 +1681,11 @@ def _configure( scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -1808,11 +1824,11 @@ def _configure( scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -1925,7 +1941,7 @@ def _configure( kind: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1992,7 +2008,7 @@ def _configure( kind: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2085,7 +2101,7 @@ def _configure( selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parameterNotFoundAction' in kwargs: + if parameter_not_found_action is None and 'parameterNotFoundAction' in kwargs: parameter_not_found_action = kwargs['parameterNotFoundAction'] if name is not None: @@ -2216,7 +2232,7 @@ def _configure( selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parameterNotFoundAction' in kwargs: + if parameter_not_found_action is None and 'parameterNotFoundAction' in kwargs: parameter_not_found_action = kwargs['parameterNotFoundAction'] if name is not None: @@ -2341,9 +2357,9 @@ def _configure( scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] if api_groups is not None: @@ -2466,9 +2482,9 @@ def _configure( scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'apiVersions' in kwargs: + if api_versions is None and 'apiVersions' in kwargs: api_versions = kwargs['apiVersions'] if api_groups is not None: @@ -2556,12 +2572,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - namespace: str, + name: Optional[str] = None, + namespace: Optional[str] = None, path: Optional[str] = None, port: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2717,7 +2737,7 @@ def _configure( expression_warnings: Optional[Sequence['outputs.ExpressionWarning']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expressionWarnings' in kwargs: + if expression_warnings is None and 'expressionWarnings' in kwargs: expression_warnings = kwargs['expressionWarnings'] if expression_warnings is not None: @@ -2770,7 +2790,7 @@ def _configure( expression_warnings: Optional[Sequence['outputs.ExpressionWarningPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expressionWarnings' in kwargs: + if expression_warnings is None and 'expressionWarnings' in kwargs: expression_warnings = kwargs['expressionWarnings'] if expression_warnings is not None: @@ -2839,7 +2859,7 @@ def _configure( status: Optional['outputs.ValidatingAdmissionPolicyStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2952,7 +2972,7 @@ def _configure( spec: Optional['outputs.ValidatingAdmissionPolicyBindingSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -3071,13 +3091,13 @@ def _configure( validation_actions: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchResources' in kwargs: + if match_resources is None and 'matchResources' in kwargs: match_resources = kwargs['matchResources'] - if 'paramRef' in kwargs: + if param_ref is None and 'paramRef' in kwargs: param_ref = kwargs['paramRef'] - if 'policyName' in kwargs: + if policy_name is None and 'policyName' in kwargs: policy_name = kwargs['policyName'] - if 'validationActions' in kwargs: + if validation_actions is None and 'validationActions' in kwargs: validation_actions = kwargs['validationActions'] if match_resources is not None: @@ -3214,13 +3234,13 @@ def _configure( validation_actions: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchResources' in kwargs: + if match_resources is None and 'matchResources' in kwargs: match_resources = kwargs['matchResources'] - if 'paramRef' in kwargs: + if param_ref is None and 'paramRef' in kwargs: param_ref = kwargs['paramRef'] - if 'policyName' in kwargs: + if policy_name is None and 'policyName' in kwargs: policy_name = kwargs['policyName'] - if 'validationActions' in kwargs: + if validation_actions is None and 'validationActions' in kwargs: validation_actions = kwargs['validationActions'] if match_resources is not None: @@ -3372,15 +3392,15 @@ def _configure( variables: Optional[Sequence['outputs.Variable']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'auditAnnotations' in kwargs: + if audit_annotations is None and 'auditAnnotations' in kwargs: audit_annotations = kwargs['auditAnnotations'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchConstraints' in kwargs: + if match_constraints is None and 'matchConstraints' in kwargs: match_constraints = kwargs['matchConstraints'] - if 'paramKind' in kwargs: + if param_kind is None and 'paramKind' in kwargs: param_kind = kwargs['paramKind'] if audit_annotations is not None: @@ -3563,15 +3583,15 @@ def _configure( variables: Optional[Sequence['outputs.VariablePatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'auditAnnotations' in kwargs: + if audit_annotations is None and 'auditAnnotations' in kwargs: audit_annotations = kwargs['auditAnnotations'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchConditions' in kwargs: + if match_conditions is None and 'matchConditions' in kwargs: match_conditions = kwargs['matchConditions'] - if 'matchConstraints' in kwargs: + if match_constraints is None and 'matchConstraints' in kwargs: match_constraints = kwargs['matchConstraints'] - if 'paramKind' in kwargs: + if param_kind is None and 'paramKind' in kwargs: param_kind = kwargs['paramKind'] if audit_annotations is not None: @@ -3713,9 +3733,9 @@ def _configure( type_checking: Optional['outputs.TypeChecking'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'typeChecking' in kwargs: + if type_checking is None and 'typeChecking' in kwargs: type_checking = kwargs['typeChecking'] if conditions is not None: @@ -3798,9 +3818,9 @@ def _configure( type_checking: Optional['outputs.TypeCheckingPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'typeChecking' in kwargs: + if type_checking is None and 'typeChecking' in kwargs: type_checking = kwargs['typeChecking'] if conditions is not None: @@ -3947,8 +3967,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - client_config: 'outputs.WebhookClientConfig', - name: str, + client_config: Optional['outputs.WebhookClientConfig'] = None, + name: Optional[str] = None, admission_review_versions: Optional[Sequence[str]] = None, failure_policy: Optional[str] = None, match_policy: Optional[str] = None, @@ -3959,21 +3979,25 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'admissionReviewVersions' in kwargs: + if client_config is None: + raise TypeError("Missing 'client_config' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] _setter("client_config", client_config) @@ -4162,7 +4186,7 @@ def _configure( webhooks: Optional[Sequence['outputs.ValidatingWebhook']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -4331,21 +4355,21 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'admissionReviewVersions' in kwargs: + if admission_review_versions is None and 'admissionReviewVersions' in kwargs: admission_review_versions = kwargs['admissionReviewVersions'] - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'failurePolicy' in kwargs: + if failure_policy is None and 'failurePolicy' in kwargs: failure_policy = kwargs['failurePolicy'] - if 'matchPolicy' in kwargs: + if match_policy is None and 'matchPolicy' in kwargs: match_policy = kwargs['matchPolicy'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'objectSelector' in kwargs: + if object_selector is None and 'objectSelector' in kwargs: object_selector = kwargs['objectSelector'] - if 'sideEffects' in kwargs: + if side_effects is None and 'sideEffects' in kwargs: side_effects = kwargs['sideEffects'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if admission_review_versions is not None: @@ -4555,13 +4579,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: str, + expression: Optional[str] = None, message: Optional[str] = None, message_expression: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'messageExpression' in kwargs: + if expression is None: + raise TypeError("Missing 'expression' argument") + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] _setter("expression", expression) @@ -4705,7 +4731,7 @@ def _configure( reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'messageExpression' in kwargs: + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] if expression is not None: @@ -4796,10 +4822,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expression: str, - name: str, + expression: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if expression is None: + raise TypeError("Missing 'expression' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("expression", expression) _setter("name", name) @@ -4927,7 +4957,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -5032,7 +5062,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py index 4a427c8c83..40cbe741be 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CustomResourceDefinitionSpecArgs'], + spec: Optional[pulumi.Input['CustomResourceDefinitionSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py index c61299e1f1..aab6795a2c 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py index 350f9174e3..e4edfdf01e 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['CustomResourceDefinitionSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/_inputs.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/_inputs.py index f80129939d..3de878a109 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/_inputs.py @@ -82,7 +82,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jsonPath' in kwargs: + if json_path is None and 'jsonPath' in kwargs: json_path = kwargs['jsonPath'] if description is not None: @@ -201,16 +201,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - json_path: pulumi.Input[str], - name: pulumi.Input[str], - type: pulumi.Input[str], + json_path: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, format: Optional[pulumi.Input[str]] = None, priority: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jsonPath' in kwargs: + if json_path is None and 'jsonPath' in kwargs: json_path = kwargs['jsonPath'] + if json_path is None: + raise TypeError("Missing 'json_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if type is None: + raise TypeError("Missing 'type' argument") _setter("json_path", json_path) _setter("name", name) @@ -369,10 +375,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - strategy: pulumi.Input[str], + strategy: Optional[pulumi.Input[str]] = None, webhook: Optional[pulumi.Input['WebhookConversionArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if strategy is None: + raise TypeError("Missing 'strategy' argument") _setter("strategy", strategy) if webhook is not None: @@ -431,14 +439,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -549,9 +561,9 @@ def _configure( singular: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'listKind' in kwargs: + if list_kind is None and 'listKind' in kwargs: list_kind = kwargs['listKind'] - if 'shortNames' in kwargs: + if short_names is None and 'shortNames' in kwargs: short_names = kwargs['shortNames'] if categories is not None: @@ -670,17 +682,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - plural: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + plural: Optional[pulumi.Input[str]] = None, categories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, list_kind: Optional[pulumi.Input[str]] = None, short_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, singular: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'listKind' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if plural is None: + raise TypeError("Missing 'plural' argument") + if list_kind is None and 'listKind' in kwargs: list_kind = kwargs['listKind'] - if 'shortNames' in kwargs: + if short_names is None and 'shortNames' in kwargs: short_names = kwargs['shortNames'] _setter("kind", kind) @@ -805,7 +821,7 @@ def _configure( versions: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionVersionPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preserveUnknownFields' in kwargs: + if preserve_unknown_fields is None and 'preserveUnknownFields' in kwargs: preserve_unknown_fields = kwargs['preserveUnknownFields'] if conversion is not None: @@ -924,15 +940,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[str], - names: pulumi.Input['CustomResourceDefinitionNamesArgs'], - scope: pulumi.Input[str], - versions: pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionVersionArgs']]], + group: Optional[pulumi.Input[str]] = None, + names: Optional[pulumi.Input['CustomResourceDefinitionNamesArgs']] = None, + scope: Optional[pulumi.Input[str]] = None, + versions: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionVersionArgs']]]] = None, conversion: Optional[pulumi.Input['CustomResourceConversionArgs']] = None, preserve_unknown_fields: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preserveUnknownFields' in kwargs: + if group is None: + raise TypeError("Missing 'group' argument") + if names is None: + raise TypeError("Missing 'names' argument") + if scope is None: + raise TypeError("Missing 'scope' argument") + if versions is None: + raise TypeError("Missing 'versions' argument") + if preserve_unknown_fields is None and 'preserveUnknownFields' in kwargs: preserve_unknown_fields = kwargs['preserveUnknownFields'] _setter("group", group) @@ -1038,15 +1062,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - accepted_names: pulumi.Input['CustomResourceDefinitionNamesArgs'], - stored_versions: pulumi.Input[Sequence[pulumi.Input[str]]], + accepted_names: Optional[pulumi.Input['CustomResourceDefinitionNamesArgs']] = None, + stored_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionConditionArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acceptedNames' in kwargs: + if accepted_names is None and 'acceptedNames' in kwargs: accepted_names = kwargs['acceptedNames'] - if 'storedVersions' in kwargs: + if accepted_names is None: + raise TypeError("Missing 'accepted_names' argument") + if stored_versions is None and 'storedVersions' in kwargs: stored_versions = kwargs['storedVersions'] + if stored_versions is None: + raise TypeError("Missing 'stored_versions' argument") _setter("accepted_names", accepted_names) _setter("stored_versions", stored_versions) @@ -1136,9 +1164,9 @@ def _configure( subresources: Optional[pulumi.Input['CustomResourceSubresourcesPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'deprecationWarning' in kwargs: + if deprecation_warning is None and 'deprecationWarning' in kwargs: deprecation_warning = kwargs['deprecationWarning'] if additional_printer_columns is not None: @@ -1291,9 +1319,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - served: pulumi.Input[bool], - storage: pulumi.Input[bool], + name: Optional[pulumi.Input[str]] = None, + served: Optional[pulumi.Input[bool]] = None, + storage: Optional[pulumi.Input[bool]] = None, additional_printer_columns: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceColumnDefinitionArgs']]]] = None, deprecated: Optional[pulumi.Input[bool]] = None, deprecation_warning: Optional[pulumi.Input[str]] = None, @@ -1301,9 +1329,15 @@ def _configure( subresources: Optional[pulumi.Input['CustomResourceSubresourcesArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if served is None: + raise TypeError("Missing 'served' argument") + if storage is None: + raise TypeError("Missing 'storage' argument") + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'deprecationWarning' in kwargs: + if deprecation_warning is None and 'deprecationWarning' in kwargs: deprecation_warning = kwargs['deprecationWarning'] _setter("name", name) @@ -1444,14 +1478,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CustomResourceDefinitionSpecArgs'], + spec: Optional[pulumi.Input['CustomResourceDefinitionSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['CustomResourceDefinitionStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1551,11 +1587,11 @@ def _configure( status_replicas_path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'labelSelectorPath' in kwargs: + if label_selector_path is None and 'labelSelectorPath' in kwargs: label_selector_path = kwargs['labelSelectorPath'] - if 'specReplicasPath' in kwargs: + if spec_replicas_path is None and 'specReplicasPath' in kwargs: spec_replicas_path = kwargs['specReplicasPath'] - if 'statusReplicasPath' in kwargs: + if status_replicas_path is None and 'statusReplicasPath' in kwargs: status_replicas_path = kwargs['statusReplicasPath'] if label_selector_path is not None: @@ -1623,16 +1659,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec_replicas_path: pulumi.Input[str], - status_replicas_path: pulumi.Input[str], + spec_replicas_path: Optional[pulumi.Input[str]] = None, + status_replicas_path: Optional[pulumi.Input[str]] = None, label_selector_path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'specReplicasPath' in kwargs: + if spec_replicas_path is None and 'specReplicasPath' in kwargs: spec_replicas_path = kwargs['specReplicasPath'] - if 'statusReplicasPath' in kwargs: + if spec_replicas_path is None: + raise TypeError("Missing 'spec_replicas_path' argument") + if status_replicas_path is None and 'statusReplicasPath' in kwargs: status_replicas_path = kwargs['statusReplicasPath'] - if 'labelSelectorPath' in kwargs: + if status_replicas_path is None: + raise TypeError("Missing 'status_replicas_path' argument") + if label_selector_path is None and 'labelSelectorPath' in kwargs: label_selector_path = kwargs['labelSelectorPath'] _setter("spec_replicas_path", spec_replicas_path) @@ -1801,7 +1841,7 @@ def _configure( open_apiv3_schema: Optional[pulumi.Input['JSONSchemaPropsPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'openAPIV3Schema' in kwargs: + if open_apiv3_schema is None and 'openAPIV3Schema' in kwargs: open_apiv3_schema = kwargs['openAPIV3Schema'] if open_apiv3_schema is not None: @@ -1838,7 +1878,7 @@ def _configure( open_apiv3_schema: Optional[pulumi.Input['JSONSchemaPropsArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'openAPIV3Schema' in kwargs: + if open_apiv3_schema is None and 'openAPIV3Schema' in kwargs: open_apiv3_schema = kwargs['openAPIV3Schema'] if open_apiv3_schema is not None: @@ -2137,45 +2177,45 @@ def _configure( x_kubernetes_validations: Optional[pulumi.Input[Sequence[pulumi.Input['ValidationRulePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if '$ref' in kwargs: + if _ref is None and '$ref' in kwargs: _ref = kwargs['$ref'] - if '$schema' in kwargs: + if _schema is None and '$schema' in kwargs: _schema = kwargs['$schema'] - if 'additionalItems' in kwargs: + if additional_items is None and 'additionalItems' in kwargs: additional_items = kwargs['additionalItems'] - if 'additionalProperties' in kwargs: + if additional_properties is None and 'additionalProperties' in kwargs: additional_properties = kwargs['additionalProperties'] - if 'allOf' in kwargs: + if all_of is None and 'allOf' in kwargs: all_of = kwargs['allOf'] - if 'anyOf' in kwargs: + if any_of is None and 'anyOf' in kwargs: any_of = kwargs['anyOf'] - if 'exclusiveMaximum' in kwargs: + if exclusive_maximum is None and 'exclusiveMaximum' in kwargs: exclusive_maximum = kwargs['exclusiveMaximum'] - if 'exclusiveMinimum' in kwargs: + if exclusive_minimum is None and 'exclusiveMinimum' in kwargs: exclusive_minimum = kwargs['exclusiveMinimum'] - if 'externalDocs' in kwargs: + if external_docs is None and 'externalDocs' in kwargs: external_docs = kwargs['externalDocs'] - if 'maxItems' in kwargs: + if max_items is None and 'maxItems' in kwargs: max_items = kwargs['maxItems'] - if 'maxLength' in kwargs: + if max_length is None and 'maxLength' in kwargs: max_length = kwargs['maxLength'] - if 'maxProperties' in kwargs: + if max_properties is None and 'maxProperties' in kwargs: max_properties = kwargs['maxProperties'] - if 'minItems' in kwargs: + if min_items is None and 'minItems' in kwargs: min_items = kwargs['minItems'] - if 'minLength' in kwargs: + if min_length is None and 'minLength' in kwargs: min_length = kwargs['minLength'] - if 'minProperties' in kwargs: + if min_properties is None and 'minProperties' in kwargs: min_properties = kwargs['minProperties'] - if 'multipleOf' in kwargs: + if multiple_of is None and 'multipleOf' in kwargs: multiple_of = kwargs['multipleOf'] - if 'not' in kwargs: + if not_ is None and 'not' in kwargs: not_ = kwargs['not'] - if 'oneOf' in kwargs: + if one_of is None and 'oneOf' in kwargs: one_of = kwargs['oneOf'] - if 'patternProperties' in kwargs: + if pattern_properties is None and 'patternProperties' in kwargs: pattern_properties = kwargs['patternProperties'] - if 'uniqueItems' in kwargs: + if unique_items is None and 'uniqueItems' in kwargs: unique_items = kwargs['uniqueItems'] if _ref is not None: @@ -2916,45 +2956,45 @@ def _configure( x_kubernetes_validations: Optional[pulumi.Input[Sequence[pulumi.Input['ValidationRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if '$ref' in kwargs: + if _ref is None and '$ref' in kwargs: _ref = kwargs['$ref'] - if '$schema' in kwargs: + if _schema is None and '$schema' in kwargs: _schema = kwargs['$schema'] - if 'additionalItems' in kwargs: + if additional_items is None and 'additionalItems' in kwargs: additional_items = kwargs['additionalItems'] - if 'additionalProperties' in kwargs: + if additional_properties is None and 'additionalProperties' in kwargs: additional_properties = kwargs['additionalProperties'] - if 'allOf' in kwargs: + if all_of is None and 'allOf' in kwargs: all_of = kwargs['allOf'] - if 'anyOf' in kwargs: + if any_of is None and 'anyOf' in kwargs: any_of = kwargs['anyOf'] - if 'exclusiveMaximum' in kwargs: + if exclusive_maximum is None and 'exclusiveMaximum' in kwargs: exclusive_maximum = kwargs['exclusiveMaximum'] - if 'exclusiveMinimum' in kwargs: + if exclusive_minimum is None and 'exclusiveMinimum' in kwargs: exclusive_minimum = kwargs['exclusiveMinimum'] - if 'externalDocs' in kwargs: + if external_docs is None and 'externalDocs' in kwargs: external_docs = kwargs['externalDocs'] - if 'maxItems' in kwargs: + if max_items is None and 'maxItems' in kwargs: max_items = kwargs['maxItems'] - if 'maxLength' in kwargs: + if max_length is None and 'maxLength' in kwargs: max_length = kwargs['maxLength'] - if 'maxProperties' in kwargs: + if max_properties is None and 'maxProperties' in kwargs: max_properties = kwargs['maxProperties'] - if 'minItems' in kwargs: + if min_items is None and 'minItems' in kwargs: min_items = kwargs['minItems'] - if 'minLength' in kwargs: + if min_length is None and 'minLength' in kwargs: min_length = kwargs['minLength'] - if 'minProperties' in kwargs: + if min_properties is None and 'minProperties' in kwargs: min_properties = kwargs['minProperties'] - if 'multipleOf' in kwargs: + if multiple_of is None and 'multipleOf' in kwargs: multiple_of = kwargs['multipleOf'] - if 'not' in kwargs: + if not_ is None and 'not' in kwargs: not_ = kwargs['not'] - if 'oneOf' in kwargs: + if one_of is None and 'oneOf' in kwargs: one_of = kwargs['oneOf'] - if 'patternProperties' in kwargs: + if pattern_properties is None and 'patternProperties' in kwargs: pattern_properties = kwargs['patternProperties'] - if 'uniqueItems' in kwargs: + if unique_items is None and 'uniqueItems' in kwargs: unique_items = kwargs['uniqueItems'] if _ref is not None: @@ -3618,12 +3658,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, path: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -3739,9 +3783,9 @@ def _configure( rule: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'messageExpression' in kwargs: + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] if field_path is not None: @@ -3891,16 +3935,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: pulumi.Input[str], + rule: Optional[pulumi.Input[str]] = None, field_path: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, message_expression: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldPath' in kwargs: + if rule is None: + raise TypeError("Missing 'rule' argument") + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'messageExpression' in kwargs: + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] _setter("rule", rule) @@ -4036,7 +4082,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -4133,7 +4179,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -4214,9 +4260,9 @@ def _configure( conversion_review_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'conversionReviewVersions' in kwargs: + if conversion_review_versions is None and 'conversionReviewVersions' in kwargs: conversion_review_versions = kwargs['conversionReviewVersions'] if client_config is not None: @@ -4267,13 +4313,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - conversion_review_versions: pulumi.Input[Sequence[pulumi.Input[str]]], + conversion_review_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, client_config: Optional[pulumi.Input['WebhookClientConfigArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conversionReviewVersions' in kwargs: + if conversion_review_versions is None and 'conversionReviewVersions' in kwargs: conversion_review_versions = kwargs['conversionReviewVersions'] - if 'clientConfig' in kwargs: + if conversion_review_versions is None: + raise TypeError("Missing 'conversion_review_versions' argument") + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] _setter("conversion_review_versions", conversion_review_versions) diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/outputs.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/outputs.py index be379081f8..94287c5102 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/outputs.py @@ -97,16 +97,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - json_path: str, - name: str, - type: str, + json_path: Optional[str] = None, + name: Optional[str] = None, + type: Optional[str] = None, description: Optional[str] = None, format: Optional[str] = None, priority: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jsonPath' in kwargs: + if json_path is None and 'jsonPath' in kwargs: json_path = kwargs['jsonPath'] + if json_path is None: + raise TypeError("Missing 'json_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if type is None: + raise TypeError("Missing 'type' argument") _setter("json_path", json_path) _setter("name", name) @@ -225,7 +231,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jsonPath' in kwargs: + if json_path is None and 'jsonPath' in kwargs: json_path = kwargs['jsonPath'] if description is not None: @@ -312,10 +318,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - strategy: str, + strategy: Optional[str] = None, webhook: Optional['outputs.WebhookConversion'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if strategy is None: + raise TypeError("Missing 'strategy' argument") _setter("strategy", strategy) if webhook is not None: @@ -436,14 +444,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.CustomResourceDefinitionSpec', + spec: Optional['outputs.CustomResourceDefinitionSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.CustomResourceDefinitionStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -544,14 +554,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -658,7 +672,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -765,17 +779,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - plural: str, + kind: Optional[str] = None, + plural: Optional[str] = None, categories: Optional[Sequence[str]] = None, list_kind: Optional[str] = None, short_names: Optional[Sequence[str]] = None, singular: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'listKind' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if plural is None: + raise TypeError("Missing 'plural' argument") + if list_kind is None and 'listKind' in kwargs: list_kind = kwargs['listKind'] - if 'shortNames' in kwargs: + if short_names is None and 'shortNames' in kwargs: short_names = kwargs['shortNames'] _setter("kind", kind) @@ -898,9 +916,9 @@ def _configure( singular: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'listKind' in kwargs: + if list_kind is None and 'listKind' in kwargs: list_kind = kwargs['listKind'] - if 'shortNames' in kwargs: + if short_names is None and 'shortNames' in kwargs: short_names = kwargs['shortNames'] if categories is not None: @@ -1015,15 +1033,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: str, - names: 'outputs.CustomResourceDefinitionNames', - scope: str, - versions: Sequence['outputs.CustomResourceDefinitionVersion'], + group: Optional[str] = None, + names: Optional['outputs.CustomResourceDefinitionNames'] = None, + scope: Optional[str] = None, + versions: Optional[Sequence['outputs.CustomResourceDefinitionVersion']] = None, conversion: Optional['outputs.CustomResourceConversion'] = None, preserve_unknown_fields: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preserveUnknownFields' in kwargs: + if group is None: + raise TypeError("Missing 'group' argument") + if names is None: + raise TypeError("Missing 'names' argument") + if scope is None: + raise TypeError("Missing 'scope' argument") + if versions is None: + raise TypeError("Missing 'versions' argument") + if preserve_unknown_fields is None and 'preserveUnknownFields' in kwargs: preserve_unknown_fields = kwargs['preserveUnknownFields'] _setter("group", group) @@ -1142,7 +1168,7 @@ def _configure( versions: Optional[Sequence['outputs.CustomResourceDefinitionVersionPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preserveUnknownFields' in kwargs: + if preserve_unknown_fields is None and 'preserveUnknownFields' in kwargs: preserve_unknown_fields = kwargs['preserveUnknownFields'] if conversion is not None: @@ -1250,15 +1276,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - accepted_names: 'outputs.CustomResourceDefinitionNames', - stored_versions: Sequence[str], + accepted_names: Optional['outputs.CustomResourceDefinitionNames'] = None, + stored_versions: Optional[Sequence[str]] = None, conditions: Optional[Sequence['outputs.CustomResourceDefinitionCondition']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acceptedNames' in kwargs: + if accepted_names is None and 'acceptedNames' in kwargs: accepted_names = kwargs['acceptedNames'] - if 'storedVersions' in kwargs: + if accepted_names is None: + raise TypeError("Missing 'accepted_names' argument") + if stored_versions is None and 'storedVersions' in kwargs: stored_versions = kwargs['storedVersions'] + if stored_versions is None: + raise TypeError("Missing 'stored_versions' argument") _setter("accepted_names", accepted_names) _setter("stored_versions", stored_versions) @@ -1338,9 +1368,9 @@ def _configure( stored_versions: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acceptedNames' in kwargs: + if accepted_names is None and 'acceptedNames' in kwargs: accepted_names = kwargs['acceptedNames'] - if 'storedVersions' in kwargs: + if stored_versions is None and 'storedVersions' in kwargs: stored_versions = kwargs['storedVersions'] if accepted_names is not None: @@ -1433,9 +1463,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - served: bool, - storage: bool, + name: Optional[str] = None, + served: Optional[bool] = None, + storage: Optional[bool] = None, additional_printer_columns: Optional[Sequence['outputs.CustomResourceColumnDefinition']] = None, deprecated: Optional[bool] = None, deprecation_warning: Optional[str] = None, @@ -1443,9 +1473,15 @@ def _configure( subresources: Optional['outputs.CustomResourceSubresources'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if served is None: + raise TypeError("Missing 'served' argument") + if storage is None: + raise TypeError("Missing 'storage' argument") + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'deprecationWarning' in kwargs: + if deprecation_warning is None and 'deprecationWarning' in kwargs: deprecation_warning = kwargs['deprecationWarning'] _setter("name", name) @@ -1595,9 +1631,9 @@ def _configure( subresources: Optional['outputs.CustomResourceSubresourcesPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'deprecationWarning' in kwargs: + if deprecation_warning is None and 'deprecationWarning' in kwargs: deprecation_warning = kwargs['deprecationWarning'] if additional_printer_columns is not None: @@ -1727,16 +1763,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec_replicas_path: str, - status_replicas_path: str, + spec_replicas_path: Optional[str] = None, + status_replicas_path: Optional[str] = None, label_selector_path: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'specReplicasPath' in kwargs: + if spec_replicas_path is None and 'specReplicasPath' in kwargs: spec_replicas_path = kwargs['specReplicasPath'] - if 'statusReplicasPath' in kwargs: + if spec_replicas_path is None: + raise TypeError("Missing 'spec_replicas_path' argument") + if status_replicas_path is None and 'statusReplicasPath' in kwargs: status_replicas_path = kwargs['statusReplicasPath'] - if 'labelSelectorPath' in kwargs: + if status_replicas_path is None: + raise TypeError("Missing 'status_replicas_path' argument") + if label_selector_path is None and 'labelSelectorPath' in kwargs: label_selector_path = kwargs['labelSelectorPath'] _setter("spec_replicas_path", spec_replicas_path) @@ -1819,11 +1859,11 @@ def _configure( status_replicas_path: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'labelSelectorPath' in kwargs: + if label_selector_path is None and 'labelSelectorPath' in kwargs: label_selector_path = kwargs['labelSelectorPath'] - if 'specReplicasPath' in kwargs: + if spec_replicas_path is None and 'specReplicasPath' in kwargs: spec_replicas_path = kwargs['specReplicasPath'] - if 'statusReplicasPath' in kwargs: + if status_replicas_path is None and 'statusReplicasPath' in kwargs: status_replicas_path = kwargs['statusReplicasPath'] if label_selector_path is not None: @@ -1992,7 +2032,7 @@ def _configure( open_apiv3_schema: Optional['outputs.JSONSchemaProps'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'openAPIV3Schema' in kwargs: + if open_apiv3_schema is None and 'openAPIV3Schema' in kwargs: open_apiv3_schema = kwargs['openAPIV3Schema'] if open_apiv3_schema is not None: @@ -2045,7 +2085,7 @@ def _configure( open_apiv3_schema: Optional['outputs.JSONSchemaPropsPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'openAPIV3Schema' in kwargs: + if open_apiv3_schema is None and 'openAPIV3Schema' in kwargs: open_apiv3_schema = kwargs['openAPIV3Schema'] if open_apiv3_schema is not None: @@ -2388,45 +2428,45 @@ def _configure( x_kubernetes_validations: Optional[Sequence['outputs.ValidationRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if '$ref' in kwargs: + if _ref is None and '$ref' in kwargs: _ref = kwargs['$ref'] - if '$schema' in kwargs: + if _schema is None and '$schema' in kwargs: _schema = kwargs['$schema'] - if 'additionalItems' in kwargs: + if additional_items is None and 'additionalItems' in kwargs: additional_items = kwargs['additionalItems'] - if 'additionalProperties' in kwargs: + if additional_properties is None and 'additionalProperties' in kwargs: additional_properties = kwargs['additionalProperties'] - if 'allOf' in kwargs: + if all_of is None and 'allOf' in kwargs: all_of = kwargs['allOf'] - if 'anyOf' in kwargs: + if any_of is None and 'anyOf' in kwargs: any_of = kwargs['anyOf'] - if 'exclusiveMaximum' in kwargs: + if exclusive_maximum is None and 'exclusiveMaximum' in kwargs: exclusive_maximum = kwargs['exclusiveMaximum'] - if 'exclusiveMinimum' in kwargs: + if exclusive_minimum is None and 'exclusiveMinimum' in kwargs: exclusive_minimum = kwargs['exclusiveMinimum'] - if 'externalDocs' in kwargs: + if external_docs is None and 'externalDocs' in kwargs: external_docs = kwargs['externalDocs'] - if 'maxItems' in kwargs: + if max_items is None and 'maxItems' in kwargs: max_items = kwargs['maxItems'] - if 'maxLength' in kwargs: + if max_length is None and 'maxLength' in kwargs: max_length = kwargs['maxLength'] - if 'maxProperties' in kwargs: + if max_properties is None and 'maxProperties' in kwargs: max_properties = kwargs['maxProperties'] - if 'minItems' in kwargs: + if min_items is None and 'minItems' in kwargs: min_items = kwargs['minItems'] - if 'minLength' in kwargs: + if min_length is None and 'minLength' in kwargs: min_length = kwargs['minLength'] - if 'minProperties' in kwargs: + if min_properties is None and 'minProperties' in kwargs: min_properties = kwargs['minProperties'] - if 'multipleOf' in kwargs: + if multiple_of is None and 'multipleOf' in kwargs: multiple_of = kwargs['multipleOf'] - if 'not' in kwargs: + if not_ is None and 'not' in kwargs: not_ = kwargs['not'] - if 'oneOf' in kwargs: + if one_of is None and 'oneOf' in kwargs: one_of = kwargs['oneOf'] - if 'patternProperties' in kwargs: + if pattern_properties is None and 'patternProperties' in kwargs: pattern_properties = kwargs['patternProperties'] - if 'uniqueItems' in kwargs: + if unique_items is None and 'uniqueItems' in kwargs: unique_items = kwargs['uniqueItems'] if _ref is not None: @@ -3049,45 +3089,45 @@ def _configure( x_kubernetes_validations: Optional[Sequence['outputs.ValidationRulePatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if '$ref' in kwargs: + if _ref is None and '$ref' in kwargs: _ref = kwargs['$ref'] - if '$schema' in kwargs: + if _schema is None and '$schema' in kwargs: _schema = kwargs['$schema'] - if 'additionalItems' in kwargs: + if additional_items is None and 'additionalItems' in kwargs: additional_items = kwargs['additionalItems'] - if 'additionalProperties' in kwargs: + if additional_properties is None and 'additionalProperties' in kwargs: additional_properties = kwargs['additionalProperties'] - if 'allOf' in kwargs: + if all_of is None and 'allOf' in kwargs: all_of = kwargs['allOf'] - if 'anyOf' in kwargs: + if any_of is None and 'anyOf' in kwargs: any_of = kwargs['anyOf'] - if 'exclusiveMaximum' in kwargs: + if exclusive_maximum is None and 'exclusiveMaximum' in kwargs: exclusive_maximum = kwargs['exclusiveMaximum'] - if 'exclusiveMinimum' in kwargs: + if exclusive_minimum is None and 'exclusiveMinimum' in kwargs: exclusive_minimum = kwargs['exclusiveMinimum'] - if 'externalDocs' in kwargs: + if external_docs is None and 'externalDocs' in kwargs: external_docs = kwargs['externalDocs'] - if 'maxItems' in kwargs: + if max_items is None and 'maxItems' in kwargs: max_items = kwargs['maxItems'] - if 'maxLength' in kwargs: + if max_length is None and 'maxLength' in kwargs: max_length = kwargs['maxLength'] - if 'maxProperties' in kwargs: + if max_properties is None and 'maxProperties' in kwargs: max_properties = kwargs['maxProperties'] - if 'minItems' in kwargs: + if min_items is None and 'minItems' in kwargs: min_items = kwargs['minItems'] - if 'minLength' in kwargs: + if min_length is None and 'minLength' in kwargs: min_length = kwargs['minLength'] - if 'minProperties' in kwargs: + if min_properties is None and 'minProperties' in kwargs: min_properties = kwargs['minProperties'] - if 'multipleOf' in kwargs: + if multiple_of is None and 'multipleOf' in kwargs: multiple_of = kwargs['multipleOf'] - if 'not' in kwargs: + if not_ is None and 'not' in kwargs: not_ = kwargs['not'] - if 'oneOf' in kwargs: + if one_of is None and 'oneOf' in kwargs: one_of = kwargs['oneOf'] - if 'patternProperties' in kwargs: + if pattern_properties is None and 'patternProperties' in kwargs: pattern_properties = kwargs['patternProperties'] - if 'uniqueItems' in kwargs: + if unique_items is None and 'uniqueItems' in kwargs: unique_items = kwargs['uniqueItems'] if _ref is not None: @@ -3489,12 +3529,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - namespace: str, + name: Optional[str] = None, + namespace: Optional[str] = None, path: Optional[str] = None, port: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -3685,16 +3729,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: str, + rule: Optional[str] = None, field_path: Optional[str] = None, message: Optional[str] = None, message_expression: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldPath' in kwargs: + if rule is None: + raise TypeError("Missing 'rule' argument") + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'messageExpression' in kwargs: + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] _setter("rule", rule) @@ -3852,9 +3898,9 @@ def _configure( rule: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'messageExpression' in kwargs: + if message_expression is None and 'messageExpression' in kwargs: message_expression = kwargs['messageExpression'] if field_path is not None: @@ -3991,7 +4037,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -4096,7 +4142,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -4183,13 +4229,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - conversion_review_versions: Sequence[str], + conversion_review_versions: Optional[Sequence[str]] = None, client_config: Optional['outputs.WebhookClientConfig'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conversionReviewVersions' in kwargs: + if conversion_review_versions is None and 'conversionReviewVersions' in kwargs: conversion_review_versions = kwargs['conversionReviewVersions'] - if 'clientConfig' in kwargs: + if conversion_review_versions is None: + raise TypeError("Missing 'conversion_review_versions' argument") + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] _setter("conversion_review_versions", conversion_review_versions) @@ -4257,9 +4305,9 @@ def _configure( conversion_review_versions: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] - if 'conversionReviewVersions' in kwargs: + if conversion_review_versions is None and 'conversionReviewVersions' in kwargs: conversion_review_versions = kwargs['conversionReviewVersions'] if client_config is not None: diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py index 7166f5d661..8c37e0f693 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py @@ -37,13 +37,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CustomResourceDefinitionSpecArgs'], + spec: Optional[pulumi.Input['CustomResourceDefinitionSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py index e212243105..a517eb721a 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py @@ -37,13 +37,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py index b76ef91772..fa8e23304e 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['CustomResourceDefinitionSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/_inputs.py index 31f21c6415..1447938bc0 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/_inputs.py @@ -78,7 +78,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'JSONPath' in kwargs: + if json_path is None and 'JSONPath' in kwargs: json_path = kwargs['JSONPath'] if json_path is not None: @@ -197,16 +197,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - json_path: pulumi.Input[str], - name: pulumi.Input[str], - type: pulumi.Input[str], + json_path: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, format: Optional[pulumi.Input[str]] = None, priority: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'JSONPath' in kwargs: + if json_path is None and 'JSONPath' in kwargs: json_path = kwargs['JSONPath'] + if json_path is None: + raise TypeError("Missing 'json_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if type is None: + raise TypeError("Missing 'type' argument") _setter("json_path", json_path) _setter("name", name) @@ -318,9 +324,9 @@ def _configure( webhook_client_config: Optional[pulumi.Input['WebhookClientConfigPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conversionReviewVersions' in kwargs: + if conversion_review_versions is None and 'conversionReviewVersions' in kwargs: conversion_review_versions = kwargs['conversionReviewVersions'] - if 'webhookClientConfig' in kwargs: + if webhook_client_config is None and 'webhookClientConfig' in kwargs: webhook_client_config = kwargs['webhookClientConfig'] if conversion_review_versions is not None: @@ -390,14 +396,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - strategy: pulumi.Input[str], + strategy: Optional[pulumi.Input[str]] = None, conversion_review_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, webhook_client_config: Optional[pulumi.Input['WebhookClientConfigArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conversionReviewVersions' in kwargs: + if strategy is None: + raise TypeError("Missing 'strategy' argument") + if conversion_review_versions is None and 'conversionReviewVersions' in kwargs: conversion_review_versions = kwargs['conversionReviewVersions'] - if 'webhookClientConfig' in kwargs: + if webhook_client_config is None and 'webhookClientConfig' in kwargs: webhook_client_config = kwargs['webhookClientConfig'] _setter("strategy", strategy) @@ -471,14 +479,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -589,9 +601,9 @@ def _configure( singular: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'listKind' in kwargs: + if list_kind is None and 'listKind' in kwargs: list_kind = kwargs['listKind'] - if 'shortNames' in kwargs: + if short_names is None and 'shortNames' in kwargs: short_names = kwargs['shortNames'] if categories is not None: @@ -710,17 +722,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - plural: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + plural: Optional[pulumi.Input[str]] = None, categories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, list_kind: Optional[pulumi.Input[str]] = None, short_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, singular: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'listKind' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if plural is None: + raise TypeError("Missing 'plural' argument") + if list_kind is None and 'listKind' in kwargs: list_kind = kwargs['listKind'] - if 'shortNames' in kwargs: + if short_names is None and 'shortNames' in kwargs: short_names = kwargs['shortNames'] _setter("kind", kind) @@ -861,9 +877,9 @@ def _configure( versions: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionVersionPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'preserveUnknownFields' in kwargs: + if preserve_unknown_fields is None and 'preserveUnknownFields' in kwargs: preserve_unknown_fields = kwargs['preserveUnknownFields'] if additional_printer_columns is not None: @@ -1050,9 +1066,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[str], - names: pulumi.Input['CustomResourceDefinitionNamesArgs'], - scope: pulumi.Input[str], + group: Optional[pulumi.Input[str]] = None, + names: Optional[pulumi.Input['CustomResourceDefinitionNamesArgs']] = None, + scope: Optional[pulumi.Input[str]] = None, additional_printer_columns: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceColumnDefinitionArgs']]]] = None, conversion: Optional[pulumi.Input['CustomResourceConversionArgs']] = None, preserve_unknown_fields: Optional[pulumi.Input[bool]] = None, @@ -1062,9 +1078,15 @@ def _configure( versions: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionVersionArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if group is None: + raise TypeError("Missing 'group' argument") + if names is None: + raise TypeError("Missing 'names' argument") + if scope is None: + raise TypeError("Missing 'scope' argument") + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'preserveUnknownFields' in kwargs: + if preserve_unknown_fields is None and 'preserveUnknownFields' in kwargs: preserve_unknown_fields = kwargs['preserveUnknownFields'] _setter("group", group) @@ -1227,15 +1249,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - accepted_names: pulumi.Input['CustomResourceDefinitionNamesArgs'], - stored_versions: pulumi.Input[Sequence[pulumi.Input[str]]], + accepted_names: Optional[pulumi.Input['CustomResourceDefinitionNamesArgs']] = None, + stored_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceDefinitionConditionArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acceptedNames' in kwargs: + if accepted_names is None and 'acceptedNames' in kwargs: accepted_names = kwargs['acceptedNames'] - if 'storedVersions' in kwargs: + if accepted_names is None: + raise TypeError("Missing 'accepted_names' argument") + if stored_versions is None and 'storedVersions' in kwargs: stored_versions = kwargs['storedVersions'] + if stored_versions is None: + raise TypeError("Missing 'stored_versions' argument") _setter("accepted_names", accepted_names) _setter("stored_versions", stored_versions) @@ -1325,9 +1351,9 @@ def _configure( subresources: Optional[pulumi.Input['CustomResourceSubresourcesPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'deprecationWarning' in kwargs: + if deprecation_warning is None and 'deprecationWarning' in kwargs: deprecation_warning = kwargs['deprecationWarning'] if additional_printer_columns is not None: @@ -1480,9 +1506,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - served: pulumi.Input[bool], - storage: pulumi.Input[bool], + name: Optional[pulumi.Input[str]] = None, + served: Optional[pulumi.Input[bool]] = None, + storage: Optional[pulumi.Input[bool]] = None, additional_printer_columns: Optional[pulumi.Input[Sequence[pulumi.Input['CustomResourceColumnDefinitionArgs']]]] = None, deprecated: Optional[pulumi.Input[bool]] = None, deprecation_warning: Optional[pulumi.Input[str]] = None, @@ -1490,9 +1516,15 @@ def _configure( subresources: Optional[pulumi.Input['CustomResourceSubresourcesArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if served is None: + raise TypeError("Missing 'served' argument") + if storage is None: + raise TypeError("Missing 'storage' argument") + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'deprecationWarning' in kwargs: + if deprecation_warning is None and 'deprecationWarning' in kwargs: deprecation_warning = kwargs['deprecationWarning'] _setter("name", name) @@ -1632,14 +1664,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CustomResourceDefinitionSpecArgs'], + spec: Optional[pulumi.Input['CustomResourceDefinitionSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['CustomResourceDefinitionStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1736,11 +1770,11 @@ def _configure( status_replicas_path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'labelSelectorPath' in kwargs: + if label_selector_path is None and 'labelSelectorPath' in kwargs: label_selector_path = kwargs['labelSelectorPath'] - if 'specReplicasPath' in kwargs: + if spec_replicas_path is None and 'specReplicasPath' in kwargs: spec_replicas_path = kwargs['specReplicasPath'] - if 'statusReplicasPath' in kwargs: + if status_replicas_path is None and 'statusReplicasPath' in kwargs: status_replicas_path = kwargs['statusReplicasPath'] if label_selector_path is not None: @@ -1808,16 +1842,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec_replicas_path: pulumi.Input[str], - status_replicas_path: pulumi.Input[str], + spec_replicas_path: Optional[pulumi.Input[str]] = None, + status_replicas_path: Optional[pulumi.Input[str]] = None, label_selector_path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'specReplicasPath' in kwargs: + if spec_replicas_path is None and 'specReplicasPath' in kwargs: spec_replicas_path = kwargs['specReplicasPath'] - if 'statusReplicasPath' in kwargs: + if spec_replicas_path is None: + raise TypeError("Missing 'spec_replicas_path' argument") + if status_replicas_path is None and 'statusReplicasPath' in kwargs: status_replicas_path = kwargs['statusReplicasPath'] - if 'labelSelectorPath' in kwargs: + if status_replicas_path is None: + raise TypeError("Missing 'status_replicas_path' argument") + if label_selector_path is None and 'labelSelectorPath' in kwargs: label_selector_path = kwargs['labelSelectorPath'] _setter("spec_replicas_path", spec_replicas_path) @@ -1986,7 +2024,7 @@ def _configure( open_apiv3_schema: Optional[pulumi.Input['JSONSchemaPropsPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'openAPIV3Schema' in kwargs: + if open_apiv3_schema is None and 'openAPIV3Schema' in kwargs: open_apiv3_schema = kwargs['openAPIV3Schema'] if open_apiv3_schema is not None: @@ -2023,7 +2061,7 @@ def _configure( open_apiv3_schema: Optional[pulumi.Input['JSONSchemaPropsArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'openAPIV3Schema' in kwargs: + if open_apiv3_schema is None and 'openAPIV3Schema' in kwargs: open_apiv3_schema = kwargs['openAPIV3Schema'] if open_apiv3_schema is not None: @@ -2316,45 +2354,45 @@ def _configure( x_kubernetes_preserve_unknown_fields: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if '$ref' in kwargs: + if _ref is None and '$ref' in kwargs: _ref = kwargs['$ref'] - if '$schema' in kwargs: + if _schema is None and '$schema' in kwargs: _schema = kwargs['$schema'] - if 'additionalItems' in kwargs: + if additional_items is None and 'additionalItems' in kwargs: additional_items = kwargs['additionalItems'] - if 'additionalProperties' in kwargs: + if additional_properties is None and 'additionalProperties' in kwargs: additional_properties = kwargs['additionalProperties'] - if 'allOf' in kwargs: + if all_of is None and 'allOf' in kwargs: all_of = kwargs['allOf'] - if 'anyOf' in kwargs: + if any_of is None and 'anyOf' in kwargs: any_of = kwargs['anyOf'] - if 'exclusiveMaximum' in kwargs: + if exclusive_maximum is None and 'exclusiveMaximum' in kwargs: exclusive_maximum = kwargs['exclusiveMaximum'] - if 'exclusiveMinimum' in kwargs: + if exclusive_minimum is None and 'exclusiveMinimum' in kwargs: exclusive_minimum = kwargs['exclusiveMinimum'] - if 'externalDocs' in kwargs: + if external_docs is None and 'externalDocs' in kwargs: external_docs = kwargs['externalDocs'] - if 'maxItems' in kwargs: + if max_items is None and 'maxItems' in kwargs: max_items = kwargs['maxItems'] - if 'maxLength' in kwargs: + if max_length is None and 'maxLength' in kwargs: max_length = kwargs['maxLength'] - if 'maxProperties' in kwargs: + if max_properties is None and 'maxProperties' in kwargs: max_properties = kwargs['maxProperties'] - if 'minItems' in kwargs: + if min_items is None and 'minItems' in kwargs: min_items = kwargs['minItems'] - if 'minLength' in kwargs: + if min_length is None and 'minLength' in kwargs: min_length = kwargs['minLength'] - if 'minProperties' in kwargs: + if min_properties is None and 'minProperties' in kwargs: min_properties = kwargs['minProperties'] - if 'multipleOf' in kwargs: + if multiple_of is None and 'multipleOf' in kwargs: multiple_of = kwargs['multipleOf'] - if 'not' in kwargs: + if not_ is None and 'not' in kwargs: not_ = kwargs['not'] - if 'oneOf' in kwargs: + if one_of is None and 'oneOf' in kwargs: one_of = kwargs['oneOf'] - if 'patternProperties' in kwargs: + if pattern_properties is None and 'patternProperties' in kwargs: pattern_properties = kwargs['patternProperties'] - if 'uniqueItems' in kwargs: + if unique_items is None and 'uniqueItems' in kwargs: unique_items = kwargs['uniqueItems'] if _ref is not None: @@ -3073,45 +3111,45 @@ def _configure( x_kubernetes_preserve_unknown_fields: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if '$ref' in kwargs: + if _ref is None and '$ref' in kwargs: _ref = kwargs['$ref'] - if '$schema' in kwargs: + if _schema is None and '$schema' in kwargs: _schema = kwargs['$schema'] - if 'additionalItems' in kwargs: + if additional_items is None and 'additionalItems' in kwargs: additional_items = kwargs['additionalItems'] - if 'additionalProperties' in kwargs: + if additional_properties is None and 'additionalProperties' in kwargs: additional_properties = kwargs['additionalProperties'] - if 'allOf' in kwargs: + if all_of is None and 'allOf' in kwargs: all_of = kwargs['allOf'] - if 'anyOf' in kwargs: + if any_of is None and 'anyOf' in kwargs: any_of = kwargs['anyOf'] - if 'exclusiveMaximum' in kwargs: + if exclusive_maximum is None and 'exclusiveMaximum' in kwargs: exclusive_maximum = kwargs['exclusiveMaximum'] - if 'exclusiveMinimum' in kwargs: + if exclusive_minimum is None and 'exclusiveMinimum' in kwargs: exclusive_minimum = kwargs['exclusiveMinimum'] - if 'externalDocs' in kwargs: + if external_docs is None and 'externalDocs' in kwargs: external_docs = kwargs['externalDocs'] - if 'maxItems' in kwargs: + if max_items is None and 'maxItems' in kwargs: max_items = kwargs['maxItems'] - if 'maxLength' in kwargs: + if max_length is None and 'maxLength' in kwargs: max_length = kwargs['maxLength'] - if 'maxProperties' in kwargs: + if max_properties is None and 'maxProperties' in kwargs: max_properties = kwargs['maxProperties'] - if 'minItems' in kwargs: + if min_items is None and 'minItems' in kwargs: min_items = kwargs['minItems'] - if 'minLength' in kwargs: + if min_length is None and 'minLength' in kwargs: min_length = kwargs['minLength'] - if 'minProperties' in kwargs: + if min_properties is None and 'minProperties' in kwargs: min_properties = kwargs['minProperties'] - if 'multipleOf' in kwargs: + if multiple_of is None and 'multipleOf' in kwargs: multiple_of = kwargs['multipleOf'] - if 'not' in kwargs: + if not_ is None and 'not' in kwargs: not_ = kwargs['not'] - if 'oneOf' in kwargs: + if one_of is None and 'oneOf' in kwargs: one_of = kwargs['oneOf'] - if 'patternProperties' in kwargs: + if pattern_properties is None and 'patternProperties' in kwargs: pattern_properties = kwargs['patternProperties'] - if 'uniqueItems' in kwargs: + if unique_items is None and 'uniqueItems' in kwargs: unique_items = kwargs['uniqueItems'] if _ref is not None: @@ -3759,12 +3797,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, path: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -3860,7 +3902,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -3957,7 +3999,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/outputs.py index d476bdc8ae..9860f44e06 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/outputs.py @@ -93,16 +93,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - json_path: str, - name: str, - type: str, + json_path: Optional[str] = None, + name: Optional[str] = None, + type: Optional[str] = None, description: Optional[str] = None, format: Optional[str] = None, priority: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'JSONPath' in kwargs: + if json_path is None and 'JSONPath' in kwargs: json_path = kwargs['JSONPath'] + if json_path is None: + raise TypeError("Missing 'json_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if type is None: + raise TypeError("Missing 'type' argument") _setter("json_path", json_path) _setter("name", name) @@ -221,7 +227,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'JSONPath' in kwargs: + if json_path is None and 'JSONPath' in kwargs: json_path = kwargs['JSONPath'] if json_path is not None: @@ -330,14 +336,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - strategy: str, + strategy: Optional[str] = None, conversion_review_versions: Optional[Sequence[str]] = None, webhook_client_config: Optional['outputs.WebhookClientConfig'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conversionReviewVersions' in kwargs: + if strategy is None: + raise TypeError("Missing 'strategy' argument") + if conversion_review_versions is None and 'conversionReviewVersions' in kwargs: conversion_review_versions = kwargs['conversionReviewVersions'] - if 'webhookClientConfig' in kwargs: + if webhook_client_config is None and 'webhookClientConfig' in kwargs: webhook_client_config = kwargs['webhookClientConfig'] _setter("strategy", strategy) @@ -421,9 +429,9 @@ def _configure( webhook_client_config: Optional['outputs.WebhookClientConfigPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conversionReviewVersions' in kwargs: + if conversion_review_versions is None and 'conversionReviewVersions' in kwargs: conversion_review_versions = kwargs['conversionReviewVersions'] - if 'webhookClientConfig' in kwargs: + if webhook_client_config is None and 'webhookClientConfig' in kwargs: webhook_client_config = kwargs['webhookClientConfig'] if conversion_review_versions is not None: @@ -505,14 +513,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.CustomResourceDefinitionSpec', + spec: Optional['outputs.CustomResourceDefinitionSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.CustomResourceDefinitionStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -610,14 +620,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -724,7 +738,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -831,17 +845,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - plural: str, + kind: Optional[str] = None, + plural: Optional[str] = None, categories: Optional[Sequence[str]] = None, list_kind: Optional[str] = None, short_names: Optional[Sequence[str]] = None, singular: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'listKind' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if plural is None: + raise TypeError("Missing 'plural' argument") + if list_kind is None and 'listKind' in kwargs: list_kind = kwargs['listKind'] - if 'shortNames' in kwargs: + if short_names is None and 'shortNames' in kwargs: short_names = kwargs['shortNames'] _setter("kind", kind) @@ -964,9 +982,9 @@ def _configure( singular: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'listKind' in kwargs: + if list_kind is None and 'listKind' in kwargs: list_kind = kwargs['listKind'] - if 'shortNames' in kwargs: + if short_names is None and 'shortNames' in kwargs: short_names = kwargs['shortNames'] if categories is not None: @@ -1095,9 +1113,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: str, - names: 'outputs.CustomResourceDefinitionNames', - scope: str, + group: Optional[str] = None, + names: Optional['outputs.CustomResourceDefinitionNames'] = None, + scope: Optional[str] = None, additional_printer_columns: Optional[Sequence['outputs.CustomResourceColumnDefinition']] = None, conversion: Optional['outputs.CustomResourceConversion'] = None, preserve_unknown_fields: Optional[bool] = None, @@ -1107,9 +1125,15 @@ def _configure( versions: Optional[Sequence['outputs.CustomResourceDefinitionVersion']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if group is None: + raise TypeError("Missing 'group' argument") + if names is None: + raise TypeError("Missing 'names' argument") + if scope is None: + raise TypeError("Missing 'scope' argument") + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'preserveUnknownFields' in kwargs: + if preserve_unknown_fields is None and 'preserveUnknownFields' in kwargs: preserve_unknown_fields = kwargs['preserveUnknownFields'] _setter("group", group) @@ -1287,9 +1311,9 @@ def _configure( versions: Optional[Sequence['outputs.CustomResourceDefinitionVersionPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'preserveUnknownFields' in kwargs: + if preserve_unknown_fields is None and 'preserveUnknownFields' in kwargs: preserve_unknown_fields = kwargs['preserveUnknownFields'] if additional_printer_columns is not None: @@ -1437,15 +1461,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - accepted_names: 'outputs.CustomResourceDefinitionNames', - stored_versions: Sequence[str], + accepted_names: Optional['outputs.CustomResourceDefinitionNames'] = None, + stored_versions: Optional[Sequence[str]] = None, conditions: Optional[Sequence['outputs.CustomResourceDefinitionCondition']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acceptedNames' in kwargs: + if accepted_names is None and 'acceptedNames' in kwargs: accepted_names = kwargs['acceptedNames'] - if 'storedVersions' in kwargs: + if accepted_names is None: + raise TypeError("Missing 'accepted_names' argument") + if stored_versions is None and 'storedVersions' in kwargs: stored_versions = kwargs['storedVersions'] + if stored_versions is None: + raise TypeError("Missing 'stored_versions' argument") _setter("accepted_names", accepted_names) _setter("stored_versions", stored_versions) @@ -1525,9 +1553,9 @@ def _configure( stored_versions: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acceptedNames' in kwargs: + if accepted_names is None and 'acceptedNames' in kwargs: accepted_names = kwargs['acceptedNames'] - if 'storedVersions' in kwargs: + if stored_versions is None and 'storedVersions' in kwargs: stored_versions = kwargs['storedVersions'] if accepted_names is not None: @@ -1620,9 +1648,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - served: bool, - storage: bool, + name: Optional[str] = None, + served: Optional[bool] = None, + storage: Optional[bool] = None, additional_printer_columns: Optional[Sequence['outputs.CustomResourceColumnDefinition']] = None, deprecated: Optional[bool] = None, deprecation_warning: Optional[str] = None, @@ -1630,9 +1658,15 @@ def _configure( subresources: Optional['outputs.CustomResourceSubresources'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if served is None: + raise TypeError("Missing 'served' argument") + if storage is None: + raise TypeError("Missing 'storage' argument") + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'deprecationWarning' in kwargs: + if deprecation_warning is None and 'deprecationWarning' in kwargs: deprecation_warning = kwargs['deprecationWarning'] _setter("name", name) @@ -1782,9 +1816,9 @@ def _configure( subresources: Optional['outputs.CustomResourceSubresourcesPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'additionalPrinterColumns' in kwargs: + if additional_printer_columns is None and 'additionalPrinterColumns' in kwargs: additional_printer_columns = kwargs['additionalPrinterColumns'] - if 'deprecationWarning' in kwargs: + if deprecation_warning is None and 'deprecationWarning' in kwargs: deprecation_warning = kwargs['deprecationWarning'] if additional_printer_columns is not None: @@ -1914,16 +1948,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec_replicas_path: str, - status_replicas_path: str, + spec_replicas_path: Optional[str] = None, + status_replicas_path: Optional[str] = None, label_selector_path: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'specReplicasPath' in kwargs: + if spec_replicas_path is None and 'specReplicasPath' in kwargs: spec_replicas_path = kwargs['specReplicasPath'] - if 'statusReplicasPath' in kwargs: + if spec_replicas_path is None: + raise TypeError("Missing 'spec_replicas_path' argument") + if status_replicas_path is None and 'statusReplicasPath' in kwargs: status_replicas_path = kwargs['statusReplicasPath'] - if 'labelSelectorPath' in kwargs: + if status_replicas_path is None: + raise TypeError("Missing 'status_replicas_path' argument") + if label_selector_path is None and 'labelSelectorPath' in kwargs: label_selector_path = kwargs['labelSelectorPath'] _setter("spec_replicas_path", spec_replicas_path) @@ -2006,11 +2044,11 @@ def _configure( status_replicas_path: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'labelSelectorPath' in kwargs: + if label_selector_path is None and 'labelSelectorPath' in kwargs: label_selector_path = kwargs['labelSelectorPath'] - if 'specReplicasPath' in kwargs: + if spec_replicas_path is None and 'specReplicasPath' in kwargs: spec_replicas_path = kwargs['specReplicasPath'] - if 'statusReplicasPath' in kwargs: + if status_replicas_path is None and 'statusReplicasPath' in kwargs: status_replicas_path = kwargs['statusReplicasPath'] if label_selector_path is not None: @@ -2179,7 +2217,7 @@ def _configure( open_apiv3_schema: Optional['outputs.JSONSchemaProps'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'openAPIV3Schema' in kwargs: + if open_apiv3_schema is None and 'openAPIV3Schema' in kwargs: open_apiv3_schema = kwargs['openAPIV3Schema'] if open_apiv3_schema is not None: @@ -2232,7 +2270,7 @@ def _configure( open_apiv3_schema: Optional['outputs.JSONSchemaPropsPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'openAPIV3Schema' in kwargs: + if open_apiv3_schema is None and 'openAPIV3Schema' in kwargs: open_apiv3_schema = kwargs['openAPIV3Schema'] if open_apiv3_schema is not None: @@ -2569,45 +2607,45 @@ def _configure( x_kubernetes_preserve_unknown_fields: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if '$ref' in kwargs: + if _ref is None and '$ref' in kwargs: _ref = kwargs['$ref'] - if '$schema' in kwargs: + if _schema is None and '$schema' in kwargs: _schema = kwargs['$schema'] - if 'additionalItems' in kwargs: + if additional_items is None and 'additionalItems' in kwargs: additional_items = kwargs['additionalItems'] - if 'additionalProperties' in kwargs: + if additional_properties is None and 'additionalProperties' in kwargs: additional_properties = kwargs['additionalProperties'] - if 'allOf' in kwargs: + if all_of is None and 'allOf' in kwargs: all_of = kwargs['allOf'] - if 'anyOf' in kwargs: + if any_of is None and 'anyOf' in kwargs: any_of = kwargs['anyOf'] - if 'exclusiveMaximum' in kwargs: + if exclusive_maximum is None and 'exclusiveMaximum' in kwargs: exclusive_maximum = kwargs['exclusiveMaximum'] - if 'exclusiveMinimum' in kwargs: + if exclusive_minimum is None and 'exclusiveMinimum' in kwargs: exclusive_minimum = kwargs['exclusiveMinimum'] - if 'externalDocs' in kwargs: + if external_docs is None and 'externalDocs' in kwargs: external_docs = kwargs['externalDocs'] - if 'maxItems' in kwargs: + if max_items is None and 'maxItems' in kwargs: max_items = kwargs['maxItems'] - if 'maxLength' in kwargs: + if max_length is None and 'maxLength' in kwargs: max_length = kwargs['maxLength'] - if 'maxProperties' in kwargs: + if max_properties is None and 'maxProperties' in kwargs: max_properties = kwargs['maxProperties'] - if 'minItems' in kwargs: + if min_items is None and 'minItems' in kwargs: min_items = kwargs['minItems'] - if 'minLength' in kwargs: + if min_length is None and 'minLength' in kwargs: min_length = kwargs['minLength'] - if 'minProperties' in kwargs: + if min_properties is None and 'minProperties' in kwargs: min_properties = kwargs['minProperties'] - if 'multipleOf' in kwargs: + if multiple_of is None and 'multipleOf' in kwargs: multiple_of = kwargs['multipleOf'] - if 'not' in kwargs: + if not_ is None and 'not' in kwargs: not_ = kwargs['not'] - if 'oneOf' in kwargs: + if one_of is None and 'oneOf' in kwargs: one_of = kwargs['oneOf'] - if 'patternProperties' in kwargs: + if pattern_properties is None and 'patternProperties' in kwargs: pattern_properties = kwargs['patternProperties'] - if 'uniqueItems' in kwargs: + if unique_items is None and 'uniqueItems' in kwargs: unique_items = kwargs['uniqueItems'] if _ref is not None: @@ -3212,45 +3250,45 @@ def _configure( x_kubernetes_preserve_unknown_fields: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if '$ref' in kwargs: + if _ref is None and '$ref' in kwargs: _ref = kwargs['$ref'] - if '$schema' in kwargs: + if _schema is None and '$schema' in kwargs: _schema = kwargs['$schema'] - if 'additionalItems' in kwargs: + if additional_items is None and 'additionalItems' in kwargs: additional_items = kwargs['additionalItems'] - if 'additionalProperties' in kwargs: + if additional_properties is None and 'additionalProperties' in kwargs: additional_properties = kwargs['additionalProperties'] - if 'allOf' in kwargs: + if all_of is None and 'allOf' in kwargs: all_of = kwargs['allOf'] - if 'anyOf' in kwargs: + if any_of is None and 'anyOf' in kwargs: any_of = kwargs['anyOf'] - if 'exclusiveMaximum' in kwargs: + if exclusive_maximum is None and 'exclusiveMaximum' in kwargs: exclusive_maximum = kwargs['exclusiveMaximum'] - if 'exclusiveMinimum' in kwargs: + if exclusive_minimum is None and 'exclusiveMinimum' in kwargs: exclusive_minimum = kwargs['exclusiveMinimum'] - if 'externalDocs' in kwargs: + if external_docs is None and 'externalDocs' in kwargs: external_docs = kwargs['externalDocs'] - if 'maxItems' in kwargs: + if max_items is None and 'maxItems' in kwargs: max_items = kwargs['maxItems'] - if 'maxLength' in kwargs: + if max_length is None and 'maxLength' in kwargs: max_length = kwargs['maxLength'] - if 'maxProperties' in kwargs: + if max_properties is None and 'maxProperties' in kwargs: max_properties = kwargs['maxProperties'] - if 'minItems' in kwargs: + if min_items is None and 'minItems' in kwargs: min_items = kwargs['minItems'] - if 'minLength' in kwargs: + if min_length is None and 'minLength' in kwargs: min_length = kwargs['minLength'] - if 'minProperties' in kwargs: + if min_properties is None and 'minProperties' in kwargs: min_properties = kwargs['minProperties'] - if 'multipleOf' in kwargs: + if multiple_of is None and 'multipleOf' in kwargs: multiple_of = kwargs['multipleOf'] - if 'not' in kwargs: + if not_ is None and 'not' in kwargs: not_ = kwargs['not'] - if 'oneOf' in kwargs: + if one_of is None and 'oneOf' in kwargs: one_of = kwargs['oneOf'] - if 'patternProperties' in kwargs: + if pattern_properties is None and 'patternProperties' in kwargs: pattern_properties = kwargs['patternProperties'] - if 'uniqueItems' in kwargs: + if unique_items is None and 'uniqueItems' in kwargs: unique_items = kwargs['uniqueItems'] if _ref is not None: @@ -3640,12 +3678,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - namespace: str, + name: Optional[str] = None, + namespace: Optional[str] = None, path: Optional[str] = None, port: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -3821,7 +3863,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -3926,7 +3968,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py index 20efbc205e..fb4a35c75e 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['APIServiceSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py index f53e5e07e8..1c71f1db27 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServicePatch.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServicePatch.py index 2e62c1d94c..35fab7c5ad 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServicePatch.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServicePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['APIServiceSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/_inputs.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/_inputs.py index d2317778f1..8f4a40ad38 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/_inputs.py @@ -47,14 +47,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -169,13 +173,13 @@ def _configure( version_priority: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] - if 'groupPriorityMinimum' in kwargs: + if group_priority_minimum is None and 'groupPriorityMinimum' in kwargs: group_priority_minimum = kwargs['groupPriorityMinimum'] - if 'insecureSkipTLSVerify' in kwargs: + if insecure_skip_tls_verify is None and 'insecureSkipTLSVerify' in kwargs: insecure_skip_tls_verify = kwargs['insecureSkipTLSVerify'] - if 'versionPriority' in kwargs: + if version_priority is None and 'versionPriority' in kwargs: version_priority = kwargs['versionPriority'] if ca_bundle is not None: @@ -311,8 +315,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group_priority_minimum: pulumi.Input[int], - version_priority: pulumi.Input[int], + group_priority_minimum: Optional[pulumi.Input[int]] = None, + version_priority: Optional[pulumi.Input[int]] = None, ca_bundle: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input[str]] = None, insecure_skip_tls_verify: Optional[pulumi.Input[bool]] = None, @@ -320,13 +324,17 @@ def _configure( version: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'groupPriorityMinimum' in kwargs: + if group_priority_minimum is None and 'groupPriorityMinimum' in kwargs: group_priority_minimum = kwargs['groupPriorityMinimum'] - if 'versionPriority' in kwargs: + if group_priority_minimum is None: + raise TypeError("Missing 'group_priority_minimum' argument") + if version_priority is None and 'versionPriority' in kwargs: version_priority = kwargs['versionPriority'] - if 'caBundle' in kwargs: + if version_priority is None: + raise TypeError("Missing 'version_priority' argument") + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] - if 'insecureSkipTLSVerify' in kwargs: + if insecure_skip_tls_verify is None and 'insecureSkipTLSVerify' in kwargs: insecure_skip_tls_verify = kwargs['insecureSkipTLSVerify'] _setter("group_priority_minimum", group_priority_minimum) @@ -496,7 +504,7 @@ def _configure( status: Optional[pulumi.Input['APIServiceStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/outputs.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/outputs.py index 1883a77349..32db0e4204 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/outputs.py @@ -77,7 +77,7 @@ def _configure( status: Optional['outputs.APIServiceStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -179,14 +179,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -293,7 +297,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -407,8 +411,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group_priority_minimum: int, - version_priority: int, + group_priority_minimum: Optional[int] = None, + version_priority: Optional[int] = None, ca_bundle: Optional[str] = None, group: Optional[str] = None, insecure_skip_tls_verify: Optional[bool] = None, @@ -416,13 +420,17 @@ def _configure( version: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'groupPriorityMinimum' in kwargs: + if group_priority_minimum is None and 'groupPriorityMinimum' in kwargs: group_priority_minimum = kwargs['groupPriorityMinimum'] - if 'versionPriority' in kwargs: + if group_priority_minimum is None: + raise TypeError("Missing 'group_priority_minimum' argument") + if version_priority is None and 'versionPriority' in kwargs: version_priority = kwargs['versionPriority'] - if 'caBundle' in kwargs: + if version_priority is None: + raise TypeError("Missing 'version_priority' argument") + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] - if 'insecureSkipTLSVerify' in kwargs: + if insecure_skip_tls_verify is None and 'insecureSkipTLSVerify' in kwargs: insecure_skip_tls_verify = kwargs['insecureSkipTLSVerify'] _setter("group_priority_minimum", group_priority_minimum) @@ -563,13 +571,13 @@ def _configure( version_priority: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] - if 'groupPriorityMinimum' in kwargs: + if group_priority_minimum is None and 'groupPriorityMinimum' in kwargs: group_priority_minimum = kwargs['groupPriorityMinimum'] - if 'insecureSkipTLSVerify' in kwargs: + if insecure_skip_tls_verify is None and 'insecureSkipTLSVerify' in kwargs: insecure_skip_tls_verify = kwargs['insecureSkipTLSVerify'] - if 'versionPriority' in kwargs: + if version_priority is None and 'versionPriority' in kwargs: version_priority = kwargs['versionPriority'] if ca_bundle is not None: diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py index 49a7447970..9fee5f50bb 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['APIServiceSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py index c4c352cdc8..8221d2f395 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py @@ -36,13 +36,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['APIServiceArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py index a040422b79..02ba69631f 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['APIServiceSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/_inputs.py index 61f61846ea..a0b8030be1 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/_inputs.py @@ -47,14 +47,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -169,13 +173,13 @@ def _configure( version_priority: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] - if 'groupPriorityMinimum' in kwargs: + if group_priority_minimum is None and 'groupPriorityMinimum' in kwargs: group_priority_minimum = kwargs['groupPriorityMinimum'] - if 'insecureSkipTLSVerify' in kwargs: + if insecure_skip_tls_verify is None and 'insecureSkipTLSVerify' in kwargs: insecure_skip_tls_verify = kwargs['insecureSkipTLSVerify'] - if 'versionPriority' in kwargs: + if version_priority is None and 'versionPriority' in kwargs: version_priority = kwargs['versionPriority'] if ca_bundle is not None: @@ -311,22 +315,28 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group_priority_minimum: pulumi.Input[int], - service: pulumi.Input['ServiceReferenceArgs'], - version_priority: pulumi.Input[int], + group_priority_minimum: Optional[pulumi.Input[int]] = None, + service: Optional[pulumi.Input['ServiceReferenceArgs']] = None, + version_priority: Optional[pulumi.Input[int]] = None, ca_bundle: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input[str]] = None, insecure_skip_tls_verify: Optional[pulumi.Input[bool]] = None, version: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'groupPriorityMinimum' in kwargs: + if group_priority_minimum is None and 'groupPriorityMinimum' in kwargs: group_priority_minimum = kwargs['groupPriorityMinimum'] - if 'versionPriority' in kwargs: + if group_priority_minimum is None: + raise TypeError("Missing 'group_priority_minimum' argument") + if service is None: + raise TypeError("Missing 'service' argument") + if version_priority is None and 'versionPriority' in kwargs: version_priority = kwargs['versionPriority'] - if 'caBundle' in kwargs: + if version_priority is None: + raise TypeError("Missing 'version_priority' argument") + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] - if 'insecureSkipTLSVerify' in kwargs: + if insecure_skip_tls_verify is None and 'insecureSkipTLSVerify' in kwargs: insecure_skip_tls_verify = kwargs['insecureSkipTLSVerify'] _setter("group_priority_minimum", group_priority_minimum) @@ -494,7 +504,7 @@ def _configure( status: Optional[pulumi.Input['APIServiceStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/outputs.py index 5ff0b07849..af20e89f36 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/outputs.py @@ -76,7 +76,7 @@ def _configure( status: Optional['outputs.APIServiceStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -175,14 +175,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -289,7 +293,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -403,22 +407,28 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group_priority_minimum: int, - service: 'outputs.ServiceReference', - version_priority: int, + group_priority_minimum: Optional[int] = None, + service: Optional['outputs.ServiceReference'] = None, + version_priority: Optional[int] = None, ca_bundle: Optional[str] = None, group: Optional[str] = None, insecure_skip_tls_verify: Optional[bool] = None, version: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'groupPriorityMinimum' in kwargs: + if group_priority_minimum is None and 'groupPriorityMinimum' in kwargs: group_priority_minimum = kwargs['groupPriorityMinimum'] - if 'versionPriority' in kwargs: + if group_priority_minimum is None: + raise TypeError("Missing 'group_priority_minimum' argument") + if service is None: + raise TypeError("Missing 'service' argument") + if version_priority is None and 'versionPriority' in kwargs: version_priority = kwargs['versionPriority'] - if 'caBundle' in kwargs: + if version_priority is None: + raise TypeError("Missing 'version_priority' argument") + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] - if 'insecureSkipTLSVerify' in kwargs: + if insecure_skip_tls_verify is None and 'insecureSkipTLSVerify' in kwargs: insecure_skip_tls_verify = kwargs['insecureSkipTLSVerify'] _setter("group_priority_minimum", group_priority_minimum) @@ -558,13 +568,13 @@ def _configure( version_priority: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] - if 'groupPriorityMinimum' in kwargs: + if group_priority_minimum is None and 'groupPriorityMinimum' in kwargs: group_priority_minimum = kwargs['groupPriorityMinimum'] - if 'insecureSkipTLSVerify' in kwargs: + if insecure_skip_tls_verify is None and 'insecureSkipTLSVerify' in kwargs: insecure_skip_tls_verify = kwargs['insecureSkipTLSVerify'] - if 'versionPriority' in kwargs: + if version_priority is None and 'versionPriority' in kwargs: version_priority = kwargs['versionPriority'] if ca_bundle is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py index 61ccde0cf0..34159988b5 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py @@ -39,14 +39,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - revision: pulumi.Input[int], + revision: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, data: Optional[Any] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if revision is None: + raise TypeError("Missing 'revision' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("revision", revision) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py index c86cad951d..1ac64c0039 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py index 2669435209..b19a868bc2 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py @@ -46,7 +46,7 @@ def _configure( revision: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py index 3aa0b3b700..2c50471d29 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DaemonSetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py index bf2e80385e..db12632d5e 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetPatch.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetPatch.py index f3796cdca4..6e9ffd7b93 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DaemonSetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py index 28ca850328..9d9a0131e5 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DeploymentSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py index 5aaf4f8449..2382caa53a 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentPatch.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentPatch.py index 6e40abd583..de458b755e 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DeploymentSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py index a20fedfe9e..dcb16db8c3 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ReplicaSetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py index 8092aa56fa..5078b34bb0 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetPatch.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetPatch.py index c6289b309c..64567cdc81 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ReplicaSetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py index c19ed8a2b5..b457d84508 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['StatefulSetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py index 5a8a767bb5..2d749edb21 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetPatch.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetPatch.py index 4d4138560a..6f33106f3b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['StatefulSetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/_inputs.py b/sdk/python/pulumi_kubernetes/apps/v1/_inputs.py index a4cd2d2ae0..6eb00e32c4 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/_inputs.py @@ -78,14 +78,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - revision: pulumi.Input[int], + revision: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, data: Optional[Any] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if revision is None: + raise TypeError("Missing 'revision' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("revision", revision) @@ -186,14 +188,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -300,11 +306,11 @@ def _configure( update_strategy: Optional[pulumi.Input['DaemonSetUpdateStrategyPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] if min_ready_seconds is not None: @@ -406,18 +412,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, revision_history_limit: Optional[pulumi.Input[int]] = None, update_strategy: Optional[pulumi.Input['DaemonSetUpdateStrategyArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] _setter("selector", selector) @@ -532,10 +542,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_number_scheduled: pulumi.Input[int], - desired_number_scheduled: pulumi.Input[int], - number_misscheduled: pulumi.Input[int], - number_ready: pulumi.Input[int], + current_number_scheduled: Optional[pulumi.Input[int]] = None, + desired_number_scheduled: Optional[pulumi.Input[int]] = None, + number_misscheduled: Optional[pulumi.Input[int]] = None, + number_ready: Optional[pulumi.Input[int]] = None, collision_count: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['DaemonSetConditionArgs']]]] = None, number_available: Optional[pulumi.Input[int]] = None, @@ -544,23 +554,31 @@ def _configure( updated_number_scheduled: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentNumberScheduled' in kwargs: + if current_number_scheduled is None and 'currentNumberScheduled' in kwargs: current_number_scheduled = kwargs['currentNumberScheduled'] - if 'desiredNumberScheduled' in kwargs: + if current_number_scheduled is None: + raise TypeError("Missing 'current_number_scheduled' argument") + if desired_number_scheduled is None and 'desiredNumberScheduled' in kwargs: desired_number_scheduled = kwargs['desiredNumberScheduled'] - if 'numberMisscheduled' in kwargs: + if desired_number_scheduled is None: + raise TypeError("Missing 'desired_number_scheduled' argument") + if number_misscheduled is None and 'numberMisscheduled' in kwargs: number_misscheduled = kwargs['numberMisscheduled'] - if 'numberReady' in kwargs: + if number_misscheduled is None: + raise TypeError("Missing 'number_misscheduled' argument") + if number_ready is None and 'numberReady' in kwargs: number_ready = kwargs['numberReady'] - if 'collisionCount' in kwargs: + if number_ready is None: + raise TypeError("Missing 'number_ready' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'numberAvailable' in kwargs: + if number_available is None and 'numberAvailable' in kwargs: number_available = kwargs['numberAvailable'] - if 'numberUnavailable' in kwargs: + if number_unavailable is None and 'numberUnavailable' in kwargs: number_unavailable = kwargs['numberUnavailable'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'updatedNumberScheduled' in kwargs: + if updated_number_scheduled is None and 'updatedNumberScheduled' in kwargs: updated_number_scheduled = kwargs['updatedNumberScheduled'] _setter("current_number_scheduled", current_number_scheduled) @@ -723,7 +741,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -778,7 +796,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -845,7 +863,7 @@ def _configure( status: Optional[pulumi.Input['DaemonSetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -950,17 +968,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, last_update_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -1093,11 +1115,11 @@ def _configure( template: Optional[pulumi.Input['_core.v1.PodTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] if min_ready_seconds is not None: @@ -1250,8 +1272,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, paused: Optional[pulumi.Input[bool]] = None, progress_deadline_seconds: Optional[pulumi.Input[int]] = None, @@ -1260,11 +1282,15 @@ def _configure( strategy: Optional[pulumi.Input['DeploymentStrategyArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] _setter("selector", selector) @@ -1425,17 +1451,17 @@ def _configure( updated_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -1574,7 +1600,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1629,7 +1655,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1718,7 +1744,7 @@ def _configure( status: Optional[pulumi.Input['DeploymentStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1820,14 +1846,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1930,7 +1960,7 @@ def _configure( template: Optional[pulumi.Input['_core.v1.PodTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -2015,13 +2045,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], + selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, replicas: Optional[pulumi.Input[int]] = None, template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] _setter("selector", selector) @@ -2111,7 +2143,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: pulumi.Input[int], + replicas: Optional[pulumi.Input[int]] = None, available_replicas: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['ReplicaSetConditionArgs']]]] = None, fully_labeled_replicas: Optional[pulumi.Input[int]] = None, @@ -2119,13 +2151,15 @@ def _configure( ready_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] _setter("replicas", replicas) @@ -2247,7 +2281,7 @@ def _configure( status: Optional[pulumi.Input['ReplicaSetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2344,9 +2378,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -2401,9 +2435,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -2458,9 +2492,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -2515,9 +2549,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -2572,7 +2606,7 @@ def _configure( partition: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -2627,7 +2661,7 @@ def _configure( partition: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -2687,14 +2721,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -2871,9 +2909,9 @@ def _configure( when_scaled: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'whenDeleted' in kwargs: + if when_deleted is None and 'whenDeleted' in kwargs: when_deleted = kwargs['whenDeleted'] - if 'whenScaled' in kwargs: + if when_scaled is None and 'whenScaled' in kwargs: when_scaled = kwargs['whenScaled'] if when_deleted is not None: @@ -2928,9 +2966,9 @@ def _configure( when_scaled: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'whenDeleted' in kwargs: + if when_deleted is None and 'whenDeleted' in kwargs: when_deleted = kwargs['whenDeleted'] - if 'whenScaled' in kwargs: + if when_scaled is None and 'whenScaled' in kwargs: when_scaled = kwargs['whenScaled'] if when_deleted is not None: @@ -3021,19 +3059,19 @@ def _configure( volume_claim_templates: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.PersistentVolumeClaimPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'persistentVolumeClaimRetentionPolicy' in kwargs: + if persistent_volume_claim_retention_policy is None and 'persistentVolumeClaimRetentionPolicy' in kwargs: persistent_volume_claim_retention_policy = kwargs['persistentVolumeClaimRetentionPolicy'] - if 'podManagementPolicy' in kwargs: + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] if min_ready_seconds is not None: @@ -3237,9 +3275,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], - service_name: pulumi.Input[str], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, + service_name: Optional[pulumi.Input[str]] = None, + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, ordinals: Optional[pulumi.Input['StatefulSetOrdinalsArgs']] = None, persistent_volume_claim_retention_policy: Optional[pulumi.Input['StatefulSetPersistentVolumeClaimRetentionPolicyArgs']] = None, @@ -3250,19 +3288,25 @@ def _configure( volume_claim_templates: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.PersistentVolumeClaimArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'minReadySeconds' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'persistentVolumeClaimRetentionPolicy' in kwargs: + if persistent_volume_claim_retention_policy is None and 'persistentVolumeClaimRetentionPolicy' in kwargs: persistent_volume_claim_retention_policy = kwargs['persistentVolumeClaimRetentionPolicy'] - if 'podManagementPolicy' in kwargs: + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] _setter("selector", selector) @@ -3460,7 +3504,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: pulumi.Input[int], + replicas: Optional[pulumi.Input[int]] = None, available_replicas: Optional[pulumi.Input[int]] = None, collision_count: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulSetConditionArgs']]]] = None, @@ -3472,21 +3516,23 @@ def _configure( updated_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'currentRevision' in kwargs: + if current_revision is None and 'currentRevision' in kwargs: current_revision = kwargs['currentRevision'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'updateRevision' in kwargs: + if update_revision is None and 'updateRevision' in kwargs: update_revision = kwargs['updateRevision'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] _setter("replicas", replicas) @@ -3652,7 +3698,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -3707,7 +3753,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -3791,7 +3837,7 @@ def _configure( status: Optional[pulumi.Input['StatefulSetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1/outputs.py b/sdk/python/pulumi_kubernetes/apps/v1/outputs.py index 015215f1dd..013f5e8966 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/outputs.py @@ -107,14 +107,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - revision: int, + revision: Optional[int] = None, api_version: Optional[str] = None, data: Optional[Any] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if revision is None: + raise TypeError("Missing 'revision' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("revision", revision) @@ -222,7 +224,7 @@ def _configure( status: Optional['outputs.DaemonSetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -324,14 +326,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -438,7 +444,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -544,18 +550,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: '_meta.v1.outputs.LabelSelector', - template: '_core.v1.outputs.PodTemplateSpec', + selector: Optional['_meta.v1.outputs.LabelSelector'] = None, + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, min_ready_seconds: Optional[int] = None, revision_history_limit: Optional[int] = None, update_strategy: Optional['outputs.DaemonSetUpdateStrategy'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] _setter("selector", selector) @@ -666,11 +676,11 @@ def _configure( update_strategy: Optional['outputs.DaemonSetUpdateStrategyPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] if min_ready_seconds is not None: @@ -803,10 +813,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_number_scheduled: int, - desired_number_scheduled: int, - number_misscheduled: int, - number_ready: int, + current_number_scheduled: Optional[int] = None, + desired_number_scheduled: Optional[int] = None, + number_misscheduled: Optional[int] = None, + number_ready: Optional[int] = None, collision_count: Optional[int] = None, conditions: Optional[Sequence['outputs.DaemonSetCondition']] = None, number_available: Optional[int] = None, @@ -815,23 +825,31 @@ def _configure( updated_number_scheduled: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentNumberScheduled' in kwargs: + if current_number_scheduled is None and 'currentNumberScheduled' in kwargs: current_number_scheduled = kwargs['currentNumberScheduled'] - if 'desiredNumberScheduled' in kwargs: + if current_number_scheduled is None: + raise TypeError("Missing 'current_number_scheduled' argument") + if desired_number_scheduled is None and 'desiredNumberScheduled' in kwargs: desired_number_scheduled = kwargs['desiredNumberScheduled'] - if 'numberMisscheduled' in kwargs: + if desired_number_scheduled is None: + raise TypeError("Missing 'desired_number_scheduled' argument") + if number_misscheduled is None and 'numberMisscheduled' in kwargs: number_misscheduled = kwargs['numberMisscheduled'] - if 'numberReady' in kwargs: + if number_misscheduled is None: + raise TypeError("Missing 'number_misscheduled' argument") + if number_ready is None and 'numberReady' in kwargs: number_ready = kwargs['numberReady'] - if 'collisionCount' in kwargs: + if number_ready is None: + raise TypeError("Missing 'number_ready' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'numberAvailable' in kwargs: + if number_available is None and 'numberAvailable' in kwargs: number_available = kwargs['numberAvailable'] - if 'numberUnavailable' in kwargs: + if number_unavailable is None and 'numberUnavailable' in kwargs: number_unavailable = kwargs['numberUnavailable'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'updatedNumberScheduled' in kwargs: + if updated_number_scheduled is None and 'updatedNumberScheduled' in kwargs: updated_number_scheduled = kwargs['updatedNumberScheduled'] _setter("current_number_scheduled", current_number_scheduled) @@ -1022,23 +1040,23 @@ def _configure( updated_number_scheduled: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentNumberScheduled' in kwargs: + if current_number_scheduled is None and 'currentNumberScheduled' in kwargs: current_number_scheduled = kwargs['currentNumberScheduled'] - if 'desiredNumberScheduled' in kwargs: + if desired_number_scheduled is None and 'desiredNumberScheduled' in kwargs: desired_number_scheduled = kwargs['desiredNumberScheduled'] - if 'numberAvailable' in kwargs: + if number_available is None and 'numberAvailable' in kwargs: number_available = kwargs['numberAvailable'] - if 'numberMisscheduled' in kwargs: + if number_misscheduled is None and 'numberMisscheduled' in kwargs: number_misscheduled = kwargs['numberMisscheduled'] - if 'numberReady' in kwargs: + if number_ready is None and 'numberReady' in kwargs: number_ready = kwargs['numberReady'] - if 'numberUnavailable' in kwargs: + if number_unavailable is None and 'numberUnavailable' in kwargs: number_unavailable = kwargs['numberUnavailable'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'updatedNumberScheduled' in kwargs: + if updated_number_scheduled is None and 'updatedNumberScheduled' in kwargs: updated_number_scheduled = kwargs['updatedNumberScheduled'] if collision_count is not None: @@ -1185,7 +1203,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1252,7 +1270,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1375,7 +1393,7 @@ def _configure( status: Optional['outputs.DeploymentStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1482,17 +1500,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, last_update_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -1615,9 +1637,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] if last_transition_time is not None: @@ -1742,8 +1764,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: '_meta.v1.outputs.LabelSelector', - template: '_core.v1.outputs.PodTemplateSpec', + selector: Optional['_meta.v1.outputs.LabelSelector'] = None, + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, min_ready_seconds: Optional[int] = None, paused: Optional[bool] = None, progress_deadline_seconds: Optional[int] = None, @@ -1752,11 +1774,15 @@ def _configure( strategy: Optional['outputs.DeploymentStrategy'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] _setter("selector", selector) @@ -1909,11 +1935,11 @@ def _configure( template: Optional['_core.v1.outputs.PodTemplateSpecPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] if min_ready_seconds is not None: @@ -2074,17 +2100,17 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -2245,17 +2271,17 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -2382,7 +2408,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -2449,7 +2475,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -2528,7 +2554,7 @@ def _configure( status: Optional['outputs.ReplicaSetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2630,14 +2656,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -2744,7 +2774,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -2843,13 +2873,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: '_meta.v1.outputs.LabelSelector', + selector: Optional['_meta.v1.outputs.LabelSelector'] = None, min_ready_seconds: Optional[int] = None, replicas: Optional[int] = None, template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] _setter("selector", selector) @@ -2943,7 +2975,7 @@ def _configure( template: Optional['_core.v1.outputs.PodTemplateSpecPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -3044,7 +3076,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: int, + replicas: Optional[int] = None, available_replicas: Optional[int] = None, conditions: Optional[Sequence['outputs.ReplicaSetCondition']] = None, fully_labeled_replicas: Optional[int] = None, @@ -3052,13 +3084,15 @@ def _configure( ready_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] _setter("replicas", replicas) @@ -3186,13 +3220,13 @@ def _configure( replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] if available_replicas is not None: @@ -3301,9 +3335,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -3372,9 +3406,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -3443,9 +3477,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -3514,9 +3548,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -3583,7 +3617,7 @@ def _configure( partition: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -3650,7 +3684,7 @@ def _configure( partition: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -3763,7 +3797,7 @@ def _configure( status: Optional['outputs.StatefulSetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -3865,14 +3899,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -3979,7 +4017,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -4158,9 +4196,9 @@ def _configure( when_scaled: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'whenDeleted' in kwargs: + if when_deleted is None and 'whenDeleted' in kwargs: when_deleted = kwargs['whenDeleted'] - if 'whenScaled' in kwargs: + if when_scaled is None and 'whenScaled' in kwargs: when_scaled = kwargs['whenScaled'] if when_deleted is not None: @@ -4229,9 +4267,9 @@ def _configure( when_scaled: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'whenDeleted' in kwargs: + if when_deleted is None and 'whenDeleted' in kwargs: when_deleted = kwargs['whenDeleted'] - if 'whenScaled' in kwargs: + if when_scaled is None and 'whenScaled' in kwargs: when_scaled = kwargs['whenScaled'] if when_deleted is not None: @@ -4333,9 +4371,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: '_meta.v1.outputs.LabelSelector', - service_name: str, - template: '_core.v1.outputs.PodTemplateSpec', + selector: Optional['_meta.v1.outputs.LabelSelector'] = None, + service_name: Optional[str] = None, + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, min_ready_seconds: Optional[int] = None, ordinals: Optional['outputs.StatefulSetOrdinals'] = None, persistent_volume_claim_retention_policy: Optional['outputs.StatefulSetPersistentVolumeClaimRetentionPolicy'] = None, @@ -4346,19 +4384,25 @@ def _configure( volume_claim_templates: Optional[Sequence['_core.v1.outputs.PersistentVolumeClaim']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'minReadySeconds' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'persistentVolumeClaimRetentionPolicy' in kwargs: + if persistent_volume_claim_retention_policy is None and 'persistentVolumeClaimRetentionPolicy' in kwargs: persistent_volume_claim_retention_policy = kwargs['persistentVolumeClaimRetentionPolicy'] - if 'podManagementPolicy' in kwargs: + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] _setter("selector", selector) @@ -4560,19 +4604,19 @@ def _configure( volume_claim_templates: Optional[Sequence['_core.v1.outputs.PersistentVolumeClaimPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'persistentVolumeClaimRetentionPolicy' in kwargs: + if persistent_volume_claim_retention_policy is None and 'persistentVolumeClaimRetentionPolicy' in kwargs: persistent_volume_claim_retention_policy = kwargs['persistentVolumeClaimRetentionPolicy'] - if 'podManagementPolicy' in kwargs: + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] if min_ready_seconds is not None: @@ -4763,7 +4807,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: int, + replicas: Optional[int] = None, available_replicas: Optional[int] = None, collision_count: Optional[int] = None, conditions: Optional[Sequence['outputs.StatefulSetCondition']] = None, @@ -4775,21 +4819,23 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'currentRevision' in kwargs: + if current_revision is None and 'currentRevision' in kwargs: current_revision = kwargs['currentRevision'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'updateRevision' in kwargs: + if update_revision is None and 'updateRevision' in kwargs: update_revision = kwargs['updateRevision'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] _setter("replicas", replicas) @@ -4981,21 +5027,21 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'currentRevision' in kwargs: + if current_revision is None and 'currentRevision' in kwargs: current_revision = kwargs['currentRevision'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'updateRevision' in kwargs: + if update_revision is None and 'updateRevision' in kwargs: update_revision = kwargs['updateRevision'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -5142,7 +5188,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -5209,7 +5255,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py index 55e565b76c..d6e64f2940 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py @@ -39,14 +39,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - revision: pulumi.Input[int], + revision: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, data: Optional[Any] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if revision is None: + raise TypeError("Missing 'revision' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("revision", revision) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py index 604000c966..23fd86ff0a 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py index 4e68d480b3..9450a329b4 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py @@ -46,7 +46,7 @@ def _configure( revision: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py index 99130888f6..fb544c86ec 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DeploymentSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py index c0e50017d0..fd9c2b8e64 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py index c369235a4d..84e13d576a 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DeploymentSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py index 4b53bb10f9..08418ccfde 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['StatefulSetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py index e2a5456d5b..fe27a77a38 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py @@ -37,13 +37,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py index 4297b238b7..0ebbcfe93e 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['StatefulSetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/_inputs.py index 08183d4a3a..389bee9f96 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/_inputs.py @@ -62,14 +62,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - revision: pulumi.Input[int], + revision: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, data: Optional[Any] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if revision is None: + raise TypeError("Missing 'revision' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("revision", revision) @@ -173,17 +175,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, last_update_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -320,13 +326,13 @@ def _configure( template: Optional[pulumi.Input['_core.v1.PodTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'rollbackTo' in kwargs: + if rollback_to is None and 'rollbackTo' in kwargs: rollback_to = kwargs['rollbackTo'] if min_ready_seconds is not None: @@ -496,7 +502,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, paused: Optional[pulumi.Input[bool]] = None, progress_deadline_seconds: Optional[pulumi.Input[int]] = None, @@ -507,13 +513,15 @@ def _configure( strategy: Optional[pulumi.Input['DeploymentStrategyArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'rollbackTo' in kwargs: + if rollback_to is None and 'rollbackTo' in kwargs: rollback_to = kwargs['rollbackTo'] _setter("template", template) @@ -689,17 +697,17 @@ def _configure( updated_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -838,7 +846,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -893,7 +901,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -982,7 +990,7 @@ def _configure( status: Optional[pulumi.Input['DeploymentStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1149,9 +1157,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -1206,9 +1214,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -1338,14 +1346,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1464,15 +1476,15 @@ def _configure( volume_claim_templates: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.PersistentVolumeClaimPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podManagementPolicy' in kwargs: + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] if pod_management_policy is not None: @@ -1625,8 +1637,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - service_name: pulumi.Input[str], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + service_name: Optional[pulumi.Input[str]] = None, + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, pod_management_policy: Optional[pulumi.Input[str]] = None, replicas: Optional[pulumi.Input[int]] = None, revision_history_limit: Optional[pulumi.Input[int]] = None, @@ -1635,15 +1647,19 @@ def _configure( volume_claim_templates: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.PersistentVolumeClaimArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'podManagementPolicy' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] _setter("service_name", service_name) @@ -1797,7 +1813,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: pulumi.Input[int], + replicas: Optional[pulumi.Input[int]] = None, collision_count: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulSetConditionArgs']]]] = None, current_replicas: Optional[pulumi.Input[int]] = None, @@ -1808,19 +1824,21 @@ def _configure( updated_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'collisionCount' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'currentRevision' in kwargs: + if current_revision is None and 'currentRevision' in kwargs: current_revision = kwargs['currentRevision'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'updateRevision' in kwargs: + if update_revision is None and 'updateRevision' in kwargs: update_revision = kwargs['updateRevision'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] _setter("replicas", replicas) @@ -1972,7 +1990,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -2027,7 +2045,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -2109,7 +2127,7 @@ def _configure( status: Optional[pulumi.Input['StatefulSetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/outputs.py index a66a32b1b6..9ef8cc9071 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/outputs.py @@ -87,14 +87,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - revision: int, + revision: Optional[int] = None, api_version: Optional[str] = None, data: Optional[Any] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if revision is None: + raise TypeError("Missing 'revision' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("revision", revision) @@ -246,7 +248,7 @@ def _configure( status: Optional['outputs.DeploymentStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -353,17 +355,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, last_update_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -486,9 +492,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] if last_transition_time is not None: @@ -618,7 +624,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - template: '_core.v1.outputs.PodTemplateSpec', + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, min_ready_seconds: Optional[int] = None, paused: Optional[bool] = None, progress_deadline_seconds: Optional[int] = None, @@ -629,13 +635,15 @@ def _configure( strategy: Optional['outputs.DeploymentStrategy'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'rollbackTo' in kwargs: + if rollback_to is None and 'rollbackTo' in kwargs: rollback_to = kwargs['rollbackTo'] _setter("template", template) @@ -805,13 +813,13 @@ def _configure( template: Optional['_core.v1.outputs.PodTemplateSpecPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'rollbackTo' in kwargs: + if rollback_to is None and 'rollbackTo' in kwargs: rollback_to = kwargs['rollbackTo'] if min_ready_seconds is not None: @@ -982,17 +990,17 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -1153,17 +1161,17 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -1290,7 +1298,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1357,7 +1365,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1494,9 +1502,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -1565,9 +1573,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -1745,7 +1753,7 @@ def _configure( status: Optional['outputs.StatefulSetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1844,14 +1852,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1958,7 +1970,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -2077,8 +2089,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - service_name: str, - template: '_core.v1.outputs.PodTemplateSpec', + service_name: Optional[str] = None, + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, pod_management_policy: Optional[str] = None, replicas: Optional[int] = None, revision_history_limit: Optional[int] = None, @@ -2087,15 +2099,19 @@ def _configure( volume_claim_templates: Optional[Sequence['_core.v1.outputs.PersistentVolumeClaim']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'podManagementPolicy' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] _setter("service_name", service_name) @@ -2252,15 +2268,15 @@ def _configure( volume_claim_templates: Optional[Sequence['_core.v1.outputs.PersistentVolumeClaimPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podManagementPolicy' in kwargs: + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] if pod_management_policy is not None: @@ -2416,7 +2432,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: int, + replicas: Optional[int] = None, collision_count: Optional[int] = None, conditions: Optional[Sequence['outputs.StatefulSetCondition']] = None, current_replicas: Optional[int] = None, @@ -2427,19 +2443,21 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'collisionCount' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'currentRevision' in kwargs: + if current_revision is None and 'currentRevision' in kwargs: current_revision = kwargs['currentRevision'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'updateRevision' in kwargs: + if update_revision is None and 'updateRevision' in kwargs: update_revision = kwargs['updateRevision'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] _setter("replicas", replicas) @@ -2615,19 +2633,19 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'currentRevision' in kwargs: + if current_revision is None and 'currentRevision' in kwargs: current_revision = kwargs['currentRevision'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'updateRevision' in kwargs: + if update_revision is None and 'updateRevision' in kwargs: update_revision = kwargs['updateRevision'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if collision_count is not None: @@ -2764,7 +2782,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -2831,7 +2849,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py index e6176f4555..67d72bded4 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py @@ -39,14 +39,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - revision: pulumi.Input[int], + revision: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, data: Optional[Any] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if revision is None: + raise TypeError("Missing 'revision' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("revision", revision) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py index bd676574ae..aa41aba228 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ControllerRevisionArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py index 5503f30bda..fff12a4fd8 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py @@ -46,7 +46,7 @@ def _configure( revision: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py index 83c7c2759a..18e0aed437 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DaemonSetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py index 227de0c256..498a6578de 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py index edc895c3e9..1ed7e3029f 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DaemonSetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py index b3a27791fd..a6e03bae22 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DeploymentSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py index 4d968f70c7..ef0ab24ba5 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py index 161be83cf2..9487b67938 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DeploymentSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py index d2a416be97..bd239958ec 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ReplicaSetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py index 0c487466f0..e3d977f175 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py index 94c0d89db2..adb7f8f94b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ReplicaSetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py index a2e1bcc011..511b8560b7 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['StatefulSetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py index dab0752543..4c4f5d9574 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py @@ -37,13 +37,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulSetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py index 2dbe59b611..fa601f5741 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['StatefulSetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/_inputs.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/_inputs.py index 8b0cc1123d..1013c8b2f8 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/_inputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/_inputs.py @@ -74,14 +74,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - revision: pulumi.Input[int], + revision: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, data: Optional[Any] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if revision is None: + raise TypeError("Missing 'revision' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("revision", revision) @@ -182,14 +184,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -296,11 +302,11 @@ def _configure( update_strategy: Optional[pulumi.Input['DaemonSetUpdateStrategyPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] if min_ready_seconds is not None: @@ -402,18 +408,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, revision_history_limit: Optional[pulumi.Input[int]] = None, update_strategy: Optional[pulumi.Input['DaemonSetUpdateStrategyArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] _setter("selector", selector) @@ -528,10 +538,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_number_scheduled: pulumi.Input[int], - desired_number_scheduled: pulumi.Input[int], - number_misscheduled: pulumi.Input[int], - number_ready: pulumi.Input[int], + current_number_scheduled: Optional[pulumi.Input[int]] = None, + desired_number_scheduled: Optional[pulumi.Input[int]] = None, + number_misscheduled: Optional[pulumi.Input[int]] = None, + number_ready: Optional[pulumi.Input[int]] = None, collision_count: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['DaemonSetConditionArgs']]]] = None, number_available: Optional[pulumi.Input[int]] = None, @@ -540,23 +550,31 @@ def _configure( updated_number_scheduled: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentNumberScheduled' in kwargs: + if current_number_scheduled is None and 'currentNumberScheduled' in kwargs: current_number_scheduled = kwargs['currentNumberScheduled'] - if 'desiredNumberScheduled' in kwargs: + if current_number_scheduled is None: + raise TypeError("Missing 'current_number_scheduled' argument") + if desired_number_scheduled is None and 'desiredNumberScheduled' in kwargs: desired_number_scheduled = kwargs['desiredNumberScheduled'] - if 'numberMisscheduled' in kwargs: + if desired_number_scheduled is None: + raise TypeError("Missing 'desired_number_scheduled' argument") + if number_misscheduled is None and 'numberMisscheduled' in kwargs: number_misscheduled = kwargs['numberMisscheduled'] - if 'numberReady' in kwargs: + if number_misscheduled is None: + raise TypeError("Missing 'number_misscheduled' argument") + if number_ready is None and 'numberReady' in kwargs: number_ready = kwargs['numberReady'] - if 'collisionCount' in kwargs: + if number_ready is None: + raise TypeError("Missing 'number_ready' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'numberAvailable' in kwargs: + if number_available is None and 'numberAvailable' in kwargs: number_available = kwargs['numberAvailable'] - if 'numberUnavailable' in kwargs: + if number_unavailable is None and 'numberUnavailable' in kwargs: number_unavailable = kwargs['numberUnavailable'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'updatedNumberScheduled' in kwargs: + if updated_number_scheduled is None and 'updatedNumberScheduled' in kwargs: updated_number_scheduled = kwargs['updatedNumberScheduled'] _setter("current_number_scheduled", current_number_scheduled) @@ -719,7 +737,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -774,7 +792,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -841,7 +859,7 @@ def _configure( status: Optional[pulumi.Input['DaemonSetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -946,17 +964,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, last_update_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -1089,11 +1111,11 @@ def _configure( template: Optional[pulumi.Input['_core.v1.PodTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] if min_ready_seconds is not None: @@ -1246,8 +1268,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, paused: Optional[pulumi.Input[bool]] = None, progress_deadline_seconds: Optional[pulumi.Input[int]] = None, @@ -1256,11 +1278,15 @@ def _configure( strategy: Optional[pulumi.Input['DeploymentStrategyArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] _setter("selector", selector) @@ -1421,17 +1447,17 @@ def _configure( updated_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -1570,7 +1596,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1625,7 +1651,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1714,7 +1740,7 @@ def _configure( status: Optional[pulumi.Input['DeploymentStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1816,14 +1842,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1926,7 +1956,7 @@ def _configure( template: Optional[pulumi.Input['_core.v1.PodTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -2011,13 +2041,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], + selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, replicas: Optional[pulumi.Input[int]] = None, template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] _setter("selector", selector) @@ -2107,7 +2139,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: pulumi.Input[int], + replicas: Optional[pulumi.Input[int]] = None, available_replicas: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['ReplicaSetConditionArgs']]]] = None, fully_labeled_replicas: Optional[pulumi.Input[int]] = None, @@ -2115,13 +2147,15 @@ def _configure( ready_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] _setter("replicas", replicas) @@ -2243,7 +2277,7 @@ def _configure( status: Optional[pulumi.Input['ReplicaSetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2336,7 +2370,7 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -2373,7 +2407,7 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -2414,9 +2448,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -2471,9 +2505,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -2603,14 +2637,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -2729,15 +2767,15 @@ def _configure( volume_claim_templates: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.PersistentVolumeClaimPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podManagementPolicy' in kwargs: + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] if pod_management_policy is not None: @@ -2890,9 +2928,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], - service_name: pulumi.Input[str], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, + service_name: Optional[pulumi.Input[str]] = None, + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, pod_management_policy: Optional[pulumi.Input[str]] = None, replicas: Optional[pulumi.Input[int]] = None, revision_history_limit: Optional[pulumi.Input[int]] = None, @@ -2900,15 +2938,21 @@ def _configure( volume_claim_templates: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.PersistentVolumeClaimArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'podManagementPolicy' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] _setter("selector", selector) @@ -3061,7 +3105,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: pulumi.Input[int], + replicas: Optional[pulumi.Input[int]] = None, collision_count: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulSetConditionArgs']]]] = None, current_replicas: Optional[pulumi.Input[int]] = None, @@ -3072,19 +3116,21 @@ def _configure( updated_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'collisionCount' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'currentRevision' in kwargs: + if current_revision is None and 'currentRevision' in kwargs: current_revision = kwargs['currentRevision'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'updateRevision' in kwargs: + if update_revision is None and 'updateRevision' in kwargs: update_revision = kwargs['updateRevision'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] _setter("replicas", replicas) @@ -3236,7 +3282,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -3291,7 +3337,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -3373,7 +3419,7 @@ def _configure( status: Optional[pulumi.Input['StatefulSetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/outputs.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/outputs.py index 9794fbc3bf..06b558af0f 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/outputs.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/outputs.py @@ -103,14 +103,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - revision: int, + revision: Optional[int] = None, api_version: Optional[str] = None, data: Optional[Any] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if revision is None: + raise TypeError("Missing 'revision' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("revision", revision) @@ -218,7 +220,7 @@ def _configure( status: Optional['outputs.DaemonSetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -320,14 +322,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -434,7 +440,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -540,18 +546,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: '_meta.v1.outputs.LabelSelector', - template: '_core.v1.outputs.PodTemplateSpec', + selector: Optional['_meta.v1.outputs.LabelSelector'] = None, + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, min_ready_seconds: Optional[int] = None, revision_history_limit: Optional[int] = None, update_strategy: Optional['outputs.DaemonSetUpdateStrategy'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] _setter("selector", selector) @@ -662,11 +672,11 @@ def _configure( update_strategy: Optional['outputs.DaemonSetUpdateStrategyPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] if min_ready_seconds is not None: @@ -799,10 +809,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_number_scheduled: int, - desired_number_scheduled: int, - number_misscheduled: int, - number_ready: int, + current_number_scheduled: Optional[int] = None, + desired_number_scheduled: Optional[int] = None, + number_misscheduled: Optional[int] = None, + number_ready: Optional[int] = None, collision_count: Optional[int] = None, conditions: Optional[Sequence['outputs.DaemonSetCondition']] = None, number_available: Optional[int] = None, @@ -811,23 +821,31 @@ def _configure( updated_number_scheduled: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentNumberScheduled' in kwargs: + if current_number_scheduled is None and 'currentNumberScheduled' in kwargs: current_number_scheduled = kwargs['currentNumberScheduled'] - if 'desiredNumberScheduled' in kwargs: + if current_number_scheduled is None: + raise TypeError("Missing 'current_number_scheduled' argument") + if desired_number_scheduled is None and 'desiredNumberScheduled' in kwargs: desired_number_scheduled = kwargs['desiredNumberScheduled'] - if 'numberMisscheduled' in kwargs: + if desired_number_scheduled is None: + raise TypeError("Missing 'desired_number_scheduled' argument") + if number_misscheduled is None and 'numberMisscheduled' in kwargs: number_misscheduled = kwargs['numberMisscheduled'] - if 'numberReady' in kwargs: + if number_misscheduled is None: + raise TypeError("Missing 'number_misscheduled' argument") + if number_ready is None and 'numberReady' in kwargs: number_ready = kwargs['numberReady'] - if 'collisionCount' in kwargs: + if number_ready is None: + raise TypeError("Missing 'number_ready' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'numberAvailable' in kwargs: + if number_available is None and 'numberAvailable' in kwargs: number_available = kwargs['numberAvailable'] - if 'numberUnavailable' in kwargs: + if number_unavailable is None and 'numberUnavailable' in kwargs: number_unavailable = kwargs['numberUnavailable'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'updatedNumberScheduled' in kwargs: + if updated_number_scheduled is None and 'updatedNumberScheduled' in kwargs: updated_number_scheduled = kwargs['updatedNumberScheduled'] _setter("current_number_scheduled", current_number_scheduled) @@ -1018,23 +1036,23 @@ def _configure( updated_number_scheduled: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentNumberScheduled' in kwargs: + if current_number_scheduled is None and 'currentNumberScheduled' in kwargs: current_number_scheduled = kwargs['currentNumberScheduled'] - if 'desiredNumberScheduled' in kwargs: + if desired_number_scheduled is None and 'desiredNumberScheduled' in kwargs: desired_number_scheduled = kwargs['desiredNumberScheduled'] - if 'numberAvailable' in kwargs: + if number_available is None and 'numberAvailable' in kwargs: number_available = kwargs['numberAvailable'] - if 'numberMisscheduled' in kwargs: + if number_misscheduled is None and 'numberMisscheduled' in kwargs: number_misscheduled = kwargs['numberMisscheduled'] - if 'numberReady' in kwargs: + if number_ready is None and 'numberReady' in kwargs: number_ready = kwargs['numberReady'] - if 'numberUnavailable' in kwargs: + if number_unavailable is None and 'numberUnavailable' in kwargs: number_unavailable = kwargs['numberUnavailable'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'updatedNumberScheduled' in kwargs: + if updated_number_scheduled is None and 'updatedNumberScheduled' in kwargs: updated_number_scheduled = kwargs['updatedNumberScheduled'] if collision_count is not None: @@ -1181,7 +1199,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1248,7 +1266,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1371,7 +1389,7 @@ def _configure( status: Optional['outputs.DeploymentStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1478,17 +1496,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, last_update_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -1611,9 +1633,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] if last_transition_time is not None: @@ -1738,8 +1760,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: '_meta.v1.outputs.LabelSelector', - template: '_core.v1.outputs.PodTemplateSpec', + selector: Optional['_meta.v1.outputs.LabelSelector'] = None, + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, min_ready_seconds: Optional[int] = None, paused: Optional[bool] = None, progress_deadline_seconds: Optional[int] = None, @@ -1748,11 +1770,15 @@ def _configure( strategy: Optional['outputs.DeploymentStrategy'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] _setter("selector", selector) @@ -1905,11 +1931,11 @@ def _configure( template: Optional['_core.v1.outputs.PodTemplateSpecPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] if min_ready_seconds is not None: @@ -2070,17 +2096,17 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -2241,17 +2267,17 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -2378,7 +2404,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -2445,7 +2471,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -2524,7 +2550,7 @@ def _configure( status: Optional['outputs.ReplicaSetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2626,14 +2652,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -2740,7 +2770,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -2839,13 +2869,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: '_meta.v1.outputs.LabelSelector', + selector: Optional['_meta.v1.outputs.LabelSelector'] = None, min_ready_seconds: Optional[int] = None, replicas: Optional[int] = None, template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] _setter("selector", selector) @@ -2939,7 +2971,7 @@ def _configure( template: Optional['_core.v1.outputs.PodTemplateSpecPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -3040,7 +3072,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: int, + replicas: Optional[int] = None, available_replicas: Optional[int] = None, conditions: Optional[Sequence['outputs.ReplicaSetCondition']] = None, fully_labeled_replicas: Optional[int] = None, @@ -3048,13 +3080,15 @@ def _configure( ready_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] _setter("replicas", replicas) @@ -3182,13 +3216,13 @@ def _configure( replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] if available_replicas is not None: @@ -3291,7 +3325,7 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -3344,7 +3378,7 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -3403,9 +3437,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -3474,9 +3508,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -3654,7 +3688,7 @@ def _configure( status: Optional['outputs.StatefulSetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -3753,14 +3787,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -3867,7 +3905,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -3986,9 +4024,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - selector: '_meta.v1.outputs.LabelSelector', - service_name: str, - template: '_core.v1.outputs.PodTemplateSpec', + selector: Optional['_meta.v1.outputs.LabelSelector'] = None, + service_name: Optional[str] = None, + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, pod_management_policy: Optional[str] = None, replicas: Optional[int] = None, revision_history_limit: Optional[int] = None, @@ -3996,15 +4034,21 @@ def _configure( volume_claim_templates: Optional[Sequence['_core.v1.outputs.PersistentVolumeClaim']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if selector is None: + raise TypeError("Missing 'selector' argument") + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'podManagementPolicy' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if template is None: + raise TypeError("Missing 'template' argument") + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] _setter("selector", selector) @@ -4160,15 +4204,15 @@ def _configure( volume_claim_templates: Optional[Sequence['_core.v1.outputs.PersistentVolumeClaimPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podManagementPolicy' in kwargs: + if pod_management_policy is None and 'podManagementPolicy' in kwargs: pod_management_policy = kwargs['podManagementPolicy'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] - if 'volumeClaimTemplates' in kwargs: + if volume_claim_templates is None and 'volumeClaimTemplates' in kwargs: volume_claim_templates = kwargs['volumeClaimTemplates'] if pod_management_policy is not None: @@ -4324,7 +4368,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: int, + replicas: Optional[int] = None, collision_count: Optional[int] = None, conditions: Optional[Sequence['outputs.StatefulSetCondition']] = None, current_replicas: Optional[int] = None, @@ -4335,19 +4379,21 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'collisionCount' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'currentRevision' in kwargs: + if current_revision is None and 'currentRevision' in kwargs: current_revision = kwargs['currentRevision'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'updateRevision' in kwargs: + if update_revision is None and 'updateRevision' in kwargs: update_revision = kwargs['updateRevision'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] _setter("replicas", replicas) @@ -4523,19 +4569,19 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'currentRevision' in kwargs: + if current_revision is None and 'currentRevision' in kwargs: current_revision = kwargs['currentRevision'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'updateRevision' in kwargs: + if update_revision is None and 'updateRevision' in kwargs: update_revision = kwargs['updateRevision'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if collision_count is not None: @@ -4672,7 +4718,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -4739,7 +4785,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py index 728fe60c59..5197770e1d 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['AuditSinkSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py index 2dddc4cce2..a5828ba415 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py @@ -37,13 +37,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['AuditSinkArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['AuditSinkArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py index 911859153f..8a58b6d65a 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['AuditSinkSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py index 9ebac737ec..e0b26f8eaa 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py @@ -97,10 +97,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - policy: pulumi.Input['PolicyArgs'], - webhook: pulumi.Input['WebhookArgs'], + policy: Optional[pulumi.Input['PolicyArgs']] = None, + webhook: Optional[pulumi.Input['WebhookArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if policy is None: + raise TypeError("Missing 'policy' argument") + if webhook is None: + raise TypeError("Missing 'webhook' argument") _setter("policy", policy) _setter("webhook", webhook) @@ -159,7 +163,7 @@ def _configure( spec: Optional[pulumi.Input['AuditSinkSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -288,10 +292,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - level: pulumi.Input[str], + level: Optional[pulumi.Input[str]] = None, stages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if level is None: + raise TypeError("Missing 'level' argument") _setter("level", level) if stages is not None: @@ -435,12 +441,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, path: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -536,7 +546,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -633,7 +643,7 @@ def _configure( url: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -714,7 +724,7 @@ def _configure( throttle: Optional[pulumi.Input['WebhookThrottleConfigPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] if client_config is not None: @@ -871,12 +881,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - client_config: pulumi.Input['WebhookClientConfigArgs'], + client_config: Optional[pulumi.Input['WebhookClientConfigArgs']] = None, throttle: Optional[pulumi.Input['WebhookThrottleConfigArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] + if client_config is None: + raise TypeError("Missing 'client_config' argument") _setter("client_config", client_config) if throttle is not None: diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/outputs.py index e5ac6598a2..dc139a9c1c 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/outputs.py @@ -76,7 +76,7 @@ def _configure( spec: Optional['outputs.AuditSinkSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -139,10 +139,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - policy: 'outputs.Policy', - webhook: 'outputs.Webhook', + policy: Optional['outputs.Policy'] = None, + webhook: Optional['outputs.Webhook'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if policy is None: + raise TypeError("Missing 'policy' argument") + if webhook is None: + raise TypeError("Missing 'webhook' argument") _setter("policy", policy) _setter("webhook", webhook) @@ -233,10 +237,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - level: str, + level: Optional[str] = None, stages: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if level is None: + raise TypeError("Missing 'level' argument") _setter("level", level) if stages is not None: @@ -334,12 +340,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - namespace: str, + name: Optional[str] = None, + namespace: Optional[str] = None, path: Optional[str] = None, port: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -495,12 +505,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - client_config: 'outputs.WebhookClientConfig', + client_config: Optional['outputs.WebhookClientConfig'] = None, throttle: Optional['outputs.WebhookThrottleConfig'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] + if client_config is None: + raise TypeError("Missing 'client_config' argument") _setter("client_config", client_config) if throttle is not None: @@ -581,7 +593,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -686,7 +698,7 @@ def _configure( url: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caBundle' in kwargs: + if ca_bundle is None and 'caBundle' in kwargs: ca_bundle = kwargs['caBundle'] if ca_bundle is not None: @@ -775,7 +787,7 @@ def _configure( throttle: Optional['outputs.WebhookThrottleConfigPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientConfig' in kwargs: + if client_config is None and 'clientConfig' in kwargs: client_config = kwargs['clientConfig'] if client_config is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py index 7b311e77cb..ced7db75d4 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py index fae288e49c..aacb43f5b4 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py index 6f4e4eedd2..98a9081bdc 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/_inputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/_inputs.py index 8a24d4838f..e4c0f771b7 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/_inputs.py @@ -45,7 +45,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -113,12 +113,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) @@ -193,13 +197,13 @@ def _configure( target_cpu_utilization_percentage: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'minReplicas' in kwargs: + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'scaleTargetRef' in kwargs: + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'targetCPUUtilizationPercentage' in kwargs: + if target_cpu_utilization_percentage is None and 'targetCPUUtilizationPercentage' in kwargs: target_cpu_utilization_percentage = kwargs['targetCPUUtilizationPercentage'] if max_replicas is not None: @@ -284,19 +288,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_replicas: pulumi.Input[int], - scale_target_ref: pulumi.Input['CrossVersionObjectReferenceArgs'], + max_replicas: Optional[pulumi.Input[int]] = None, + scale_target_ref: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, min_replicas: Optional[pulumi.Input[int]] = None, target_cpu_utilization_percentage: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'scaleTargetRef' in kwargs: + if max_replicas is None: + raise TypeError("Missing 'max_replicas' argument") + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'minReplicas' in kwargs: + if scale_target_ref is None: + raise TypeError("Missing 'scale_target_ref' argument") + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'targetCPUUtilizationPercentage' in kwargs: + if target_cpu_utilization_percentage is None and 'targetCPUUtilizationPercentage' in kwargs: target_cpu_utilization_percentage = kwargs['targetCPUUtilizationPercentage'] _setter("max_replicas", max_replicas) @@ -382,22 +390,26 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_replicas: pulumi.Input[int], - desired_replicas: pulumi.Input[int], + current_replicas: Optional[pulumi.Input[int]] = None, + desired_replicas: Optional[pulumi.Input[int]] = None, current_cpu_utilization_percentage: Optional[pulumi.Input[int]] = None, last_scale_time: Optional[pulumi.Input[str]] = None, observed_generation: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if current_replicas is None: + raise TypeError("Missing 'current_replicas' argument") + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'currentCPUUtilizationPercentage' in kwargs: + if desired_replicas is None: + raise TypeError("Missing 'desired_replicas' argument") + if current_cpu_utilization_percentage is None and 'currentCPUUtilizationPercentage' in kwargs: current_cpu_utilization_percentage = kwargs['currentCPUUtilizationPercentage'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("current_replicas", current_replicas) @@ -504,7 +516,7 @@ def _configure( status: Optional[pulumi.Input['HorizontalPodAutoscalerStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/outputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/outputs.py index 3e6e6d71f9..9228a4a117 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/outputs.py @@ -62,12 +62,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_version: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) @@ -146,7 +150,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -235,7 +239,7 @@ def _configure( status: Optional['outputs.HorizontalPodAutoscalerStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -340,19 +344,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_replicas: int, - scale_target_ref: 'outputs.CrossVersionObjectReference', + max_replicas: Optional[int] = None, + scale_target_ref: Optional['outputs.CrossVersionObjectReference'] = None, min_replicas: Optional[int] = None, target_cpu_utilization_percentage: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'scaleTargetRef' in kwargs: + if max_replicas is None: + raise TypeError("Missing 'max_replicas' argument") + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'minReplicas' in kwargs: + if scale_target_ref is None: + raise TypeError("Missing 'scale_target_ref' argument") + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'targetCPUUtilizationPercentage' in kwargs: + if target_cpu_utilization_percentage is None and 'targetCPUUtilizationPercentage' in kwargs: target_cpu_utilization_percentage = kwargs['targetCPUUtilizationPercentage'] _setter("max_replicas", max_replicas) @@ -451,13 +459,13 @@ def _configure( target_cpu_utilization_percentage: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'minReplicas' in kwargs: + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'scaleTargetRef' in kwargs: + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'targetCPUUtilizationPercentage' in kwargs: + if target_cpu_utilization_percentage is None and 'targetCPUUtilizationPercentage' in kwargs: target_cpu_utilization_percentage = kwargs['targetCPUUtilizationPercentage'] if max_replicas is not None: @@ -557,22 +565,26 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_replicas: int, - desired_replicas: int, + current_replicas: Optional[int] = None, + desired_replicas: Optional[int] = None, current_cpu_utilization_percentage: Optional[int] = None, last_scale_time: Optional[str] = None, observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if current_replicas is None: + raise TypeError("Missing 'current_replicas' argument") + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'currentCPUUtilizationPercentage' in kwargs: + if desired_replicas is None: + raise TypeError("Missing 'desired_replicas' argument") + if current_cpu_utilization_percentage is None and 'currentCPUUtilizationPercentage' in kwargs: current_cpu_utilization_percentage = kwargs['currentCPUUtilizationPercentage'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("current_replicas", current_replicas) @@ -687,15 +699,15 @@ def _configure( observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentCPUUtilizationPercentage' in kwargs: + if current_cpu_utilization_percentage is None and 'currentCPUUtilizationPercentage' in kwargs: current_cpu_utilization_percentage = kwargs['currentCPUUtilizationPercentage'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] if current_cpu_utilization_percentage is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py index 227b6b8a55..f4db6f715d 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py index 497c9dfc59..88b59c8a4c 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py b/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py index e2e1be9fa3..0f6dc2e5a3 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2/_inputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2/_inputs.py index e348ef021c..55f7c115e4 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2/_inputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2/_inputs.py @@ -141,11 +141,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: pulumi.Input[str], - name: pulumi.Input[str], - target: pulumi.Input['MetricTargetArgs'], + container: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if container is None: + raise TypeError("Missing 'container' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("container", container) _setter("name", name) @@ -209,11 +215,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: pulumi.Input[str], - current: pulumi.Input['MetricValueStatusArgs'], - name: pulumi.Input[str], + container: Optional[pulumi.Input[str]] = None, + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if container is None: + raise TypeError("Missing 'container' argument") + if current is None: + raise TypeError("Missing 'current' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("container", container) _setter("current", current) @@ -282,7 +294,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -350,12 +362,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) @@ -471,10 +487,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric: pulumi.Input['MetricIdentifierArgs'], - target: pulumi.Input['MetricTargetArgs'], + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("metric", metric) _setter("target", target) @@ -522,10 +542,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: pulumi.Input['MetricValueStatusArgs'], - metric: pulumi.Input['MetricIdentifierArgs'], + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("metric", metric) @@ -581,7 +605,7 @@ def _configure( value: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] if period_seconds is not None: @@ -649,13 +673,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - period_seconds: pulumi.Input[int], - type: pulumi.Input[str], - value: pulumi.Input[int], + period_seconds: Optional[pulumi.Input[int]] = None, + type: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] + if period_seconds is None: + raise TypeError("Missing 'period_seconds' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if value is None: + raise TypeError("Missing 'value' argument") _setter("period_seconds", period_seconds) _setter("type", type) @@ -724,9 +754,9 @@ def _configure( stabilization_window_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'selectPolicy' in kwargs: + if select_policy is None and 'selectPolicy' in kwargs: select_policy = kwargs['selectPolicy'] - if 'stabilizationWindowSeconds' in kwargs: + if stabilization_window_seconds is None and 'stabilizationWindowSeconds' in kwargs: stabilization_window_seconds = kwargs['stabilizationWindowSeconds'] if policies is not None: @@ -799,9 +829,9 @@ def _configure( stabilization_window_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'selectPolicy' in kwargs: + if select_policy is None and 'selectPolicy' in kwargs: select_policy = kwargs['selectPolicy'] - if 'stabilizationWindowSeconds' in kwargs: + if stabilization_window_seconds is None and 'stabilizationWindowSeconds' in kwargs: stabilization_window_seconds = kwargs['stabilizationWindowSeconds'] if policies is not None: @@ -873,9 +903,9 @@ def _configure( scale_up: Optional[pulumi.Input['HPAScalingRulesPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scaleDown' in kwargs: + if scale_down is None and 'scaleDown' in kwargs: scale_down = kwargs['scaleDown'] - if 'scaleUp' in kwargs: + if scale_up is None and 'scaleUp' in kwargs: scale_up = kwargs['scaleUp'] if scale_down is not None: @@ -936,9 +966,9 @@ def _configure( scale_up: Optional[pulumi.Input['HPAScalingRulesArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scaleDown' in kwargs: + if scale_down is None and 'scaleDown' in kwargs: scale_down = kwargs['scaleDown'] - if 'scaleUp' in kwargs: + if scale_up is None and 'scaleUp' in kwargs: scale_up = kwargs['scaleUp'] if scale_down is not None: @@ -1001,14 +1031,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1115,11 +1149,11 @@ def _configure( scale_target_ref: Optional[pulumi.Input['CrossVersionObjectReferencePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'minReplicas' in kwargs: + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'scaleTargetRef' in kwargs: + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] if behavior is not None: @@ -1221,18 +1255,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_replicas: pulumi.Input[int], - scale_target_ref: pulumi.Input['CrossVersionObjectReferenceArgs'], + max_replicas: Optional[pulumi.Input[int]] = None, + scale_target_ref: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, behavior: Optional[pulumi.Input['HorizontalPodAutoscalerBehaviorArgs']] = None, metrics: Optional[pulumi.Input[Sequence[pulumi.Input['MetricSpecArgs']]]] = None, min_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'scaleTargetRef' in kwargs: + if max_replicas is None: + raise TypeError("Missing 'max_replicas' argument") + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'minReplicas' in kwargs: + if scale_target_ref is None: + raise TypeError("Missing 'scale_target_ref' argument") + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] _setter("max_replicas", max_replicas) @@ -1335,7 +1373,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - desired_replicas: pulumi.Input[int], + desired_replicas: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerConditionArgs']]]] = None, current_metrics: Optional[pulumi.Input[Sequence[pulumi.Input['MetricStatusArgs']]]] = None, current_replicas: Optional[pulumi.Input[int]] = None, @@ -1343,15 +1381,17 @@ def _configure( observed_generation: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'desiredReplicas' in kwargs: + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'currentMetrics' in kwargs: + if desired_replicas is None: + raise TypeError("Missing 'desired_replicas' argument") + if current_metrics is None and 'currentMetrics' in kwargs: current_metrics = kwargs['currentMetrics'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("desired_replicas", desired_replicas) @@ -1473,7 +1513,7 @@ def _configure( status: Optional[pulumi.Input['HorizontalPodAutoscalerStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1619,10 +1659,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) if selector is not None: @@ -1691,7 +1733,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] if container_resource is not None: @@ -1810,7 +1852,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, container_resource: Optional[pulumi.Input['ContainerResourceMetricSourceArgs']] = None, external: Optional[pulumi.Input['ExternalMetricSourceArgs']] = None, object: Optional[pulumi.Input['ObjectMetricSourceArgs']] = None, @@ -1818,7 +1860,9 @@ def _configure( resource: Optional[pulumi.Input['ResourceMetricSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -1936,7 +1980,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, container_resource: Optional[pulumi.Input['ContainerResourceMetricStatusArgs']] = None, external: Optional[pulumi.Input['ExternalMetricStatusArgs']] = None, object: Optional[pulumi.Input['ObjectMetricStatusArgs']] = None, @@ -1944,7 +1988,9 @@ def _configure( resource: Optional[pulumi.Input['ResourceMetricStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -2062,9 +2108,9 @@ def _configure( value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2149,15 +2195,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, average_utilization: Optional[pulumi.Input[int]] = None, average_value: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] _setter("type", type) @@ -2243,9 +2291,9 @@ def _configure( value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2318,7 +2366,7 @@ def _configure( target: Optional[pulumi.Input['MetricTargetPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] if described_object is not None: @@ -2386,13 +2434,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - described_object: pulumi.Input['CrossVersionObjectReferenceArgs'], - metric: pulumi.Input['MetricIdentifierArgs'], - target: pulumi.Input['MetricTargetArgs'], + described_object: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] + if described_object is None: + raise TypeError("Missing 'described_object' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("described_object", described_object) _setter("metric", metric) @@ -2456,13 +2510,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: pulumi.Input['MetricValueStatusArgs'], - described_object: pulumi.Input['CrossVersionObjectReferenceArgs'], - metric: pulumi.Input['MetricIdentifierArgs'], + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + described_object: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if current is None: + raise TypeError("Missing 'current' argument") + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] + if described_object is None: + raise TypeError("Missing 'described_object' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("described_object", described_object) @@ -2576,10 +2636,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric: pulumi.Input['MetricIdentifierArgs'], - target: pulumi.Input['MetricTargetArgs'], + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("metric", metric) _setter("target", target) @@ -2627,10 +2691,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: pulumi.Input['MetricValueStatusArgs'], - metric: pulumi.Input['MetricIdentifierArgs'], + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("metric", metric) @@ -2731,10 +2799,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - target: pulumi.Input['MetricTargetArgs'], + name: Optional[pulumi.Input[str]] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("name", name) _setter("target", target) @@ -2782,10 +2854,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: pulumi.Input['MetricValueStatusArgs'], - name: pulumi.Input[str], + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("current", current) _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2/outputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2/outputs.py index c72d8a6d38..93fa897c5f 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2/outputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2/outputs.py @@ -83,11 +83,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: str, - name: str, - target: 'outputs.MetricTarget', + container: Optional[str] = None, + name: Optional[str] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if container is None: + raise TypeError("Missing 'container' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("container", container) _setter("name", name) @@ -204,11 +210,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: str, - current: 'outputs.MetricValueStatus', - name: str, + container: Optional[str] = None, + current: Optional['outputs.MetricValueStatus'] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if container is None: + raise TypeError("Missing 'container' argument") + if current is None: + raise TypeError("Missing 'current' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("container", container) _setter("current", current) @@ -342,12 +354,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_version: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) @@ -426,7 +442,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -482,10 +498,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric: 'outputs.MetricIdentifier', - target: 'outputs.MetricTarget', + metric: Optional['outputs.MetricIdentifier'] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("metric", metric) _setter("target", target) @@ -576,10 +596,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: 'outputs.MetricValueStatus', - metric: 'outputs.MetricIdentifier', + current: Optional['outputs.MetricValueStatus'] = None, + metric: Optional['outputs.MetricIdentifier'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("metric", metric) @@ -690,13 +714,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - period_seconds: int, - type: str, - value: int, + period_seconds: Optional[int] = None, + type: Optional[str] = None, + value: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] + if period_seconds is None: + raise TypeError("Missing 'period_seconds' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if value is None: + raise TypeError("Missing 'value' argument") _setter("period_seconds", period_seconds) _setter("type", type) @@ -773,7 +803,7 @@ def _configure( value: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] if period_seconds is not None: @@ -856,9 +886,9 @@ def _configure( stabilization_window_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'selectPolicy' in kwargs: + if select_policy is None and 'selectPolicy' in kwargs: select_policy = kwargs['selectPolicy'] - if 'stabilizationWindowSeconds' in kwargs: + if stabilization_window_seconds is None and 'stabilizationWindowSeconds' in kwargs: stabilization_window_seconds = kwargs['stabilizationWindowSeconds'] if policies is not None: @@ -941,9 +971,9 @@ def _configure( stabilization_window_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'selectPolicy' in kwargs: + if select_policy is None and 'selectPolicy' in kwargs: select_policy = kwargs['selectPolicy'] - if 'stabilizationWindowSeconds' in kwargs: + if stabilization_window_seconds is None and 'stabilizationWindowSeconds' in kwargs: stabilization_window_seconds = kwargs['stabilizationWindowSeconds'] if policies is not None: @@ -1032,7 +1062,7 @@ def _configure( status: Optional['outputs.HorizontalPodAutoscalerStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1134,9 +1164,9 @@ def _configure( scale_up: Optional['outputs.HPAScalingRules'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scaleDown' in kwargs: + if scale_down is None and 'scaleDown' in kwargs: scale_down = kwargs['scaleDown'] - if 'scaleUp' in kwargs: + if scale_up is None and 'scaleUp' in kwargs: scale_up = kwargs['scaleUp'] if scale_down is not None: @@ -1211,9 +1241,9 @@ def _configure( scale_up: Optional['outputs.HPAScalingRulesPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scaleDown' in kwargs: + if scale_down is None and 'scaleDown' in kwargs: scale_down = kwargs['scaleDown'] - if 'scaleUp' in kwargs: + if scale_up is None and 'scaleUp' in kwargs: scale_up = kwargs['scaleUp'] if scale_down is not None: @@ -1288,14 +1318,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1402,7 +1436,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1508,18 +1542,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_replicas: int, - scale_target_ref: 'outputs.CrossVersionObjectReference', + max_replicas: Optional[int] = None, + scale_target_ref: Optional['outputs.CrossVersionObjectReference'] = None, behavior: Optional['outputs.HorizontalPodAutoscalerBehavior'] = None, metrics: Optional[Sequence['outputs.MetricSpec']] = None, min_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'scaleTargetRef' in kwargs: + if max_replicas is None: + raise TypeError("Missing 'max_replicas' argument") + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'minReplicas' in kwargs: + if scale_target_ref is None: + raise TypeError("Missing 'scale_target_ref' argument") + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] _setter("max_replicas", max_replicas) @@ -1630,11 +1668,11 @@ def _configure( scale_target_ref: Optional['outputs.CrossVersionObjectReferencePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'minReplicas' in kwargs: + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'scaleTargetRef' in kwargs: + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] if behavior is not None: @@ -1747,7 +1785,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - desired_replicas: int, + desired_replicas: Optional[int] = None, conditions: Optional[Sequence['outputs.HorizontalPodAutoscalerCondition']] = None, current_metrics: Optional[Sequence['outputs.MetricStatus']] = None, current_replicas: Optional[int] = None, @@ -1755,15 +1793,17 @@ def _configure( observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'desiredReplicas' in kwargs: + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'currentMetrics' in kwargs: + if desired_replicas is None: + raise TypeError("Missing 'desired_replicas' argument") + if current_metrics is None and 'currentMetrics' in kwargs: current_metrics = kwargs['currentMetrics'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("desired_replicas", desired_replicas) @@ -1893,15 +1933,15 @@ def _configure( observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentMetrics' in kwargs: + if current_metrics is None and 'currentMetrics' in kwargs: current_metrics = kwargs['currentMetrics'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] if conditions is not None: @@ -1987,10 +2027,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) if selector is not None: @@ -2111,7 +2153,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, container_resource: Optional['outputs.ContainerResourceMetricSource'] = None, external: Optional['outputs.ExternalMetricSource'] = None, object: Optional['outputs.ObjectMetricSource'] = None, @@ -2119,7 +2161,9 @@ def _configure( resource: Optional['outputs.ResourceMetricSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -2241,7 +2285,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] if container_resource is not None: @@ -2356,7 +2400,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, container_resource: Optional['outputs.ContainerResourceMetricStatus'] = None, external: Optional['outputs.ExternalMetricStatus'] = None, object: Optional['outputs.ObjectMetricStatus'] = None, @@ -2364,7 +2408,9 @@ def _configure( resource: Optional['outputs.ResourceMetricStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -2486,7 +2532,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] if container_resource is not None: @@ -2597,15 +2643,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, average_utilization: Optional[int] = None, average_value: Optional[str] = None, value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] _setter("type", type) @@ -2701,9 +2749,9 @@ def _configure( value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2796,9 +2844,9 @@ def _configure( value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2881,9 +2929,9 @@ def _configure( value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2959,13 +3007,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - described_object: 'outputs.CrossVersionObjectReference', - metric: 'outputs.MetricIdentifier', - target: 'outputs.MetricTarget', + described_object: Optional['outputs.CrossVersionObjectReference'] = None, + metric: Optional['outputs.MetricIdentifier'] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] + if described_object is None: + raise TypeError("Missing 'described_object' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("described_object", described_object) _setter("metric", metric) @@ -3042,7 +3096,7 @@ def _configure( target: Optional['outputs.MetricTargetPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] if described_object is not None: @@ -3118,13 +3172,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: 'outputs.MetricValueStatus', - described_object: 'outputs.CrossVersionObjectReference', - metric: 'outputs.MetricIdentifier', + current: Optional['outputs.MetricValueStatus'] = None, + described_object: Optional['outputs.CrossVersionObjectReference'] = None, + metric: Optional['outputs.MetricIdentifier'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if current is None: + raise TypeError("Missing 'current' argument") + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] + if described_object is None: + raise TypeError("Missing 'described_object' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("described_object", described_object) @@ -3201,7 +3261,7 @@ def _configure( metric: Optional['outputs.MetricIdentifierPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] if current is not None: @@ -3257,10 +3317,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric: 'outputs.MetricIdentifier', - target: 'outputs.MetricTarget', + metric: Optional['outputs.MetricIdentifier'] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("metric", metric) _setter("target", target) @@ -3351,10 +3415,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: 'outputs.MetricValueStatus', - metric: 'outputs.MetricIdentifier', + current: Optional['outputs.MetricValueStatus'] = None, + metric: Optional['outputs.MetricIdentifier'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("metric", metric) @@ -3445,10 +3513,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - target: 'outputs.MetricTarget', + name: Optional[str] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("name", name) _setter("target", target) @@ -3539,10 +3611,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: 'outputs.MetricValueStatus', - name: str, + current: Optional['outputs.MetricValueStatus'] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("current", current) _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py index 033d0d0e60..f378c102c0 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py index 0d66af98fe..59805b1718 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py index a7ca1bddb4..489082bc7c 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/_inputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/_inputs.py index 09abb5d596..739178c03b 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/_inputs.py @@ -68,9 +68,9 @@ def _configure( target_average_value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetAverageUtilization' in kwargs: + if target_average_utilization is None and 'targetAverageUtilization' in kwargs: target_average_utilization = kwargs['targetAverageUtilization'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] if container is not None: @@ -155,15 +155,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: pulumi.Input[str], - name: pulumi.Input[str], + container: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, target_average_utilization: Optional[pulumi.Input[int]] = None, target_average_value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetAverageUtilization' in kwargs: + if container is None: + raise TypeError("Missing 'container' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if target_average_utilization is None and 'targetAverageUtilization' in kwargs: target_average_utilization = kwargs['targetAverageUtilization'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] _setter("container", container) @@ -246,15 +250,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: pulumi.Input[str], - current_average_value: pulumi.Input[str], - name: pulumi.Input[str], + container: Optional[pulumi.Input[str]] = None, + current_average_value: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, current_average_utilization: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageValue' in kwargs: + if container is None: + raise TypeError("Missing 'container' argument") + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'currentAverageUtilization' in kwargs: + if current_average_value is None: + raise TypeError("Missing 'current_average_value' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if current_average_utilization is None and 'currentAverageUtilization' in kwargs: current_average_utilization = kwargs['currentAverageUtilization'] _setter("container", container) @@ -338,7 +348,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -406,12 +416,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) @@ -486,13 +500,13 @@ def _configure( target_value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'metricSelector' in kwargs: + if metric_selector is None and 'metricSelector' in kwargs: metric_selector = kwargs['metricSelector'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] - if 'targetValue' in kwargs: + if target_value is None and 'targetValue' in kwargs: target_value = kwargs['targetValue'] if metric_name is not None: @@ -577,19 +591,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric_name: pulumi.Input[str], + metric_name: Optional[pulumi.Input[str]] = None, metric_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, target_average_value: Optional[pulumi.Input[str]] = None, target_value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'metricSelector' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if metric_selector is None and 'metricSelector' in kwargs: metric_selector = kwargs['metricSelector'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] - if 'targetValue' in kwargs: + if target_value is None and 'targetValue' in kwargs: target_value = kwargs['targetValue'] _setter("metric_name", metric_name) @@ -673,19 +689,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_value: pulumi.Input[str], - metric_name: pulumi.Input[str], + current_value: Optional[pulumi.Input[str]] = None, + metric_name: Optional[pulumi.Input[str]] = None, current_average_value: Optional[pulumi.Input[str]] = None, metric_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentValue' in kwargs: + if current_value is None and 'currentValue' in kwargs: current_value = kwargs['currentValue'] - if 'metricName' in kwargs: + if current_value is None: + raise TypeError("Missing 'current_value' argument") + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'currentAverageValue' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'metricSelector' in kwargs: + if metric_selector is None and 'metricSelector' in kwargs: metric_selector = kwargs['metricSelector'] _setter("current_value", current_value) @@ -771,14 +791,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -881,11 +905,11 @@ def _configure( scale_target_ref: Optional[pulumi.Input['CrossVersionObjectReferencePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'minReplicas' in kwargs: + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'scaleTargetRef' in kwargs: + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] if max_replicas is not None: @@ -970,17 +994,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_replicas: pulumi.Input[int], - scale_target_ref: pulumi.Input['CrossVersionObjectReferenceArgs'], + max_replicas: Optional[pulumi.Input[int]] = None, + scale_target_ref: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, metrics: Optional[pulumi.Input[Sequence[pulumi.Input['MetricSpecArgs']]]] = None, min_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'scaleTargetRef' in kwargs: + if max_replicas is None: + raise TypeError("Missing 'max_replicas' argument") + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'minReplicas' in kwargs: + if scale_target_ref is None: + raise TypeError("Missing 'scale_target_ref' argument") + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] _setter("max_replicas", max_replicas) @@ -1069,23 +1097,29 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - conditions: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerConditionArgs']]], - current_replicas: pulumi.Input[int], - desired_replicas: pulumi.Input[int], + conditions: Optional[pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerConditionArgs']]]] = None, + current_replicas: Optional[pulumi.Input[int]] = None, + desired_replicas: Optional[pulumi.Input[int]] = None, current_metrics: Optional[pulumi.Input[Sequence[pulumi.Input['MetricStatusArgs']]]] = None, last_scale_time: Optional[pulumi.Input[str]] = None, observed_generation: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentReplicas' in kwargs: + if conditions is None: + raise TypeError("Missing 'conditions' argument") + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if current_replicas is None: + raise TypeError("Missing 'current_replicas' argument") + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'currentMetrics' in kwargs: + if desired_replicas is None: + raise TypeError("Missing 'desired_replicas' argument") + if current_metrics is None and 'currentMetrics' in kwargs: current_metrics = kwargs['currentMetrics'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("conditions", conditions) @@ -1205,7 +1239,7 @@ def _configure( status: Optional[pulumi.Input['HorizontalPodAutoscalerStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1318,7 +1352,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] if container_resource is not None: @@ -1437,7 +1471,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, container_resource: Optional[pulumi.Input['ContainerResourceMetricSourceArgs']] = None, external: Optional[pulumi.Input['ExternalMetricSourceArgs']] = None, object: Optional[pulumi.Input['ObjectMetricSourceArgs']] = None, @@ -1445,7 +1479,9 @@ def _configure( resource: Optional[pulumi.Input['ResourceMetricSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -1563,7 +1599,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, container_resource: Optional[pulumi.Input['ContainerResourceMetricStatusArgs']] = None, external: Optional[pulumi.Input['ExternalMetricStatusArgs']] = None, object: Optional[pulumi.Input['ObjectMetricStatusArgs']] = None, @@ -1571,7 +1607,9 @@ def _configure( resource: Optional[pulumi.Input['ResourceMetricStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -1693,11 +1731,11 @@ def _configure( target_value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'targetValue' in kwargs: + if target_value is None and 'targetValue' in kwargs: target_value = kwargs['targetValue'] if average_value is not None: @@ -1799,18 +1837,24 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric_name: pulumi.Input[str], - target: pulumi.Input['CrossVersionObjectReferenceArgs'], - target_value: pulumi.Input[str], + metric_name: Optional[pulumi.Input[str]] = None, + target: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, + target_value: Optional[pulumi.Input[str]] = None, average_value: Optional[pulumi.Input[str]] = None, selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'targetValue' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if target is None: + raise TypeError("Missing 'target' argument") + if target_value is None and 'targetValue' in kwargs: target_value = kwargs['targetValue'] - if 'averageValue' in kwargs: + if target_value is None: + raise TypeError("Missing 'target_value' argument") + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] _setter("metric_name", metric_name) @@ -1909,18 +1953,24 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_value: pulumi.Input[str], - metric_name: pulumi.Input[str], - target: pulumi.Input['CrossVersionObjectReferenceArgs'], + current_value: Optional[pulumi.Input[str]] = None, + metric_name: Optional[pulumi.Input[str]] = None, + target: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, average_value: Optional[pulumi.Input[str]] = None, selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentValue' in kwargs: + if current_value is None and 'currentValue' in kwargs: current_value = kwargs['currentValue'] - if 'metricName' in kwargs: + if current_value is None: + raise TypeError("Missing 'current_value' argument") + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'averageValue' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if target is None: + raise TypeError("Missing 'target' argument") + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] _setter("current_value", current_value) @@ -2018,9 +2068,9 @@ def _configure( target_average_value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] if metric_name is not None: @@ -2088,15 +2138,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric_name: pulumi.Input[str], - target_average_value: pulumi.Input[str], + metric_name: Optional[pulumi.Input[str]] = None, + target_average_value: Optional[pulumi.Input[str]] = None, selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'targetAverageValue' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] + if target_average_value is None: + raise TypeError("Missing 'target_average_value' argument") _setter("metric_name", metric_name) _setter("target_average_value", target_average_value) @@ -2161,15 +2215,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_average_value: pulumi.Input[str], - metric_name: pulumi.Input[str], + current_average_value: Optional[pulumi.Input[str]] = None, + metric_name: Optional[pulumi.Input[str]] = None, selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageValue' in kwargs: + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'metricName' in kwargs: + if current_average_value is None: + raise TypeError("Missing 'current_average_value' argument") + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") _setter("current_average_value", current_average_value) _setter("metric_name", metric_name) @@ -2239,9 +2297,9 @@ def _configure( target_average_value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetAverageUtilization' in kwargs: + if target_average_utilization is None and 'targetAverageUtilization' in kwargs: target_average_utilization = kwargs['targetAverageUtilization'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] if name is not None: @@ -2309,14 +2367,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, target_average_utilization: Optional[pulumi.Input[int]] = None, target_average_value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetAverageUtilization' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if target_average_utilization is None and 'targetAverageUtilization' in kwargs: target_average_utilization = kwargs['targetAverageUtilization'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] _setter("name", name) @@ -2383,14 +2443,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_average_value: pulumi.Input[str], - name: pulumi.Input[str], + current_average_value: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, current_average_utilization: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageValue' in kwargs: + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'currentAverageUtilization' in kwargs: + if current_average_value is None: + raise TypeError("Missing 'current_average_value' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if current_average_utilization is None and 'currentAverageUtilization' in kwargs: current_average_utilization = kwargs['currentAverageUtilization'] _setter("current_average_value", current_average_value) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/outputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/outputs.py index fb590c7c92..b9cdd98be1 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/outputs.py @@ -93,15 +93,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: str, - name: str, + container: Optional[str] = None, + name: Optional[str] = None, target_average_utilization: Optional[int] = None, target_average_value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetAverageUtilization' in kwargs: + if container is None: + raise TypeError("Missing 'container' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if target_average_utilization is None and 'targetAverageUtilization' in kwargs: target_average_utilization = kwargs['targetAverageUtilization'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] _setter("container", container) @@ -196,9 +200,9 @@ def _configure( target_average_value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetAverageUtilization' in kwargs: + if target_average_utilization is None and 'targetAverageUtilization' in kwargs: target_average_utilization = kwargs['targetAverageUtilization'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] if container is not None: @@ -289,15 +293,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: str, - current_average_value: str, - name: str, + container: Optional[str] = None, + current_average_value: Optional[str] = None, + name: Optional[str] = None, current_average_utilization: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageValue' in kwargs: + if container is None: + raise TypeError("Missing 'container' argument") + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'currentAverageUtilization' in kwargs: + if current_average_value is None: + raise TypeError("Missing 'current_average_value' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if current_average_utilization is None and 'currentAverageUtilization' in kwargs: current_average_utilization = kwargs['currentAverageUtilization'] _setter("container", container) @@ -391,9 +401,9 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageUtilization' in kwargs: + if current_average_utilization is None and 'currentAverageUtilization' in kwargs: current_average_utilization = kwargs['currentAverageUtilization'] - if 'currentAverageValue' in kwargs: + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] if container is not None: @@ -479,12 +489,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_version: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) @@ -563,7 +577,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -648,19 +662,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric_name: str, + metric_name: Optional[str] = None, metric_selector: Optional['_meta.v1.outputs.LabelSelector'] = None, target_average_value: Optional[str] = None, target_value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'metricSelector' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if metric_selector is None and 'metricSelector' in kwargs: metric_selector = kwargs['metricSelector'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] - if 'targetValue' in kwargs: + if target_value is None and 'targetValue' in kwargs: target_value = kwargs['targetValue'] _setter("metric_name", metric_name) @@ -760,13 +776,13 @@ def _configure( target_value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'metricSelector' in kwargs: + if metric_selector is None and 'metricSelector' in kwargs: metric_selector = kwargs['metricSelector'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] - if 'targetValue' in kwargs: + if target_value is None and 'targetValue' in kwargs: target_value = kwargs['targetValue'] if metric_name is not None: @@ -861,19 +877,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_value: str, - metric_name: str, + current_value: Optional[str] = None, + metric_name: Optional[str] = None, current_average_value: Optional[str] = None, metric_selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentValue' in kwargs: + if current_value is None and 'currentValue' in kwargs: current_value = kwargs['currentValue'] - if 'metricName' in kwargs: + if current_value is None: + raise TypeError("Missing 'current_value' argument") + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'currentAverageValue' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'metricSelector' in kwargs: + if metric_selector is None and 'metricSelector' in kwargs: metric_selector = kwargs['metricSelector'] _setter("current_value", current_value) @@ -972,13 +992,13 @@ def _configure( metric_selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageValue' in kwargs: + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'currentValue' in kwargs: + if current_value is None and 'currentValue' in kwargs: current_value = kwargs['currentValue'] - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'metricSelector' in kwargs: + if metric_selector is None and 'metricSelector' in kwargs: metric_selector = kwargs['metricSelector'] if current_average_value is not None: @@ -1077,7 +1097,7 @@ def _configure( status: Optional['outputs.HorizontalPodAutoscalerStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1179,14 +1199,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1293,7 +1317,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1396,17 +1420,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_replicas: int, - scale_target_ref: 'outputs.CrossVersionObjectReference', + max_replicas: Optional[int] = None, + scale_target_ref: Optional['outputs.CrossVersionObjectReference'] = None, metrics: Optional[Sequence['outputs.MetricSpec']] = None, min_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'scaleTargetRef' in kwargs: + if max_replicas is None: + raise TypeError("Missing 'max_replicas' argument") + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'minReplicas' in kwargs: + if scale_target_ref is None: + raise TypeError("Missing 'scale_target_ref' argument") + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] _setter("max_replicas", max_replicas) @@ -1503,11 +1531,11 @@ def _configure( scale_target_ref: Optional['outputs.CrossVersionObjectReferencePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'minReplicas' in kwargs: + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'scaleTargetRef' in kwargs: + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] if max_replicas is not None: @@ -1610,23 +1638,29 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - conditions: Sequence['outputs.HorizontalPodAutoscalerCondition'], - current_replicas: int, - desired_replicas: int, + conditions: Optional[Sequence['outputs.HorizontalPodAutoscalerCondition']] = None, + current_replicas: Optional[int] = None, + desired_replicas: Optional[int] = None, current_metrics: Optional[Sequence['outputs.MetricStatus']] = None, last_scale_time: Optional[str] = None, observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentReplicas' in kwargs: + if conditions is None: + raise TypeError("Missing 'conditions' argument") + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if current_replicas is None: + raise TypeError("Missing 'current_replicas' argument") + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'currentMetrics' in kwargs: + if desired_replicas is None: + raise TypeError("Missing 'desired_replicas' argument") + if current_metrics is None and 'currentMetrics' in kwargs: current_metrics = kwargs['currentMetrics'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("conditions", conditions) @@ -1754,15 +1788,15 @@ def _configure( observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentMetrics' in kwargs: + if current_metrics is None and 'currentMetrics' in kwargs: current_metrics = kwargs['currentMetrics'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] if conditions is not None: @@ -1877,7 +1911,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, container_resource: Optional['outputs.ContainerResourceMetricSource'] = None, external: Optional['outputs.ExternalMetricSource'] = None, object: Optional['outputs.ObjectMetricSource'] = None, @@ -1885,7 +1919,9 @@ def _configure( resource: Optional['outputs.ResourceMetricSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -2007,7 +2043,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] if container_resource is not None: @@ -2122,7 +2158,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, container_resource: Optional['outputs.ContainerResourceMetricStatus'] = None, external: Optional['outputs.ExternalMetricStatus'] = None, object: Optional['outputs.ObjectMetricStatus'] = None, @@ -2130,7 +2166,9 @@ def _configure( resource: Optional['outputs.ResourceMetricStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -2252,7 +2290,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] if container_resource is not None: @@ -2368,18 +2406,24 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric_name: str, - target: 'outputs.CrossVersionObjectReference', - target_value: str, + metric_name: Optional[str] = None, + target: Optional['outputs.CrossVersionObjectReference'] = None, + target_value: Optional[str] = None, average_value: Optional[str] = None, selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'targetValue' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if target is None: + raise TypeError("Missing 'target' argument") + if target_value is None and 'targetValue' in kwargs: target_value = kwargs['targetValue'] - if 'averageValue' in kwargs: + if target_value is None: + raise TypeError("Missing 'target_value' argument") + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] _setter("metric_name", metric_name) @@ -2489,11 +2533,11 @@ def _configure( target_value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'targetValue' in kwargs: + if target_value is None and 'targetValue' in kwargs: target_value = kwargs['targetValue'] if average_value is not None: @@ -2599,18 +2643,24 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_value: str, - metric_name: str, - target: 'outputs.CrossVersionObjectReference', + current_value: Optional[str] = None, + metric_name: Optional[str] = None, + target: Optional['outputs.CrossVersionObjectReference'] = None, average_value: Optional[str] = None, selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentValue' in kwargs: + if current_value is None and 'currentValue' in kwargs: current_value = kwargs['currentValue'] - if 'metricName' in kwargs: + if current_value is None: + raise TypeError("Missing 'current_value' argument") + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'averageValue' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if target is None: + raise TypeError("Missing 'target' argument") + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] _setter("current_value", current_value) @@ -2720,11 +2770,11 @@ def _configure( target: Optional['outputs.CrossVersionObjectReferencePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] - if 'currentValue' in kwargs: + if current_value is None and 'currentValue' in kwargs: current_value = kwargs['currentValue'] - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] if average_value is not None: @@ -2822,15 +2872,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric_name: str, - target_average_value: str, + metric_name: Optional[str] = None, + target_average_value: Optional[str] = None, selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'targetAverageValue' in kwargs: + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] + if target_average_value is None: + raise TypeError("Missing 'target_average_value' argument") _setter("metric_name", metric_name) _setter("target_average_value", target_average_value) @@ -2910,9 +2964,9 @@ def _configure( target_average_value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] if metric_name is not None: @@ -2990,15 +3044,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_average_value: str, - metric_name: str, + current_average_value: Optional[str] = None, + metric_name: Optional[str] = None, selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageValue' in kwargs: + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'metricName' in kwargs: + if current_average_value is None: + raise TypeError("Missing 'current_average_value' argument") + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] + if metric_name is None: + raise TypeError("Missing 'metric_name' argument") _setter("current_average_value", current_average_value) _setter("metric_name", metric_name) @@ -3078,9 +3136,9 @@ def _configure( selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageValue' in kwargs: + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'metricName' in kwargs: + if metric_name is None and 'metricName' in kwargs: metric_name = kwargs['metricName'] if current_average_value is not None: @@ -3158,14 +3216,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, target_average_utilization: Optional[int] = None, target_average_value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetAverageUtilization' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if target_average_utilization is None and 'targetAverageUtilization' in kwargs: target_average_utilization = kwargs['targetAverageUtilization'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] _setter("name", name) @@ -3247,9 +3307,9 @@ def _configure( target_average_value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetAverageUtilization' in kwargs: + if target_average_utilization is None and 'targetAverageUtilization' in kwargs: target_average_utilization = kwargs['targetAverageUtilization'] - if 'targetAverageValue' in kwargs: + if target_average_value is None and 'targetAverageValue' in kwargs: target_average_value = kwargs['targetAverageValue'] if name is not None: @@ -3327,14 +3387,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_average_value: str, - name: str, + current_average_value: Optional[str] = None, + name: Optional[str] = None, current_average_utilization: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageValue' in kwargs: + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] - if 'currentAverageUtilization' in kwargs: + if current_average_value is None: + raise TypeError("Missing 'current_average_value' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if current_average_utilization is None and 'currentAverageUtilization' in kwargs: current_average_utilization = kwargs['currentAverageUtilization'] _setter("current_average_value", current_average_value) @@ -3415,9 +3479,9 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentAverageUtilization' in kwargs: + if current_average_utilization is None and 'currentAverageUtilization' in kwargs: current_average_utilization = kwargs['currentAverageUtilization'] - if 'currentAverageValue' in kwargs: + if current_average_value is None and 'currentAverageValue' in kwargs: current_average_value = kwargs['currentAverageValue'] if current_average_utilization is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py index 5aede1c4bd..abb4561611 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py index 431106fb1c..e57590b690 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py index b8c7d8305b..28e3907a82 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['HorizontalPodAutoscalerSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/_inputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/_inputs.py index cb97fbbea3..fae9cdc763 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/_inputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/_inputs.py @@ -141,11 +141,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: pulumi.Input[str], - name: pulumi.Input[str], - target: pulumi.Input['MetricTargetArgs'], + container: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if container is None: + raise TypeError("Missing 'container' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("container", container) _setter("name", name) @@ -209,11 +215,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: pulumi.Input[str], - current: pulumi.Input['MetricValueStatusArgs'], - name: pulumi.Input[str], + container: Optional[pulumi.Input[str]] = None, + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if container is None: + raise TypeError("Missing 'container' argument") + if current is None: + raise TypeError("Missing 'current' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("container", container) _setter("current", current) @@ -282,7 +294,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -350,12 +362,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) @@ -471,10 +487,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric: pulumi.Input['MetricIdentifierArgs'], - target: pulumi.Input['MetricTargetArgs'], + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("metric", metric) _setter("target", target) @@ -522,10 +542,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: pulumi.Input['MetricValueStatusArgs'], - metric: pulumi.Input['MetricIdentifierArgs'], + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("metric", metric) @@ -581,7 +605,7 @@ def _configure( value: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] if period_seconds is not None: @@ -649,13 +673,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - period_seconds: pulumi.Input[int], - type: pulumi.Input[str], - value: pulumi.Input[int], + period_seconds: Optional[pulumi.Input[int]] = None, + type: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] + if period_seconds is None: + raise TypeError("Missing 'period_seconds' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if value is None: + raise TypeError("Missing 'value' argument") _setter("period_seconds", period_seconds) _setter("type", type) @@ -724,9 +754,9 @@ def _configure( stabilization_window_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'selectPolicy' in kwargs: + if select_policy is None and 'selectPolicy' in kwargs: select_policy = kwargs['selectPolicy'] - if 'stabilizationWindowSeconds' in kwargs: + if stabilization_window_seconds is None and 'stabilizationWindowSeconds' in kwargs: stabilization_window_seconds = kwargs['stabilizationWindowSeconds'] if policies is not None: @@ -799,9 +829,9 @@ def _configure( stabilization_window_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'selectPolicy' in kwargs: + if select_policy is None and 'selectPolicy' in kwargs: select_policy = kwargs['selectPolicy'] - if 'stabilizationWindowSeconds' in kwargs: + if stabilization_window_seconds is None and 'stabilizationWindowSeconds' in kwargs: stabilization_window_seconds = kwargs['stabilizationWindowSeconds'] if policies is not None: @@ -873,9 +903,9 @@ def _configure( scale_up: Optional[pulumi.Input['HPAScalingRulesPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scaleDown' in kwargs: + if scale_down is None and 'scaleDown' in kwargs: scale_down = kwargs['scaleDown'] - if 'scaleUp' in kwargs: + if scale_up is None and 'scaleUp' in kwargs: scale_up = kwargs['scaleUp'] if scale_down is not None: @@ -936,9 +966,9 @@ def _configure( scale_up: Optional[pulumi.Input['HPAScalingRulesArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scaleDown' in kwargs: + if scale_down is None and 'scaleDown' in kwargs: scale_down = kwargs['scaleDown'] - if 'scaleUp' in kwargs: + if scale_up is None and 'scaleUp' in kwargs: scale_up = kwargs['scaleUp'] if scale_down is not None: @@ -1001,14 +1031,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1115,11 +1149,11 @@ def _configure( scale_target_ref: Optional[pulumi.Input['CrossVersionObjectReferencePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'minReplicas' in kwargs: + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'scaleTargetRef' in kwargs: + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] if behavior is not None: @@ -1221,18 +1255,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_replicas: pulumi.Input[int], - scale_target_ref: pulumi.Input['CrossVersionObjectReferenceArgs'], + max_replicas: Optional[pulumi.Input[int]] = None, + scale_target_ref: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, behavior: Optional[pulumi.Input['HorizontalPodAutoscalerBehaviorArgs']] = None, metrics: Optional[pulumi.Input[Sequence[pulumi.Input['MetricSpecArgs']]]] = None, min_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'scaleTargetRef' in kwargs: + if max_replicas is None: + raise TypeError("Missing 'max_replicas' argument") + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'minReplicas' in kwargs: + if scale_target_ref is None: + raise TypeError("Missing 'scale_target_ref' argument") + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] _setter("max_replicas", max_replicas) @@ -1335,23 +1373,29 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - conditions: pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerConditionArgs']]], - current_replicas: pulumi.Input[int], - desired_replicas: pulumi.Input[int], + conditions: Optional[pulumi.Input[Sequence[pulumi.Input['HorizontalPodAutoscalerConditionArgs']]]] = None, + current_replicas: Optional[pulumi.Input[int]] = None, + desired_replicas: Optional[pulumi.Input[int]] = None, current_metrics: Optional[pulumi.Input[Sequence[pulumi.Input['MetricStatusArgs']]]] = None, last_scale_time: Optional[pulumi.Input[str]] = None, observed_generation: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentReplicas' in kwargs: + if conditions is None: + raise TypeError("Missing 'conditions' argument") + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if current_replicas is None: + raise TypeError("Missing 'current_replicas' argument") + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'currentMetrics' in kwargs: + if desired_replicas is None: + raise TypeError("Missing 'desired_replicas' argument") + if current_metrics is None and 'currentMetrics' in kwargs: current_metrics = kwargs['currentMetrics'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("conditions", conditions) @@ -1471,7 +1515,7 @@ def _configure( status: Optional[pulumi.Input['HorizontalPodAutoscalerStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1617,10 +1661,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) if selector is not None: @@ -1689,7 +1735,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] if container_resource is not None: @@ -1808,7 +1854,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, container_resource: Optional[pulumi.Input['ContainerResourceMetricSourceArgs']] = None, external: Optional[pulumi.Input['ExternalMetricSourceArgs']] = None, object: Optional[pulumi.Input['ObjectMetricSourceArgs']] = None, @@ -1816,7 +1862,9 @@ def _configure( resource: Optional[pulumi.Input['ResourceMetricSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -1934,7 +1982,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, container_resource: Optional[pulumi.Input['ContainerResourceMetricStatusArgs']] = None, external: Optional[pulumi.Input['ExternalMetricStatusArgs']] = None, object: Optional[pulumi.Input['ObjectMetricStatusArgs']] = None, @@ -1942,7 +1990,9 @@ def _configure( resource: Optional[pulumi.Input['ResourceMetricStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -2060,9 +2110,9 @@ def _configure( value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2147,15 +2197,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, average_utilization: Optional[pulumi.Input[int]] = None, average_value: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] _setter("type", type) @@ -2241,9 +2293,9 @@ def _configure( value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2315,7 +2367,7 @@ def _configure( target: Optional[pulumi.Input['MetricTargetPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] if described_object is not None: @@ -2379,13 +2431,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - described_object: pulumi.Input['CrossVersionObjectReferenceArgs'], - metric: pulumi.Input['MetricIdentifierArgs'], - target: pulumi.Input['MetricTargetArgs'], + described_object: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] + if described_object is None: + raise TypeError("Missing 'described_object' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("described_object", described_object) _setter("metric", metric) @@ -2445,13 +2503,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: pulumi.Input['MetricValueStatusArgs'], - described_object: pulumi.Input['CrossVersionObjectReferenceArgs'], - metric: pulumi.Input['MetricIdentifierArgs'], + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + described_object: Optional[pulumi.Input['CrossVersionObjectReferenceArgs']] = None, + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if current is None: + raise TypeError("Missing 'current' argument") + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] + if described_object is None: + raise TypeError("Missing 'described_object' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("described_object", described_object) @@ -2562,10 +2626,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric: pulumi.Input['MetricIdentifierArgs'], - target: pulumi.Input['MetricTargetArgs'], + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("metric", metric) _setter("target", target) @@ -2613,10 +2681,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: pulumi.Input['MetricValueStatusArgs'], - metric: pulumi.Input['MetricIdentifierArgs'], + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + metric: Optional[pulumi.Input['MetricIdentifierArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("metric", metric) @@ -2717,10 +2789,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - target: pulumi.Input['MetricTargetArgs'], + name: Optional[pulumi.Input[str]] = None, + target: Optional[pulumi.Input['MetricTargetArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("name", name) _setter("target", target) @@ -2768,10 +2844,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: pulumi.Input['MetricValueStatusArgs'], - name: pulumi.Input[str], + current: Optional[pulumi.Input['MetricValueStatusArgs']] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("current", current) _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/outputs.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/outputs.py index 715cd84756..1b93a7eee1 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/outputs.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/outputs.py @@ -83,11 +83,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: str, - name: str, - target: 'outputs.MetricTarget', + container: Optional[str] = None, + name: Optional[str] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if container is None: + raise TypeError("Missing 'container' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("container", container) _setter("name", name) @@ -204,11 +210,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container: str, - current: 'outputs.MetricValueStatus', - name: str, + container: Optional[str] = None, + current: Optional['outputs.MetricValueStatus'] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if container is None: + raise TypeError("Missing 'container' argument") + if current is None: + raise TypeError("Missing 'current' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("container", container) _setter("current", current) @@ -342,12 +354,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_version: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) @@ -426,7 +442,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -482,10 +498,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric: 'outputs.MetricIdentifier', - target: 'outputs.MetricTarget', + metric: Optional['outputs.MetricIdentifier'] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("metric", metric) _setter("target", target) @@ -576,10 +596,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: 'outputs.MetricValueStatus', - metric: 'outputs.MetricIdentifier', + current: Optional['outputs.MetricValueStatus'] = None, + metric: Optional['outputs.MetricIdentifier'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("metric", metric) @@ -690,13 +714,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - period_seconds: int, - type: str, - value: int, + period_seconds: Optional[int] = None, + type: Optional[str] = None, + value: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] + if period_seconds is None: + raise TypeError("Missing 'period_seconds' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if value is None: + raise TypeError("Missing 'value' argument") _setter("period_seconds", period_seconds) _setter("type", type) @@ -773,7 +803,7 @@ def _configure( value: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] if period_seconds is not None: @@ -856,9 +886,9 @@ def _configure( stabilization_window_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'selectPolicy' in kwargs: + if select_policy is None and 'selectPolicy' in kwargs: select_policy = kwargs['selectPolicy'] - if 'stabilizationWindowSeconds' in kwargs: + if stabilization_window_seconds is None and 'stabilizationWindowSeconds' in kwargs: stabilization_window_seconds = kwargs['stabilizationWindowSeconds'] if policies is not None: @@ -941,9 +971,9 @@ def _configure( stabilization_window_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'selectPolicy' in kwargs: + if select_policy is None and 'selectPolicy' in kwargs: select_policy = kwargs['selectPolicy'] - if 'stabilizationWindowSeconds' in kwargs: + if stabilization_window_seconds is None and 'stabilizationWindowSeconds' in kwargs: stabilization_window_seconds = kwargs['stabilizationWindowSeconds'] if policies is not None: @@ -1032,7 +1062,7 @@ def _configure( status: Optional['outputs.HorizontalPodAutoscalerStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1134,9 +1164,9 @@ def _configure( scale_up: Optional['outputs.HPAScalingRules'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scaleDown' in kwargs: + if scale_down is None and 'scaleDown' in kwargs: scale_down = kwargs['scaleDown'] - if 'scaleUp' in kwargs: + if scale_up is None and 'scaleUp' in kwargs: scale_up = kwargs['scaleUp'] if scale_down is not None: @@ -1211,9 +1241,9 @@ def _configure( scale_up: Optional['outputs.HPAScalingRulesPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scaleDown' in kwargs: + if scale_down is None and 'scaleDown' in kwargs: scale_down = kwargs['scaleDown'] - if 'scaleUp' in kwargs: + if scale_up is None and 'scaleUp' in kwargs: scale_up = kwargs['scaleUp'] if scale_down is not None: @@ -1288,14 +1318,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1402,7 +1436,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1508,18 +1542,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_replicas: int, - scale_target_ref: 'outputs.CrossVersionObjectReference', + max_replicas: Optional[int] = None, + scale_target_ref: Optional['outputs.CrossVersionObjectReference'] = None, behavior: Optional['outputs.HorizontalPodAutoscalerBehavior'] = None, metrics: Optional[Sequence['outputs.MetricSpec']] = None, min_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'scaleTargetRef' in kwargs: + if max_replicas is None: + raise TypeError("Missing 'max_replicas' argument") + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] - if 'minReplicas' in kwargs: + if scale_target_ref is None: + raise TypeError("Missing 'scale_target_ref' argument") + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] _setter("max_replicas", max_replicas) @@ -1630,11 +1668,11 @@ def _configure( scale_target_ref: Optional['outputs.CrossVersionObjectReferencePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxReplicas' in kwargs: + if max_replicas is None and 'maxReplicas' in kwargs: max_replicas = kwargs['maxReplicas'] - if 'minReplicas' in kwargs: + if min_replicas is None and 'minReplicas' in kwargs: min_replicas = kwargs['minReplicas'] - if 'scaleTargetRef' in kwargs: + if scale_target_ref is None and 'scaleTargetRef' in kwargs: scale_target_ref = kwargs['scaleTargetRef'] if behavior is not None: @@ -1747,23 +1785,29 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - conditions: Sequence['outputs.HorizontalPodAutoscalerCondition'], - current_replicas: int, - desired_replicas: int, + conditions: Optional[Sequence['outputs.HorizontalPodAutoscalerCondition']] = None, + current_replicas: Optional[int] = None, + desired_replicas: Optional[int] = None, current_metrics: Optional[Sequence['outputs.MetricStatus']] = None, last_scale_time: Optional[str] = None, observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentReplicas' in kwargs: + if conditions is None: + raise TypeError("Missing 'conditions' argument") + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if current_replicas is None: + raise TypeError("Missing 'current_replicas' argument") + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'currentMetrics' in kwargs: + if desired_replicas is None: + raise TypeError("Missing 'desired_replicas' argument") + if current_metrics is None and 'currentMetrics' in kwargs: current_metrics = kwargs['currentMetrics'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("conditions", conditions) @@ -1891,15 +1935,15 @@ def _configure( observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentMetrics' in kwargs: + if current_metrics is None and 'currentMetrics' in kwargs: current_metrics = kwargs['currentMetrics'] - if 'currentReplicas' in kwargs: + if current_replicas is None and 'currentReplicas' in kwargs: current_replicas = kwargs['currentReplicas'] - if 'desiredReplicas' in kwargs: + if desired_replicas is None and 'desiredReplicas' in kwargs: desired_replicas = kwargs['desiredReplicas'] - if 'lastScaleTime' in kwargs: + if last_scale_time is None and 'lastScaleTime' in kwargs: last_scale_time = kwargs['lastScaleTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] if conditions is not None: @@ -1985,10 +2029,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) if selector is not None: @@ -2109,7 +2155,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, container_resource: Optional['outputs.ContainerResourceMetricSource'] = None, external: Optional['outputs.ExternalMetricSource'] = None, object: Optional['outputs.ObjectMetricSource'] = None, @@ -2117,7 +2163,9 @@ def _configure( resource: Optional['outputs.ResourceMetricSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -2239,7 +2287,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] if container_resource is not None: @@ -2354,7 +2402,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, container_resource: Optional['outputs.ContainerResourceMetricStatus'] = None, external: Optional['outputs.ExternalMetricStatus'] = None, object: Optional['outputs.ObjectMetricStatus'] = None, @@ -2362,7 +2410,9 @@ def _configure( resource: Optional['outputs.ResourceMetricStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] _setter("type", type) @@ -2484,7 +2534,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerResource' in kwargs: + if container_resource is None and 'containerResource' in kwargs: container_resource = kwargs['containerResource'] if container_resource is not None: @@ -2595,15 +2645,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, average_utilization: Optional[int] = None, average_value: Optional[str] = None, value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] _setter("type", type) @@ -2699,9 +2751,9 @@ def _configure( value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2794,9 +2846,9 @@ def _configure( value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2879,9 +2931,9 @@ def _configure( value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'averageUtilization' in kwargs: + if average_utilization is None and 'averageUtilization' in kwargs: average_utilization = kwargs['averageUtilization'] - if 'averageValue' in kwargs: + if average_value is None and 'averageValue' in kwargs: average_value = kwargs['averageValue'] if average_utilization is not None: @@ -2956,13 +3008,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - described_object: 'outputs.CrossVersionObjectReference', - metric: 'outputs.MetricIdentifier', - target: 'outputs.MetricTarget', + described_object: Optional['outputs.CrossVersionObjectReference'] = None, + metric: Optional['outputs.MetricIdentifier'] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] + if described_object is None: + raise TypeError("Missing 'described_object' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("described_object", described_object) _setter("metric", metric) @@ -3035,7 +3093,7 @@ def _configure( target: Optional['outputs.MetricTargetPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] if described_object is not None: @@ -3107,13 +3165,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: 'outputs.MetricValueStatus', - described_object: 'outputs.CrossVersionObjectReference', - metric: 'outputs.MetricIdentifier', + current: Optional['outputs.MetricValueStatus'] = None, + described_object: Optional['outputs.CrossVersionObjectReference'] = None, + metric: Optional['outputs.MetricIdentifier'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if current is None: + raise TypeError("Missing 'current' argument") + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] + if described_object is None: + raise TypeError("Missing 'described_object' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("described_object", described_object) @@ -3186,7 +3250,7 @@ def _configure( metric: Optional['outputs.MetricIdentifierPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'describedObject' in kwargs: + if described_object is None and 'describedObject' in kwargs: described_object = kwargs['describedObject'] if current is not None: @@ -3239,10 +3303,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - metric: 'outputs.MetricIdentifier', - target: 'outputs.MetricTarget', + metric: Optional['outputs.MetricIdentifier'] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if metric is None: + raise TypeError("Missing 'metric' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("metric", metric) _setter("target", target) @@ -3333,10 +3401,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: 'outputs.MetricValueStatus', - metric: 'outputs.MetricIdentifier', + current: Optional['outputs.MetricValueStatus'] = None, + metric: Optional['outputs.MetricIdentifier'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if metric is None: + raise TypeError("Missing 'metric' argument") _setter("current", current) _setter("metric", metric) @@ -3427,10 +3499,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - target: 'outputs.MetricTarget', + name: Optional[str] = None, + target: Optional['outputs.MetricTarget'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if target is None: + raise TypeError("Missing 'target' argument") _setter("name", name) _setter("target", target) @@ -3521,10 +3597,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current: 'outputs.MetricValueStatus', - name: str, + current: Optional['outputs.MetricValueStatus'] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if current is None: + raise TypeError("Missing 'current' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("current", current) _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/batch/v1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1/CronJob.py index 28172c53ec..f9ad729658 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/CronJob.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['CronJobSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1/CronJobList.py index dbb19e6267..89b84b828e 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/CronJobList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/batch/v1/CronJobPatch.py b/sdk/python/pulumi_kubernetes/batch/v1/CronJobPatch.py index 12ed906206..5cdd7d62e7 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/CronJobPatch.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/CronJobPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['CronJobSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v1/Job.py b/sdk/python/pulumi_kubernetes/batch/v1/Job.py index 4075edb996..92704e434d 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/Job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/Job.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['JobSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py index d8b5d4007d..5649b41f9c 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['JobArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['JobArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/batch/v1/JobPatch.py b/sdk/python/pulumi_kubernetes/batch/v1/JobPatch.py index 16e574d9f9..32ef3994ad 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/JobPatch.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/JobPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['JobSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v1/_inputs.py b/sdk/python/pulumi_kubernetes/batch/v1/_inputs.py index 67901a7d63..367e33999e 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/_inputs.py @@ -82,17 +82,17 @@ def _configure( time_zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'concurrencyPolicy' in kwargs: + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] - if 'timeZone' in kwargs: + if time_zone is None and 'timeZone' in kwargs: time_zone = kwargs['timeZone'] if concurrency_policy is not None: @@ -249,8 +249,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - job_template: pulumi.Input['JobTemplateSpecArgs'], - schedule: pulumi.Input[str], + job_template: Optional[pulumi.Input['JobTemplateSpecArgs']] = None, + schedule: Optional[pulumi.Input[str]] = None, concurrency_policy: Optional[pulumi.Input[str]] = None, failed_jobs_history_limit: Optional[pulumi.Input[int]] = None, starting_deadline_seconds: Optional[pulumi.Input[int]] = None, @@ -259,17 +259,21 @@ def _configure( time_zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'concurrencyPolicy' in kwargs: + if job_template is None: + raise TypeError("Missing 'job_template' argument") + if schedule is None: + raise TypeError("Missing 'schedule' argument") + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] - if 'timeZone' in kwargs: + if time_zone is None and 'timeZone' in kwargs: time_zone = kwargs['timeZone'] _setter("job_template", job_template) @@ -412,9 +416,9 @@ def _configure( last_successful_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastScheduleTime' in kwargs: + if last_schedule_time is None and 'lastScheduleTime' in kwargs: last_schedule_time = kwargs['lastScheduleTime'] - if 'lastSuccessfulTime' in kwargs: + if last_successful_time is None and 'lastSuccessfulTime' in kwargs: last_successful_time = kwargs['lastSuccessfulTime'] if active is not None: @@ -495,7 +499,7 @@ def _configure( status: Optional[pulumi.Input['CronJobStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -600,17 +604,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_probe_time: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -780,23 +788,23 @@ def _configure( ttl_seconds_after_finished: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'activeDeadlineSeconds' in kwargs: + if active_deadline_seconds is None and 'activeDeadlineSeconds' in kwargs: active_deadline_seconds = kwargs['activeDeadlineSeconds'] - if 'backoffLimit' in kwargs: + if backoff_limit is None and 'backoffLimit' in kwargs: backoff_limit = kwargs['backoffLimit'] - if 'backoffLimitPerIndex' in kwargs: + if backoff_limit_per_index is None and 'backoffLimitPerIndex' in kwargs: backoff_limit_per_index = kwargs['backoffLimitPerIndex'] - if 'completionMode' in kwargs: + if completion_mode is None and 'completionMode' in kwargs: completion_mode = kwargs['completionMode'] - if 'manualSelector' in kwargs: + if manual_selector is None and 'manualSelector' in kwargs: manual_selector = kwargs['manualSelector'] - if 'maxFailedIndexes' in kwargs: + if max_failed_indexes is None and 'maxFailedIndexes' in kwargs: max_failed_indexes = kwargs['maxFailedIndexes'] - if 'podFailurePolicy' in kwargs: + if pod_failure_policy is None and 'podFailurePolicy' in kwargs: pod_failure_policy = kwargs['podFailurePolicy'] - if 'podReplacementPolicy' in kwargs: + if pod_replacement_policy is None and 'podReplacementPolicy' in kwargs: pod_replacement_policy = kwargs['podReplacementPolicy'] - if 'ttlSecondsAfterFinished' in kwargs: + if ttl_seconds_after_finished is None and 'ttlSecondsAfterFinished' in kwargs: ttl_seconds_after_finished = kwargs['ttlSecondsAfterFinished'] if active_deadline_seconds is not None: @@ -1077,7 +1085,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, active_deadline_seconds: Optional[pulumi.Input[int]] = None, backoff_limit: Optional[pulumi.Input[int]] = None, backoff_limit_per_index: Optional[pulumi.Input[int]] = None, @@ -1093,23 +1101,25 @@ def _configure( ttl_seconds_after_finished: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'activeDeadlineSeconds' in kwargs: + if template is None: + raise TypeError("Missing 'template' argument") + if active_deadline_seconds is None and 'activeDeadlineSeconds' in kwargs: active_deadline_seconds = kwargs['activeDeadlineSeconds'] - if 'backoffLimit' in kwargs: + if backoff_limit is None and 'backoffLimit' in kwargs: backoff_limit = kwargs['backoffLimit'] - if 'backoffLimitPerIndex' in kwargs: + if backoff_limit_per_index is None and 'backoffLimitPerIndex' in kwargs: backoff_limit_per_index = kwargs['backoffLimitPerIndex'] - if 'completionMode' in kwargs: + if completion_mode is None and 'completionMode' in kwargs: completion_mode = kwargs['completionMode'] - if 'manualSelector' in kwargs: + if manual_selector is None and 'manualSelector' in kwargs: manual_selector = kwargs['manualSelector'] - if 'maxFailedIndexes' in kwargs: + if max_failed_indexes is None and 'maxFailedIndexes' in kwargs: max_failed_indexes = kwargs['maxFailedIndexes'] - if 'podFailurePolicy' in kwargs: + if pod_failure_policy is None and 'podFailurePolicy' in kwargs: pod_failure_policy = kwargs['podFailurePolicy'] - if 'podReplacementPolicy' in kwargs: + if pod_replacement_policy is None and 'podReplacementPolicy' in kwargs: pod_replacement_policy = kwargs['podReplacementPolicy'] - if 'ttlSecondsAfterFinished' in kwargs: + if ttl_seconds_after_finished is None and 'ttlSecondsAfterFinished' in kwargs: ttl_seconds_after_finished = kwargs['ttlSecondsAfterFinished'] _setter("template", template) @@ -1391,15 +1401,15 @@ def _configure( uncounted_terminated_pods: Optional[pulumi.Input['UncountedTerminatedPodsArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'completedIndexes' in kwargs: + if completed_indexes is None and 'completedIndexes' in kwargs: completed_indexes = kwargs['completedIndexes'] - if 'completionTime' in kwargs: + if completion_time is None and 'completionTime' in kwargs: completion_time = kwargs['completionTime'] - if 'failedIndexes' in kwargs: + if failed_indexes is None and 'failedIndexes' in kwargs: failed_indexes = kwargs['failedIndexes'] - if 'startTime' in kwargs: + if start_time is None and 'startTime' in kwargs: start_time = kwargs['startTime'] - if 'uncountedTerminatedPods' in kwargs: + if uncounted_terminated_pods is None and 'uncountedTerminatedPods' in kwargs: uncounted_terminated_pods = kwargs['uncountedTerminatedPods'] if active is not None: @@ -1729,7 +1739,7 @@ def _configure( status: Optional[pulumi.Input['JobStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1838,7 +1848,7 @@ def _configure( values: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerName' in kwargs: + if container_name is None and 'containerName' in kwargs: container_name = kwargs['containerName'] if container_name is not None: @@ -1922,12 +1932,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - operator: pulumi.Input[str], - values: pulumi.Input[Sequence[pulumi.Input[int]]], + operator: Optional[pulumi.Input[str]] = None, + values: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, container_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerName' in kwargs: + if operator is None: + raise TypeError("Missing 'operator' argument") + if values is None: + raise TypeError("Missing 'values' argument") + if container_name is None and 'containerName' in kwargs: container_name = kwargs['containerName'] _setter("operator", operator) @@ -2051,10 +2065,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") _setter("status", status) _setter("type", type) @@ -2157,9 +2175,9 @@ def _configure( on_pod_conditions: Optional[pulumi.Input[Sequence[pulumi.Input['PodFailurePolicyOnPodConditionsPatternPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'onExitCodes' in kwargs: + if on_exit_codes is None and 'onExitCodes' in kwargs: on_exit_codes = kwargs['onExitCodes'] - if 'onPodConditions' in kwargs: + if on_pod_conditions is None and 'onPodConditions' in kwargs: on_pod_conditions = kwargs['onPodConditions'] if action is not None: @@ -2251,14 +2269,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - action: pulumi.Input[str], - on_pod_conditions: pulumi.Input[Sequence[pulumi.Input['PodFailurePolicyOnPodConditionsPatternArgs']]], + action: Optional[pulumi.Input[str]] = None, + on_pod_conditions: Optional[pulumi.Input[Sequence[pulumi.Input['PodFailurePolicyOnPodConditionsPatternArgs']]]] = None, on_exit_codes: Optional[pulumi.Input['PodFailurePolicyOnExitCodesRequirementArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'onPodConditions' in kwargs: + if action is None: + raise TypeError("Missing 'action' argument") + if on_pod_conditions is None and 'onPodConditions' in kwargs: on_pod_conditions = kwargs['onPodConditions'] - if 'onExitCodes' in kwargs: + if on_pod_conditions is None: + raise TypeError("Missing 'on_pod_conditions' argument") + if on_exit_codes is None and 'onExitCodes' in kwargs: on_exit_codes = kwargs['onExitCodes'] _setter("action", action) @@ -2330,9 +2352,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rules: pulumi.Input[Sequence[pulumi.Input['PodFailurePolicyRuleArgs']]], + rules: Optional[pulumi.Input[Sequence[pulumi.Input['PodFailurePolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rules is None: + raise TypeError("Missing 'rules' argument") _setter("rules", rules) diff --git a/sdk/python/pulumi_kubernetes/batch/v1/outputs.py b/sdk/python/pulumi_kubernetes/batch/v1/outputs.py index 8c33065890..54a28935e8 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/outputs.py @@ -93,7 +93,7 @@ def _configure( status: Optional['outputs.CronJobStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -216,8 +216,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - job_template: 'outputs.JobTemplateSpec', - schedule: str, + job_template: Optional['outputs.JobTemplateSpec'] = None, + schedule: Optional[str] = None, concurrency_policy: Optional[str] = None, failed_jobs_history_limit: Optional[int] = None, starting_deadline_seconds: Optional[int] = None, @@ -226,17 +226,21 @@ def _configure( time_zone: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'concurrencyPolicy' in kwargs: + if job_template is None: + raise TypeError("Missing 'job_template' argument") + if schedule is None: + raise TypeError("Missing 'schedule' argument") + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] - if 'timeZone' in kwargs: + if time_zone is None and 'timeZone' in kwargs: time_zone = kwargs['timeZone'] _setter("job_template", job_template) @@ -399,17 +403,17 @@ def _configure( time_zone: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'concurrencyPolicy' in kwargs: + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] - if 'timeZone' in kwargs: + if time_zone is None and 'timeZone' in kwargs: time_zone = kwargs['timeZone'] if concurrency_policy is not None: @@ -544,9 +548,9 @@ def _configure( last_successful_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastScheduleTime' in kwargs: + if last_schedule_time is None and 'lastScheduleTime' in kwargs: last_schedule_time = kwargs['lastScheduleTime'] - if 'lastSuccessfulTime' in kwargs: + if last_successful_time is None and 'lastSuccessfulTime' in kwargs: last_successful_time = kwargs['lastSuccessfulTime'] if active is not None: @@ -629,9 +633,9 @@ def _configure( last_successful_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastScheduleTime' in kwargs: + if last_schedule_time is None and 'lastScheduleTime' in kwargs: last_schedule_time = kwargs['lastScheduleTime'] - if 'lastSuccessfulTime' in kwargs: + if last_successful_time is None and 'lastSuccessfulTime' in kwargs: last_successful_time = kwargs['lastSuccessfulTime'] if active is not None: @@ -760,7 +764,7 @@ def _configure( status: Optional['outputs.JobStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -867,17 +871,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_probe_time: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -1000,9 +1008,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_probe_time is not None: @@ -1170,7 +1178,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - template: '_core.v1.outputs.PodTemplateSpec', + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, active_deadline_seconds: Optional[int] = None, backoff_limit: Optional[int] = None, backoff_limit_per_index: Optional[int] = None, @@ -1186,23 +1194,25 @@ def _configure( ttl_seconds_after_finished: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'activeDeadlineSeconds' in kwargs: + if template is None: + raise TypeError("Missing 'template' argument") + if active_deadline_seconds is None and 'activeDeadlineSeconds' in kwargs: active_deadline_seconds = kwargs['activeDeadlineSeconds'] - if 'backoffLimit' in kwargs: + if backoff_limit is None and 'backoffLimit' in kwargs: backoff_limit = kwargs['backoffLimit'] - if 'backoffLimitPerIndex' in kwargs: + if backoff_limit_per_index is None and 'backoffLimitPerIndex' in kwargs: backoff_limit_per_index = kwargs['backoffLimitPerIndex'] - if 'completionMode' in kwargs: + if completion_mode is None and 'completionMode' in kwargs: completion_mode = kwargs['completionMode'] - if 'manualSelector' in kwargs: + if manual_selector is None and 'manualSelector' in kwargs: manual_selector = kwargs['manualSelector'] - if 'maxFailedIndexes' in kwargs: + if max_failed_indexes is None and 'maxFailedIndexes' in kwargs: max_failed_indexes = kwargs['maxFailedIndexes'] - if 'podFailurePolicy' in kwargs: + if pod_failure_policy is None and 'podFailurePolicy' in kwargs: pod_failure_policy = kwargs['podFailurePolicy'] - if 'podReplacementPolicy' in kwargs: + if pod_replacement_policy is None and 'podReplacementPolicy' in kwargs: pod_replacement_policy = kwargs['podReplacementPolicy'] - if 'ttlSecondsAfterFinished' in kwargs: + if ttl_seconds_after_finished is None and 'ttlSecondsAfterFinished' in kwargs: ttl_seconds_after_finished = kwargs['ttlSecondsAfterFinished'] _setter("template", template) @@ -1478,23 +1488,23 @@ def _configure( ttl_seconds_after_finished: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'activeDeadlineSeconds' in kwargs: + if active_deadline_seconds is None and 'activeDeadlineSeconds' in kwargs: active_deadline_seconds = kwargs['activeDeadlineSeconds'] - if 'backoffLimit' in kwargs: + if backoff_limit is None and 'backoffLimit' in kwargs: backoff_limit = kwargs['backoffLimit'] - if 'backoffLimitPerIndex' in kwargs: + if backoff_limit_per_index is None and 'backoffLimitPerIndex' in kwargs: backoff_limit_per_index = kwargs['backoffLimitPerIndex'] - if 'completionMode' in kwargs: + if completion_mode is None and 'completionMode' in kwargs: completion_mode = kwargs['completionMode'] - if 'manualSelector' in kwargs: + if manual_selector is None and 'manualSelector' in kwargs: manual_selector = kwargs['manualSelector'] - if 'maxFailedIndexes' in kwargs: + if max_failed_indexes is None and 'maxFailedIndexes' in kwargs: max_failed_indexes = kwargs['maxFailedIndexes'] - if 'podFailurePolicy' in kwargs: + if pod_failure_policy is None and 'podFailurePolicy' in kwargs: pod_failure_policy = kwargs['podFailurePolicy'] - if 'podReplacementPolicy' in kwargs: + if pod_replacement_policy is None and 'podReplacementPolicy' in kwargs: pod_replacement_policy = kwargs['podReplacementPolicy'] - if 'ttlSecondsAfterFinished' in kwargs: + if ttl_seconds_after_finished is None and 'ttlSecondsAfterFinished' in kwargs: ttl_seconds_after_finished = kwargs['ttlSecondsAfterFinished'] if active_deadline_seconds is not None: @@ -1749,15 +1759,15 @@ def _configure( uncounted_terminated_pods: Optional['outputs.UncountedTerminatedPods'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'completedIndexes' in kwargs: + if completed_indexes is None and 'completedIndexes' in kwargs: completed_indexes = kwargs['completedIndexes'] - if 'completionTime' in kwargs: + if completion_time is None and 'completionTime' in kwargs: completion_time = kwargs['completionTime'] - if 'failedIndexes' in kwargs: + if failed_indexes is None and 'failedIndexes' in kwargs: failed_indexes = kwargs['failedIndexes'] - if 'startTime' in kwargs: + if start_time is None and 'startTime' in kwargs: start_time = kwargs['startTime'] - if 'uncountedTerminatedPods' in kwargs: + if uncounted_terminated_pods is None and 'uncountedTerminatedPods' in kwargs: uncounted_terminated_pods = kwargs['uncountedTerminatedPods'] if active is not None: @@ -1980,15 +1990,15 @@ def _configure( uncounted_terminated_pods: Optional['outputs.UncountedTerminatedPodsPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'completedIndexes' in kwargs: + if completed_indexes is None and 'completedIndexes' in kwargs: completed_indexes = kwargs['completedIndexes'] - if 'completionTime' in kwargs: + if completion_time is None and 'completionTime' in kwargs: completion_time = kwargs['completionTime'] - if 'failedIndexes' in kwargs: + if failed_indexes is None and 'failedIndexes' in kwargs: failed_indexes = kwargs['failedIndexes'] - if 'startTime' in kwargs: + if start_time is None and 'startTime' in kwargs: start_time = kwargs['startTime'] - if 'uncountedTerminatedPods' in kwargs: + if uncounted_terminated_pods is None and 'uncountedTerminatedPods' in kwargs: uncounted_terminated_pods = kwargs['uncountedTerminatedPods'] if active is not None: @@ -2228,9 +2238,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rules: Sequence['outputs.PodFailurePolicyRule'], + rules: Optional[Sequence['outputs.PodFailurePolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rules is None: + raise TypeError("Missing 'rules' argument") _setter("rules", rules) @@ -2292,12 +2304,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - operator: str, - values: Sequence[int], + operator: Optional[str] = None, + values: Optional[Sequence[int]] = None, container_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerName' in kwargs: + if operator is None: + raise TypeError("Missing 'operator' argument") + if values is None: + raise TypeError("Missing 'values' argument") + if container_name is None and 'containerName' in kwargs: container_name = kwargs['containerName'] _setter("operator", operator) @@ -2392,7 +2408,7 @@ def _configure( values: Optional[Sequence[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerName' in kwargs: + if container_name is None and 'containerName' in kwargs: container_name = kwargs['containerName'] if container_name is not None: @@ -2456,10 +2472,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") _setter("status", status) _setter("type", type) @@ -2618,14 +2638,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - action: str, - on_pod_conditions: Sequence['outputs.PodFailurePolicyOnPodConditionsPattern'], + action: Optional[str] = None, + on_pod_conditions: Optional[Sequence['outputs.PodFailurePolicyOnPodConditionsPattern']] = None, on_exit_codes: Optional['outputs.PodFailurePolicyOnExitCodesRequirement'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'onPodConditions' in kwargs: + if action is None: + raise TypeError("Missing 'action' argument") + if on_pod_conditions is None and 'onPodConditions' in kwargs: on_pod_conditions = kwargs['onPodConditions'] - if 'onExitCodes' in kwargs: + if on_pod_conditions is None: + raise TypeError("Missing 'on_pod_conditions' argument") + if on_exit_codes is None and 'onExitCodes' in kwargs: on_exit_codes = kwargs['onExitCodes'] _setter("action", action) @@ -2730,9 +2754,9 @@ def _configure( on_pod_conditions: Optional[Sequence['outputs.PodFailurePolicyOnPodConditionsPatternPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'onExitCodes' in kwargs: + if on_exit_codes is None and 'onExitCodes' in kwargs: on_exit_codes = kwargs['onExitCodes'] - if 'onPodConditions' in kwargs: + if on_pod_conditions is None and 'onPodConditions' in kwargs: on_pod_conditions = kwargs['onPodConditions'] if action is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py index 5684c7397a..99861f7d5a 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py @@ -46,7 +46,7 @@ def _configure( spec: Optional[pulumi.Input['CronJobSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py index 06b53c98d8..f0d228bb9e 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py @@ -40,13 +40,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobPatch.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobPatch.py index 95b0abdd65..1c4d66c097 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobPatch.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobPatch.py @@ -46,7 +46,7 @@ def _configure( spec: Optional[pulumi.Input['CronJobSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/_inputs.py index 8cdedf3672..043c607f34 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/_inputs.py @@ -63,15 +63,15 @@ def _configure( suspend: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'concurrencyPolicy' in kwargs: + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] if concurrency_policy is not None: @@ -207,8 +207,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - job_template: pulumi.Input['JobTemplateSpecArgs'], - schedule: pulumi.Input[str], + job_template: Optional[pulumi.Input['JobTemplateSpecArgs']] = None, + schedule: Optional[pulumi.Input[str]] = None, concurrency_policy: Optional[pulumi.Input[str]] = None, failed_jobs_history_limit: Optional[pulumi.Input[int]] = None, starting_deadline_seconds: Optional[pulumi.Input[int]] = None, @@ -216,15 +216,19 @@ def _configure( suspend: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'concurrencyPolicy' in kwargs: + if job_template is None: + raise TypeError("Missing 'job_template' argument") + if schedule is None: + raise TypeError("Missing 'schedule' argument") + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] _setter("job_template", job_template) @@ -347,7 +351,7 @@ def _configure( last_schedule_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastScheduleTime' in kwargs: + if last_schedule_time is None and 'lastScheduleTime' in kwargs: last_schedule_time = kwargs['lastScheduleTime'] if active is not None: @@ -414,7 +418,7 @@ def _configure( status: Optional[pulumi.Input['CronJobStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/outputs.py index 1f42704e38..cb1458bee3 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/outputs.py @@ -77,7 +77,7 @@ def _configure( status: Optional['outputs.CronJobStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -193,8 +193,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - job_template: 'outputs.JobTemplateSpec', - schedule: str, + job_template: Optional['outputs.JobTemplateSpec'] = None, + schedule: Optional[str] = None, concurrency_policy: Optional[str] = None, failed_jobs_history_limit: Optional[int] = None, starting_deadline_seconds: Optional[int] = None, @@ -202,15 +202,19 @@ def _configure( suspend: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'concurrencyPolicy' in kwargs: + if job_template is None: + raise TypeError("Missing 'job_template' argument") + if schedule is None: + raise TypeError("Missing 'schedule' argument") + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] _setter("job_template", job_template) @@ -353,15 +357,15 @@ def _configure( suspend: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'concurrencyPolicy' in kwargs: + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] if concurrency_policy is not None: @@ -478,7 +482,7 @@ def _configure( last_schedule_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastScheduleTime' in kwargs: + if last_schedule_time is None and 'lastScheduleTime' in kwargs: last_schedule_time = kwargs['lastScheduleTime'] if active is not None: @@ -545,7 +549,7 @@ def _configure( last_schedule_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastScheduleTime' in kwargs: + if last_schedule_time is None and 'lastScheduleTime' in kwargs: last_schedule_time = kwargs['lastScheduleTime'] if active is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py index 5db9e1fffc..351ea10a2c 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py @@ -46,7 +46,7 @@ def _configure( spec: Optional[pulumi.Input['CronJobSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py index 817ea17b0a..d14212ce73 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py @@ -40,13 +40,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CronJobArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py index 67d8fbdbd3..3dcf20601e 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py @@ -46,7 +46,7 @@ def _configure( spec: Optional[pulumi.Input['CronJobSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/_inputs.py index f44d2b5d03..8520858f4f 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/_inputs.py @@ -63,15 +63,15 @@ def _configure( suspend: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'concurrencyPolicy' in kwargs: + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] if concurrency_policy is not None: @@ -207,8 +207,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - job_template: pulumi.Input['JobTemplateSpecArgs'], - schedule: pulumi.Input[str], + job_template: Optional[pulumi.Input['JobTemplateSpecArgs']] = None, + schedule: Optional[pulumi.Input[str]] = None, concurrency_policy: Optional[pulumi.Input[str]] = None, failed_jobs_history_limit: Optional[pulumi.Input[int]] = None, starting_deadline_seconds: Optional[pulumi.Input[int]] = None, @@ -216,15 +216,19 @@ def _configure( suspend: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'concurrencyPolicy' in kwargs: + if job_template is None: + raise TypeError("Missing 'job_template' argument") + if schedule is None: + raise TypeError("Missing 'schedule' argument") + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] _setter("job_template", job_template) @@ -347,7 +351,7 @@ def _configure( last_schedule_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastScheduleTime' in kwargs: + if last_schedule_time is None and 'lastScheduleTime' in kwargs: last_schedule_time = kwargs['lastScheduleTime'] if active is not None: @@ -414,7 +418,7 @@ def _configure( status: Optional[pulumi.Input['CronJobStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/outputs.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/outputs.py index cd1ed440b3..e30234a2c5 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/outputs.py @@ -77,7 +77,7 @@ def _configure( status: Optional['outputs.CronJobStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -193,8 +193,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - job_template: 'outputs.JobTemplateSpec', - schedule: str, + job_template: Optional['outputs.JobTemplateSpec'] = None, + schedule: Optional[str] = None, concurrency_policy: Optional[str] = None, failed_jobs_history_limit: Optional[int] = None, starting_deadline_seconds: Optional[int] = None, @@ -202,15 +202,19 @@ def _configure( suspend: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'concurrencyPolicy' in kwargs: + if job_template is None: + raise TypeError("Missing 'job_template' argument") + if schedule is None: + raise TypeError("Missing 'schedule' argument") + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] _setter("job_template", job_template) @@ -353,15 +357,15 @@ def _configure( suspend: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'concurrencyPolicy' in kwargs: + if concurrency_policy is None and 'concurrencyPolicy' in kwargs: concurrency_policy = kwargs['concurrencyPolicy'] - if 'failedJobsHistoryLimit' in kwargs: + if failed_jobs_history_limit is None and 'failedJobsHistoryLimit' in kwargs: failed_jobs_history_limit = kwargs['failedJobsHistoryLimit'] - if 'jobTemplate' in kwargs: + if job_template is None and 'jobTemplate' in kwargs: job_template = kwargs['jobTemplate'] - if 'startingDeadlineSeconds' in kwargs: + if starting_deadline_seconds is None and 'startingDeadlineSeconds' in kwargs: starting_deadline_seconds = kwargs['startingDeadlineSeconds'] - if 'successfulJobsHistoryLimit' in kwargs: + if successful_jobs_history_limit is None and 'successfulJobsHistoryLimit' in kwargs: successful_jobs_history_limit = kwargs['successfulJobsHistoryLimit'] if concurrency_policy is not None: @@ -478,7 +482,7 @@ def _configure( last_schedule_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastScheduleTime' in kwargs: + if last_schedule_time is None and 'lastScheduleTime' in kwargs: last_schedule_time = kwargs['lastScheduleTime'] if active is not None: @@ -545,7 +549,7 @@ def _configure( last_schedule_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastScheduleTime' in kwargs: + if last_schedule_time is None and 'lastScheduleTime' in kwargs: last_schedule_time = kwargs['lastScheduleTime'] if active is not None: diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py index 3a8962c7e3..6e9abbf5ec 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py @@ -37,13 +37,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CertificateSigningRequestSpecArgs'], + spec: Optional[pulumi.Input['CertificateSigningRequestSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py index 30af287273..e2ca148804 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py @@ -37,13 +37,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py index ea2c8b79f0..7533b46153 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['CertificateSigningRequestSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/_inputs.py b/sdk/python/pulumi_kubernetes/certificates/v1/_inputs.py index e43da25d56..31eee91e6e 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/_inputs.py @@ -58,17 +58,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, last_update_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -255,9 +259,9 @@ def _configure( username: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] - if 'signerName' in kwargs: + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] if expiration_seconds is not None: @@ -498,8 +502,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - request: pulumi.Input[str], - signer_name: pulumi.Input[str], + request: Optional[pulumi.Input[str]] = None, + signer_name: Optional[pulumi.Input[str]] = None, expiration_seconds: Optional[pulumi.Input[int]] = None, extra: Optional[pulumi.Input[Mapping[str, pulumi.Input[Sequence[pulumi.Input[str]]]]]] = None, groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -508,9 +512,13 @@ def _configure( username: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'signerName' in kwargs: + if request is None: + raise TypeError("Missing 'request' argument") + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] - if 'expirationSeconds' in kwargs: + if signer_name is None: + raise TypeError("Missing 'signer_name' argument") + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] _setter("request", request) @@ -796,14 +804,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CertificateSigningRequestSpecArgs'], + spec: Optional[pulumi.Input['CertificateSigningRequestSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['CertificateSigningRequestStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/certificates/v1/outputs.py b/sdk/python/pulumi_kubernetes/certificates/v1/outputs.py index eb0c53a509..c183ba479b 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1/outputs.py @@ -79,14 +79,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.CertificateSigningRequestSpec', + spec: Optional['outputs.CertificateSigningRequestSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.CertificateSigningRequestStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -199,17 +201,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, last_update_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -352,9 +358,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] if last_transition_time is not None: @@ -531,8 +537,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - request: str, - signer_name: str, + request: Optional[str] = None, + signer_name: Optional[str] = None, expiration_seconds: Optional[int] = None, extra: Optional[Mapping[str, Sequence[str]]] = None, groups: Optional[Sequence[str]] = None, @@ -541,9 +547,13 @@ def _configure( username: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'signerName' in kwargs: + if request is None: + raise TypeError("Missing 'request' argument") + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] - if 'expirationSeconds' in kwargs: + if signer_name is None: + raise TypeError("Missing 'signer_name' argument") + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] _setter("request", request) @@ -782,9 +792,9 @@ def _configure( username: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] - if 'signerName' in kwargs: + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] if expiration_seconds is not None: diff --git a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py index 1e13202bbd..fadca42f60 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ClusterTrustBundleSpecArgs'], + spec: Optional[pulumi.Input['ClusterTrustBundleSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py index 1693d2b073..22d3fe39fb 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ClusterTrustBundleArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterTrustBundleArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py index 4a69d2b689..f17a7c3c44 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ClusterTrustBundleSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/_inputs.py index fcb458394e..251532e9b7 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/_inputs.py @@ -50,9 +50,9 @@ def _configure( trust_bundle: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'signerName' in kwargs: + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] - if 'trustBundle' in kwargs: + if trust_bundle is None and 'trustBundle' in kwargs: trust_bundle = kwargs['trustBundle'] if signer_name is not None: @@ -127,13 +127,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - trust_bundle: pulumi.Input[str], + trust_bundle: Optional[pulumi.Input[str]] = None, signer_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'trustBundle' in kwargs: + if trust_bundle is None and 'trustBundle' in kwargs: trust_bundle = kwargs['trustBundle'] - if 'signerName' in kwargs: + if trust_bundle is None: + raise TypeError("Missing 'trust_bundle' argument") + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] _setter("trust_bundle", trust_bundle) @@ -205,13 +207,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ClusterTrustBundleSpecArgs'], + spec: Optional[pulumi.Input['ClusterTrustBundleSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/outputs.py index 71c46417b1..56677bad26 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1alpha1/outputs.py @@ -69,13 +69,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.ClusterTrustBundleSpec', + spec: Optional['outputs.ClusterTrustBundleSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -171,13 +173,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - trust_bundle: str, + trust_bundle: Optional[str] = None, signer_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'trustBundle' in kwargs: + if trust_bundle is None and 'trustBundle' in kwargs: trust_bundle = kwargs['trustBundle'] - if 'signerName' in kwargs: + if trust_bundle is None: + raise TypeError("Missing 'trust_bundle' argument") + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] _setter("trust_bundle", trust_bundle) @@ -269,9 +273,9 @@ def _configure( trust_bundle: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'signerName' in kwargs: + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] - if 'trustBundle' in kwargs: + if trust_bundle is None and 'trustBundle' in kwargs: trust_bundle = kwargs['trustBundle'] if signer_name is not None: diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py index 8fcb37c26b..d848b4004e 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['CertificateSigningRequestSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py index fb97bbe11a..e7cf5603cc 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py @@ -36,13 +36,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CertificateSigningRequestArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py index 5b754cbcf4..0fc51d8788 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['CertificateSigningRequestSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/_inputs.py index 89191cb175..0a989b07b8 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/_inputs.py @@ -47,7 +47,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, last_update_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, @@ -55,9 +55,11 @@ def _configure( status: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("type", type) @@ -194,7 +196,7 @@ def _configure( username: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'signerName' in kwargs: + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] if extra is not None: @@ -344,7 +346,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - request: pulumi.Input[str], + request: Optional[pulumi.Input[str]] = None, extra: Optional[pulumi.Input[Mapping[str, pulumi.Input[Sequence[pulumi.Input[str]]]]]] = None, groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, signer_name: Optional[pulumi.Input[str]] = None, @@ -353,7 +355,9 @@ def _configure( username: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'signerName' in kwargs: + if request is None: + raise TypeError("Missing 'request' argument") + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] _setter("request", request) @@ -547,7 +551,7 @@ def _configure( status: Optional[pulumi.Input['CertificateSigningRequestStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/outputs.py index 0b17e4d8ae..3c5f261e08 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/outputs.py @@ -74,7 +74,7 @@ def _configure( status: Optional['outputs.CertificateSigningRequestStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -174,7 +174,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, last_transition_time: Optional[str] = None, last_update_time: Optional[str] = None, message: Optional[str] = None, @@ -182,9 +182,11 @@ def _configure( status: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("type", type) @@ -304,9 +306,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] if last_transition_time is not None: @@ -431,7 +433,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - request: str, + request: Optional[str] = None, extra: Optional[Mapping[str, Sequence[str]]] = None, groups: Optional[Sequence[str]] = None, signer_name: Optional[str] = None, @@ -440,7 +442,9 @@ def _configure( username: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'signerName' in kwargs: + if request is None: + raise TypeError("Missing 'request' argument") + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] _setter("request", request) @@ -590,7 +594,7 @@ def _configure( username: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'signerName' in kwargs: + if signer_name is None and 'signerName' in kwargs: signer_name = kwargs['signerName'] if extra is not None: diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py index ba5d658fb5..b28ddacfdd 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['LeaseSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py index e3564cab59..6bebb88483 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/LeasePatch.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeasePatch.py index 14d9e80bc4..597c3e9cad 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/LeasePatch.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/LeasePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['LeaseSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py b/sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py index 16b4bdff7d..e01d531507 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py @@ -50,15 +50,15 @@ def _configure( renew_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acquireTime' in kwargs: + if acquire_time is None and 'acquireTime' in kwargs: acquire_time = kwargs['acquireTime'] - if 'holderIdentity' in kwargs: + if holder_identity is None and 'holderIdentity' in kwargs: holder_identity = kwargs['holderIdentity'] - if 'leaseDurationSeconds' in kwargs: + if lease_duration_seconds is None and 'leaseDurationSeconds' in kwargs: lease_duration_seconds = kwargs['leaseDurationSeconds'] - if 'leaseTransitions' in kwargs: + if lease_transitions is None and 'leaseTransitions' in kwargs: lease_transitions = kwargs['leaseTransitions'] - if 'renewTime' in kwargs: + if renew_time is None and 'renewTime' in kwargs: renew_time = kwargs['renewTime'] if acquire_time is not None: @@ -167,15 +167,15 @@ def _configure( renew_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acquireTime' in kwargs: + if acquire_time is None and 'acquireTime' in kwargs: acquire_time = kwargs['acquireTime'] - if 'holderIdentity' in kwargs: + if holder_identity is None and 'holderIdentity' in kwargs: holder_identity = kwargs['holderIdentity'] - if 'leaseDurationSeconds' in kwargs: + if lease_duration_seconds is None and 'leaseDurationSeconds' in kwargs: lease_duration_seconds = kwargs['leaseDurationSeconds'] - if 'leaseTransitions' in kwargs: + if lease_transitions is None and 'leaseTransitions' in kwargs: lease_transitions = kwargs['leaseTransitions'] - if 'renewTime' in kwargs: + if renew_time is None and 'renewTime' in kwargs: renew_time = kwargs['renewTime'] if acquire_time is not None: @@ -280,7 +280,7 @@ def _configure( spec: Optional[pulumi.Input['LeaseSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/outputs.py b/sdk/python/pulumi_kubernetes/coordination/v1/outputs.py index 0e90ac8bef..464ce7609b 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/outputs.py @@ -67,7 +67,7 @@ def _configure( spec: Optional['outputs.LeaseSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -174,15 +174,15 @@ def _configure( renew_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acquireTime' in kwargs: + if acquire_time is None and 'acquireTime' in kwargs: acquire_time = kwargs['acquireTime'] - if 'holderIdentity' in kwargs: + if holder_identity is None and 'holderIdentity' in kwargs: holder_identity = kwargs['holderIdentity'] - if 'leaseDurationSeconds' in kwargs: + if lease_duration_seconds is None and 'leaseDurationSeconds' in kwargs: lease_duration_seconds = kwargs['leaseDurationSeconds'] - if 'leaseTransitions' in kwargs: + if lease_transitions is None and 'leaseTransitions' in kwargs: lease_transitions = kwargs['leaseTransitions'] - if 'renewTime' in kwargs: + if renew_time is None and 'renewTime' in kwargs: renew_time = kwargs['renewTime'] if acquire_time is not None: @@ -299,15 +299,15 @@ def _configure( renew_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acquireTime' in kwargs: + if acquire_time is None and 'acquireTime' in kwargs: acquire_time = kwargs['acquireTime'] - if 'holderIdentity' in kwargs: + if holder_identity is None and 'holderIdentity' in kwargs: holder_identity = kwargs['holderIdentity'] - if 'leaseDurationSeconds' in kwargs: + if lease_duration_seconds is None and 'leaseDurationSeconds' in kwargs: lease_duration_seconds = kwargs['leaseDurationSeconds'] - if 'leaseTransitions' in kwargs: + if lease_transitions is None and 'leaseTransitions' in kwargs: lease_transitions = kwargs['leaseTransitions'] - if 'renewTime' in kwargs: + if renew_time is None and 'renewTime' in kwargs: renew_time = kwargs['renewTime'] if acquire_time is not None: diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py index 503a138685..f1ddeec250 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['LeaseSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py index d36e4e6fad..f4213d835c 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['LeaseArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeasePatch.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeasePatch.py index 7bef71ec3c..248a8defd5 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeasePatch.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeasePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['LeaseSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/_inputs.py index e620bb069a..441f2e0d2f 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/_inputs.py @@ -50,15 +50,15 @@ def _configure( renew_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acquireTime' in kwargs: + if acquire_time is None and 'acquireTime' in kwargs: acquire_time = kwargs['acquireTime'] - if 'holderIdentity' in kwargs: + if holder_identity is None and 'holderIdentity' in kwargs: holder_identity = kwargs['holderIdentity'] - if 'leaseDurationSeconds' in kwargs: + if lease_duration_seconds is None and 'leaseDurationSeconds' in kwargs: lease_duration_seconds = kwargs['leaseDurationSeconds'] - if 'leaseTransitions' in kwargs: + if lease_transitions is None and 'leaseTransitions' in kwargs: lease_transitions = kwargs['leaseTransitions'] - if 'renewTime' in kwargs: + if renew_time is None and 'renewTime' in kwargs: renew_time = kwargs['renewTime'] if acquire_time is not None: @@ -167,15 +167,15 @@ def _configure( renew_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acquireTime' in kwargs: + if acquire_time is None and 'acquireTime' in kwargs: acquire_time = kwargs['acquireTime'] - if 'holderIdentity' in kwargs: + if holder_identity is None and 'holderIdentity' in kwargs: holder_identity = kwargs['holderIdentity'] - if 'leaseDurationSeconds' in kwargs: + if lease_duration_seconds is None and 'leaseDurationSeconds' in kwargs: lease_duration_seconds = kwargs['leaseDurationSeconds'] - if 'leaseTransitions' in kwargs: + if lease_transitions is None and 'leaseTransitions' in kwargs: lease_transitions = kwargs['leaseTransitions'] - if 'renewTime' in kwargs: + if renew_time is None and 'renewTime' in kwargs: renew_time = kwargs['renewTime'] if acquire_time is not None: @@ -280,7 +280,7 @@ def _configure( spec: Optional[pulumi.Input['LeaseSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/outputs.py index 63b19d9ff3..c679cc4eef 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/outputs.py @@ -67,7 +67,7 @@ def _configure( spec: Optional['outputs.LeaseSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -174,15 +174,15 @@ def _configure( renew_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acquireTime' in kwargs: + if acquire_time is None and 'acquireTime' in kwargs: acquire_time = kwargs['acquireTime'] - if 'holderIdentity' in kwargs: + if holder_identity is None and 'holderIdentity' in kwargs: holder_identity = kwargs['holderIdentity'] - if 'leaseDurationSeconds' in kwargs: + if lease_duration_seconds is None and 'leaseDurationSeconds' in kwargs: lease_duration_seconds = kwargs['leaseDurationSeconds'] - if 'leaseTransitions' in kwargs: + if lease_transitions is None and 'leaseTransitions' in kwargs: lease_transitions = kwargs['leaseTransitions'] - if 'renewTime' in kwargs: + if renew_time is None and 'renewTime' in kwargs: renew_time = kwargs['renewTime'] if acquire_time is not None: @@ -299,15 +299,15 @@ def _configure( renew_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'acquireTime' in kwargs: + if acquire_time is None and 'acquireTime' in kwargs: acquire_time = kwargs['acquireTime'] - if 'holderIdentity' in kwargs: + if holder_identity is None and 'holderIdentity' in kwargs: holder_identity = kwargs['holderIdentity'] - if 'leaseDurationSeconds' in kwargs: + if lease_duration_seconds is None and 'leaseDurationSeconds' in kwargs: lease_duration_seconds = kwargs['leaseDurationSeconds'] - if 'leaseTransitions' in kwargs: + if lease_transitions is None and 'leaseTransitions' in kwargs: lease_transitions = kwargs['leaseTransitions'] - if 'renewTime' in kwargs: + if renew_time is None and 'renewTime' in kwargs: renew_time = kwargs['renewTime'] if acquire_time is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/Binding.py b/sdk/python/pulumi_kubernetes/core/v1/Binding.py index 57b72c322b..1d6a8998f0 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Binding.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Binding.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - target: pulumi.Input['ObjectReferenceArgs'], + target: Optional[pulumi.Input['ObjectReferenceArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if target is None: + raise TypeError("Missing 'target' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("target", target) diff --git a/sdk/python/pulumi_kubernetes/core/v1/BindingPatch.py b/sdk/python/pulumi_kubernetes/core/v1/BindingPatch.py index 1b4acc2bc4..21e10e8270 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/BindingPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/BindingPatch.py @@ -44,7 +44,7 @@ def _configure( target: Optional[pulumi.Input['ObjectReferencePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py index ca91ab406a..d9474fdb4b 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py @@ -50,9 +50,9 @@ def _configure( metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'binaryData' in kwargs: + if binary_data is None and 'binaryData' in kwargs: binary_data = kwargs['binaryData'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py index e6a90b6d4a..1fce04396f 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ConfigMapArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ConfigMapArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapPatch.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapPatch.py index 513a06baf4..75d6d4285f 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapPatch.py @@ -50,9 +50,9 @@ def _configure( metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'binaryData' in kwargs: + if binary_data is None and 'binaryData' in kwargs: binary_data = kwargs['binaryData'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py index 37f7231eb3..1ea2fed934 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py @@ -44,7 +44,7 @@ def _configure( subsets: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointSubsetArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py index b2aced4daf..39b2c109be 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['EndpointsArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointsArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/EndpointsPatch.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsPatch.py index 48de4bde61..81a84b5972 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EndpointsPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EndpointsPatch.py @@ -44,7 +44,7 @@ def _configure( subsets: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointSubsetPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/Event.py b/sdk/python/pulumi_kubernetes/core/v1/Event.py index 5ed1c07bba..998cff2ef1 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Event.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Event.py @@ -77,8 +77,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - involved_object: pulumi.Input['ObjectReferenceArgs'], - metadata: pulumi.Input['_meta.v1.ObjectMetaArgs'], + involved_object: Optional[pulumi.Input['ObjectReferenceArgs']] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, action: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, count: Optional[pulumi.Input[int]] = None, @@ -96,19 +96,23 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'involvedObject' in kwargs: + if involved_object is None and 'involvedObject' in kwargs: involved_object = kwargs['involvedObject'] - if 'apiVersion' in kwargs: + if involved_object is None: + raise TypeError("Missing 'involved_object' argument") + if metadata is None: + raise TypeError("Missing 'metadata' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'firstTimestamp' in kwargs: + if first_timestamp is None and 'firstTimestamp' in kwargs: first_timestamp = kwargs['firstTimestamp'] - if 'lastTimestamp' in kwargs: + if last_timestamp is None and 'lastTimestamp' in kwargs: last_timestamp = kwargs['lastTimestamp'] - if 'reportingComponent' in kwargs: + if reporting_component is None and 'reportingComponent' in kwargs: reporting_component = kwargs['reportingComponent'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] _setter("involved_object", involved_object) diff --git a/sdk/python/pulumi_kubernetes/core/v1/EventList.py b/sdk/python/pulumi_kubernetes/core/v1/EventList.py index a739e11c43..8be75b1efb 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EventList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EventList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['EventArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['EventArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/EventPatch.py b/sdk/python/pulumi_kubernetes/core/v1/EventPatch.py index 7124b2d0bc..aa7a07d535 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EventPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EventPatch.py @@ -96,19 +96,19 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'firstTimestamp' in kwargs: + if first_timestamp is None and 'firstTimestamp' in kwargs: first_timestamp = kwargs['firstTimestamp'] - if 'involvedObject' in kwargs: + if involved_object is None and 'involvedObject' in kwargs: involved_object = kwargs['involvedObject'] - if 'lastTimestamp' in kwargs: + if last_timestamp is None and 'lastTimestamp' in kwargs: last_timestamp = kwargs['lastTimestamp'] - if 'reportingComponent' in kwargs: + if reporting_component is None and 'reportingComponent' in kwargs: reporting_component = kwargs['reportingComponent'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] if action is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py index 3c03a906d7..6ca398e4a8 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['LimitRangeSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py index 522aadc514..4b0cd1af20 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['LimitRangeArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['LimitRangeArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRangePatch.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangePatch.py index 4d268e3a5e..022a54cf4d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRangePatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRangePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['LimitRangeSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py index 0daa1b5326..b10e25c9be 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['NamespaceSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py index 61be6394e4..6e3fd301cf 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['NamespaceArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['NamespaceArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/NamespacePatch.py b/sdk/python/pulumi_kubernetes/core/v1/NamespacePatch.py index 6e5679d582..a88551f9f0 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NamespacePatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NamespacePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['NamespaceSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/Node.py b/sdk/python/pulumi_kubernetes/core/v1/Node.py index 155b60b935..1feecefb9d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Node.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Node.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['NodeSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py index ac127d4ccb..3d0e732f01 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['NodeArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['NodeArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/NodePatch.py b/sdk/python/pulumi_kubernetes/core/v1/NodePatch.py index 12e7517a24..bec3c21c06 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NodePatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NodePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['NodeSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py index 6a423e2803..ffbf2f25d9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PersistentVolumeSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py index 9fc3f2bb5f..2ae72045f1 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PersistentVolumeClaimSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py index d1d1e3c3ca..1aa21d2792 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PersistentVolumeClaimArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PersistentVolumeClaimArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py index 785dc55bff..b1b972d4a6 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PersistentVolumeClaimSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py index b9eb8dae13..ea6bd04422 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PersistentVolumeArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PersistentVolumeArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumePatch.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumePatch.py index 4e88d34bf3..d20b55e5c6 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumePatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PersistentVolumeSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/Pod.py b/sdk/python/pulumi_kubernetes/core/v1/Pod.py index 056b43b880..e19f9b9da8 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Pod.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Pod.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PodSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodList.py b/sdk/python/pulumi_kubernetes/core/v1/PodList.py index d1fd5e6c11..6b80d7fa89 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PodArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PodArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodPatch.py b/sdk/python/pulumi_kubernetes/core/v1/PodPatch.py index dbb88c4c6c..8dbe70a185 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PodSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py index 351c250ae9..f4139bff3c 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py @@ -44,7 +44,7 @@ def _configure( template: Optional[pulumi.Input['PodTemplateSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py index 7e2b63e449..77482c6aee 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PodTemplateArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PodTemplateArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplatePatch.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplatePatch.py index a826e83c95..f505266f4b 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplatePatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplatePatch.py @@ -44,7 +44,7 @@ def _configure( template: Optional[pulumi.Input['PodTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py index fdc07dd766..66d2bfa654 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ReplicationControllerSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py index 52fd2e5338..e45ffd04c4 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ReplicationControllerArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ReplicationControllerArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerPatch.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerPatch.py index 14fa5aef9e..a0012e28f3 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ReplicationControllerSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py index 5e78d45f9c..21cbfedce3 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ResourceQuotaSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py index a2f628ba4f..af197a1af1 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ResourceQuotaArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceQuotaArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaPatch.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaPatch.py index d1afbf79be..b24f32d0de 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['ResourceQuotaSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/Secret.py b/sdk/python/pulumi_kubernetes/core/v1/Secret.py index 08b3030645..6d7165f1d6 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Secret.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Secret.py @@ -54,9 +54,9 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'stringData' in kwargs: + if string_data is None and 'stringData' in kwargs: string_data = kwargs['stringData'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py index 634d8758e1..7f5459e728 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['SecretArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['SecretArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/SecretPatch.py b/sdk/python/pulumi_kubernetes/core/v1/SecretPatch.py index 0397634910..0dac09264d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/SecretPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/SecretPatch.py @@ -54,9 +54,9 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'stringData' in kwargs: + if string_data is None and 'stringData' in kwargs: string_data = kwargs['stringData'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/Service.py b/sdk/python/pulumi_kubernetes/core/v1/Service.py index 8fdd80a590..384211ee9b 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Service.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Service.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ServiceSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py index 14056018be..f503dd7112 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py @@ -52,11 +52,11 @@ def _configure( secrets: Optional[pulumi.Input[Sequence[pulumi.Input['ObjectReferenceArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'automountServiceAccountToken' in kwargs: + if automount_service_account_token is None and 'automountServiceAccountToken' in kwargs: automount_service_account_token = kwargs['automountServiceAccountToken'] - if 'imagePullSecrets' in kwargs: + if image_pull_secrets is None and 'imagePullSecrets' in kwargs: image_pull_secrets = kwargs['imagePullSecrets'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py index e733700f74..29529563dd 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ServiceAccountArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceAccountArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountPatch.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountPatch.py index e3135de91f..eca22cd4e2 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountPatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountPatch.py @@ -52,11 +52,11 @@ def _configure( secrets: Optional[pulumi.Input[Sequence[pulumi.Input['ObjectReferencePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'automountServiceAccountToken' in kwargs: + if automount_service_account_token is None and 'automountServiceAccountToken' in kwargs: automount_service_account_token = kwargs['automountServiceAccountToken'] - if 'imagePullSecrets' in kwargs: + if image_pull_secrets is None and 'imagePullSecrets' in kwargs: image_pull_secrets = kwargs['imagePullSecrets'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py index 4541a82079..224eaae563 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ServiceArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServicePatch.py b/sdk/python/pulumi_kubernetes/core/v1/ServicePatch.py index 65d56e3734..c7dfd1e10d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServicePatch.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServicePatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ServiceSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/_inputs.py b/sdk/python/pulumi_kubernetes/core/v1/_inputs.py index ad9fd28cf1..89b80b33b3 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/core/v1/_inputs.py @@ -361,11 +361,11 @@ def _configure( volume_id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] if fs_type is not None: @@ -452,17 +452,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_id: pulumi.Input[str], + volume_id: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, partition: Optional[pulumi.Input[int]] = None, read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] - if 'fsType' in kwargs: + if volume_id is None: + raise TypeError("Missing 'volume_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("volume_id", volume_id) @@ -548,11 +550,11 @@ def _configure( pod_anti_affinity: Optional[pulumi.Input['PodAntiAffinityPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeAffinity' in kwargs: + if node_affinity is None and 'nodeAffinity' in kwargs: node_affinity = kwargs['nodeAffinity'] - if 'podAffinity' in kwargs: + if pod_affinity is None and 'podAffinity' in kwargs: pod_affinity = kwargs['podAffinity'] - if 'podAntiAffinity' in kwargs: + if pod_anti_affinity is None and 'podAntiAffinity' in kwargs: pod_anti_affinity = kwargs['podAntiAffinity'] if node_affinity is not None: @@ -625,11 +627,11 @@ def _configure( pod_anti_affinity: Optional[pulumi.Input['PodAntiAffinityArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeAffinity' in kwargs: + if node_affinity is None and 'nodeAffinity' in kwargs: node_affinity = kwargs['nodeAffinity'] - if 'podAffinity' in kwargs: + if pod_affinity is None and 'podAffinity' in kwargs: pod_affinity = kwargs['podAffinity'] - if 'podAntiAffinity' in kwargs: + if pod_anti_affinity is None and 'podAntiAffinity' in kwargs: pod_anti_affinity = kwargs['podAntiAffinity'] if node_affinity is not None: @@ -694,12 +696,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - device_path: pulumi.Input[str], - name: pulumi.Input[str], + device_path: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'devicePath' in kwargs: + if device_path is None and 'devicePath' in kwargs: device_path = kwargs['devicePath'] + if device_path is None: + raise TypeError("Missing 'device_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("device_path", device_path) _setter("name", name) @@ -767,15 +773,15 @@ def _configure( read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'cachingMode' in kwargs: + if caching_mode is None and 'cachingMode' in kwargs: caching_mode = kwargs['cachingMode'] - if 'diskName' in kwargs: + if disk_name is None and 'diskName' in kwargs: disk_name = kwargs['diskName'] - if 'diskURI' in kwargs: + if disk_uri is None and 'diskURI' in kwargs: disk_uri = kwargs['diskURI'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if caching_mode is not None: @@ -894,23 +900,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - disk_name: pulumi.Input[str], - disk_uri: pulumi.Input[str], + disk_name: Optional[pulumi.Input[str]] = None, + disk_uri: Optional[pulumi.Input[str]] = None, caching_mode: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'diskName' in kwargs: + if disk_name is None and 'diskName' in kwargs: disk_name = kwargs['diskName'] - if 'diskURI' in kwargs: + if disk_name is None: + raise TypeError("Missing 'disk_name' argument") + if disk_uri is None and 'diskURI' in kwargs: disk_uri = kwargs['diskURI'] - if 'cachingMode' in kwargs: + if disk_uri is None: + raise TypeError("Missing 'disk_uri' argument") + if caching_mode is None and 'cachingMode' in kwargs: caching_mode = kwargs['cachingMode'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("disk_name", disk_name) @@ -1027,13 +1037,13 @@ def _configure( share_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] - if 'secretNamespace' in kwargs: + if secret_namespace is None and 'secretNamespace' in kwargs: secret_namespace = kwargs['secretNamespace'] - if 'shareName' in kwargs: + if share_name is None and 'shareName' in kwargs: share_name = kwargs['shareName'] if read_only is not None: @@ -1118,19 +1128,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - secret_name: pulumi.Input[str], - share_name: pulumi.Input[str], + secret_name: Optional[pulumi.Input[str]] = None, + share_name: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, secret_namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] - if 'shareName' in kwargs: + if secret_name is None: + raise TypeError("Missing 'secret_name' argument") + if share_name is None and 'shareName' in kwargs: share_name = kwargs['shareName'] - if 'readOnly' in kwargs: + if share_name is None: + raise TypeError("Missing 'share_name' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretNamespace' in kwargs: + if secret_namespace is None and 'secretNamespace' in kwargs: secret_namespace = kwargs['secretNamespace'] _setter("secret_name", secret_name) @@ -1215,11 +1229,11 @@ def _configure( share_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] - if 'shareName' in kwargs: + if share_name is None and 'shareName' in kwargs: share_name = kwargs['shareName'] if read_only is not None: @@ -1287,16 +1301,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - secret_name: pulumi.Input[str], - share_name: pulumi.Input[str], + secret_name: Optional[pulumi.Input[str]] = None, + share_name: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] - if 'shareName' in kwargs: + if secret_name is None: + raise TypeError("Missing 'secret_name' argument") + if share_name is None and 'shareName' in kwargs: share_name = kwargs['shareName'] - if 'readOnly' in kwargs: + if share_name is None: + raise TypeError("Missing 'share_name' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("secret_name", secret_name) @@ -1395,23 +1413,23 @@ def _configure( volume_handle: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'controllerExpandSecretRef' in kwargs: + if controller_expand_secret_ref is None and 'controllerExpandSecretRef' in kwargs: controller_expand_secret_ref = kwargs['controllerExpandSecretRef'] - if 'controllerPublishSecretRef' in kwargs: + if controller_publish_secret_ref is None and 'controllerPublishSecretRef' in kwargs: controller_publish_secret_ref = kwargs['controllerPublishSecretRef'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'nodeExpandSecretRef' in kwargs: + if node_expand_secret_ref is None and 'nodeExpandSecretRef' in kwargs: node_expand_secret_ref = kwargs['nodeExpandSecretRef'] - if 'nodePublishSecretRef' in kwargs: + if node_publish_secret_ref is None and 'nodePublishSecretRef' in kwargs: node_publish_secret_ref = kwargs['nodePublishSecretRef'] - if 'nodeStageSecretRef' in kwargs: + if node_stage_secret_ref is None and 'nodeStageSecretRef' in kwargs: node_stage_secret_ref = kwargs['nodeStageSecretRef'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeAttributes' in kwargs: + if volume_attributes is None and 'volumeAttributes' in kwargs: volume_attributes = kwargs['volumeAttributes'] - if 'volumeHandle' in kwargs: + if volume_handle is None and 'volumeHandle' in kwargs: volume_handle = kwargs['volumeHandle'] if controller_expand_secret_ref is not None: @@ -1598,8 +1616,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: pulumi.Input[str], - volume_handle: pulumi.Input[str], + driver: Optional[pulumi.Input[str]] = None, + volume_handle: Optional[pulumi.Input[str]] = None, controller_expand_secret_ref: Optional[pulumi.Input['SecretReferenceArgs']] = None, controller_publish_secret_ref: Optional[pulumi.Input['SecretReferenceArgs']] = None, fs_type: Optional[pulumi.Input[str]] = None, @@ -1610,23 +1628,27 @@ def _configure( volume_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeHandle' in kwargs: + if driver is None: + raise TypeError("Missing 'driver' argument") + if volume_handle is None and 'volumeHandle' in kwargs: volume_handle = kwargs['volumeHandle'] - if 'controllerExpandSecretRef' in kwargs: + if volume_handle is None: + raise TypeError("Missing 'volume_handle' argument") + if controller_expand_secret_ref is None and 'controllerExpandSecretRef' in kwargs: controller_expand_secret_ref = kwargs['controllerExpandSecretRef'] - if 'controllerPublishSecretRef' in kwargs: + if controller_publish_secret_ref is None and 'controllerPublishSecretRef' in kwargs: controller_publish_secret_ref = kwargs['controllerPublishSecretRef'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'nodeExpandSecretRef' in kwargs: + if node_expand_secret_ref is None and 'nodeExpandSecretRef' in kwargs: node_expand_secret_ref = kwargs['nodeExpandSecretRef'] - if 'nodePublishSecretRef' in kwargs: + if node_publish_secret_ref is None and 'nodePublishSecretRef' in kwargs: node_publish_secret_ref = kwargs['nodePublishSecretRef'] - if 'nodeStageSecretRef' in kwargs: + if node_stage_secret_ref is None and 'nodeStageSecretRef' in kwargs: node_stage_secret_ref = kwargs['nodeStageSecretRef'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeAttributes' in kwargs: + if volume_attributes is None and 'volumeAttributes' in kwargs: volume_attributes = kwargs['volumeAttributes'] _setter("driver", driver) @@ -1803,13 +1825,13 @@ def _configure( volume_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'nodePublishSecretRef' in kwargs: + if node_publish_secret_ref is None and 'nodePublishSecretRef' in kwargs: node_publish_secret_ref = kwargs['nodePublishSecretRef'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeAttributes' in kwargs: + if volume_attributes is None and 'volumeAttributes' in kwargs: volume_attributes = kwargs['volumeAttributes'] if driver is not None: @@ -1911,20 +1933,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: pulumi.Input[str], + driver: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, node_publish_secret_ref: Optional[pulumi.Input['LocalObjectReferenceArgs']] = None, read_only: Optional[pulumi.Input[bool]] = None, volume_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if driver is None: + raise TypeError("Missing 'driver' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'nodePublishSecretRef' in kwargs: + if node_publish_secret_ref is None and 'nodePublishSecretRef' in kwargs: node_publish_secret_ref = kwargs['nodePublishSecretRef'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeAttributes' in kwargs: + if volume_attributes is None and 'volumeAttributes' in kwargs: volume_attributes = kwargs['volumeAttributes'] _setter("driver", driver) @@ -2142,11 +2166,11 @@ def _configure( user: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretFile' in kwargs: + if secret_file is None and 'secretFile' in kwargs: secret_file = kwargs['secretFile'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if monitors is not None: @@ -2265,7 +2289,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - monitors: pulumi.Input[Sequence[pulumi.Input[str]]], + monitors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, path: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, secret_file: Optional[pulumi.Input[str]] = None, @@ -2273,11 +2297,13 @@ def _configure( user: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if monitors is None: + raise TypeError("Missing 'monitors' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretFile' in kwargs: + if secret_file is None and 'secretFile' in kwargs: secret_file = kwargs['secretFile'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("monitors", monitors) @@ -2403,11 +2429,11 @@ def _configure( user: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretFile' in kwargs: + if secret_file is None and 'secretFile' in kwargs: secret_file = kwargs['secretFile'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if monitors is not None: @@ -2526,7 +2552,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - monitors: pulumi.Input[Sequence[pulumi.Input[str]]], + monitors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, path: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, secret_file: Optional[pulumi.Input[str]] = None, @@ -2534,11 +2560,13 @@ def _configure( user: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if monitors is None: + raise TypeError("Missing 'monitors' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretFile' in kwargs: + if secret_file is None and 'secretFile' in kwargs: secret_file = kwargs['secretFile'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("monitors", monitors) @@ -2656,13 +2684,13 @@ def _configure( volume_id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] if fs_type is not None: @@ -2747,19 +2775,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_id: pulumi.Input[str], + volume_id: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, secret_ref: Optional[pulumi.Input['SecretReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] - if 'fsType' in kwargs: + if volume_id is None: + raise TypeError("Missing 'volume_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("volume_id", volume_id) @@ -2849,13 +2879,13 @@ def _configure( volume_id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] if fs_type is not None: @@ -2940,19 +2970,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_id: pulumi.Input[str], + volume_id: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, secret_ref: Optional[pulumi.Input['LocalObjectReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] - if 'fsType' in kwargs: + if volume_id is None: + raise TypeError("Missing 'volume_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("volume_id", volume_id) @@ -3040,9 +3072,9 @@ def _configure( resource_claim_template_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaimName' in kwargs: + if resource_claim_name is None and 'resourceClaimName' in kwargs: resource_claim_name = kwargs['resourceClaimName'] - if 'resourceClaimTemplateName' in kwargs: + if resource_claim_template_name is None and 'resourceClaimTemplateName' in kwargs: resource_claim_template_name = kwargs['resourceClaimTemplateName'] if resource_claim_name is not None: @@ -3107,9 +3139,9 @@ def _configure( resource_claim_template_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaimName' in kwargs: + if resource_claim_name is None and 'resourceClaimName' in kwargs: resource_claim_name = kwargs['resourceClaimName'] - if 'resourceClaimTemplateName' in kwargs: + if resource_claim_template_name is None and 'resourceClaimTemplateName' in kwargs: resource_claim_template_name = kwargs['resourceClaimTemplateName'] if resource_claim_name is not None: @@ -3164,7 +3196,7 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if timeout_seconds is not None: @@ -3201,7 +3233,7 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if timeout_seconds is not None: @@ -3422,11 +3454,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, optional: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") _setter("key", key) if name is not None: @@ -3505,9 +3539,9 @@ def _configure( uid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'kubeletConfigKey' in kwargs: + if kubelet_config_key is None and 'kubeletConfigKey' in kwargs: kubelet_config_key = kwargs['kubeletConfigKey'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] if kubelet_config_key is not None: @@ -3609,16 +3643,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kubelet_config_key: pulumi.Input[str], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + kubelet_config_key: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, resource_version: Optional[pulumi.Input[str]] = None, uid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'kubeletConfigKey' in kwargs: + if kubelet_config_key is None and 'kubeletConfigKey' in kwargs: kubelet_config_key = kwargs['kubeletConfigKey'] - if 'resourceVersion' in kwargs: + if kubelet_config_key is None: + raise TypeError("Missing 'kubelet_config_key' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] _setter("kubelet_config_key", kubelet_config_key) @@ -3868,7 +3908,7 @@ def _configure( optional: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -3961,7 +4001,7 @@ def _configure( optional: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -4060,9 +4100,9 @@ def _configure( metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'binaryData' in kwargs: + if binary_data is None and 'binaryData' in kwargs: binary_data = kwargs['binaryData'] if api_version is not None: @@ -4169,11 +4209,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - names: pulumi.Input[Sequence[pulumi.Input[str]]], + names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, size_bytes: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'sizeBytes' in kwargs: + if names is None: + raise TypeError("Missing 'names' argument") + if size_bytes is None and 'sizeBytes' in kwargs: size_bytes = kwargs['sizeBytes'] _setter("names", names) @@ -4315,33 +4357,33 @@ def _configure( working_dir: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'imagePullPolicy' in kwargs: + if image_pull_policy is None and 'imagePullPolicy' in kwargs: image_pull_policy = kwargs['imagePullPolicy'] - if 'livenessProbe' in kwargs: + if liveness_probe is None and 'livenessProbe' in kwargs: liveness_probe = kwargs['livenessProbe'] - if 'readinessProbe' in kwargs: + if readiness_probe is None and 'readinessProbe' in kwargs: readiness_probe = kwargs['readinessProbe'] - if 'resizePolicy' in kwargs: + if resize_policy is None and 'resizePolicy' in kwargs: resize_policy = kwargs['resizePolicy'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'startupProbe' in kwargs: + if startup_probe is None and 'startupProbe' in kwargs: startup_probe = kwargs['startupProbe'] - if 'stdinOnce' in kwargs: + if stdin_once is None and 'stdinOnce' in kwargs: stdin_once = kwargs['stdinOnce'] - if 'terminationMessagePath' in kwargs: + if termination_message_path is None and 'terminationMessagePath' in kwargs: termination_message_path = kwargs['terminationMessagePath'] - if 'terminationMessagePolicy' in kwargs: + if termination_message_policy is None and 'terminationMessagePolicy' in kwargs: termination_message_policy = kwargs['terminationMessagePolicy'] - if 'volumeDevices' in kwargs: + if volume_devices is None and 'volumeDevices' in kwargs: volume_devices = kwargs['volumeDevices'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] - if 'workingDir' in kwargs: + if working_dir is None and 'workingDir' in kwargs: working_dir = kwargs['workingDir'] if args is not None: @@ -4716,11 +4758,11 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerPort' in kwargs: + if container_port is None and 'containerPort' in kwargs: container_port = kwargs['containerPort'] - if 'hostIP' in kwargs: + if host_ip is None and 'hostIP' in kwargs: host_ip = kwargs['hostIP'] - if 'hostPort' in kwargs: + if host_port is None and 'hostPort' in kwargs: host_port = kwargs['hostPort'] if container_port is not None: @@ -4822,18 +4864,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container_port: pulumi.Input[int], + container_port: Optional[pulumi.Input[int]] = None, host_ip: Optional[pulumi.Input[str]] = None, host_port: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerPort' in kwargs: + if container_port is None and 'containerPort' in kwargs: container_port = kwargs['containerPort'] - if 'hostIP' in kwargs: + if container_port is None: + raise TypeError("Missing 'container_port' argument") + if host_ip is None and 'hostIP' in kwargs: host_ip = kwargs['hostIP'] - if 'hostPort' in kwargs: + if host_port is None and 'hostPort' in kwargs: host_port = kwargs['hostPort'] _setter("container_port", container_port) @@ -4929,9 +4973,9 @@ def _configure( restart_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceName' in kwargs: + if resource_name is None and 'resourceName' in kwargs: resource_name = kwargs['resourceName'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] if resource_name is not None: @@ -4982,14 +5026,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - resource_name: pulumi.Input[str], - restart_policy: pulumi.Input[str], + resource_name: Optional[pulumi.Input[str]] = None, + restart_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceName' in kwargs: + if resource_name is None and 'resourceName' in kwargs: resource_name = kwargs['resourceName'] - if 'restartPolicy' in kwargs: + if resource_name is None: + raise TypeError("Missing 'resource_name' argument") + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] + if restart_policy is None: + raise TypeError("Missing 'restart_policy' argument") _setter("resource_name", resource_name) _setter("restart_policy", restart_policy) @@ -5037,7 +5085,7 @@ def _configure( started_at: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'startedAt' in kwargs: + if started_at is None and 'startedAt' in kwargs: started_at = kwargs['startedAt'] if started_at is not None: @@ -5089,7 +5137,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - exit_code: pulumi.Input[int], + exit_code: Optional[pulumi.Input[int]] = None, container_id: Optional[pulumi.Input[str]] = None, finished_at: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, @@ -5098,13 +5146,15 @@ def _configure( started_at: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exitCode' in kwargs: + if exit_code is None and 'exitCode' in kwargs: exit_code = kwargs['exitCode'] - if 'containerID' in kwargs: + if exit_code is None: + raise TypeError("Missing 'exit_code' argument") + if container_id is None and 'containerID' in kwargs: container_id = kwargs['containerID'] - if 'finishedAt' in kwargs: + if finished_at is None and 'finishedAt' in kwargs: finished_at = kwargs['finishedAt'] - if 'startedAt' in kwargs: + if started_at is None and 'startedAt' in kwargs: started_at = kwargs['startedAt'] _setter("exit_code", exit_code) @@ -5377,11 +5427,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - image: pulumi.Input[str], - image_id: pulumi.Input[str], - name: pulumi.Input[str], - ready: pulumi.Input[bool], - restart_count: pulumi.Input[int], + image: Optional[pulumi.Input[str]] = None, + image_id: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + ready: Optional[pulumi.Input[bool]] = None, + restart_count: Optional[pulumi.Input[int]] = None, allocated_resources: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, container_id: Optional[pulumi.Input[str]] = None, last_state: Optional[pulumi.Input['ContainerStateArgs']] = None, @@ -5390,15 +5440,25 @@ def _configure( state: Optional[pulumi.Input['ContainerStateArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'imageID' in kwargs: + if image is None: + raise TypeError("Missing 'image' argument") + if image_id is None and 'imageID' in kwargs: image_id = kwargs['imageID'] - if 'restartCount' in kwargs: + if image_id is None: + raise TypeError("Missing 'image_id' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if ready is None: + raise TypeError("Missing 'ready' argument") + if restart_count is None and 'restartCount' in kwargs: restart_count = kwargs['restartCount'] - if 'allocatedResources' in kwargs: + if restart_count is None: + raise TypeError("Missing 'restart_count' argument") + if allocated_resources is None and 'allocatedResources' in kwargs: allocated_resources = kwargs['allocatedResources'] - if 'containerID' in kwargs: + if container_id is None and 'containerID' in kwargs: container_id = kwargs['containerID'] - if 'lastState' in kwargs: + if last_state is None and 'lastState' in kwargs: last_state = kwargs['lastState'] _setter("image", image) @@ -5638,7 +5698,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, args: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, command: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, env: Optional[pulumi.Input[Sequence[pulumi.Input['EnvVarArgs']]]] = None, @@ -5664,33 +5724,35 @@ def _configure( working_dir: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'imagePullPolicy' in kwargs: + if image_pull_policy is None and 'imagePullPolicy' in kwargs: image_pull_policy = kwargs['imagePullPolicy'] - if 'livenessProbe' in kwargs: + if liveness_probe is None and 'livenessProbe' in kwargs: liveness_probe = kwargs['livenessProbe'] - if 'readinessProbe' in kwargs: + if readiness_probe is None and 'readinessProbe' in kwargs: readiness_probe = kwargs['readinessProbe'] - if 'resizePolicy' in kwargs: + if resize_policy is None and 'resizePolicy' in kwargs: resize_policy = kwargs['resizePolicy'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'startupProbe' in kwargs: + if startup_probe is None and 'startupProbe' in kwargs: startup_probe = kwargs['startupProbe'] - if 'stdinOnce' in kwargs: + if stdin_once is None and 'stdinOnce' in kwargs: stdin_once = kwargs['stdinOnce'] - if 'terminationMessagePath' in kwargs: + if termination_message_path is None and 'terminationMessagePath' in kwargs: termination_message_path = kwargs['terminationMessagePath'] - if 'terminationMessagePolicy' in kwargs: + if termination_message_policy is None and 'terminationMessagePolicy' in kwargs: termination_message_policy = kwargs['terminationMessagePolicy'] - if 'volumeDevices' in kwargs: + if volume_devices is None and 'volumeDevices' in kwargs: volume_devices = kwargs['volumeDevices'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] - if 'workingDir' in kwargs: + if working_dir is None and 'workingDir' in kwargs: working_dir = kwargs['workingDir'] _setter("name", name) @@ -6045,11 +6107,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: pulumi.Input[int], + port: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'Port' in kwargs: + if port is None and 'Port' in kwargs: port = kwargs['Port'] + if port is None: + raise TypeError("Missing 'port' argument") _setter("port", port) @@ -6166,9 +6230,9 @@ def _configure( resource_field_ref: Optional[pulumi.Input['ResourceFieldSelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] - if 'resourceFieldRef' in kwargs: + if resource_field_ref is None and 'resourceFieldRef' in kwargs: resource_field_ref = kwargs['resourceFieldRef'] if field_ref is not None: @@ -6253,15 +6317,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: pulumi.Input[str], + path: Optional[pulumi.Input[str]] = None, field_ref: Optional[pulumi.Input['ObjectFieldSelectorArgs']] = None, mode: Optional[pulumi.Input[int]] = None, resource_field_ref: Optional[pulumi.Input['ResourceFieldSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if path is None: + raise TypeError("Missing 'path' argument") + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] - if 'resourceFieldRef' in kwargs: + if resource_field_ref is None and 'resourceFieldRef' in kwargs: resource_field_ref = kwargs['resourceFieldRef'] _setter("path", path) @@ -6343,7 +6409,7 @@ def _configure( items: Optional[pulumi.Input[Sequence[pulumi.Input['DownwardAPIVolumeFilePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -6398,7 +6464,7 @@ def _configure( items: Optional[pulumi.Input[Sequence[pulumi.Input['DownwardAPIVolumeFileArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -6453,7 +6519,7 @@ def _configure( size_limit: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'sizeLimit' in kwargs: + if size_limit is None and 'sizeLimit' in kwargs: size_limit = kwargs['sizeLimit'] if medium is not None: @@ -6508,7 +6574,7 @@ def _configure( size_limit: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'sizeLimit' in kwargs: + if size_limit is None and 'sizeLimit' in kwargs: size_limit = kwargs['sizeLimit'] if medium is not None: @@ -6571,9 +6637,9 @@ def _configure( target_ref: Optional[pulumi.Input['ObjectReferencePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] if hostname is not None: @@ -6658,15 +6724,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - ip: pulumi.Input[str], + ip: Optional[pulumi.Input[str]] = None, hostname: Optional[pulumi.Input[str]] = None, node_name: Optional[pulumi.Input[str]] = None, target_ref: Optional[pulumi.Input['ObjectReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if ip is None: + raise TypeError("Missing 'ip' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] _setter("ip", ip) @@ -6765,7 +6833,7 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -6868,13 +6936,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: pulumi.Input[int], + port: Optional[pulumi.Input[int]] = None, app_protocol: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if port is None: + raise TypeError("Missing 'port' argument") + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] _setter("port", port) @@ -6979,7 +7049,7 @@ def _configure( ports: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'notReadyAddresses' in kwargs: + if not_ready_addresses is None and 'notReadyAddresses' in kwargs: not_ready_addresses = kwargs['notReadyAddresses'] if addresses is not None: @@ -7062,7 +7132,7 @@ def _configure( ports: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'notReadyAddresses' in kwargs: + if not_ready_addresses is None and 'notReadyAddresses' in kwargs: not_ready_addresses = kwargs['notReadyAddresses'] if addresses is not None: @@ -7151,7 +7221,7 @@ def _configure( subsets: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointSubsetArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -7238,9 +7308,9 @@ def _configure( secret_ref: Optional[pulumi.Input['SecretEnvSourcePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMapRef' in kwargs: + if config_map_ref is None and 'configMapRef' in kwargs: config_map_ref = kwargs['configMapRef'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if config_map_ref is not None: @@ -7313,9 +7383,9 @@ def _configure( secret_ref: Optional[pulumi.Input['SecretEnvSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMapRef' in kwargs: + if config_map_ref is None and 'configMapRef' in kwargs: config_map_ref = kwargs['configMapRef'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if config_map_ref is not None: @@ -7388,7 +7458,7 @@ def _configure( value_from: Optional[pulumi.Input['EnvVarSourcePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueFrom' in kwargs: + if value_from is None and 'valueFrom' in kwargs: value_from = kwargs['valueFrom'] if name is not None: @@ -7465,13 +7535,13 @@ def _configure( secret_key_ref: Optional[pulumi.Input['SecretKeySelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMapKeyRef' in kwargs: + if config_map_key_ref is None and 'configMapKeyRef' in kwargs: config_map_key_ref = kwargs['configMapKeyRef'] - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] - if 'resourceFieldRef' in kwargs: + if resource_field_ref is None and 'resourceFieldRef' in kwargs: resource_field_ref = kwargs['resourceFieldRef'] - if 'secretKeyRef' in kwargs: + if secret_key_ref is None and 'secretKeyRef' in kwargs: secret_key_ref = kwargs['secretKeyRef'] if config_map_key_ref is not None: @@ -7562,13 +7632,13 @@ def _configure( secret_key_ref: Optional[pulumi.Input['SecretKeySelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMapKeyRef' in kwargs: + if config_map_key_ref is None and 'configMapKeyRef' in kwargs: config_map_key_ref = kwargs['configMapKeyRef'] - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] - if 'resourceFieldRef' in kwargs: + if resource_field_ref is None and 'resourceFieldRef' in kwargs: resource_field_ref = kwargs['resourceFieldRef'] - if 'secretKeyRef' in kwargs: + if secret_key_ref is None and 'secretKeyRef' in kwargs: secret_key_ref = kwargs['secretKeyRef'] if config_map_key_ref is not None: @@ -7650,12 +7720,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, value_from: Optional[pulumi.Input['EnvVarSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueFrom' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if value_from is None and 'valueFrom' in kwargs: value_from = kwargs['valueFrom'] _setter("name", name) @@ -7819,35 +7891,35 @@ def _configure( working_dir: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'imagePullPolicy' in kwargs: + if image_pull_policy is None and 'imagePullPolicy' in kwargs: image_pull_policy = kwargs['imagePullPolicy'] - if 'livenessProbe' in kwargs: + if liveness_probe is None and 'livenessProbe' in kwargs: liveness_probe = kwargs['livenessProbe'] - if 'readinessProbe' in kwargs: + if readiness_probe is None and 'readinessProbe' in kwargs: readiness_probe = kwargs['readinessProbe'] - if 'resizePolicy' in kwargs: + if resize_policy is None and 'resizePolicy' in kwargs: resize_policy = kwargs['resizePolicy'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'startupProbe' in kwargs: + if startup_probe is None and 'startupProbe' in kwargs: startup_probe = kwargs['startupProbe'] - if 'stdinOnce' in kwargs: + if stdin_once is None and 'stdinOnce' in kwargs: stdin_once = kwargs['stdinOnce'] - if 'targetContainerName' in kwargs: + if target_container_name is None and 'targetContainerName' in kwargs: target_container_name = kwargs['targetContainerName'] - if 'terminationMessagePath' in kwargs: + if termination_message_path is None and 'terminationMessagePath' in kwargs: termination_message_path = kwargs['terminationMessagePath'] - if 'terminationMessagePolicy' in kwargs: + if termination_message_policy is None and 'terminationMessagePolicy' in kwargs: termination_message_policy = kwargs['terminationMessagePolicy'] - if 'volumeDevices' in kwargs: + if volume_devices is None and 'volumeDevices' in kwargs: volume_devices = kwargs['volumeDevices'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] - if 'workingDir' in kwargs: + if working_dir is None and 'workingDir' in kwargs: working_dir = kwargs['workingDir'] if args is not None: @@ -8295,7 +8367,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, args: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, command: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, env: Optional[pulumi.Input[Sequence[pulumi.Input['EnvVarArgs']]]] = None, @@ -8322,35 +8394,37 @@ def _configure( working_dir: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'imagePullPolicy' in kwargs: + if image_pull_policy is None and 'imagePullPolicy' in kwargs: image_pull_policy = kwargs['imagePullPolicy'] - if 'livenessProbe' in kwargs: + if liveness_probe is None and 'livenessProbe' in kwargs: liveness_probe = kwargs['livenessProbe'] - if 'readinessProbe' in kwargs: + if readiness_probe is None and 'readinessProbe' in kwargs: readiness_probe = kwargs['readinessProbe'] - if 'resizePolicy' in kwargs: + if resize_policy is None and 'resizePolicy' in kwargs: resize_policy = kwargs['resizePolicy'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'startupProbe' in kwargs: + if startup_probe is None and 'startupProbe' in kwargs: startup_probe = kwargs['startupProbe'] - if 'stdinOnce' in kwargs: + if stdin_once is None and 'stdinOnce' in kwargs: stdin_once = kwargs['stdinOnce'] - if 'targetContainerName' in kwargs: + if target_container_name is None and 'targetContainerName' in kwargs: target_container_name = kwargs['targetContainerName'] - if 'terminationMessagePath' in kwargs: + if termination_message_path is None and 'terminationMessagePath' in kwargs: termination_message_path = kwargs['terminationMessagePath'] - if 'terminationMessagePolicy' in kwargs: + if termination_message_policy is None and 'terminationMessagePolicy' in kwargs: termination_message_policy = kwargs['terminationMessagePolicy'] - if 'volumeDevices' in kwargs: + if volume_devices is None and 'volumeDevices' in kwargs: volume_devices = kwargs['volumeDevices'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] - if 'workingDir' in kwargs: + if working_dir is None and 'workingDir' in kwargs: working_dir = kwargs['workingDir'] _setter("name", name) @@ -8734,9 +8808,9 @@ def _configure( volume_claim_template: Optional[pulumi.Input['PersistentVolumeClaimTemplatePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeClaimTemplate' in kwargs: + if volume_claim_template is None and 'volumeClaimTemplate' in kwargs: volume_claim_template = kwargs['volumeClaimTemplate'] if read_only is not None: @@ -8803,9 +8877,9 @@ def _configure( volume_claim_template: Optional[pulumi.Input['PersistentVolumeClaimTemplateArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeClaimTemplate' in kwargs: + if volume_claim_template is None and 'volumeClaimTemplate' in kwargs: volume_claim_template = kwargs['volumeClaimTemplate'] if read_only is not None: @@ -8870,7 +8944,7 @@ def _configure( state: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] if count is not None: @@ -8943,7 +9017,7 @@ def _configure( state: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] if count is not None: @@ -9159,8 +9233,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - involved_object: pulumi.Input['ObjectReferenceArgs'], - metadata: pulumi.Input['_meta.v1.ObjectMetaArgs'], + involved_object: Optional[pulumi.Input['ObjectReferenceArgs']] = None, + metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, action: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, count: Optional[pulumi.Input[int]] = None, @@ -9178,19 +9252,23 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'involvedObject' in kwargs: + if involved_object is None and 'involvedObject' in kwargs: involved_object = kwargs['involvedObject'] - if 'apiVersion' in kwargs: + if involved_object is None: + raise TypeError("Missing 'involved_object' argument") + if metadata is None: + raise TypeError("Missing 'metadata' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'firstTimestamp' in kwargs: + if first_timestamp is None and 'firstTimestamp' in kwargs: first_timestamp = kwargs['firstTimestamp'] - if 'lastTimestamp' in kwargs: + if last_timestamp is None and 'lastTimestamp' in kwargs: last_timestamp = kwargs['lastTimestamp'] - if 'reportingComponent' in kwargs: + if reporting_component is None and 'reportingComponent' in kwargs: reporting_component = kwargs['reportingComponent'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] _setter("involved_object", involved_object) @@ -9535,11 +9613,11 @@ def _configure( wwids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'targetWWNs' in kwargs: + if target_wwns is None and 'targetWWNs' in kwargs: target_wwns = kwargs['targetWWNs'] if fs_type is not None: @@ -9648,11 +9726,11 @@ def _configure( wwids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'targetWWNs' in kwargs: + if target_wwns is None and 'targetWWNs' in kwargs: target_wwns = kwargs['targetWWNs'] if fs_type is not None: @@ -9761,11 +9839,11 @@ def _configure( secret_ref: Optional[pulumi.Input['SecretReferencePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if driver is not None: @@ -9867,18 +9945,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: pulumi.Input[str], + driver: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, read_only: Optional[pulumi.Input[bool]] = None, secret_ref: Optional[pulumi.Input['SecretReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if driver is None: + raise TypeError("Missing 'driver' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("driver", driver) @@ -9986,11 +10066,11 @@ def _configure( secret_ref: Optional[pulumi.Input['LocalObjectReferencePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if driver is not None: @@ -10092,18 +10172,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: pulumi.Input[str], + driver: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, read_only: Optional[pulumi.Input[bool]] = None, secret_ref: Optional[pulumi.Input['LocalObjectReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if driver is None: + raise TypeError("Missing 'driver' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("driver", driver) @@ -10199,9 +10281,9 @@ def _configure( dataset_uuid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'datasetName' in kwargs: + if dataset_name is None and 'datasetName' in kwargs: dataset_name = kwargs['datasetName'] - if 'datasetUUID' in kwargs: + if dataset_uuid is None and 'datasetUUID' in kwargs: dataset_uuid = kwargs['datasetUUID'] if dataset_name is not None: @@ -10256,9 +10338,9 @@ def _configure( dataset_uuid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'datasetName' in kwargs: + if dataset_name is None and 'datasetName' in kwargs: dataset_name = kwargs['datasetName'] - if 'datasetUUID' in kwargs: + if dataset_uuid is None and 'datasetUUID' in kwargs: dataset_uuid = kwargs['datasetUUID'] if dataset_name is not None: @@ -10323,11 +10405,11 @@ def _configure( read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'pdName' in kwargs: + if pd_name is None and 'pdName' in kwargs: pd_name = kwargs['pdName'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if fs_type is not None: @@ -10414,17 +10496,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pd_name: pulumi.Input[str], + pd_name: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, partition: Optional[pulumi.Input[int]] = None, read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pdName' in kwargs: + if pd_name is None and 'pdName' in kwargs: pd_name = kwargs['pdName'] - if 'fsType' in kwargs: + if pd_name is None: + raise TypeError("Missing 'pd_name' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("pd_name", pd_name) @@ -10559,10 +10643,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: pulumi.Input[int], + port: Optional[pulumi.Input[int]] = None, service: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if port is None: + raise TypeError("Missing 'port' argument") _setter("port", port) if service is not None: @@ -10691,11 +10777,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - repository: pulumi.Input[str], + repository: Optional[pulumi.Input[str]] = None, directory: Optional[pulumi.Input[str]] = None, revision: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if repository is None: + raise TypeError("Missing 'repository' argument") _setter("repository", repository) if directory is not None: @@ -10770,9 +10858,9 @@ def _configure( read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'endpointsNamespace' in kwargs: + if endpoints_namespace is None and 'endpointsNamespace' in kwargs: endpoints_namespace = kwargs['endpointsNamespace'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if endpoints is not None: @@ -10857,15 +10945,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - endpoints: pulumi.Input[str], - path: pulumi.Input[str], + endpoints: Optional[pulumi.Input[str]] = None, + path: Optional[pulumi.Input[str]] = None, endpoints_namespace: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'endpointsNamespace' in kwargs: + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if endpoints_namespace is None and 'endpointsNamespace' in kwargs: endpoints_namespace = kwargs['endpointsNamespace'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("endpoints", endpoints) @@ -10950,7 +11042,7 @@ def _configure( read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if endpoints is not None: @@ -11018,12 +11110,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - endpoints: pulumi.Input[str], - path: pulumi.Input[str], + endpoints: Optional[pulumi.Input[str]] = None, + path: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("endpoints", endpoints) @@ -11102,7 +11198,7 @@ def _configure( scheme: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'httpHeaders' in kwargs: + if http_headers is None and 'httpHeaders' in kwargs: http_headers = kwargs['httpHeaders'] if host is not None: @@ -11204,14 +11300,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: pulumi.Input[Union[int, str]], + port: Optional[pulumi.Input[Union[int, str]]] = None, host: Optional[pulumi.Input[str]] = None, http_headers: Optional[pulumi.Input[Sequence[pulumi.Input['HTTPHeaderArgs']]]] = None, path: Optional[pulumi.Input[str]] = None, scheme: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'httpHeaders' in kwargs: + if port is None: + raise TypeError("Missing 'port' argument") + if http_headers is None and 'httpHeaders' in kwargs: http_headers = kwargs['httpHeaders'] _setter("port", port) @@ -11356,10 +11454,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - value: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if value is None: + raise TypeError("Missing 'value' argument") _setter("name", name) _setter("value", value) @@ -11601,10 +11703,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: pulumi.Input[str], + path: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if path is None: + raise TypeError("Missing 'path' argument") _setter("path", path) if type is not None: @@ -11693,21 +11797,21 @@ def _configure( target_portal: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'chapAuthDiscovery' in kwargs: + if chap_auth_discovery is None and 'chapAuthDiscovery' in kwargs: chap_auth_discovery = kwargs['chapAuthDiscovery'] - if 'chapAuthSession' in kwargs: + if chap_auth_session is None and 'chapAuthSession' in kwargs: chap_auth_session = kwargs['chapAuthSession'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'initiatorName' in kwargs: + if initiator_name is None and 'initiatorName' in kwargs: initiator_name = kwargs['initiatorName'] - if 'iscsiInterface' in kwargs: + if iscsi_interface is None and 'iscsiInterface' in kwargs: iscsi_interface = kwargs['iscsiInterface'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'targetPortal' in kwargs: + if target_portal is None and 'targetPortal' in kwargs: target_portal = kwargs['targetPortal'] if chap_auth_discovery is not None: @@ -11911,9 +12015,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - iqn: pulumi.Input[str], - lun: pulumi.Input[int], - target_portal: pulumi.Input[str], + iqn: Optional[pulumi.Input[str]] = None, + lun: Optional[pulumi.Input[int]] = None, + target_portal: Optional[pulumi.Input[str]] = None, chap_auth_discovery: Optional[pulumi.Input[bool]] = None, chap_auth_session: Optional[pulumi.Input[bool]] = None, fs_type: Optional[pulumi.Input[str]] = None, @@ -11924,21 +12028,27 @@ def _configure( secret_ref: Optional[pulumi.Input['SecretReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetPortal' in kwargs: + if iqn is None: + raise TypeError("Missing 'iqn' argument") + if lun is None: + raise TypeError("Missing 'lun' argument") + if target_portal is None and 'targetPortal' in kwargs: target_portal = kwargs['targetPortal'] - if 'chapAuthDiscovery' in kwargs: + if target_portal is None: + raise TypeError("Missing 'target_portal' argument") + if chap_auth_discovery is None and 'chapAuthDiscovery' in kwargs: chap_auth_discovery = kwargs['chapAuthDiscovery'] - if 'chapAuthSession' in kwargs: + if chap_auth_session is None and 'chapAuthSession' in kwargs: chap_auth_session = kwargs['chapAuthSession'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'initiatorName' in kwargs: + if initiator_name is None and 'initiatorName' in kwargs: initiator_name = kwargs['initiatorName'] - if 'iscsiInterface' in kwargs: + if iscsi_interface is None and 'iscsiInterface' in kwargs: iscsi_interface = kwargs['iscsiInterface'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("iqn", iqn) @@ -12152,21 +12262,21 @@ def _configure( target_portal: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'chapAuthDiscovery' in kwargs: + if chap_auth_discovery is None and 'chapAuthDiscovery' in kwargs: chap_auth_discovery = kwargs['chapAuthDiscovery'] - if 'chapAuthSession' in kwargs: + if chap_auth_session is None and 'chapAuthSession' in kwargs: chap_auth_session = kwargs['chapAuthSession'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'initiatorName' in kwargs: + if initiator_name is None and 'initiatorName' in kwargs: initiator_name = kwargs['initiatorName'] - if 'iscsiInterface' in kwargs: + if iscsi_interface is None and 'iscsiInterface' in kwargs: iscsi_interface = kwargs['iscsiInterface'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'targetPortal' in kwargs: + if target_portal is None and 'targetPortal' in kwargs: target_portal = kwargs['targetPortal'] if chap_auth_discovery is not None: @@ -12370,9 +12480,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - iqn: pulumi.Input[str], - lun: pulumi.Input[int], - target_portal: pulumi.Input[str], + iqn: Optional[pulumi.Input[str]] = None, + lun: Optional[pulumi.Input[int]] = None, + target_portal: Optional[pulumi.Input[str]] = None, chap_auth_discovery: Optional[pulumi.Input[bool]] = None, chap_auth_session: Optional[pulumi.Input[bool]] = None, fs_type: Optional[pulumi.Input[str]] = None, @@ -12383,21 +12493,27 @@ def _configure( secret_ref: Optional[pulumi.Input['LocalObjectReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetPortal' in kwargs: + if iqn is None: + raise TypeError("Missing 'iqn' argument") + if lun is None: + raise TypeError("Missing 'lun' argument") + if target_portal is None and 'targetPortal' in kwargs: target_portal = kwargs['targetPortal'] - if 'chapAuthDiscovery' in kwargs: + if target_portal is None: + raise TypeError("Missing 'target_portal' argument") + if chap_auth_discovery is None and 'chapAuthDiscovery' in kwargs: chap_auth_discovery = kwargs['chapAuthDiscovery'] - if 'chapAuthSession' in kwargs: + if chap_auth_session is None and 'chapAuthSession' in kwargs: chap_auth_session = kwargs['chapAuthSession'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'initiatorName' in kwargs: + if initiator_name is None and 'initiatorName' in kwargs: initiator_name = kwargs['initiatorName'] - if 'iscsiInterface' in kwargs: + if iscsi_interface is None and 'iscsiInterface' in kwargs: iscsi_interface = kwargs['iscsiInterface'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("iqn", iqn) @@ -12645,11 +12761,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - path: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, + path: Optional[pulumi.Input[str]] = None, mode: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if path is None: + raise TypeError("Missing 'path' argument") _setter("key", key) _setter("path", path) @@ -12719,11 +12839,11 @@ def _configure( tcp_socket: Optional[pulumi.Input['TCPSocketActionPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exec' in kwargs: + if exec_ is None and 'exec' in kwargs: exec_ = kwargs['exec'] - if 'httpGet' in kwargs: + if http_get is None and 'httpGet' in kwargs: http_get = kwargs['httpGet'] - if 'tcpSocket' in kwargs: + if tcp_socket is None and 'tcpSocket' in kwargs: tcp_socket = kwargs['tcpSocket'] if exec_ is not None: @@ -12796,11 +12916,11 @@ def _configure( tcp_socket: Optional[pulumi.Input['TCPSocketActionArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exec' in kwargs: + if exec_ is None and 'exec' in kwargs: exec_ = kwargs['exec'] - if 'httpGet' in kwargs: + if http_get is None and 'httpGet' in kwargs: http_get = kwargs['httpGet'] - if 'tcpSocket' in kwargs: + if tcp_socket is None and 'tcpSocket' in kwargs: tcp_socket = kwargs['tcpSocket'] if exec_ is not None: @@ -12869,9 +12989,9 @@ def _configure( pre_stop: Optional[pulumi.Input['LifecycleHandlerPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'postStart' in kwargs: + if post_start is None and 'postStart' in kwargs: post_start = kwargs['postStart'] - if 'preStop' in kwargs: + if pre_stop is None and 'preStop' in kwargs: pre_stop = kwargs['preStop'] if post_start is not None: @@ -12926,9 +13046,9 @@ def _configure( pre_stop: Optional[pulumi.Input['LifecycleHandlerArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'postStart' in kwargs: + if post_start is None and 'postStart' in kwargs: post_start = kwargs['postStart'] - if 'preStop' in kwargs: + if pre_stop is None and 'preStop' in kwargs: pre_stop = kwargs['preStop'] if post_start is not None: @@ -12999,9 +13119,9 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultRequest' in kwargs: + if default_request is None and 'defaultRequest' in kwargs: default_request = kwargs['defaultRequest'] - if 'maxLimitRequestRatio' in kwargs: + if max_limit_request_ratio is None and 'maxLimitRequestRatio' in kwargs: max_limit_request_ratio = kwargs['maxLimitRequestRatio'] if default is not None: @@ -13120,7 +13240,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, default: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, default_request: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, max: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -13128,9 +13248,11 @@ def _configure( min: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultRequest' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if default_request is None and 'defaultRequest' in kwargs: default_request = kwargs['defaultRequest'] - if 'maxLimitRequestRatio' in kwargs: + if max_limit_request_ratio is None and 'maxLimitRequestRatio' in kwargs: max_limit_request_ratio = kwargs['maxLimitRequestRatio'] _setter("type", type) @@ -13268,9 +13390,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - limits: pulumi.Input[Sequence[pulumi.Input['LimitRangeItemArgs']]], + limits: Optional[pulumi.Input[Sequence[pulumi.Input['LimitRangeItemArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if limits is None: + raise TypeError("Missing 'limits' argument") _setter("limits", limits) @@ -13317,7 +13441,7 @@ def _configure( spec: Optional[pulumi.Input['LimitRangeSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -13576,7 +13700,7 @@ def _configure( path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] if fs_type is not None: @@ -13627,11 +13751,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: pulumi.Input[str], + path: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if path is None: + raise TypeError("Missing 'path' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] _setter("path", path) @@ -13689,7 +13815,7 @@ def _configure( server: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path is not None: @@ -13757,12 +13883,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: pulumi.Input[str], - server: pulumi.Input[str], + path: Optional[pulumi.Input[str]] = None, + server: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if path is None: + raise TypeError("Missing 'path' argument") + if server is None: + raise TypeError("Missing 'server' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("path", path) @@ -13831,14 +13961,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -14059,7 +14193,7 @@ def _configure( status: Optional[pulumi.Input['NamespaceStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -14152,10 +14286,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - address: pulumi.Input[str], - type: pulumi.Input[str], + address: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if address is None: + raise TypeError("Missing 'address' argument") + if type is None: + raise TypeError("Missing 'type' argument") _setter("address", address) _setter("type", type) @@ -14207,9 +14345,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[pulumi.Input['NodeSelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -14264,9 +14402,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[pulumi.Input['NodeSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -14329,17 +14467,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_heartbeat_time: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastHeartbeatTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_heartbeat_time is None and 'lastHeartbeatTime' in kwargs: last_heartbeat_time = kwargs['lastHeartbeatTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -14444,7 +14586,7 @@ def _configure( config_map: Optional[pulumi.Input['ConfigMapNodeConfigSourcePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] if config_map is not None: @@ -14481,7 +14623,7 @@ def _configure( config_map: Optional[pulumi.Input['ConfigMapNodeConfigSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] if config_map is not None: @@ -14530,7 +14672,7 @@ def _configure( last_known_good: Optional[pulumi.Input['NodeConfigSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastKnownGood' in kwargs: + if last_known_good is None and 'lastKnownGood' in kwargs: last_known_good = kwargs['lastKnownGood'] if active is not None: @@ -14609,7 +14751,7 @@ def _configure( kubelet_endpoint: Optional[pulumi.Input['DaemonEndpointArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'kubeletEndpoint' in kwargs: + if kubelet_endpoint is None and 'kubeletEndpoint' in kwargs: kubelet_endpoint = kwargs['kubeletEndpoint'] if kubelet_endpoint is not None: @@ -14646,7 +14788,7 @@ def _configure( node_selector_terms: Optional[pulumi.Input[Sequence[pulumi.Input['NodeSelectorTermPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelectorTerms' in kwargs: + if node_selector_terms is None and 'nodeSelectorTerms' in kwargs: node_selector_terms = kwargs['nodeSelectorTerms'] if node_selector_terms is not None: @@ -14757,11 +14899,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - operator: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, + operator: Optional[pulumi.Input[str]] = None, values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if operator is None: + raise TypeError("Missing 'operator' argument") _setter("key", key) _setter("operator", operator) @@ -14827,9 +14973,9 @@ def _configure( match_fields: Optional[pulumi.Input[Sequence[pulumi.Input['NodeSelectorRequirementPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] - if 'matchFields' in kwargs: + if match_fields is None and 'matchFields' in kwargs: match_fields = kwargs['matchFields'] if match_expressions is not None: @@ -14884,9 +15030,9 @@ def _configure( match_fields: Optional[pulumi.Input[Sequence[pulumi.Input['NodeSelectorRequirementArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] - if 'matchFields' in kwargs: + if match_fields is None and 'matchFields' in kwargs: match_fields = kwargs['matchFields'] if match_expressions is not None: @@ -14934,11 +15080,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - node_selector_terms: pulumi.Input[Sequence[pulumi.Input['NodeSelectorTermArgs']]], + node_selector_terms: Optional[pulumi.Input[Sequence[pulumi.Input['NodeSelectorTermArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelectorTerms' in kwargs: + if node_selector_terms is None and 'nodeSelectorTerms' in kwargs: node_selector_terms = kwargs['nodeSelectorTerms'] + if node_selector_terms is None: + raise TypeError("Missing 'node_selector_terms' argument") _setter("node_selector_terms", node_selector_terms) @@ -14997,15 +15145,15 @@ def _configure( unschedulable: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configSource' in kwargs: + if config_source is None and 'configSource' in kwargs: config_source = kwargs['configSource'] - if 'externalID' in kwargs: + if external_id is None and 'externalID' in kwargs: external_id = kwargs['externalID'] - if 'podCIDR' in kwargs: + if pod_cidr is None and 'podCIDR' in kwargs: pod_cidr = kwargs['podCIDR'] - if 'podCIDRs' in kwargs: + if pod_cidrs is None and 'podCIDRs' in kwargs: pod_cidrs = kwargs['podCIDRs'] - if 'providerID' in kwargs: + if provider_id is None and 'providerID' in kwargs: provider_id = kwargs['providerID'] if config_source is not None: @@ -15150,15 +15298,15 @@ def _configure( unschedulable: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configSource' in kwargs: + if config_source is None and 'configSource' in kwargs: config_source = kwargs['configSource'] - if 'externalID' in kwargs: + if external_id is None and 'externalID' in kwargs: external_id = kwargs['externalID'] - if 'podCIDR' in kwargs: + if pod_cidr is None and 'podCIDR' in kwargs: pod_cidr = kwargs['podCIDR'] - if 'podCIDRs' in kwargs: + if pod_cidrs is None and 'podCIDRs' in kwargs: pod_cidrs = kwargs['podCIDRs'] - if 'providerID' in kwargs: + if provider_id is None and 'providerID' in kwargs: provider_id = kwargs['providerID'] if config_source is not None: @@ -15319,13 +15467,13 @@ def _configure( volumes_in_use: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'daemonEndpoints' in kwargs: + if daemon_endpoints is None and 'daemonEndpoints' in kwargs: daemon_endpoints = kwargs['daemonEndpoints'] - if 'nodeInfo' in kwargs: + if node_info is None and 'nodeInfo' in kwargs: node_info = kwargs['nodeInfo'] - if 'volumesAttached' in kwargs: + if volumes_attached is None and 'volumesAttached' in kwargs: volumes_attached = kwargs['volumesAttached'] - if 'volumesInUse' in kwargs: + if volumes_in_use is None and 'volumesInUse' in kwargs: volumes_in_use = kwargs['volumesInUse'] if addresses is not None: @@ -15526,36 +15674,56 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - architecture: pulumi.Input[str], - boot_id: pulumi.Input[str], - container_runtime_version: pulumi.Input[str], - kernel_version: pulumi.Input[str], - kube_proxy_version: pulumi.Input[str], - kubelet_version: pulumi.Input[str], - machine_id: pulumi.Input[str], - operating_system: pulumi.Input[str], - os_image: pulumi.Input[str], - system_uuid: pulumi.Input[str], + architecture: Optional[pulumi.Input[str]] = None, + boot_id: Optional[pulumi.Input[str]] = None, + container_runtime_version: Optional[pulumi.Input[str]] = None, + kernel_version: Optional[pulumi.Input[str]] = None, + kube_proxy_version: Optional[pulumi.Input[str]] = None, + kubelet_version: Optional[pulumi.Input[str]] = None, + machine_id: Optional[pulumi.Input[str]] = None, + operating_system: Optional[pulumi.Input[str]] = None, + os_image: Optional[pulumi.Input[str]] = None, + system_uuid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'bootID' in kwargs: + if architecture is None: + raise TypeError("Missing 'architecture' argument") + if boot_id is None and 'bootID' in kwargs: boot_id = kwargs['bootID'] - if 'containerRuntimeVersion' in kwargs: + if boot_id is None: + raise TypeError("Missing 'boot_id' argument") + if container_runtime_version is None and 'containerRuntimeVersion' in kwargs: container_runtime_version = kwargs['containerRuntimeVersion'] - if 'kernelVersion' in kwargs: + if container_runtime_version is None: + raise TypeError("Missing 'container_runtime_version' argument") + if kernel_version is None and 'kernelVersion' in kwargs: kernel_version = kwargs['kernelVersion'] - if 'kubeProxyVersion' in kwargs: + if kernel_version is None: + raise TypeError("Missing 'kernel_version' argument") + if kube_proxy_version is None and 'kubeProxyVersion' in kwargs: kube_proxy_version = kwargs['kubeProxyVersion'] - if 'kubeletVersion' in kwargs: + if kube_proxy_version is None: + raise TypeError("Missing 'kube_proxy_version' argument") + if kubelet_version is None and 'kubeletVersion' in kwargs: kubelet_version = kwargs['kubeletVersion'] - if 'machineID' in kwargs: + if kubelet_version is None: + raise TypeError("Missing 'kubelet_version' argument") + if machine_id is None and 'machineID' in kwargs: machine_id = kwargs['machineID'] - if 'operatingSystem' in kwargs: + if machine_id is None: + raise TypeError("Missing 'machine_id' argument") + if operating_system is None and 'operatingSystem' in kwargs: operating_system = kwargs['operatingSystem'] - if 'osImage' in kwargs: + if operating_system is None: + raise TypeError("Missing 'operating_system' argument") + if os_image is None and 'osImage' in kwargs: os_image = kwargs['osImage'] - if 'systemUUID' in kwargs: + if os_image is None: + raise TypeError("Missing 'os_image' argument") + if system_uuid is None and 'systemUUID' in kwargs: system_uuid = kwargs['systemUUID'] + if system_uuid is None: + raise TypeError("Missing 'system_uuid' argument") _setter("architecture", architecture) _setter("boot_id", boot_id) @@ -15723,7 +15891,7 @@ def _configure( status: Optional[pulumi.Input['NodeStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -15820,9 +15988,9 @@ def _configure( field_path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] if api_version is not None: @@ -15873,13 +16041,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - field_path: pulumi.Input[str], + field_path: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'apiVersion' in kwargs: + if field_path is None: + raise TypeError("Missing 'field_path' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("field_path", field_path) @@ -15953,11 +16123,11 @@ def _configure( uid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] if api_version is not None: @@ -16102,11 +16272,11 @@ def _configure( uid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] if api_version is not None: @@ -16245,9 +16415,9 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_probe_time is not None: @@ -16358,17 +16528,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_probe_time: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -16483,7 +16657,7 @@ def _configure( status: Optional[pulumi.Input['PersistentVolumeClaimStatusPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -16611,17 +16785,17 @@ def _configure( volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'dataSource' in kwargs: + if data_source is None and 'dataSource' in kwargs: data_source = kwargs['dataSource'] - if 'dataSourceRef' in kwargs: + if data_source_ref is None and 'dataSourceRef' in kwargs: data_source_ref = kwargs['dataSourceRef'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'volumeMode' in kwargs: + if volume_mode is None and 'volumeMode' in kwargs: volume_mode = kwargs['volumeMode'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] if access_modes is not None: @@ -16798,17 +16972,17 @@ def _configure( volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'dataSource' in kwargs: + if data_source is None and 'dataSource' in kwargs: data_source = kwargs['dataSource'] - if 'dataSourceRef' in kwargs: + if data_source_ref is None and 'dataSourceRef' in kwargs: data_source_ref = kwargs['dataSourceRef'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'volumeMode' in kwargs: + if volume_mode is None and 'volumeMode' in kwargs: volume_mode = kwargs['volumeMode'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] if access_modes is not None: @@ -17013,13 +17187,13 @@ def _configure( resize_status: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'allocatedResourceStatuses' in kwargs: + if allocated_resource_statuses is None and 'allocatedResourceStatuses' in kwargs: allocated_resource_statuses = kwargs['allocatedResourceStatuses'] - if 'allocatedResources' in kwargs: + if allocated_resources is None and 'allocatedResources' in kwargs: allocated_resources = kwargs['allocatedResources'] - if 'resizeStatus' in kwargs: + if resize_status is None and 'resizeStatus' in kwargs: resize_status = kwargs['resizeStatus'] if access_modes is not None: @@ -17242,13 +17416,13 @@ def _configure( resize_status: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'allocatedResourceStatuses' in kwargs: + if allocated_resource_statuses is None and 'allocatedResourceStatuses' in kwargs: allocated_resource_statuses = kwargs['allocatedResourceStatuses'] - if 'allocatedResources' in kwargs: + if allocated_resources is None and 'allocatedResources' in kwargs: allocated_resources = kwargs['allocatedResources'] - if 'resizeStatus' in kwargs: + if resize_status is None and 'resizeStatus' in kwargs: resize_status = kwargs['resizeStatus'] if access_modes is not None: @@ -17461,10 +17635,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['PersistentVolumeClaimSpecArgs'], + spec: Optional[pulumi.Input['PersistentVolumeClaimSpecArgs']] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if spec is None: + raise TypeError("Missing 'spec' argument") _setter("spec", spec) if metadata is not None: @@ -17517,9 +17693,9 @@ def _configure( read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'claimName' in kwargs: + if claim_name is None and 'claimName' in kwargs: claim_name = kwargs['claimName'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if claim_name is not None: @@ -17570,13 +17746,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - claim_name: pulumi.Input[str], + claim_name: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'claimName' in kwargs: + if claim_name is None and 'claimName' in kwargs: claim_name = kwargs['claimName'] - if 'readOnly' in kwargs: + if claim_name is None: + raise TypeError("Missing 'claim_name' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("claim_name", claim_name) @@ -17642,7 +17820,7 @@ def _configure( status: Optional[pulumi.Input['PersistentVolumeClaimStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -17851,39 +18029,39 @@ def _configure( vsphere_volume: Optional[pulumi.Input['VsphereVirtualDiskVolumeSourcePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'awsElasticBlockStore' in kwargs: + if aws_elastic_block_store is None and 'awsElasticBlockStore' in kwargs: aws_elastic_block_store = kwargs['awsElasticBlockStore'] - if 'azureDisk' in kwargs: + if azure_disk is None and 'azureDisk' in kwargs: azure_disk = kwargs['azureDisk'] - if 'azureFile' in kwargs: + if azure_file is None and 'azureFile' in kwargs: azure_file = kwargs['azureFile'] - if 'claimRef' in kwargs: + if claim_ref is None and 'claimRef' in kwargs: claim_ref = kwargs['claimRef'] - if 'flexVolume' in kwargs: + if flex_volume is None and 'flexVolume' in kwargs: flex_volume = kwargs['flexVolume'] - if 'gcePersistentDisk' in kwargs: + if gce_persistent_disk is None and 'gcePersistentDisk' in kwargs: gce_persistent_disk = kwargs['gcePersistentDisk'] - if 'hostPath' in kwargs: + if host_path is None and 'hostPath' in kwargs: host_path = kwargs['hostPath'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'nodeAffinity' in kwargs: + if node_affinity is None and 'nodeAffinity' in kwargs: node_affinity = kwargs['nodeAffinity'] - if 'persistentVolumeReclaimPolicy' in kwargs: + if persistent_volume_reclaim_policy is None and 'persistentVolumeReclaimPolicy' in kwargs: persistent_volume_reclaim_policy = kwargs['persistentVolumeReclaimPolicy'] - if 'photonPersistentDisk' in kwargs: + if photon_persistent_disk is None and 'photonPersistentDisk' in kwargs: photon_persistent_disk = kwargs['photonPersistentDisk'] - if 'portworxVolume' in kwargs: + if portworx_volume is None and 'portworxVolume' in kwargs: portworx_volume = kwargs['portworxVolume'] - if 'scaleIO' in kwargs: + if scale_io is None and 'scaleIO' in kwargs: scale_io = kwargs['scaleIO'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'volumeMode' in kwargs: + if volume_mode is None and 'volumeMode' in kwargs: volume_mode = kwargs['volumeMode'] - if 'vsphereVolume' in kwargs: + if vsphere_volume is None and 'vsphereVolume' in kwargs: vsphere_volume = kwargs['vsphereVolume'] if access_modes is not None: @@ -18442,39 +18620,39 @@ def _configure( vsphere_volume: Optional[pulumi.Input['VsphereVirtualDiskVolumeSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'awsElasticBlockStore' in kwargs: + if aws_elastic_block_store is None and 'awsElasticBlockStore' in kwargs: aws_elastic_block_store = kwargs['awsElasticBlockStore'] - if 'azureDisk' in kwargs: + if azure_disk is None and 'azureDisk' in kwargs: azure_disk = kwargs['azureDisk'] - if 'azureFile' in kwargs: + if azure_file is None and 'azureFile' in kwargs: azure_file = kwargs['azureFile'] - if 'claimRef' in kwargs: + if claim_ref is None and 'claimRef' in kwargs: claim_ref = kwargs['claimRef'] - if 'flexVolume' in kwargs: + if flex_volume is None and 'flexVolume' in kwargs: flex_volume = kwargs['flexVolume'] - if 'gcePersistentDisk' in kwargs: + if gce_persistent_disk is None and 'gcePersistentDisk' in kwargs: gce_persistent_disk = kwargs['gcePersistentDisk'] - if 'hostPath' in kwargs: + if host_path is None and 'hostPath' in kwargs: host_path = kwargs['hostPath'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'nodeAffinity' in kwargs: + if node_affinity is None and 'nodeAffinity' in kwargs: node_affinity = kwargs['nodeAffinity'] - if 'persistentVolumeReclaimPolicy' in kwargs: + if persistent_volume_reclaim_policy is None and 'persistentVolumeReclaimPolicy' in kwargs: persistent_volume_reclaim_policy = kwargs['persistentVolumeReclaimPolicy'] - if 'photonPersistentDisk' in kwargs: + if photon_persistent_disk is None and 'photonPersistentDisk' in kwargs: photon_persistent_disk = kwargs['photonPersistentDisk'] - if 'portworxVolume' in kwargs: + if portworx_volume is None and 'portworxVolume' in kwargs: portworx_volume = kwargs['portworxVolume'] - if 'scaleIO' in kwargs: + if scale_io is None and 'scaleIO' in kwargs: scale_io = kwargs['scaleIO'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'volumeMode' in kwargs: + if volume_mode is None and 'volumeMode' in kwargs: volume_mode = kwargs['volumeMode'] - if 'vsphereVolume' in kwargs: + if vsphere_volume is None and 'vsphereVolume' in kwargs: vsphere_volume = kwargs['vsphereVolume'] if access_modes is not None: @@ -18929,7 +19107,7 @@ def _configure( reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastPhaseTransitionTime' in kwargs: + if last_phase_transition_time is None and 'lastPhaseTransitionTime' in kwargs: last_phase_transition_time = kwargs['lastPhaseTransitionTime'] if last_phase_transition_time is not None: @@ -19024,7 +19202,7 @@ def _configure( status: Optional[pulumi.Input['PersistentVolumeStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -19121,9 +19299,9 @@ def _configure( pd_id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'pdID' in kwargs: + if pd_id is None and 'pdID' in kwargs: pd_id = kwargs['pdID'] if fs_type is not None: @@ -19174,13 +19352,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pd_id: pulumi.Input[str], + pd_id: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pdID' in kwargs: + if pd_id is None and 'pdID' in kwargs: pd_id = kwargs['pdID'] - if 'fsType' in kwargs: + if pd_id is None: + raise TypeError("Missing 'pd_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] _setter("pd_id", pd_id) @@ -19234,9 +19414,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[pulumi.Input[Sequence[pulumi.Input['PodAffinityTermPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -19299,11 +19479,11 @@ def _configure( topology_key: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'labelSelector' in kwargs: + if label_selector is None and 'labelSelector' in kwargs: label_selector = kwargs['labelSelector'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'topologyKey' in kwargs: + if topology_key is None and 'topologyKey' in kwargs: topology_key = kwargs['topologyKey'] if label_selector is not None: @@ -19388,17 +19568,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - topology_key: pulumi.Input[str], + topology_key: Optional[pulumi.Input[str]] = None, label_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, namespace_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'topologyKey' in kwargs: + if topology_key is None and 'topologyKey' in kwargs: topology_key = kwargs['topologyKey'] - if 'labelSelector' in kwargs: + if topology_key is None: + raise TypeError("Missing 'topology_key' argument") + if label_selector is None and 'labelSelector' in kwargs: label_selector = kwargs['labelSelector'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] _setter("topology_key", topology_key) @@ -19480,9 +19662,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[pulumi.Input[Sequence[pulumi.Input['PodAffinityTermArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -19537,9 +19719,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[pulumi.Input[Sequence[pulumi.Input['PodAffinityTermPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -19594,9 +19776,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[pulumi.Input[Sequence[pulumi.Input['PodAffinityTermArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -19659,17 +19841,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_probe_time: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -20081,9 +20267,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -20118,7 +20306,7 @@ def _configure( condition_type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conditionType' in kwargs: + if condition_type is None and 'conditionType' in kwargs: condition_type = kwargs['conditionType'] if condition_type is not None: @@ -20152,11 +20340,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - condition_type: pulumi.Input[str], + condition_type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conditionType' in kwargs: + if condition_type is None and 'conditionType' in kwargs: condition_type = kwargs['conditionType'] + if condition_type is None: + raise TypeError("Missing 'condition_type' argument") _setter("condition_type", condition_type) @@ -20244,11 +20434,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, resource_claim_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaimName' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if resource_claim_name is None and 'resourceClaimName' in kwargs: resource_claim_name = kwargs['resourceClaimName'] _setter("name", name) @@ -20298,10 +20490,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, source: Optional[pulumi.Input['ClaimSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) if source is not None: @@ -20382,9 +20576,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -20459,23 +20655,23 @@ def _configure( windows_options: Optional[pulumi.Input['WindowsSecurityContextOptionsPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'fsGroupChangePolicy' in kwargs: + if fs_group_change_policy is None and 'fsGroupChangePolicy' in kwargs: fs_group_change_policy = kwargs['fsGroupChangePolicy'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsNonRoot' in kwargs: + if run_as_non_root is None and 'runAsNonRoot' in kwargs: run_as_non_root = kwargs['runAsNonRoot'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] - if 'seccompProfile' in kwargs: + if seccomp_profile is None and 'seccompProfile' in kwargs: seccomp_profile = kwargs['seccompProfile'] - if 'supplementalGroups' in kwargs: + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] - if 'windowsOptions' in kwargs: + if windows_options is None and 'windowsOptions' in kwargs: windows_options = kwargs['windowsOptions'] if fs_group is not None: @@ -20682,23 +20878,23 @@ def _configure( windows_options: Optional[pulumi.Input['WindowsSecurityContextOptionsArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'fsGroupChangePolicy' in kwargs: + if fs_group_change_policy is None and 'fsGroupChangePolicy' in kwargs: fs_group_change_policy = kwargs['fsGroupChangePolicy'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsNonRoot' in kwargs: + if run_as_non_root is None and 'runAsNonRoot' in kwargs: run_as_non_root = kwargs['runAsNonRoot'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] - if 'seccompProfile' in kwargs: + if seccomp_profile is None and 'seccompProfile' in kwargs: seccomp_profile = kwargs['seccompProfile'] - if 'supplementalGroups' in kwargs: + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] - if 'windowsOptions' in kwargs: + if windows_options is None and 'windowsOptions' in kwargs: windows_options = kwargs['windowsOptions'] if fs_group is not None: @@ -21029,65 +21225,65 @@ def _configure( volumes: Optional[pulumi.Input[Sequence[pulumi.Input['VolumePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'activeDeadlineSeconds' in kwargs: + if active_deadline_seconds is None and 'activeDeadlineSeconds' in kwargs: active_deadline_seconds = kwargs['activeDeadlineSeconds'] - if 'automountServiceAccountToken' in kwargs: + if automount_service_account_token is None and 'automountServiceAccountToken' in kwargs: automount_service_account_token = kwargs['automountServiceAccountToken'] - if 'dnsConfig' in kwargs: + if dns_config is None and 'dnsConfig' in kwargs: dns_config = kwargs['dnsConfig'] - if 'dnsPolicy' in kwargs: + if dns_policy is None and 'dnsPolicy' in kwargs: dns_policy = kwargs['dnsPolicy'] - if 'enableServiceLinks' in kwargs: + if enable_service_links is None and 'enableServiceLinks' in kwargs: enable_service_links = kwargs['enableServiceLinks'] - if 'ephemeralContainers' in kwargs: + if ephemeral_containers is None and 'ephemeralContainers' in kwargs: ephemeral_containers = kwargs['ephemeralContainers'] - if 'hostAliases' in kwargs: + if host_aliases is None and 'hostAliases' in kwargs: host_aliases = kwargs['hostAliases'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostUsers' in kwargs: + if host_users is None and 'hostUsers' in kwargs: host_users = kwargs['hostUsers'] - if 'imagePullSecrets' in kwargs: + if image_pull_secrets is None and 'imagePullSecrets' in kwargs: image_pull_secrets = kwargs['imagePullSecrets'] - if 'initContainers' in kwargs: + if init_containers is None and 'initContainers' in kwargs: init_containers = kwargs['initContainers'] - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] - if 'priorityClassName' in kwargs: + if priority_class_name is None and 'priorityClassName' in kwargs: priority_class_name = kwargs['priorityClassName'] - if 'readinessGates' in kwargs: + if readiness_gates is None and 'readinessGates' in kwargs: readiness_gates = kwargs['readinessGates'] - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'runtimeClassName' in kwargs: + if runtime_class_name is None and 'runtimeClassName' in kwargs: runtime_class_name = kwargs['runtimeClassName'] - if 'schedulerName' in kwargs: + if scheduler_name is None and 'schedulerName' in kwargs: scheduler_name = kwargs['schedulerName'] - if 'schedulingGates' in kwargs: + if scheduling_gates is None and 'schedulingGates' in kwargs: scheduling_gates = kwargs['schedulingGates'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] - if 'serviceAccountName' in kwargs: + if service_account_name is None and 'serviceAccountName' in kwargs: service_account_name = kwargs['serviceAccountName'] - if 'setHostnameAsFQDN' in kwargs: + if set_hostname_as_fqdn is None and 'setHostnameAsFQDN' in kwargs: set_hostname_as_fqdn = kwargs['setHostnameAsFQDN'] - if 'shareProcessNamespace' in kwargs: + if share_process_namespace is None and 'shareProcessNamespace' in kwargs: share_process_namespace = kwargs['shareProcessNamespace'] - if 'terminationGracePeriodSeconds' in kwargs: + if termination_grace_period_seconds is None and 'terminationGracePeriodSeconds' in kwargs: termination_grace_period_seconds = kwargs['terminationGracePeriodSeconds'] - if 'topologySpreadConstraints' in kwargs: + if topology_spread_constraints is None and 'topologySpreadConstraints' in kwargs: topology_spread_constraints = kwargs['topologySpreadConstraints'] if active_deadline_seconds is not None: @@ -21791,7 +21987,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - containers: pulumi.Input[Sequence[pulumi.Input['ContainerArgs']]], + containers: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerArgs']]]] = None, active_deadline_seconds: Optional[pulumi.Input[int]] = None, affinity: Optional[pulumi.Input['AffinityArgs']] = None, automount_service_account_token: Optional[pulumi.Input[bool]] = None, @@ -21832,65 +22028,67 @@ def _configure( volumes: Optional[pulumi.Input[Sequence[pulumi.Input['VolumeArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'activeDeadlineSeconds' in kwargs: + if containers is None: + raise TypeError("Missing 'containers' argument") + if active_deadline_seconds is None and 'activeDeadlineSeconds' in kwargs: active_deadline_seconds = kwargs['activeDeadlineSeconds'] - if 'automountServiceAccountToken' in kwargs: + if automount_service_account_token is None and 'automountServiceAccountToken' in kwargs: automount_service_account_token = kwargs['automountServiceAccountToken'] - if 'dnsConfig' in kwargs: + if dns_config is None and 'dnsConfig' in kwargs: dns_config = kwargs['dnsConfig'] - if 'dnsPolicy' in kwargs: + if dns_policy is None and 'dnsPolicy' in kwargs: dns_policy = kwargs['dnsPolicy'] - if 'enableServiceLinks' in kwargs: + if enable_service_links is None and 'enableServiceLinks' in kwargs: enable_service_links = kwargs['enableServiceLinks'] - if 'ephemeralContainers' in kwargs: + if ephemeral_containers is None and 'ephemeralContainers' in kwargs: ephemeral_containers = kwargs['ephemeralContainers'] - if 'hostAliases' in kwargs: + if host_aliases is None and 'hostAliases' in kwargs: host_aliases = kwargs['hostAliases'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostUsers' in kwargs: + if host_users is None and 'hostUsers' in kwargs: host_users = kwargs['hostUsers'] - if 'imagePullSecrets' in kwargs: + if image_pull_secrets is None and 'imagePullSecrets' in kwargs: image_pull_secrets = kwargs['imagePullSecrets'] - if 'initContainers' in kwargs: + if init_containers is None and 'initContainers' in kwargs: init_containers = kwargs['initContainers'] - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] - if 'priorityClassName' in kwargs: + if priority_class_name is None and 'priorityClassName' in kwargs: priority_class_name = kwargs['priorityClassName'] - if 'readinessGates' in kwargs: + if readiness_gates is None and 'readinessGates' in kwargs: readiness_gates = kwargs['readinessGates'] - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'runtimeClassName' in kwargs: + if runtime_class_name is None and 'runtimeClassName' in kwargs: runtime_class_name = kwargs['runtimeClassName'] - if 'schedulerName' in kwargs: + if scheduler_name is None and 'schedulerName' in kwargs: scheduler_name = kwargs['schedulerName'] - if 'schedulingGates' in kwargs: + if scheduling_gates is None and 'schedulingGates' in kwargs: scheduling_gates = kwargs['schedulingGates'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] - if 'serviceAccountName' in kwargs: + if service_account_name is None and 'serviceAccountName' in kwargs: service_account_name = kwargs['serviceAccountName'] - if 'setHostnameAsFQDN' in kwargs: + if set_hostname_as_fqdn is None and 'setHostnameAsFQDN' in kwargs: set_hostname_as_fqdn = kwargs['setHostnameAsFQDN'] - if 'shareProcessNamespace' in kwargs: + if share_process_namespace is None and 'shareProcessNamespace' in kwargs: share_process_namespace = kwargs['shareProcessNamespace'] - if 'terminationGracePeriodSeconds' in kwargs: + if termination_grace_period_seconds is None and 'terminationGracePeriodSeconds' in kwargs: termination_grace_period_seconds = kwargs['terminationGracePeriodSeconds'] - if 'topologySpreadConstraints' in kwargs: + if topology_spread_constraints is None and 'topologySpreadConstraints' in kwargs: topology_spread_constraints = kwargs['topologySpreadConstraints'] _setter("containers", containers) @@ -22534,27 +22732,27 @@ def _configure( start_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerStatuses' in kwargs: + if container_statuses is None and 'containerStatuses' in kwargs: container_statuses = kwargs['containerStatuses'] - if 'ephemeralContainerStatuses' in kwargs: + if ephemeral_container_statuses is None and 'ephemeralContainerStatuses' in kwargs: ephemeral_container_statuses = kwargs['ephemeralContainerStatuses'] - if 'hostIP' in kwargs: + if host_ip is None and 'hostIP' in kwargs: host_ip = kwargs['hostIP'] - if 'hostIPs' in kwargs: + if host_ips is None and 'hostIPs' in kwargs: host_ips = kwargs['hostIPs'] - if 'initContainerStatuses' in kwargs: + if init_container_statuses is None and 'initContainerStatuses' in kwargs: init_container_statuses = kwargs['initContainerStatuses'] - if 'nominatedNodeName' in kwargs: + if nominated_node_name is None and 'nominatedNodeName' in kwargs: nominated_node_name = kwargs['nominatedNodeName'] - if 'podIP' in kwargs: + if pod_ip is None and 'podIP' in kwargs: pod_ip = kwargs['podIP'] - if 'podIPs' in kwargs: + if pod_ips is None and 'podIPs' in kwargs: pod_ips = kwargs['podIPs'] - if 'qosClass' in kwargs: + if qos_class is None and 'qosClass' in kwargs: qos_class = kwargs['qosClass'] - if 'resourceClaimStatuses' in kwargs: + if resource_claim_statuses is None and 'resourceClaimStatuses' in kwargs: resource_claim_statuses = kwargs['resourceClaimStatuses'] - if 'startTime' in kwargs: + if start_time is None and 'startTime' in kwargs: start_time = kwargs['startTime'] if conditions is not None: @@ -22923,7 +23121,7 @@ def _configure( template: Optional[pulumi.Input['PodTemplateSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -23033,7 +23231,7 @@ def _configure( status: Optional[pulumi.Input['PodStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -23131,11 +23329,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: pulumi.Input[int], - protocol: pulumi.Input[str], + port: Optional[pulumi.Input[int]] = None, + protocol: Optional[pulumi.Input[str]] = None, error: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if port is None: + raise TypeError("Missing 'port' argument") + if protocol is None: + raise TypeError("Missing 'protocol' argument") _setter("port", port) _setter("protocol", protocol) @@ -23208,11 +23410,11 @@ def _configure( volume_id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] if fs_type is not None: @@ -23280,16 +23482,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_id: pulumi.Input[str], + volume_id: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] - if 'fsType' in kwargs: + if volume_id is None: + raise TypeError("Missing 'volume_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("volume_id", volume_id) @@ -23406,10 +23610,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - preference: pulumi.Input['NodeSelectorTermArgs'], - weight: pulumi.Input[int], + preference: Optional[pulumi.Input['NodeSelectorTermArgs']] = None, + weight: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if preference is None: + raise TypeError("Missing 'preference' argument") + if weight is None: + raise TypeError("Missing 'weight' argument") _setter("preference", preference) _setter("weight", weight) @@ -23493,23 +23701,23 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exec' in kwargs: + if exec_ is None and 'exec' in kwargs: exec_ = kwargs['exec'] - if 'failureThreshold' in kwargs: + if failure_threshold is None and 'failureThreshold' in kwargs: failure_threshold = kwargs['failureThreshold'] - if 'httpGet' in kwargs: + if http_get is None and 'httpGet' in kwargs: http_get = kwargs['httpGet'] - if 'initialDelaySeconds' in kwargs: + if initial_delay_seconds is None and 'initialDelaySeconds' in kwargs: initial_delay_seconds = kwargs['initialDelaySeconds'] - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] - if 'successThreshold' in kwargs: + if success_threshold is None and 'successThreshold' in kwargs: success_threshold = kwargs['successThreshold'] - if 'tcpSocket' in kwargs: + if tcp_socket is None and 'tcpSocket' in kwargs: tcp_socket = kwargs['tcpSocket'] - if 'terminationGracePeriodSeconds' in kwargs: + if termination_grace_period_seconds is None and 'terminationGracePeriodSeconds' in kwargs: termination_grace_period_seconds = kwargs['terminationGracePeriodSeconds'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if exec_ is not None: @@ -23708,23 +23916,23 @@ def _configure( timeout_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exec' in kwargs: + if exec_ is None and 'exec' in kwargs: exec_ = kwargs['exec'] - if 'failureThreshold' in kwargs: + if failure_threshold is None and 'failureThreshold' in kwargs: failure_threshold = kwargs['failureThreshold'] - if 'httpGet' in kwargs: + if http_get is None and 'httpGet' in kwargs: http_get = kwargs['httpGet'] - if 'initialDelaySeconds' in kwargs: + if initial_delay_seconds is None and 'initialDelaySeconds' in kwargs: initial_delay_seconds = kwargs['initialDelaySeconds'] - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] - if 'successThreshold' in kwargs: + if success_threshold is None and 'successThreshold' in kwargs: success_threshold = kwargs['successThreshold'] - if 'tcpSocket' in kwargs: + if tcp_socket is None and 'tcpSocket' in kwargs: tcp_socket = kwargs['tcpSocket'] - if 'terminationGracePeriodSeconds' in kwargs: + if termination_grace_period_seconds is None and 'terminationGracePeriodSeconds' in kwargs: termination_grace_period_seconds = kwargs['terminationGracePeriodSeconds'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if exec_ is not None: @@ -23891,7 +24099,7 @@ def _configure( sources: Optional[pulumi.Input[Sequence[pulumi.Input['VolumeProjectionPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -23942,11 +24150,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - sources: pulumi.Input[Sequence[pulumi.Input['VolumeProjectionArgs']]], + sources: Optional[pulumi.Input[Sequence[pulumi.Input['VolumeProjectionArgs']]]] = None, default_mode: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if sources is None: + raise TypeError("Missing 'sources' argument") + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] _setter("sources", sources) @@ -24016,7 +24226,7 @@ def _configure( volume: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if group is not None: @@ -24135,15 +24345,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - registry: pulumi.Input[str], - volume: pulumi.Input[str], + registry: Optional[pulumi.Input[str]] = None, + volume: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, tenant: Optional[pulumi.Input[str]] = None, user: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if registry is None: + raise TypeError("Missing 'registry' argument") + if volume is None: + raise TypeError("Missing 'volume' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("registry", registry) @@ -24276,11 +24490,11 @@ def _configure( user: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if fs_type is not None: @@ -24433,8 +24647,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - image: pulumi.Input[str], - monitors: pulumi.Input[Sequence[pulumi.Input[str]]], + image: Optional[pulumi.Input[str]] = None, + monitors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, fs_type: Optional[pulumi.Input[str]] = None, keyring: Optional[pulumi.Input[str]] = None, pool: Optional[pulumi.Input[str]] = None, @@ -24443,11 +24657,15 @@ def _configure( user: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if image is None: + raise TypeError("Missing 'image' argument") + if monitors is None: + raise TypeError("Missing 'monitors' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("image", image) @@ -24608,11 +24826,11 @@ def _configure( user: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if fs_type is not None: @@ -24765,8 +24983,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - image: pulumi.Input[str], - monitors: pulumi.Input[Sequence[pulumi.Input[str]]], + image: Optional[pulumi.Input[str]] = None, + monitors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, fs_type: Optional[pulumi.Input[str]] = None, keyring: Optional[pulumi.Input[str]] = None, pool: Optional[pulumi.Input[str]] = None, @@ -24775,11 +24993,15 @@ def _configure( user: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if image is None: + raise TypeError("Missing 'image' argument") + if monitors is None: + raise TypeError("Missing 'monitors' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("image", image) @@ -24921,14 +25143,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -25031,7 +25257,7 @@ def _configure( template: Optional[pulumi.Input['PodTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -25122,7 +25348,7 @@ def _configure( template: Optional[pulumi.Input['PodTemplateSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -25213,7 +25439,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: pulumi.Input[int], + replicas: Optional[pulumi.Input[int]] = None, available_replicas: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['ReplicationControllerConditionArgs']]]] = None, fully_labeled_replicas: Optional[pulumi.Input[int]] = None, @@ -25221,13 +25447,15 @@ def _configure( ready_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] _setter("replicas", replicas) @@ -25349,7 +25577,7 @@ def _configure( status: Optional[pulumi.Input['ReplicationControllerStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -25474,9 +25702,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -25519,7 +25749,7 @@ def _configure( resource: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerName' in kwargs: + if container_name is None and 'containerName' in kwargs: container_name = kwargs['containerName'] if container_name is not None: @@ -25587,12 +25817,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - resource: pulumi.Input[str], + resource: Optional[pulumi.Input[str]] = None, container_name: Optional[pulumi.Input[str]] = None, divisor: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerName' in kwargs: + if resource is None: + raise TypeError("Missing 'resource' argument") + if container_name is None and 'containerName' in kwargs: container_name = kwargs['containerName'] _setter("resource", resource) @@ -25664,7 +25896,7 @@ def _configure( scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scopeSelector' in kwargs: + if scope_selector is None and 'scopeSelector' in kwargs: scope_selector = kwargs['scopeSelector'] if hard is not None: @@ -25737,7 +25969,7 @@ def _configure( scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scopeSelector' in kwargs: + if scope_selector is None and 'scopeSelector' in kwargs: scope_selector = kwargs['scopeSelector'] if hard is not None: @@ -25871,7 +26103,7 @@ def _configure( status: Optional[pulumi.Input['ResourceQuotaStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -26336,21 +26568,21 @@ def _configure( volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'protectionDomain' in kwargs: + if protection_domain is None and 'protectionDomain' in kwargs: protection_domain = kwargs['protectionDomain'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'sslEnabled' in kwargs: + if ssl_enabled is None and 'sslEnabled' in kwargs: ssl_enabled = kwargs['sslEnabled'] - if 'storageMode' in kwargs: + if storage_mode is None and 'storageMode' in kwargs: storage_mode = kwargs['storageMode'] - if 'storagePool' in kwargs: + if storage_pool is None and 'storagePool' in kwargs: storage_pool = kwargs['storagePool'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] if fs_type is not None: @@ -26537,9 +26769,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - gateway: pulumi.Input[str], - secret_ref: pulumi.Input['SecretReferenceArgs'], - system: pulumi.Input[str], + gateway: Optional[pulumi.Input[str]] = None, + secret_ref: Optional[pulumi.Input['SecretReferenceArgs']] = None, + system: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, protection_domain: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, @@ -26549,21 +26781,27 @@ def _configure( volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretRef' in kwargs: + if gateway is None: + raise TypeError("Missing 'gateway' argument") + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'fsType' in kwargs: + if secret_ref is None: + raise TypeError("Missing 'secret_ref' argument") + if system is None: + raise TypeError("Missing 'system' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'protectionDomain' in kwargs: + if protection_domain is None and 'protectionDomain' in kwargs: protection_domain = kwargs['protectionDomain'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'sslEnabled' in kwargs: + if ssl_enabled is None and 'sslEnabled' in kwargs: ssl_enabled = kwargs['sslEnabled'] - if 'storageMode' in kwargs: + if storage_mode is None and 'storageMode' in kwargs: storage_mode = kwargs['storageMode'] - if 'storagePool' in kwargs: + if storage_pool is None and 'storagePool' in kwargs: storage_pool = kwargs['storagePool'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] _setter("gateway", gateway) @@ -26759,21 +26997,21 @@ def _configure( volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'protectionDomain' in kwargs: + if protection_domain is None and 'protectionDomain' in kwargs: protection_domain = kwargs['protectionDomain'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'sslEnabled' in kwargs: + if ssl_enabled is None and 'sslEnabled' in kwargs: ssl_enabled = kwargs['sslEnabled'] - if 'storageMode' in kwargs: + if storage_mode is None and 'storageMode' in kwargs: storage_mode = kwargs['storageMode'] - if 'storagePool' in kwargs: + if storage_pool is None and 'storagePool' in kwargs: storage_pool = kwargs['storagePool'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] if fs_type is not None: @@ -26960,9 +27198,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - gateway: pulumi.Input[str], - secret_ref: pulumi.Input['LocalObjectReferenceArgs'], - system: pulumi.Input[str], + gateway: Optional[pulumi.Input[str]] = None, + secret_ref: Optional[pulumi.Input['LocalObjectReferenceArgs']] = None, + system: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, protection_domain: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, @@ -26972,21 +27210,27 @@ def _configure( volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretRef' in kwargs: + if gateway is None: + raise TypeError("Missing 'gateway' argument") + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'fsType' in kwargs: + if secret_ref is None: + raise TypeError("Missing 'secret_ref' argument") + if system is None: + raise TypeError("Missing 'system' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'protectionDomain' in kwargs: + if protection_domain is None and 'protectionDomain' in kwargs: protection_domain = kwargs['protectionDomain'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'sslEnabled' in kwargs: + if ssl_enabled is None and 'sslEnabled' in kwargs: ssl_enabled = kwargs['sslEnabled'] - if 'storageMode' in kwargs: + if storage_mode is None and 'storageMode' in kwargs: storage_mode = kwargs['storageMode'] - if 'storagePool' in kwargs: + if storage_pool is None and 'storagePool' in kwargs: storage_pool = kwargs['storagePool'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] _setter("gateway", gateway) @@ -27146,7 +27390,7 @@ def _configure( match_expressions: Optional[pulumi.Input[Sequence[pulumi.Input['ScopedResourceSelectorRequirementPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] if match_expressions is not None: @@ -27183,7 +27427,7 @@ def _configure( match_expressions: Optional[pulumi.Input[Sequence[pulumi.Input['ScopedResourceSelectorRequirementArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] if match_expressions is not None: @@ -27228,7 +27472,7 @@ def _configure( values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scopeName' in kwargs: + if scope_name is None and 'scopeName' in kwargs: scope_name = kwargs['scopeName'] if operator is not None: @@ -27296,13 +27540,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - operator: pulumi.Input[str], - scope_name: pulumi.Input[str], + operator: Optional[pulumi.Input[str]] = None, + scope_name: Optional[pulumi.Input[str]] = None, values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scopeName' in kwargs: + if operator is None: + raise TypeError("Missing 'operator' argument") + if scope_name is None and 'scopeName' in kwargs: scope_name = kwargs['scopeName'] + if scope_name is None: + raise TypeError("Missing 'scope_name' argument") _setter("operator", operator) _setter("scope_name", scope_name) @@ -27370,7 +27618,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'localhostProfile' in kwargs: + if localhost_profile is None and 'localhostProfile' in kwargs: localhost_profile = kwargs['localhostProfile'] if localhost_profile is not None: @@ -27425,11 +27673,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, localhost_profile: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'localhostProfile' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if localhost_profile is None and 'localhostProfile' in kwargs: localhost_profile = kwargs['localhostProfile'] _setter("type", type) @@ -27665,11 +27915,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, optional: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") _setter("key", key) if name is not None: @@ -27998,9 +28250,9 @@ def _configure( secret_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if default_mode is not None: @@ -28093,9 +28345,9 @@ def _configure( secret_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if default_mode is not None: @@ -28208,9 +28460,9 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'stringData' in kwargs: + if string_data is None and 'stringData' in kwargs: string_data = kwargs['stringData'] if api_version is not None: @@ -28371,23 +28623,23 @@ def _configure( windows_options: Optional[pulumi.Input['WindowsSecurityContextOptionsPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowPrivilegeEscalation' in kwargs: + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'procMount' in kwargs: + if proc_mount is None and 'procMount' in kwargs: proc_mount = kwargs['procMount'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsNonRoot' in kwargs: + if run_as_non_root is None and 'runAsNonRoot' in kwargs: run_as_non_root = kwargs['runAsNonRoot'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] - if 'seccompProfile' in kwargs: + if seccomp_profile is None and 'seccompProfile' in kwargs: seccomp_profile = kwargs['seccompProfile'] - if 'windowsOptions' in kwargs: + if windows_options is None and 'windowsOptions' in kwargs: windows_options = kwargs['windowsOptions'] if allow_privilege_escalation is not None: @@ -28604,23 +28856,23 @@ def _configure( windows_options: Optional[pulumi.Input['WindowsSecurityContextOptionsArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowPrivilegeEscalation' in kwargs: + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'procMount' in kwargs: + if proc_mount is None and 'procMount' in kwargs: proc_mount = kwargs['procMount'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsNonRoot' in kwargs: + if run_as_non_root is None and 'runAsNonRoot' in kwargs: run_as_non_root = kwargs['runAsNonRoot'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] - if 'seccompProfile' in kwargs: + if seccomp_profile is None and 'seccompProfile' in kwargs: seccomp_profile = kwargs['seccompProfile'] - if 'windowsOptions' in kwargs: + if windows_options is None and 'windowsOptions' in kwargs: windows_options = kwargs['windowsOptions'] if allow_privilege_escalation is not None: @@ -28805,7 +29057,7 @@ def _configure( path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] if audience is not None: @@ -28873,12 +29125,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: pulumi.Input[str], + path: Optional[pulumi.Input[str]] = None, audience: Optional[pulumi.Input[str]] = None, expiration_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if path is None: + raise TypeError("Missing 'path' argument") + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] _setter("path", path) @@ -28962,11 +29216,11 @@ def _configure( secrets: Optional[pulumi.Input[Sequence[pulumi.Input['ObjectReferenceArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'automountServiceAccountToken' in kwargs: + if automount_service_account_token is None and 'automountServiceAccountToken' in kwargs: automount_service_account_token = kwargs['automountServiceAccountToken'] - if 'imagePullSecrets' in kwargs: + if image_pull_secrets is None and 'imagePullSecrets' in kwargs: image_pull_secrets = kwargs['imagePullSecrets'] if api_version is not None: @@ -29102,11 +29356,11 @@ def _configure( target_port: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] - if 'nodePort' in kwargs: + if node_port is None and 'nodePort' in kwargs: node_port = kwargs['nodePort'] - if 'targetPort' in kwargs: + if target_port is None and 'targetPort' in kwargs: target_port = kwargs['targetPort'] if app_protocol is not None: @@ -29243,7 +29497,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: pulumi.Input[int], + port: Optional[pulumi.Input[int]] = None, app_protocol: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, node_port: Optional[pulumi.Input[int]] = None, @@ -29251,11 +29505,13 @@ def _configure( target_port: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if port is None: + raise TypeError("Missing 'port' argument") + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] - if 'nodePort' in kwargs: + if node_port is None and 'nodePort' in kwargs: node_port = kwargs['nodePort'] - if 'targetPort' in kwargs: + if target_port is None and 'targetPort' in kwargs: target_port = kwargs['targetPort'] _setter("port", port) @@ -29454,41 +29710,41 @@ def _configure( type: Optional[pulumi.Input[Union[str, 'ServiceSpecType']]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allocateLoadBalancerNodePorts' in kwargs: + if allocate_load_balancer_node_ports is None and 'allocateLoadBalancerNodePorts' in kwargs: allocate_load_balancer_node_ports = kwargs['allocateLoadBalancerNodePorts'] - if 'clusterIP' in kwargs: + if cluster_ip is None and 'clusterIP' in kwargs: cluster_ip = kwargs['clusterIP'] - if 'clusterIPs' in kwargs: + if cluster_ips is None and 'clusterIPs' in kwargs: cluster_ips = kwargs['clusterIPs'] - if 'externalIPs' in kwargs: + if external_ips is None and 'externalIPs' in kwargs: external_ips = kwargs['externalIPs'] - if 'externalName' in kwargs: + if external_name is None and 'externalName' in kwargs: external_name = kwargs['externalName'] - if 'externalTrafficPolicy' in kwargs: + if external_traffic_policy is None and 'externalTrafficPolicy' in kwargs: external_traffic_policy = kwargs['externalTrafficPolicy'] - if 'healthCheckNodePort' in kwargs: + if health_check_node_port is None and 'healthCheckNodePort' in kwargs: health_check_node_port = kwargs['healthCheckNodePort'] - if 'internalTrafficPolicy' in kwargs: + if internal_traffic_policy is None and 'internalTrafficPolicy' in kwargs: internal_traffic_policy = kwargs['internalTrafficPolicy'] - if 'ipFamilies' in kwargs: + if ip_families is None and 'ipFamilies' in kwargs: ip_families = kwargs['ipFamilies'] - if 'ipFamily' in kwargs: + if ip_family is None and 'ipFamily' in kwargs: ip_family = kwargs['ipFamily'] - if 'ipFamilyPolicy' in kwargs: + if ip_family_policy is None and 'ipFamilyPolicy' in kwargs: ip_family_policy = kwargs['ipFamilyPolicy'] - if 'loadBalancerClass' in kwargs: + if load_balancer_class is None and 'loadBalancerClass' in kwargs: load_balancer_class = kwargs['loadBalancerClass'] - if 'loadBalancerIP' in kwargs: + if load_balancer_ip is None and 'loadBalancerIP' in kwargs: load_balancer_ip = kwargs['loadBalancerIP'] - if 'loadBalancerSourceRanges' in kwargs: + if load_balancer_source_ranges is None and 'loadBalancerSourceRanges' in kwargs: load_balancer_source_ranges = kwargs['loadBalancerSourceRanges'] - if 'publishNotReadyAddresses' in kwargs: + if publish_not_ready_addresses is None and 'publishNotReadyAddresses' in kwargs: publish_not_ready_addresses = kwargs['publishNotReadyAddresses'] - if 'sessionAffinity' in kwargs: + if session_affinity is None and 'sessionAffinity' in kwargs: session_affinity = kwargs['sessionAffinity'] - if 'sessionAffinityConfig' in kwargs: + if session_affinity_config is None and 'sessionAffinityConfig' in kwargs: session_affinity_config = kwargs['sessionAffinityConfig'] - if 'topologyKeys' in kwargs: + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] if allocate_load_balancer_node_ports is not None: @@ -29893,41 +30149,41 @@ def _configure( type: Optional[pulumi.Input[Union[str, 'ServiceSpecType']]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allocateLoadBalancerNodePorts' in kwargs: + if allocate_load_balancer_node_ports is None and 'allocateLoadBalancerNodePorts' in kwargs: allocate_load_balancer_node_ports = kwargs['allocateLoadBalancerNodePorts'] - if 'clusterIP' in kwargs: + if cluster_ip is None and 'clusterIP' in kwargs: cluster_ip = kwargs['clusterIP'] - if 'clusterIPs' in kwargs: + if cluster_ips is None and 'clusterIPs' in kwargs: cluster_ips = kwargs['clusterIPs'] - if 'externalIPs' in kwargs: + if external_ips is None and 'externalIPs' in kwargs: external_ips = kwargs['externalIPs'] - if 'externalName' in kwargs: + if external_name is None and 'externalName' in kwargs: external_name = kwargs['externalName'] - if 'externalTrafficPolicy' in kwargs: + if external_traffic_policy is None and 'externalTrafficPolicy' in kwargs: external_traffic_policy = kwargs['externalTrafficPolicy'] - if 'healthCheckNodePort' in kwargs: + if health_check_node_port is None and 'healthCheckNodePort' in kwargs: health_check_node_port = kwargs['healthCheckNodePort'] - if 'internalTrafficPolicy' in kwargs: + if internal_traffic_policy is None and 'internalTrafficPolicy' in kwargs: internal_traffic_policy = kwargs['internalTrafficPolicy'] - if 'ipFamilies' in kwargs: + if ip_families is None and 'ipFamilies' in kwargs: ip_families = kwargs['ipFamilies'] - if 'ipFamily' in kwargs: + if ip_family is None and 'ipFamily' in kwargs: ip_family = kwargs['ipFamily'] - if 'ipFamilyPolicy' in kwargs: + if ip_family_policy is None and 'ipFamilyPolicy' in kwargs: ip_family_policy = kwargs['ipFamilyPolicy'] - if 'loadBalancerClass' in kwargs: + if load_balancer_class is None and 'loadBalancerClass' in kwargs: load_balancer_class = kwargs['loadBalancerClass'] - if 'loadBalancerIP' in kwargs: + if load_balancer_ip is None and 'loadBalancerIP' in kwargs: load_balancer_ip = kwargs['loadBalancerIP'] - if 'loadBalancerSourceRanges' in kwargs: + if load_balancer_source_ranges is None and 'loadBalancerSourceRanges' in kwargs: load_balancer_source_ranges = kwargs['loadBalancerSourceRanges'] - if 'publishNotReadyAddresses' in kwargs: + if publish_not_ready_addresses is None and 'publishNotReadyAddresses' in kwargs: publish_not_ready_addresses = kwargs['publishNotReadyAddresses'] - if 'sessionAffinity' in kwargs: + if session_affinity is None and 'sessionAffinity' in kwargs: session_affinity = kwargs['sessionAffinity'] - if 'sessionAffinityConfig' in kwargs: + if session_affinity_config is None and 'sessionAffinityConfig' in kwargs: session_affinity_config = kwargs['sessionAffinityConfig'] - if 'topologyKeys' in kwargs: + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] if allocate_load_balancer_node_ports is not None: @@ -30252,7 +30508,7 @@ def _configure( load_balancer: Optional[pulumi.Input['LoadBalancerStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if conditions is not None: @@ -30344,7 +30600,7 @@ def _configure( status: Optional[pulumi.Input['ServiceStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -30437,7 +30693,7 @@ def _configure( client_ip: Optional[pulumi.Input['ClientIPConfigPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientIP' in kwargs: + if client_ip is None and 'clientIP' in kwargs: client_ip = kwargs['clientIP'] if client_ip is not None: @@ -30474,7 +30730,7 @@ def _configure( client_ip: Optional[pulumi.Input['ClientIPConfigArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientIP' in kwargs: + if client_ip is None and 'clientIP' in kwargs: client_ip = kwargs['clientIP'] if client_ip is not None: @@ -30527,15 +30783,15 @@ def _configure( volume_namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] - if 'volumeNamespace' in kwargs: + if volume_namespace is None and 'volumeNamespace' in kwargs: volume_namespace = kwargs['volumeNamespace'] if fs_type is not None: @@ -30644,15 +30900,15 @@ def _configure( volume_namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] - if 'volumeNamespace' in kwargs: + if volume_namespace is None and 'volumeNamespace' in kwargs: volume_namespace = kwargs['volumeNamespace'] if fs_type is not None: @@ -30761,15 +31017,15 @@ def _configure( volume_namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] - if 'volumeNamespace' in kwargs: + if volume_namespace is None and 'volumeNamespace' in kwargs: volume_namespace = kwargs['volumeNamespace'] if fs_type is not None: @@ -30878,15 +31134,15 @@ def _configure( volume_namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] - if 'volumeNamespace' in kwargs: + if volume_namespace is None and 'volumeNamespace' in kwargs: volume_namespace = kwargs['volumeNamespace'] if fs_type is not None: @@ -31032,10 +31288,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - value: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if value is None: + raise TypeError("Missing 'value' argument") _setter("name", name) _setter("value", value) @@ -31136,10 +31396,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: pulumi.Input[Union[int, str]], + port: Optional[pulumi.Input[Union[int, str]]] = None, host: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if port is None: + raise TypeError("Missing 'port' argument") _setter("port", port) if host is not None: @@ -31200,7 +31462,7 @@ def _configure( value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'timeAdded' in kwargs: + if time_added is None and 'timeAdded' in kwargs: time_added = kwargs['timeAdded'] if effect is not None: @@ -31285,13 +31547,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - effect: pulumi.Input[str], - key: pulumi.Input[str], + effect: Optional[pulumi.Input[str]] = None, + key: Optional[pulumi.Input[str]] = None, time_added: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'timeAdded' in kwargs: + if effect is None: + raise TypeError("Missing 'effect' argument") + if key is None: + raise TypeError("Missing 'key' argument") + if time_added is None and 'timeAdded' in kwargs: time_added = kwargs['timeAdded'] _setter("effect", effect) @@ -31384,7 +31650,7 @@ def _configure( value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'tolerationSeconds' in kwargs: + if toleration_seconds is None and 'tolerationSeconds' in kwargs: toleration_seconds = kwargs['tolerationSeconds'] if effect is not None: @@ -31493,7 +31759,7 @@ def _configure( value: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'tolerationSeconds' in kwargs: + if toleration_seconds is None and 'tolerationSeconds' in kwargs: toleration_seconds = kwargs['tolerationSeconds'] if effect is not None: @@ -31639,10 +31905,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - values: pulumi.Input[Sequence[pulumi.Input[str]]], + key: Optional[pulumi.Input[str]] = None, + values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if values is None: + raise TypeError("Missing 'values' argument") _setter("key", key) _setter("values", values) @@ -31690,7 +31960,7 @@ def _configure( match_label_expressions: Optional[pulumi.Input[Sequence[pulumi.Input['TopologySelectorLabelRequirementPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchLabelExpressions' in kwargs: + if match_label_expressions is None and 'matchLabelExpressions' in kwargs: match_label_expressions = kwargs['matchLabelExpressions'] if match_label_expressions is not None: @@ -31727,7 +31997,7 @@ def _configure( match_label_expressions: Optional[pulumi.Input[Sequence[pulumi.Input['TopologySelectorLabelRequirementArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchLabelExpressions' in kwargs: + if match_label_expressions is None and 'matchLabelExpressions' in kwargs: match_label_expressions = kwargs['matchLabelExpressions'] if match_label_expressions is not None: @@ -31805,21 +32075,21 @@ def _configure( when_unsatisfiable: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'labelSelector' in kwargs: + if label_selector is None and 'labelSelector' in kwargs: label_selector = kwargs['labelSelector'] - if 'matchLabelKeys' in kwargs: + if match_label_keys is None and 'matchLabelKeys' in kwargs: match_label_keys = kwargs['matchLabelKeys'] - if 'maxSkew' in kwargs: + if max_skew is None and 'maxSkew' in kwargs: max_skew = kwargs['maxSkew'] - if 'minDomains' in kwargs: + if min_domains is None and 'minDomains' in kwargs: min_domains = kwargs['minDomains'] - if 'nodeAffinityPolicy' in kwargs: + if node_affinity_policy is None and 'nodeAffinityPolicy' in kwargs: node_affinity_policy = kwargs['nodeAffinityPolicy'] - if 'nodeTaintsPolicy' in kwargs: + if node_taints_policy is None and 'nodeTaintsPolicy' in kwargs: node_taints_policy = kwargs['nodeTaintsPolicy'] - if 'topologyKey' in kwargs: + if topology_key is None and 'topologyKey' in kwargs: topology_key = kwargs['topologyKey'] - if 'whenUnsatisfiable' in kwargs: + if when_unsatisfiable is None and 'whenUnsatisfiable' in kwargs: when_unsatisfiable = kwargs['whenUnsatisfiable'] if label_selector is not None: @@ -31998,9 +32268,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_skew: pulumi.Input[int], - topology_key: pulumi.Input[str], - when_unsatisfiable: pulumi.Input[str], + max_skew: Optional[pulumi.Input[int]] = None, + topology_key: Optional[pulumi.Input[str]] = None, + when_unsatisfiable: Optional[pulumi.Input[str]] = None, label_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, match_label_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, min_domains: Optional[pulumi.Input[int]] = None, @@ -32008,21 +32278,27 @@ def _configure( node_taints_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSkew' in kwargs: + if max_skew is None and 'maxSkew' in kwargs: max_skew = kwargs['maxSkew'] - if 'topologyKey' in kwargs: + if max_skew is None: + raise TypeError("Missing 'max_skew' argument") + if topology_key is None and 'topologyKey' in kwargs: topology_key = kwargs['topologyKey'] - if 'whenUnsatisfiable' in kwargs: + if topology_key is None: + raise TypeError("Missing 'topology_key' argument") + if when_unsatisfiable is None and 'whenUnsatisfiable' in kwargs: when_unsatisfiable = kwargs['whenUnsatisfiable'] - if 'labelSelector' in kwargs: + if when_unsatisfiable is None: + raise TypeError("Missing 'when_unsatisfiable' argument") + if label_selector is None and 'labelSelector' in kwargs: label_selector = kwargs['labelSelector'] - if 'matchLabelKeys' in kwargs: + if match_label_keys is None and 'matchLabelKeys' in kwargs: match_label_keys = kwargs['matchLabelKeys'] - if 'minDomains' in kwargs: + if min_domains is None and 'minDomains' in kwargs: min_domains = kwargs['minDomains'] - if 'nodeAffinityPolicy' in kwargs: + if node_affinity_policy is None and 'nodeAffinityPolicy' in kwargs: node_affinity_policy = kwargs['nodeAffinityPolicy'] - if 'nodeTaintsPolicy' in kwargs: + if node_taints_policy is None and 'nodeTaintsPolicy' in kwargs: node_taints_policy = kwargs['nodeTaintsPolicy'] _setter("max_skew", max_skew) @@ -32175,7 +32451,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -32243,12 +32519,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -32322,7 +32602,7 @@ def _configure( namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -32406,13 +32686,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -32493,7 +32777,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'devicePath' in kwargs: + if device_path is None and 'devicePath' in kwargs: device_path = kwargs['devicePath'] if device_path is not None: @@ -32544,12 +32828,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - device_path: pulumi.Input[str], - name: pulumi.Input[str], + device_path: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'devicePath' in kwargs: + if device_path is None and 'devicePath' in kwargs: device_path = kwargs['devicePath'] + if device_path is None: + raise TypeError("Missing 'device_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("device_path", device_path) _setter("name", name) @@ -32617,15 +32905,15 @@ def _configure( sub_path_expr: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'mountPath' in kwargs: + if mount_path is None and 'mountPath' in kwargs: mount_path = kwargs['mountPath'] - if 'mountPropagation' in kwargs: + if mount_propagation is None and 'mountPropagation' in kwargs: mount_propagation = kwargs['mountPropagation'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'subPath' in kwargs: + if sub_path is None and 'subPath' in kwargs: sub_path = kwargs['subPath'] - if 'subPathExpr' in kwargs: + if sub_path_expr is None and 'subPathExpr' in kwargs: sub_path_expr = kwargs['subPathExpr'] if mount_path is not None: @@ -32744,23 +33032,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - mount_path: pulumi.Input[str], - name: pulumi.Input[str], + mount_path: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, mount_propagation: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None, sub_path: Optional[pulumi.Input[str]] = None, sub_path_expr: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'mountPath' in kwargs: + if mount_path is None and 'mountPath' in kwargs: mount_path = kwargs['mountPath'] - if 'mountPropagation' in kwargs: + if mount_path is None: + raise TypeError("Missing 'mount_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if mount_propagation is None and 'mountPropagation' in kwargs: mount_propagation = kwargs['mountPropagation'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'subPath' in kwargs: + if sub_path is None and 'subPath' in kwargs: sub_path = kwargs['subPath'] - if 'subPathExpr' in kwargs: + if sub_path_expr is None and 'subPathExpr' in kwargs: sub_path_expr = kwargs['subPathExpr'] _setter("mount_path", mount_path) @@ -33064,35 +33356,35 @@ def _configure( vsphere_volume: Optional[pulumi.Input['VsphereVirtualDiskVolumeSourcePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'awsElasticBlockStore' in kwargs: + if aws_elastic_block_store is None and 'awsElasticBlockStore' in kwargs: aws_elastic_block_store = kwargs['awsElasticBlockStore'] - if 'azureDisk' in kwargs: + if azure_disk is None and 'azureDisk' in kwargs: azure_disk = kwargs['azureDisk'] - if 'azureFile' in kwargs: + if azure_file is None and 'azureFile' in kwargs: azure_file = kwargs['azureFile'] - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] - if 'downwardAPI' in kwargs: + if downward_api is None and 'downwardAPI' in kwargs: downward_api = kwargs['downwardAPI'] - if 'emptyDir' in kwargs: + if empty_dir is None and 'emptyDir' in kwargs: empty_dir = kwargs['emptyDir'] - if 'flexVolume' in kwargs: + if flex_volume is None and 'flexVolume' in kwargs: flex_volume = kwargs['flexVolume'] - if 'gcePersistentDisk' in kwargs: + if gce_persistent_disk is None and 'gcePersistentDisk' in kwargs: gce_persistent_disk = kwargs['gcePersistentDisk'] - if 'gitRepo' in kwargs: + if git_repo is None and 'gitRepo' in kwargs: git_repo = kwargs['gitRepo'] - if 'hostPath' in kwargs: + if host_path is None and 'hostPath' in kwargs: host_path = kwargs['hostPath'] - if 'persistentVolumeClaim' in kwargs: + if persistent_volume_claim is None and 'persistentVolumeClaim' in kwargs: persistent_volume_claim = kwargs['persistentVolumeClaim'] - if 'photonPersistentDisk' in kwargs: + if photon_persistent_disk is None and 'photonPersistentDisk' in kwargs: photon_persistent_disk = kwargs['photonPersistentDisk'] - if 'portworxVolume' in kwargs: + if portworx_volume is None and 'portworxVolume' in kwargs: portworx_volume = kwargs['portworxVolume'] - if 'scaleIO' in kwargs: + if scale_io is None and 'scaleIO' in kwargs: scale_io = kwargs['scaleIO'] - if 'vsphereVolume' in kwargs: + if vsphere_volume is None and 'vsphereVolume' in kwargs: vsphere_volume = kwargs['vsphereVolume'] if aws_elastic_block_store is not None: @@ -33560,11 +33852,11 @@ def _configure( service_account_token: Optional[pulumi.Input['ServiceAccountTokenProjectionPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] - if 'downwardAPI' in kwargs: + if downward_api is None and 'downwardAPI' in kwargs: downward_api = kwargs['downwardAPI'] - if 'serviceAccountToken' in kwargs: + if service_account_token is None and 'serviceAccountToken' in kwargs: service_account_token = kwargs['serviceAccountToken'] if config_map is not None: @@ -33655,11 +33947,11 @@ def _configure( service_account_token: Optional[pulumi.Input['ServiceAccountTokenProjectionArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] - if 'downwardAPI' in kwargs: + if downward_api is None and 'downwardAPI' in kwargs: downward_api = kwargs['downwardAPI'] - if 'serviceAccountToken' in kwargs: + if service_account_token is None and 'serviceAccountToken' in kwargs: service_account_token = kwargs['serviceAccountToken'] if config_map is not None: @@ -33835,7 +34127,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, aws_elastic_block_store: Optional[pulumi.Input['AWSElasticBlockStoreVolumeSourceArgs']] = None, azure_disk: Optional[pulumi.Input['AzureDiskVolumeSourceArgs']] = None, azure_file: Optional[pulumi.Input['AzureFileVolumeSourceArgs']] = None, @@ -33867,35 +34159,37 @@ def _configure( vsphere_volume: Optional[pulumi.Input['VsphereVirtualDiskVolumeSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'awsElasticBlockStore' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if aws_elastic_block_store is None and 'awsElasticBlockStore' in kwargs: aws_elastic_block_store = kwargs['awsElasticBlockStore'] - if 'azureDisk' in kwargs: + if azure_disk is None and 'azureDisk' in kwargs: azure_disk = kwargs['azureDisk'] - if 'azureFile' in kwargs: + if azure_file is None and 'azureFile' in kwargs: azure_file = kwargs['azureFile'] - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] - if 'downwardAPI' in kwargs: + if downward_api is None and 'downwardAPI' in kwargs: downward_api = kwargs['downwardAPI'] - if 'emptyDir' in kwargs: + if empty_dir is None and 'emptyDir' in kwargs: empty_dir = kwargs['emptyDir'] - if 'flexVolume' in kwargs: + if flex_volume is None and 'flexVolume' in kwargs: flex_volume = kwargs['flexVolume'] - if 'gcePersistentDisk' in kwargs: + if gce_persistent_disk is None and 'gcePersistentDisk' in kwargs: gce_persistent_disk = kwargs['gcePersistentDisk'] - if 'gitRepo' in kwargs: + if git_repo is None and 'gitRepo' in kwargs: git_repo = kwargs['gitRepo'] - if 'hostPath' in kwargs: + if host_path is None and 'hostPath' in kwargs: host_path = kwargs['hostPath'] - if 'persistentVolumeClaim' in kwargs: + if persistent_volume_claim is None and 'persistentVolumeClaim' in kwargs: persistent_volume_claim = kwargs['persistentVolumeClaim'] - if 'photonPersistentDisk' in kwargs: + if photon_persistent_disk is None and 'photonPersistentDisk' in kwargs: photon_persistent_disk = kwargs['photonPersistentDisk'] - if 'portworxVolume' in kwargs: + if portworx_volume is None and 'portworxVolume' in kwargs: portworx_volume = kwargs['portworxVolume'] - if 'scaleIO' in kwargs: + if scale_io is None and 'scaleIO' in kwargs: scale_io = kwargs['scaleIO'] - if 'vsphereVolume' in kwargs: + if vsphere_volume is None and 'vsphereVolume' in kwargs: vsphere_volume = kwargs['vsphereVolume'] _setter("name", name) @@ -34362,13 +34656,13 @@ def _configure( volume_path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'storagePolicyID' in kwargs: + if storage_policy_id is None and 'storagePolicyID' in kwargs: storage_policy_id = kwargs['storagePolicyID'] - if 'storagePolicyName' in kwargs: + if storage_policy_name is None and 'storagePolicyName' in kwargs: storage_policy_name = kwargs['storagePolicyName'] - if 'volumePath' in kwargs: + if volume_path is None and 'volumePath' in kwargs: volume_path = kwargs['volumePath'] if fs_type is not None: @@ -34453,19 +34747,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_path: pulumi.Input[str], + volume_path: Optional[pulumi.Input[str]] = None, fs_type: Optional[pulumi.Input[str]] = None, storage_policy_id: Optional[pulumi.Input[str]] = None, storage_policy_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumePath' in kwargs: + if volume_path is None and 'volumePath' in kwargs: volume_path = kwargs['volumePath'] - if 'fsType' in kwargs: + if volume_path is None: + raise TypeError("Missing 'volume_path' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'storagePolicyID' in kwargs: + if storage_policy_id is None and 'storagePolicyID' in kwargs: storage_policy_id = kwargs['storagePolicyID'] - if 'storagePolicyName' in kwargs: + if storage_policy_name is None and 'storagePolicyName' in kwargs: storage_policy_name = kwargs['storagePolicyName'] _setter("volume_path", volume_path) @@ -34547,7 +34843,7 @@ def _configure( weight: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podAffinityTerm' in kwargs: + if pod_affinity_term is None and 'podAffinityTerm' in kwargs: pod_affinity_term = kwargs['podAffinityTerm'] if pod_affinity_term is not None: @@ -34598,12 +34894,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pod_affinity_term: pulumi.Input['PodAffinityTermArgs'], - weight: pulumi.Input[int], + pod_affinity_term: Optional[pulumi.Input['PodAffinityTermArgs']] = None, + weight: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podAffinityTerm' in kwargs: + if pod_affinity_term is None and 'podAffinityTerm' in kwargs: pod_affinity_term = kwargs['podAffinityTerm'] + if pod_affinity_term is None: + raise TypeError("Missing 'pod_affinity_term' argument") + if weight is None: + raise TypeError("Missing 'weight' argument") _setter("pod_affinity_term", pod_affinity_term) _setter("weight", weight) @@ -34663,13 +34963,13 @@ def _configure( run_as_user_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'gmsaCredentialSpec' in kwargs: + if gmsa_credential_spec is None and 'gmsaCredentialSpec' in kwargs: gmsa_credential_spec = kwargs['gmsaCredentialSpec'] - if 'gmsaCredentialSpecName' in kwargs: + if gmsa_credential_spec_name is None and 'gmsaCredentialSpecName' in kwargs: gmsa_credential_spec_name = kwargs['gmsaCredentialSpecName'] - if 'hostProcess' in kwargs: + if host_process is None and 'hostProcess' in kwargs: host_process = kwargs['hostProcess'] - if 'runAsUserName' in kwargs: + if run_as_user_name is None and 'runAsUserName' in kwargs: run_as_user_name = kwargs['runAsUserName'] if gmsa_credential_spec is not None: @@ -34760,13 +35060,13 @@ def _configure( run_as_user_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'gmsaCredentialSpec' in kwargs: + if gmsa_credential_spec is None and 'gmsaCredentialSpec' in kwargs: gmsa_credential_spec = kwargs['gmsaCredentialSpec'] - if 'gmsaCredentialSpecName' in kwargs: + if gmsa_credential_spec_name is None and 'gmsaCredentialSpecName' in kwargs: gmsa_credential_spec_name = kwargs['gmsaCredentialSpecName'] - if 'hostProcess' in kwargs: + if host_process is None and 'hostProcess' in kwargs: host_process = kwargs['hostProcess'] - if 'runAsUserName' in kwargs: + if run_as_user_name is None and 'runAsUserName' in kwargs: run_as_user_name = kwargs['runAsUserName'] if gmsa_credential_spec is not None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/outputs.py b/sdk/python/pulumi_kubernetes/core/v1/outputs.py index bdadaca1e3..7e866adad7 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/core/v1/outputs.py @@ -411,17 +411,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_id: str, + volume_id: Optional[str] = None, fs_type: Optional[str] = None, partition: Optional[int] = None, read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] - if 'fsType' in kwargs: + if volume_id is None: + raise TypeError("Missing 'volume_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("volume_id", volume_id) @@ -523,11 +525,11 @@ def _configure( volume_id: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] if fs_type is not None: @@ -622,11 +624,11 @@ def _configure( pod_anti_affinity: Optional['outputs.PodAntiAffinity'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeAffinity' in kwargs: + if node_affinity is None and 'nodeAffinity' in kwargs: node_affinity = kwargs['nodeAffinity'] - if 'podAffinity' in kwargs: + if pod_affinity is None and 'podAffinity' in kwargs: pod_affinity = kwargs['podAffinity'] - if 'podAntiAffinity' in kwargs: + if pod_anti_affinity is None and 'podAntiAffinity' in kwargs: pod_anti_affinity = kwargs['podAntiAffinity'] if node_affinity is not None: @@ -711,11 +713,11 @@ def _configure( pod_anti_affinity: Optional['outputs.PodAntiAffinityPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeAffinity' in kwargs: + if node_affinity is None and 'nodeAffinity' in kwargs: node_affinity = kwargs['nodeAffinity'] - if 'podAffinity' in kwargs: + if pod_affinity is None and 'podAffinity' in kwargs: pod_affinity = kwargs['podAffinity'] - if 'podAntiAffinity' in kwargs: + if pod_anti_affinity is None and 'podAntiAffinity' in kwargs: pod_anti_affinity = kwargs['podAntiAffinity'] if node_affinity is not None: @@ -788,12 +790,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - device_path: str, - name: str, + device_path: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'devicePath' in kwargs: + if device_path is None and 'devicePath' in kwargs: device_path = kwargs['devicePath'] + if device_path is None: + raise TypeError("Missing 'device_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("device_path", device_path) _setter("name", name) @@ -857,7 +863,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'devicePath' in kwargs: + if device_path is None and 'devicePath' in kwargs: device_path = kwargs['devicePath'] if device_path is not None: @@ -940,23 +946,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - disk_name: str, - disk_uri: str, + disk_name: Optional[str] = None, + disk_uri: Optional[str] = None, caching_mode: Optional[str] = None, fs_type: Optional[str] = None, kind: Optional[str] = None, read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'diskName' in kwargs: + if disk_name is None and 'diskName' in kwargs: disk_name = kwargs['diskName'] - if 'diskURI' in kwargs: + if disk_name is None: + raise TypeError("Missing 'disk_name' argument") + if disk_uri is None and 'diskURI' in kwargs: disk_uri = kwargs['diskURI'] - if 'cachingMode' in kwargs: + if disk_uri is None: + raise TypeError("Missing 'disk_uri' argument") + if caching_mode is None and 'cachingMode' in kwargs: caching_mode = kwargs['cachingMode'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("disk_name", disk_name) @@ -1085,15 +1095,15 @@ def _configure( read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'cachingMode' in kwargs: + if caching_mode is None and 'cachingMode' in kwargs: caching_mode = kwargs['cachingMode'] - if 'diskName' in kwargs: + if disk_name is None and 'diskName' in kwargs: disk_name = kwargs['diskName'] - if 'diskURI' in kwargs: + if disk_uri is None and 'diskURI' in kwargs: disk_uri = kwargs['diskURI'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if caching_mode is not None: @@ -1208,19 +1218,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - secret_name: str, - share_name: str, + secret_name: Optional[str] = None, + share_name: Optional[str] = None, read_only: Optional[bool] = None, secret_namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] - if 'shareName' in kwargs: + if secret_name is None: + raise TypeError("Missing 'secret_name' argument") + if share_name is None and 'shareName' in kwargs: share_name = kwargs['shareName'] - if 'readOnly' in kwargs: + if share_name is None: + raise TypeError("Missing 'share_name' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretNamespace' in kwargs: + if secret_namespace is None and 'secretNamespace' in kwargs: secret_namespace = kwargs['secretNamespace'] _setter("secret_name", secret_name) @@ -1319,13 +1333,13 @@ def _configure( share_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] - if 'secretNamespace' in kwargs: + if secret_namespace is None and 'secretNamespace' in kwargs: secret_namespace = kwargs['secretNamespace'] - if 'shareName' in kwargs: + if share_name is None and 'shareName' in kwargs: share_name = kwargs['shareName'] if read_only is not None: @@ -1415,16 +1429,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - secret_name: str, - share_name: str, + secret_name: Optional[str] = None, + share_name: Optional[str] = None, read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] - if 'shareName' in kwargs: + if secret_name is None: + raise TypeError("Missing 'secret_name' argument") + if share_name is None and 'shareName' in kwargs: share_name = kwargs['shareName'] - if 'readOnly' in kwargs: + if share_name is None: + raise TypeError("Missing 'share_name' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("secret_name", secret_name) @@ -1507,11 +1525,11 @@ def _configure( share_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] - if 'shareName' in kwargs: + if share_name is None and 'shareName' in kwargs: share_name = kwargs['shareName'] if read_only is not None: @@ -1624,8 +1642,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: str, - volume_handle: str, + driver: Optional[str] = None, + volume_handle: Optional[str] = None, controller_expand_secret_ref: Optional['outputs.SecretReference'] = None, controller_publish_secret_ref: Optional['outputs.SecretReference'] = None, fs_type: Optional[str] = None, @@ -1636,23 +1654,27 @@ def _configure( volume_attributes: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeHandle' in kwargs: + if driver is None: + raise TypeError("Missing 'driver' argument") + if volume_handle is None and 'volumeHandle' in kwargs: volume_handle = kwargs['volumeHandle'] - if 'controllerExpandSecretRef' in kwargs: + if volume_handle is None: + raise TypeError("Missing 'volume_handle' argument") + if controller_expand_secret_ref is None and 'controllerExpandSecretRef' in kwargs: controller_expand_secret_ref = kwargs['controllerExpandSecretRef'] - if 'controllerPublishSecretRef' in kwargs: + if controller_publish_secret_ref is None and 'controllerPublishSecretRef' in kwargs: controller_publish_secret_ref = kwargs['controllerPublishSecretRef'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'nodeExpandSecretRef' in kwargs: + if node_expand_secret_ref is None and 'nodeExpandSecretRef' in kwargs: node_expand_secret_ref = kwargs['nodeExpandSecretRef'] - if 'nodePublishSecretRef' in kwargs: + if node_publish_secret_ref is None and 'nodePublishSecretRef' in kwargs: node_publish_secret_ref = kwargs['nodePublishSecretRef'] - if 'nodeStageSecretRef' in kwargs: + if node_stage_secret_ref is None and 'nodeStageSecretRef' in kwargs: node_stage_secret_ref = kwargs['nodeStageSecretRef'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeAttributes' in kwargs: + if volume_attributes is None and 'volumeAttributes' in kwargs: volume_attributes = kwargs['volumeAttributes'] _setter("driver", driver) @@ -1845,23 +1867,23 @@ def _configure( volume_handle: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'controllerExpandSecretRef' in kwargs: + if controller_expand_secret_ref is None and 'controllerExpandSecretRef' in kwargs: controller_expand_secret_ref = kwargs['controllerExpandSecretRef'] - if 'controllerPublishSecretRef' in kwargs: + if controller_publish_secret_ref is None and 'controllerPublishSecretRef' in kwargs: controller_publish_secret_ref = kwargs['controllerPublishSecretRef'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'nodeExpandSecretRef' in kwargs: + if node_expand_secret_ref is None and 'nodeExpandSecretRef' in kwargs: node_expand_secret_ref = kwargs['nodeExpandSecretRef'] - if 'nodePublishSecretRef' in kwargs: + if node_publish_secret_ref is None and 'nodePublishSecretRef' in kwargs: node_publish_secret_ref = kwargs['nodePublishSecretRef'] - if 'nodeStageSecretRef' in kwargs: + if node_stage_secret_ref is None and 'nodeStageSecretRef' in kwargs: node_stage_secret_ref = kwargs['nodeStageSecretRef'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeAttributes' in kwargs: + if volume_attributes is None and 'volumeAttributes' in kwargs: volume_attributes = kwargs['volumeAttributes'] - if 'volumeHandle' in kwargs: + if volume_handle is None and 'volumeHandle' in kwargs: volume_handle = kwargs['volumeHandle'] if controller_expand_secret_ref is not None: @@ -2019,20 +2041,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: str, + driver: Optional[str] = None, fs_type: Optional[str] = None, node_publish_secret_ref: Optional['outputs.LocalObjectReference'] = None, read_only: Optional[bool] = None, volume_attributes: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if driver is None: + raise TypeError("Missing 'driver' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'nodePublishSecretRef' in kwargs: + if node_publish_secret_ref is None and 'nodePublishSecretRef' in kwargs: node_publish_secret_ref = kwargs['nodePublishSecretRef'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeAttributes' in kwargs: + if volume_attributes is None and 'volumeAttributes' in kwargs: volume_attributes = kwargs['volumeAttributes'] _setter("driver", driver) @@ -2146,13 +2170,13 @@ def _configure( volume_attributes: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'nodePublishSecretRef' in kwargs: + if node_publish_secret_ref is None and 'nodePublishSecretRef' in kwargs: node_publish_secret_ref = kwargs['nodePublishSecretRef'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeAttributes' in kwargs: + if volume_attributes is None and 'volumeAttributes' in kwargs: volume_attributes = kwargs['volumeAttributes'] if driver is not None: @@ -2357,7 +2381,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - monitors: Sequence[str], + monitors: Optional[Sequence[str]] = None, path: Optional[str] = None, read_only: Optional[bool] = None, secret_file: Optional[str] = None, @@ -2365,11 +2389,13 @@ def _configure( user: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if monitors is None: + raise TypeError("Missing 'monitors' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretFile' in kwargs: + if secret_file is None and 'secretFile' in kwargs: secret_file = kwargs['secretFile'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("monitors", monitors) @@ -2495,11 +2521,11 @@ def _configure( user: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretFile' in kwargs: + if secret_file is None and 'secretFile' in kwargs: secret_file = kwargs['secretFile'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if monitors is not None: @@ -2618,7 +2644,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - monitors: Sequence[str], + monitors: Optional[Sequence[str]] = None, path: Optional[str] = None, read_only: Optional[bool] = None, secret_file: Optional[str] = None, @@ -2626,11 +2652,13 @@ def _configure( user: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if monitors is None: + raise TypeError("Missing 'monitors' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretFile' in kwargs: + if secret_file is None and 'secretFile' in kwargs: secret_file = kwargs['secretFile'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("monitors", monitors) @@ -2756,11 +2784,11 @@ def _configure( user: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretFile' in kwargs: + if secret_file is None and 'secretFile' in kwargs: secret_file = kwargs['secretFile'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if monitors is not None: @@ -2875,19 +2903,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_id: str, + volume_id: Optional[str] = None, fs_type: Optional[str] = None, read_only: Optional[bool] = None, secret_ref: Optional['outputs.SecretReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] - if 'fsType' in kwargs: + if volume_id is None: + raise TypeError("Missing 'volume_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("volume_id", volume_id) @@ -2987,13 +3017,13 @@ def _configure( volume_id: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] if fs_type is not None: @@ -3088,19 +3118,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_id: str, + volume_id: Optional[str] = None, fs_type: Optional[str] = None, read_only: Optional[bool] = None, secret_ref: Optional['outputs.LocalObjectReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] - if 'fsType' in kwargs: + if volume_id is None: + raise TypeError("Missing 'volume_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("volume_id", volume_id) @@ -3200,13 +3232,13 @@ def _configure( volume_id: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] if fs_type is not None: @@ -3303,9 +3335,9 @@ def _configure( resource_claim_template_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaimName' in kwargs: + if resource_claim_name is None and 'resourceClaimName' in kwargs: resource_claim_name = kwargs['resourceClaimName'] - if 'resourceClaimTemplateName' in kwargs: + if resource_claim_template_name is None and 'resourceClaimTemplateName' in kwargs: resource_claim_template_name = kwargs['resourceClaimTemplateName'] if resource_claim_name is not None: @@ -3386,9 +3418,9 @@ def _configure( resource_claim_template_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaimName' in kwargs: + if resource_claim_name is None and 'resourceClaimName' in kwargs: resource_claim_name = kwargs['resourceClaimName'] - if 'resourceClaimTemplateName' in kwargs: + if resource_claim_template_name is None and 'resourceClaimTemplateName' in kwargs: resource_claim_template_name = kwargs['resourceClaimTemplateName'] if resource_claim_name is not None: @@ -3455,7 +3487,7 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if timeout_seconds is not None: @@ -3508,7 +3540,7 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if timeout_seconds is not None: @@ -3583,9 +3615,9 @@ def _configure( metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'binaryData' in kwargs: + if binary_data is None and 'binaryData' in kwargs: binary_data = kwargs['binaryData'] if api_version is not None: @@ -3778,11 +3810,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: str, + key: Optional[str] = None, name: Optional[str] = None, optional: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") _setter("key", key) if name is not None: @@ -3926,16 +3960,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kubelet_config_key: str, - name: str, - namespace: str, + kubelet_config_key: Optional[str] = None, + name: Optional[str] = None, + namespace: Optional[str] = None, resource_version: Optional[str] = None, uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'kubeletConfigKey' in kwargs: + if kubelet_config_key is None and 'kubeletConfigKey' in kwargs: kubelet_config_key = kwargs['kubeletConfigKey'] - if 'resourceVersion' in kwargs: + if kubelet_config_key is None: + raise TypeError("Missing 'kubelet_config_key' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] _setter("kubelet_config_key", kubelet_config_key) @@ -4043,9 +4083,9 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'kubeletConfigKey' in kwargs: + if kubelet_config_key is None and 'kubeletConfigKey' in kwargs: kubelet_config_key = kwargs['kubeletConfigKey'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] if kubelet_config_key is not None: @@ -4286,7 +4326,7 @@ def _configure( optional: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -4385,7 +4425,7 @@ def _configure( optional: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -4560,7 +4600,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, args: Optional[Sequence[str]] = None, command: Optional[Sequence[str]] = None, env: Optional[Sequence['outputs.EnvVar']] = None, @@ -4586,33 +4626,35 @@ def _configure( working_dir: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'imagePullPolicy' in kwargs: + if image_pull_policy is None and 'imagePullPolicy' in kwargs: image_pull_policy = kwargs['imagePullPolicy'] - if 'livenessProbe' in kwargs: + if liveness_probe is None and 'livenessProbe' in kwargs: liveness_probe = kwargs['livenessProbe'] - if 'readinessProbe' in kwargs: + if readiness_probe is None and 'readinessProbe' in kwargs: readiness_probe = kwargs['readinessProbe'] - if 'resizePolicy' in kwargs: + if resize_policy is None and 'resizePolicy' in kwargs: resize_policy = kwargs['resizePolicy'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'startupProbe' in kwargs: + if startup_probe is None and 'startupProbe' in kwargs: startup_probe = kwargs['startupProbe'] - if 'stdinOnce' in kwargs: + if stdin_once is None and 'stdinOnce' in kwargs: stdin_once = kwargs['stdinOnce'] - if 'terminationMessagePath' in kwargs: + if termination_message_path is None and 'terminationMessagePath' in kwargs: termination_message_path = kwargs['terminationMessagePath'] - if 'terminationMessagePolicy' in kwargs: + if termination_message_policy is None and 'terminationMessagePolicy' in kwargs: termination_message_policy = kwargs['terminationMessagePolicy'] - if 'volumeDevices' in kwargs: + if volume_devices is None and 'volumeDevices' in kwargs: volume_devices = kwargs['volumeDevices'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] - if 'workingDir' in kwargs: + if working_dir is None and 'workingDir' in kwargs: working_dir = kwargs['workingDir'] _setter("name", name) @@ -4894,11 +4936,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - names: Sequence[str], + names: Optional[Sequence[str]] = None, size_bytes: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'sizeBytes' in kwargs: + if names is None: + raise TypeError("Missing 'names' argument") + if size_bytes is None and 'sizeBytes' in kwargs: size_bytes = kwargs['sizeBytes'] _setter("names", names) @@ -4964,7 +5008,7 @@ def _configure( size_bytes: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'sizeBytes' in kwargs: + if size_bytes is None and 'sizeBytes' in kwargs: size_bytes = kwargs['sizeBytes'] if names is not None: @@ -5145,33 +5189,33 @@ def _configure( working_dir: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'imagePullPolicy' in kwargs: + if image_pull_policy is None and 'imagePullPolicy' in kwargs: image_pull_policy = kwargs['imagePullPolicy'] - if 'livenessProbe' in kwargs: + if liveness_probe is None and 'livenessProbe' in kwargs: liveness_probe = kwargs['livenessProbe'] - if 'readinessProbe' in kwargs: + if readiness_probe is None and 'readinessProbe' in kwargs: readiness_probe = kwargs['readinessProbe'] - if 'resizePolicy' in kwargs: + if resize_policy is None and 'resizePolicy' in kwargs: resize_policy = kwargs['resizePolicy'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'startupProbe' in kwargs: + if startup_probe is None and 'startupProbe' in kwargs: startup_probe = kwargs['startupProbe'] - if 'stdinOnce' in kwargs: + if stdin_once is None and 'stdinOnce' in kwargs: stdin_once = kwargs['stdinOnce'] - if 'terminationMessagePath' in kwargs: + if termination_message_path is None and 'terminationMessagePath' in kwargs: termination_message_path = kwargs['terminationMessagePath'] - if 'terminationMessagePolicy' in kwargs: + if termination_message_policy is None and 'terminationMessagePolicy' in kwargs: termination_message_policy = kwargs['terminationMessagePolicy'] - if 'volumeDevices' in kwargs: + if volume_devices is None and 'volumeDevices' in kwargs: volume_devices = kwargs['volumeDevices'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] - if 'workingDir' in kwargs: + if working_dir is None and 'workingDir' in kwargs: working_dir = kwargs['workingDir'] if args is not None: @@ -5467,18 +5511,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - container_port: int, + container_port: Optional[int] = None, host_ip: Optional[str] = None, host_port: Optional[int] = None, name: Optional[str] = None, protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerPort' in kwargs: + if container_port is None and 'containerPort' in kwargs: container_port = kwargs['containerPort'] - if 'hostIP' in kwargs: + if container_port is None: + raise TypeError("Missing 'container_port' argument") + if host_ip is None and 'hostIP' in kwargs: host_ip = kwargs['hostIP'] - if 'hostPort' in kwargs: + if host_port is None and 'hostPort' in kwargs: host_port = kwargs['hostPort'] _setter("container_port", container_port) @@ -5590,11 +5636,11 @@ def _configure( protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerPort' in kwargs: + if container_port is None and 'containerPort' in kwargs: container_port = kwargs['containerPort'] - if 'hostIP' in kwargs: + if host_ip is None and 'hostIP' in kwargs: host_ip = kwargs['hostIP'] - if 'hostPort' in kwargs: + if host_port is None and 'hostPort' in kwargs: host_port = kwargs['hostPort'] if container_port is not None: @@ -5689,14 +5735,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - resource_name: str, - restart_policy: str, + resource_name: Optional[str] = None, + restart_policy: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceName' in kwargs: + if resource_name is None and 'resourceName' in kwargs: resource_name = kwargs['resourceName'] - if 'restartPolicy' in kwargs: + if resource_name is None: + raise TypeError("Missing 'resource_name' argument") + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] + if restart_policy is None: + raise TypeError("Missing 'restart_policy' argument") _setter("resource_name", resource_name) _setter("restart_policy", restart_policy) @@ -5762,9 +5812,9 @@ def _configure( restart_policy: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceName' in kwargs: + if resource_name is None and 'resourceName' in kwargs: resource_name = kwargs['resourceName'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] if resource_name is not None: @@ -5951,7 +6001,7 @@ def _configure( started_at: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'startedAt' in kwargs: + if started_at is None and 'startedAt' in kwargs: started_at = kwargs['startedAt'] if started_at is not None: @@ -6004,7 +6054,7 @@ def _configure( started_at: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'startedAt' in kwargs: + if started_at is None and 'startedAt' in kwargs: started_at = kwargs['startedAt'] if started_at is not None: @@ -6078,7 +6128,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - exit_code: int, + exit_code: Optional[int] = None, container_id: Optional[str] = None, finished_at: Optional[str] = None, message: Optional[str] = None, @@ -6087,13 +6137,15 @@ def _configure( started_at: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exitCode' in kwargs: + if exit_code is None and 'exitCode' in kwargs: exit_code = kwargs['exitCode'] - if 'containerID' in kwargs: + if exit_code is None: + raise TypeError("Missing 'exit_code' argument") + if container_id is None and 'containerID' in kwargs: container_id = kwargs['containerID'] - if 'finishedAt' in kwargs: + if finished_at is None and 'finishedAt' in kwargs: finished_at = kwargs['finishedAt'] - if 'startedAt' in kwargs: + if started_at is None and 'startedAt' in kwargs: started_at = kwargs['startedAt'] _setter("exit_code", exit_code) @@ -6235,13 +6287,13 @@ def _configure( started_at: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerID' in kwargs: + if container_id is None and 'containerID' in kwargs: container_id = kwargs['containerID'] - if 'exitCode' in kwargs: + if exit_code is None and 'exitCode' in kwargs: exit_code = kwargs['exitCode'] - if 'finishedAt' in kwargs: + if finished_at is None and 'finishedAt' in kwargs: finished_at = kwargs['finishedAt'] - if 'startedAt' in kwargs: + if started_at is None and 'startedAt' in kwargs: started_at = kwargs['startedAt'] if container_id is not None: @@ -6487,11 +6539,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - image: str, - image_id: str, - name: str, - ready: bool, - restart_count: int, + image: Optional[str] = None, + image_id: Optional[str] = None, + name: Optional[str] = None, + ready: Optional[bool] = None, + restart_count: Optional[int] = None, allocated_resources: Optional[Mapping[str, str]] = None, container_id: Optional[str] = None, last_state: Optional['outputs.ContainerState'] = None, @@ -6500,15 +6552,25 @@ def _configure( state: Optional['outputs.ContainerState'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'imageID' in kwargs: + if image is None: + raise TypeError("Missing 'image' argument") + if image_id is None and 'imageID' in kwargs: image_id = kwargs['imageID'] - if 'restartCount' in kwargs: + if image_id is None: + raise TypeError("Missing 'image_id' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if ready is None: + raise TypeError("Missing 'ready' argument") + if restart_count is None and 'restartCount' in kwargs: restart_count = kwargs['restartCount'] - if 'allocatedResources' in kwargs: + if restart_count is None: + raise TypeError("Missing 'restart_count' argument") + if allocated_resources is None and 'allocatedResources' in kwargs: allocated_resources = kwargs['allocatedResources'] - if 'containerID' in kwargs: + if container_id is None and 'containerID' in kwargs: container_id = kwargs['containerID'] - if 'lastState' in kwargs: + if last_state is None and 'lastState' in kwargs: last_state = kwargs['lastState'] _setter("image", image) @@ -6708,15 +6770,15 @@ def _configure( state: Optional['outputs.ContainerStatePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allocatedResources' in kwargs: + if allocated_resources is None and 'allocatedResources' in kwargs: allocated_resources = kwargs['allocatedResources'] - if 'containerID' in kwargs: + if container_id is None and 'containerID' in kwargs: container_id = kwargs['containerID'] - if 'imageID' in kwargs: + if image_id is None and 'imageID' in kwargs: image_id = kwargs['imageID'] - if 'lastState' in kwargs: + if last_state is None and 'lastState' in kwargs: last_state = kwargs['lastState'] - if 'restartCount' in kwargs: + if restart_count is None and 'restartCount' in kwargs: restart_count = kwargs['restartCount'] if allocated_resources is not None: @@ -6868,11 +6930,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: int, + port: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'Port' in kwargs: + if port is None and 'Port' in kwargs: port = kwargs['Port'] + if port is None: + raise TypeError("Missing 'port' argument") _setter("port", port) @@ -6923,7 +6987,7 @@ def _configure( port: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'Port' in kwargs: + if port is None and 'Port' in kwargs: port = kwargs['Port'] if port is not None: @@ -7052,15 +7116,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: str, + path: Optional[str] = None, field_ref: Optional['outputs.ObjectFieldSelector'] = None, mode: Optional[int] = None, resource_field_ref: Optional['outputs.ResourceFieldSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if path is None: + raise TypeError("Missing 'path' argument") + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] - if 'resourceFieldRef' in kwargs: + if resource_field_ref is None and 'resourceFieldRef' in kwargs: resource_field_ref = kwargs['resourceFieldRef'] _setter("path", path) @@ -7156,9 +7222,9 @@ def _configure( resource_field_ref: Optional['outputs.ResourceFieldSelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] - if 'resourceFieldRef' in kwargs: + if resource_field_ref is None and 'resourceFieldRef' in kwargs: resource_field_ref = kwargs['resourceFieldRef'] if field_ref is not None: @@ -7245,7 +7311,7 @@ def _configure( items: Optional[Sequence['outputs.DownwardAPIVolumeFile']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -7312,7 +7378,7 @@ def _configure( items: Optional[Sequence['outputs.DownwardAPIVolumeFilePatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -7379,7 +7445,7 @@ def _configure( size_limit: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'sizeLimit' in kwargs: + if size_limit is None and 'sizeLimit' in kwargs: size_limit = kwargs['sizeLimit'] if medium is not None: @@ -7446,7 +7512,7 @@ def _configure( size_limit: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'sizeLimit' in kwargs: + if size_limit is None and 'sizeLimit' in kwargs: size_limit = kwargs['sizeLimit'] if medium is not None: @@ -7517,15 +7583,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - ip: str, + ip: Optional[str] = None, hostname: Optional[str] = None, node_name: Optional[str] = None, target_ref: Optional['outputs.ObjectReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if ip is None: + raise TypeError("Missing 'ip' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] _setter("ip", ip) @@ -7621,9 +7689,9 @@ def _configure( target_ref: Optional['outputs.ObjectReferencePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] if hostname is not None: @@ -7721,13 +7789,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: int, + port: Optional[int] = None, app_protocol: Optional[str] = None, name: Optional[str] = None, protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if port is None: + raise TypeError("Missing 'port' argument") + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] _setter("port", port) @@ -7839,7 +7909,7 @@ def _configure( protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -7959,7 +8029,7 @@ def _configure( ports: Optional[Sequence['outputs.EndpointPort']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'notReadyAddresses' in kwargs: + if not_ready_addresses is None and 'notReadyAddresses' in kwargs: not_ready_addresses = kwargs['notReadyAddresses'] if addresses is not None: @@ -8060,7 +8130,7 @@ def _configure( ports: Optional[Sequence['outputs.EndpointPortPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'notReadyAddresses' in kwargs: + if not_ready_addresses is None and 'notReadyAddresses' in kwargs: not_ready_addresses = kwargs['notReadyAddresses'] if addresses is not None: @@ -8169,7 +8239,7 @@ def _configure( subsets: Optional[Sequence['outputs.EndpointSubset']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -8262,9 +8332,9 @@ def _configure( secret_ref: Optional['outputs.SecretEnvSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMapRef' in kwargs: + if config_map_ref is None and 'configMapRef' in kwargs: config_map_ref = kwargs['configMapRef'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if config_map_ref is not None: @@ -8347,9 +8417,9 @@ def _configure( secret_ref: Optional['outputs.SecretEnvSourcePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMapRef' in kwargs: + if config_map_ref is None and 'configMapRef' in kwargs: config_map_ref = kwargs['configMapRef'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if config_map_ref is not None: @@ -8425,12 +8495,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, value: Optional[str] = None, value_from: Optional['outputs.EnvVarSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueFrom' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if value_from is None and 'valueFrom' in kwargs: value_from = kwargs['valueFrom'] _setter("name", name) @@ -8510,7 +8582,7 @@ def _configure( value_from: Optional['outputs.EnvVarSourcePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'valueFrom' in kwargs: + if value_from is None and 'valueFrom' in kwargs: value_from = kwargs['valueFrom'] if name is not None: @@ -8601,13 +8673,13 @@ def _configure( secret_key_ref: Optional['outputs.SecretKeySelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMapKeyRef' in kwargs: + if config_map_key_ref is None and 'configMapKeyRef' in kwargs: config_map_key_ref = kwargs['configMapKeyRef'] - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] - if 'resourceFieldRef' in kwargs: + if resource_field_ref is None and 'resourceFieldRef' in kwargs: resource_field_ref = kwargs['resourceFieldRef'] - if 'secretKeyRef' in kwargs: + if secret_key_ref is None and 'secretKeyRef' in kwargs: secret_key_ref = kwargs['secretKeyRef'] if config_map_key_ref is not None: @@ -8708,13 +8780,13 @@ def _configure( secret_key_ref: Optional['outputs.SecretKeySelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMapKeyRef' in kwargs: + if config_map_key_ref is None and 'configMapKeyRef' in kwargs: config_map_key_ref = kwargs['configMapKeyRef'] - if 'fieldRef' in kwargs: + if field_ref is None and 'fieldRef' in kwargs: field_ref = kwargs['fieldRef'] - if 'resourceFieldRef' in kwargs: + if resource_field_ref is None and 'resourceFieldRef' in kwargs: resource_field_ref = kwargs['resourceFieldRef'] - if 'secretKeyRef' in kwargs: + if secret_key_ref is None and 'secretKeyRef' in kwargs: secret_key_ref = kwargs['secretKeyRef'] if config_map_key_ref is not None: @@ -8900,7 +8972,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, args: Optional[Sequence[str]] = None, command: Optional[Sequence[str]] = None, env: Optional[Sequence['outputs.EnvVar']] = None, @@ -8927,35 +8999,37 @@ def _configure( working_dir: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'imagePullPolicy' in kwargs: + if image_pull_policy is None and 'imagePullPolicy' in kwargs: image_pull_policy = kwargs['imagePullPolicy'] - if 'livenessProbe' in kwargs: + if liveness_probe is None and 'livenessProbe' in kwargs: liveness_probe = kwargs['livenessProbe'] - if 'readinessProbe' in kwargs: + if readiness_probe is None and 'readinessProbe' in kwargs: readiness_probe = kwargs['readinessProbe'] - if 'resizePolicy' in kwargs: + if resize_policy is None and 'resizePolicy' in kwargs: resize_policy = kwargs['resizePolicy'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'startupProbe' in kwargs: + if startup_probe is None and 'startupProbe' in kwargs: startup_probe = kwargs['startupProbe'] - if 'stdinOnce' in kwargs: + if stdin_once is None and 'stdinOnce' in kwargs: stdin_once = kwargs['stdinOnce'] - if 'targetContainerName' in kwargs: + if target_container_name is None and 'targetContainerName' in kwargs: target_container_name = kwargs['targetContainerName'] - if 'terminationMessagePath' in kwargs: + if termination_message_path is None and 'terminationMessagePath' in kwargs: termination_message_path = kwargs['terminationMessagePath'] - if 'terminationMessagePolicy' in kwargs: + if termination_message_policy is None and 'terminationMessagePolicy' in kwargs: termination_message_policy = kwargs['terminationMessagePolicy'] - if 'volumeDevices' in kwargs: + if volume_devices is None and 'volumeDevices' in kwargs: volume_devices = kwargs['volumeDevices'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] - if 'workingDir' in kwargs: + if working_dir is None and 'workingDir' in kwargs: working_dir = kwargs['workingDir'] _setter("name", name) @@ -9379,35 +9453,35 @@ def _configure( working_dir: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'imagePullPolicy' in kwargs: + if image_pull_policy is None and 'imagePullPolicy' in kwargs: image_pull_policy = kwargs['imagePullPolicy'] - if 'livenessProbe' in kwargs: + if liveness_probe is None and 'livenessProbe' in kwargs: liveness_probe = kwargs['livenessProbe'] - if 'readinessProbe' in kwargs: + if readiness_probe is None and 'readinessProbe' in kwargs: readiness_probe = kwargs['readinessProbe'] - if 'resizePolicy' in kwargs: + if resize_policy is None and 'resizePolicy' in kwargs: resize_policy = kwargs['resizePolicy'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'startupProbe' in kwargs: + if startup_probe is None and 'startupProbe' in kwargs: startup_probe = kwargs['startupProbe'] - if 'stdinOnce' in kwargs: + if stdin_once is None and 'stdinOnce' in kwargs: stdin_once = kwargs['stdinOnce'] - if 'targetContainerName' in kwargs: + if target_container_name is None and 'targetContainerName' in kwargs: target_container_name = kwargs['targetContainerName'] - if 'terminationMessagePath' in kwargs: + if termination_message_path is None and 'terminationMessagePath' in kwargs: termination_message_path = kwargs['terminationMessagePath'] - if 'terminationMessagePolicy' in kwargs: + if termination_message_policy is None and 'terminationMessagePolicy' in kwargs: termination_message_policy = kwargs['terminationMessagePolicy'] - if 'volumeDevices' in kwargs: + if volume_devices is None and 'volumeDevices' in kwargs: volume_devices = kwargs['volumeDevices'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] - if 'workingDir' in kwargs: + if working_dir is None and 'workingDir' in kwargs: working_dir = kwargs['workingDir'] if args is not None: @@ -9714,9 +9788,9 @@ def _configure( volume_claim_template: Optional['outputs.PersistentVolumeClaimTemplate'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeClaimTemplate' in kwargs: + if volume_claim_template is None and 'volumeClaimTemplate' in kwargs: volume_claim_template = kwargs['volumeClaimTemplate'] if read_only is not None: @@ -9797,9 +9871,9 @@ def _configure( volume_claim_template: Optional['outputs.PersistentVolumeClaimTemplatePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeClaimTemplate' in kwargs: + if volume_claim_template is None and 'volumeClaimTemplate' in kwargs: volume_claim_template = kwargs['volumeClaimTemplate'] if read_only is not None: @@ -9925,8 +9999,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - involved_object: 'outputs.ObjectReference', - metadata: '_meta.v1.outputs.ObjectMeta', + involved_object: Optional['outputs.ObjectReference'] = None, + metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, action: Optional[str] = None, api_version: Optional[str] = None, count: Optional[int] = None, @@ -9944,19 +10018,23 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'involvedObject' in kwargs: + if involved_object is None and 'involvedObject' in kwargs: involved_object = kwargs['involvedObject'] - if 'apiVersion' in kwargs: + if involved_object is None: + raise TypeError("Missing 'involved_object' argument") + if metadata is None: + raise TypeError("Missing 'metadata' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'firstTimestamp' in kwargs: + if first_timestamp is None and 'firstTimestamp' in kwargs: first_timestamp = kwargs['firstTimestamp'] - if 'lastTimestamp' in kwargs: + if last_timestamp is None and 'lastTimestamp' in kwargs: last_timestamp = kwargs['lastTimestamp'] - if 'reportingComponent' in kwargs: + if reporting_component is None and 'reportingComponent' in kwargs: reporting_component = kwargs['reportingComponent'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] _setter("involved_object", involved_object) @@ -10175,7 +10253,7 @@ def _configure( state: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] if count is not None: @@ -10256,7 +10334,7 @@ def _configure( state: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] if count is not None: @@ -10513,11 +10591,11 @@ def _configure( wwids: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'targetWWNs' in kwargs: + if target_wwns is None and 'targetWWNs' in kwargs: target_wwns = kwargs['targetWWNs'] if fs_type is not None: @@ -10630,11 +10708,11 @@ def _configure( wwids: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'targetWWNs' in kwargs: + if target_wwns is None and 'targetWWNs' in kwargs: target_wwns = kwargs['targetWWNs'] if fs_type is not None: @@ -10740,18 +10818,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: str, + driver: Optional[str] = None, fs_type: Optional[str] = None, options: Optional[Mapping[str, str]] = None, read_only: Optional[bool] = None, secret_ref: Optional['outputs.SecretReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if driver is None: + raise TypeError("Missing 'driver' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("driver", driver) @@ -10863,11 +10943,11 @@ def _configure( secret_ref: Optional['outputs.SecretReferencePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if driver is not None: @@ -10973,18 +11053,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: str, + driver: Optional[str] = None, fs_type: Optional[str] = None, options: Optional[Mapping[str, str]] = None, read_only: Optional[bool] = None, secret_ref: Optional['outputs.LocalObjectReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if driver is None: + raise TypeError("Missing 'driver' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("driver", driver) @@ -11096,11 +11178,11 @@ def _configure( secret_ref: Optional['outputs.LocalObjectReferencePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if driver is not None: @@ -11199,9 +11281,9 @@ def _configure( dataset_uuid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'datasetName' in kwargs: + if dataset_name is None and 'datasetName' in kwargs: dataset_name = kwargs['datasetName'] - if 'datasetUUID' in kwargs: + if dataset_uuid is None and 'datasetUUID' in kwargs: dataset_uuid = kwargs['datasetUUID'] if dataset_name is not None: @@ -11270,9 +11352,9 @@ def _configure( dataset_uuid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'datasetName' in kwargs: + if dataset_name is None and 'datasetName' in kwargs: dataset_name = kwargs['datasetName'] - if 'datasetUUID' in kwargs: + if dataset_uuid is None and 'datasetUUID' in kwargs: dataset_uuid = kwargs['datasetUUID'] if dataset_name is not None: @@ -11349,17 +11431,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pd_name: str, + pd_name: Optional[str] = None, fs_type: Optional[str] = None, partition: Optional[int] = None, read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pdName' in kwargs: + if pd_name is None and 'pdName' in kwargs: pd_name = kwargs['pdName'] - if 'fsType' in kwargs: + if pd_name is None: + raise TypeError("Missing 'pd_name' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("pd_name", pd_name) @@ -11461,11 +11545,11 @@ def _configure( read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'pdName' in kwargs: + if pd_name is None and 'pdName' in kwargs: pd_name = kwargs['pdName'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if fs_type is not None: @@ -11529,10 +11613,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: int, + port: Optional[int] = None, service: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if port is None: + raise TypeError("Missing 'port' argument") _setter("port", port) if service is not None: @@ -11633,11 +11719,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - repository: str, + repository: Optional[str] = None, directory: Optional[str] = None, revision: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if repository is None: + raise TypeError("Missing 'repository' argument") _setter("repository", repository) if directory is not None: @@ -11782,15 +11870,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - endpoints: str, - path: str, + endpoints: Optional[str] = None, + path: Optional[str] = None, endpoints_namespace: Optional[str] = None, read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'endpointsNamespace' in kwargs: + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if endpoints_namespace is None and 'endpointsNamespace' in kwargs: endpoints_namespace = kwargs['endpointsNamespace'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("endpoints", endpoints) @@ -11885,9 +11977,9 @@ def _configure( read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'endpointsNamespace' in kwargs: + if endpoints_namespace is None and 'endpointsNamespace' in kwargs: endpoints_namespace = kwargs['endpointsNamespace'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if endpoints is not None: @@ -11973,12 +12065,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - endpoints: str, - path: str, + endpoints: Optional[str] = None, + path: Optional[str] = None, read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("endpoints", endpoints) @@ -12057,7 +12153,7 @@ def _configure( read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if endpoints is not None: @@ -12139,14 +12235,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: Any, + port: Optional[Any] = None, host: Optional[str] = None, http_headers: Optional[Sequence['outputs.HTTPHeader']] = None, path: Optional[str] = None, scheme: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'httpHeaders' in kwargs: + if port is None: + raise TypeError("Missing 'port' argument") + if http_headers is None and 'httpHeaders' in kwargs: http_headers = kwargs['httpHeaders'] _setter("port", port) @@ -12254,7 +12352,7 @@ def _configure( scheme: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'httpHeaders' in kwargs: + if http_headers is None and 'httpHeaders' in kwargs: http_headers = kwargs['httpHeaders'] if host is not None: @@ -12330,10 +12428,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - value: str, + name: Optional[str] = None, + value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if value is None: + raise TypeError("Missing 'value' argument") _setter("name", name) _setter("value", value) @@ -12588,10 +12690,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: str, + path: Optional[str] = None, type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if path is None: + raise TypeError("Missing 'path' argument") _setter("path", path) if type is not None: @@ -12741,9 +12845,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - iqn: str, - lun: int, - target_portal: str, + iqn: Optional[str] = None, + lun: Optional[int] = None, + target_portal: Optional[str] = None, chap_auth_discovery: Optional[bool] = None, chap_auth_session: Optional[bool] = None, fs_type: Optional[str] = None, @@ -12754,21 +12858,27 @@ def _configure( secret_ref: Optional['outputs.SecretReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetPortal' in kwargs: + if iqn is None: + raise TypeError("Missing 'iqn' argument") + if lun is None: + raise TypeError("Missing 'lun' argument") + if target_portal is None and 'targetPortal' in kwargs: target_portal = kwargs['targetPortal'] - if 'chapAuthDiscovery' in kwargs: + if target_portal is None: + raise TypeError("Missing 'target_portal' argument") + if chap_auth_discovery is None and 'chapAuthDiscovery' in kwargs: chap_auth_discovery = kwargs['chapAuthDiscovery'] - if 'chapAuthSession' in kwargs: + if chap_auth_session is None and 'chapAuthSession' in kwargs: chap_auth_session = kwargs['chapAuthSession'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'initiatorName' in kwargs: + if initiator_name is None and 'initiatorName' in kwargs: initiator_name = kwargs['initiatorName'] - if 'iscsiInterface' in kwargs: + if iscsi_interface is None and 'iscsiInterface' in kwargs: iscsi_interface = kwargs['iscsiInterface'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("iqn", iqn) @@ -12972,21 +13082,21 @@ def _configure( target_portal: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'chapAuthDiscovery' in kwargs: + if chap_auth_discovery is None and 'chapAuthDiscovery' in kwargs: chap_auth_discovery = kwargs['chapAuthDiscovery'] - if 'chapAuthSession' in kwargs: + if chap_auth_session is None and 'chapAuthSession' in kwargs: chap_auth_session = kwargs['chapAuthSession'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'initiatorName' in kwargs: + if initiator_name is None and 'initiatorName' in kwargs: initiator_name = kwargs['initiatorName'] - if 'iscsiInterface' in kwargs: + if iscsi_interface is None and 'iscsiInterface' in kwargs: iscsi_interface = kwargs['iscsiInterface'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'targetPortal' in kwargs: + if target_portal is None and 'targetPortal' in kwargs: target_portal = kwargs['targetPortal'] if chap_auth_discovery is not None: @@ -13180,9 +13290,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - iqn: str, - lun: int, - target_portal: str, + iqn: Optional[str] = None, + lun: Optional[int] = None, + target_portal: Optional[str] = None, chap_auth_discovery: Optional[bool] = None, chap_auth_session: Optional[bool] = None, fs_type: Optional[str] = None, @@ -13193,21 +13303,27 @@ def _configure( secret_ref: Optional['outputs.LocalObjectReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'targetPortal' in kwargs: + if iqn is None: + raise TypeError("Missing 'iqn' argument") + if lun is None: + raise TypeError("Missing 'lun' argument") + if target_portal is None and 'targetPortal' in kwargs: target_portal = kwargs['targetPortal'] - if 'chapAuthDiscovery' in kwargs: + if target_portal is None: + raise TypeError("Missing 'target_portal' argument") + if chap_auth_discovery is None and 'chapAuthDiscovery' in kwargs: chap_auth_discovery = kwargs['chapAuthDiscovery'] - if 'chapAuthSession' in kwargs: + if chap_auth_session is None and 'chapAuthSession' in kwargs: chap_auth_session = kwargs['chapAuthSession'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'initiatorName' in kwargs: + if initiator_name is None and 'initiatorName' in kwargs: initiator_name = kwargs['initiatorName'] - if 'iscsiInterface' in kwargs: + if iscsi_interface is None and 'iscsiInterface' in kwargs: iscsi_interface = kwargs['iscsiInterface'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("iqn", iqn) @@ -13411,21 +13527,21 @@ def _configure( target_portal: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'chapAuthDiscovery' in kwargs: + if chap_auth_discovery is None and 'chapAuthDiscovery' in kwargs: chap_auth_discovery = kwargs['chapAuthDiscovery'] - if 'chapAuthSession' in kwargs: + if chap_auth_session is None and 'chapAuthSession' in kwargs: chap_auth_session = kwargs['chapAuthSession'] - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'initiatorName' in kwargs: + if initiator_name is None and 'initiatorName' in kwargs: initiator_name = kwargs['initiatorName'] - if 'iscsiInterface' in kwargs: + if iscsi_interface is None and 'iscsiInterface' in kwargs: iscsi_interface = kwargs['iscsiInterface'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'targetPortal' in kwargs: + if target_portal is None and 'targetPortal' in kwargs: target_portal = kwargs['targetPortal'] if chap_auth_discovery is not None: @@ -13564,11 +13680,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: str, - path: str, + key: Optional[str] = None, + path: Optional[str] = None, mode: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if path is None: + raise TypeError("Missing 'path' argument") _setter("key", key) _setter("path", path) @@ -13706,9 +13826,9 @@ def _configure( pre_stop: Optional['outputs.LifecycleHandler'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'postStart' in kwargs: + if post_start is None and 'postStart' in kwargs: post_start = kwargs['postStart'] - if 'preStop' in kwargs: + if pre_stop is None and 'preStop' in kwargs: pre_stop = kwargs['preStop'] if post_start is not None: @@ -13783,11 +13903,11 @@ def _configure( tcp_socket: Optional['outputs.TCPSocketAction'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exec' in kwargs: + if exec_ is None and 'exec' in kwargs: exec_ = kwargs['exec'] - if 'httpGet' in kwargs: + if http_get is None and 'httpGet' in kwargs: http_get = kwargs['httpGet'] - if 'tcpSocket' in kwargs: + if tcp_socket is None and 'tcpSocket' in kwargs: tcp_socket = kwargs['tcpSocket'] if exec_ is not None: @@ -13872,11 +13992,11 @@ def _configure( tcp_socket: Optional['outputs.TCPSocketActionPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exec' in kwargs: + if exec_ is None and 'exec' in kwargs: exec_ = kwargs['exec'] - if 'httpGet' in kwargs: + if http_get is None and 'httpGet' in kwargs: http_get = kwargs['httpGet'] - if 'tcpSocket' in kwargs: + if tcp_socket is None and 'tcpSocket' in kwargs: tcp_socket = kwargs['tcpSocket'] if exec_ is not None: @@ -13955,9 +14075,9 @@ def _configure( pre_stop: Optional['outputs.LifecycleHandlerPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'postStart' in kwargs: + if post_start is None and 'postStart' in kwargs: post_start = kwargs['postStart'] - if 'preStop' in kwargs: + if pre_stop is None and 'preStop' in kwargs: pre_stop = kwargs['preStop'] if post_start is not None: @@ -14032,7 +14152,7 @@ def _configure( spec: Optional['outputs.LimitRangeSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -14129,7 +14249,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, default: Optional[Mapping[str, str]] = None, default_request: Optional[Mapping[str, str]] = None, max: Optional[Mapping[str, str]] = None, @@ -14137,9 +14257,11 @@ def _configure( min: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultRequest' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if default_request is None and 'defaultRequest' in kwargs: default_request = kwargs['defaultRequest'] - if 'maxLimitRequestRatio' in kwargs: + if max_limit_request_ratio is None and 'maxLimitRequestRatio' in kwargs: max_limit_request_ratio = kwargs['maxLimitRequestRatio'] _setter("type", type) @@ -14263,9 +14385,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultRequest' in kwargs: + if default_request is None and 'defaultRequest' in kwargs: default_request = kwargs['defaultRequest'] - if 'maxLimitRequestRatio' in kwargs: + if max_limit_request_ratio is None and 'maxLimitRequestRatio' in kwargs: max_limit_request_ratio = kwargs['maxLimitRequestRatio'] if default is not None: @@ -14348,9 +14470,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - limits: Sequence['outputs.LimitRangeItem'], + limits: Optional[Sequence['outputs.LimitRangeItem']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if limits is None: + raise TypeError("Missing 'limits' argument") _setter("limits", limits) @@ -14695,11 +14819,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: str, + path: Optional[str] = None, fs_type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if path is None: + raise TypeError("Missing 'path' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] _setter("path", path) @@ -14765,7 +14891,7 @@ def _configure( path: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] if fs_type is not None: @@ -14831,12 +14957,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: str, - server: str, + path: Optional[str] = None, + server: Optional[str] = None, read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if path is None: + raise TypeError("Missing 'path' argument") + if server is None: + raise TypeError("Missing 'server' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("path", path) @@ -14915,7 +15045,7 @@ def _configure( server: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path is not None: @@ -15004,7 +15134,7 @@ def _configure( status: Optional['outputs.NamespaceStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -15103,14 +15233,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -15205,7 +15339,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -15469,7 +15603,7 @@ def _configure( status: Optional['outputs.NodeStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -15545,10 +15679,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - address: str, - type: str, + address: Optional[str] = None, + type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if address is None: + raise TypeError("Missing 'address' argument") + if type is None: + raise TypeError("Missing 'type' argument") _setter("address", address) _setter("type", type) @@ -15662,9 +15800,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional['outputs.NodeSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -15733,9 +15871,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional['outputs.NodeSelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -15812,17 +15950,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_heartbeat_time: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastHeartbeatTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_heartbeat_time is None and 'lastHeartbeatTime' in kwargs: last_heartbeat_time = kwargs['lastHeartbeatTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -15945,9 +16087,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastHeartbeatTime' in kwargs: + if last_heartbeat_time is None and 'lastHeartbeatTime' in kwargs: last_heartbeat_time = kwargs['lastHeartbeatTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_heartbeat_time is not None: @@ -16050,7 +16192,7 @@ def _configure( config_map: Optional['outputs.ConfigMapNodeConfigSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] if config_map is not None: @@ -16103,7 +16245,7 @@ def _configure( config_map: Optional['outputs.ConfigMapNodeConfigSourcePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] if config_map is not None: @@ -16168,7 +16310,7 @@ def _configure( last_known_good: Optional['outputs.NodeConfigSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastKnownGood' in kwargs: + if last_known_good is None and 'lastKnownGood' in kwargs: last_known_good = kwargs['lastKnownGood'] if active is not None: @@ -16263,7 +16405,7 @@ def _configure( last_known_good: Optional['outputs.NodeConfigSourcePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastKnownGood' in kwargs: + if last_known_good is None and 'lastKnownGood' in kwargs: last_known_good = kwargs['lastKnownGood'] if active is not None: @@ -16346,7 +16488,7 @@ def _configure( kubelet_endpoint: Optional['outputs.DaemonEndpoint'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'kubeletEndpoint' in kwargs: + if kubelet_endpoint is None and 'kubeletEndpoint' in kwargs: kubelet_endpoint = kwargs['kubeletEndpoint'] if kubelet_endpoint is not None: @@ -16399,7 +16541,7 @@ def _configure( kubelet_endpoint: Optional['outputs.DaemonEndpointPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'kubeletEndpoint' in kwargs: + if kubelet_endpoint is None and 'kubeletEndpoint' in kwargs: kubelet_endpoint = kwargs['kubeletEndpoint'] if kubelet_endpoint is not None: @@ -16449,11 +16591,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - node_selector_terms: Sequence['outputs.NodeSelectorTerm'], + node_selector_terms: Optional[Sequence['outputs.NodeSelectorTerm']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelectorTerms' in kwargs: + if node_selector_terms is None and 'nodeSelectorTerms' in kwargs: node_selector_terms = kwargs['nodeSelectorTerms'] + if node_selector_terms is None: + raise TypeError("Missing 'node_selector_terms' argument") _setter("node_selector_terms", node_selector_terms) @@ -16504,7 +16648,7 @@ def _configure( node_selector_terms: Optional[Sequence['outputs.NodeSelectorTermPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelectorTerms' in kwargs: + if node_selector_terms is None and 'nodeSelectorTerms' in kwargs: node_selector_terms = kwargs['nodeSelectorTerms'] if node_selector_terms is not None: @@ -16543,11 +16687,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: str, - operator: str, + key: Optional[str] = None, + operator: Optional[str] = None, values: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if operator is None: + raise TypeError("Missing 'operator' argument") _setter("key", key) _setter("operator", operator) @@ -16685,9 +16833,9 @@ def _configure( match_fields: Optional[Sequence['outputs.NodeSelectorRequirement']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] - if 'matchFields' in kwargs: + if match_fields is None and 'matchFields' in kwargs: match_fields = kwargs['matchFields'] if match_expressions is not None: @@ -16756,9 +16904,9 @@ def _configure( match_fields: Optional[Sequence['outputs.NodeSelectorRequirementPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] - if 'matchFields' in kwargs: + if match_fields is None and 'matchFields' in kwargs: match_fields = kwargs['matchFields'] if match_expressions is not None: @@ -16853,15 +17001,15 @@ def _configure( unschedulable: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configSource' in kwargs: + if config_source is None and 'configSource' in kwargs: config_source = kwargs['configSource'] - if 'externalID' in kwargs: + if external_id is None and 'externalID' in kwargs: external_id = kwargs['externalID'] - if 'podCIDR' in kwargs: + if pod_cidr is None and 'podCIDR' in kwargs: pod_cidr = kwargs['podCIDR'] - if 'podCIDRs' in kwargs: + if pod_cidrs is None and 'podCIDRs' in kwargs: pod_cidrs = kwargs['podCIDRs'] - if 'providerID' in kwargs: + if provider_id is None and 'providerID' in kwargs: provider_id = kwargs['providerID'] if config_source is not None: @@ -17006,15 +17154,15 @@ def _configure( unschedulable: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configSource' in kwargs: + if config_source is None and 'configSource' in kwargs: config_source = kwargs['configSource'] - if 'externalID' in kwargs: + if external_id is None and 'externalID' in kwargs: external_id = kwargs['externalID'] - if 'podCIDR' in kwargs: + if pod_cidr is None and 'podCIDR' in kwargs: pod_cidr = kwargs['podCIDR'] - if 'podCIDRs' in kwargs: + if pod_cidrs is None and 'podCIDRs' in kwargs: pod_cidrs = kwargs['podCIDRs'] - if 'providerID' in kwargs: + if provider_id is None and 'providerID' in kwargs: provider_id = kwargs['providerID'] if config_source is not None: @@ -17173,13 +17321,13 @@ def _configure( volumes_in_use: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'daemonEndpoints' in kwargs: + if daemon_endpoints is None and 'daemonEndpoints' in kwargs: daemon_endpoints = kwargs['daemonEndpoints'] - if 'nodeInfo' in kwargs: + if node_info is None and 'nodeInfo' in kwargs: node_info = kwargs['nodeInfo'] - if 'volumesAttached' in kwargs: + if volumes_attached is None and 'volumesAttached' in kwargs: volumes_attached = kwargs['volumesAttached'] - if 'volumesInUse' in kwargs: + if volumes_in_use is None and 'volumesInUse' in kwargs: volumes_in_use = kwargs['volumesInUse'] if addresses is not None: @@ -17378,13 +17526,13 @@ def _configure( volumes_in_use: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'daemonEndpoints' in kwargs: + if daemon_endpoints is None and 'daemonEndpoints' in kwargs: daemon_endpoints = kwargs['daemonEndpoints'] - if 'nodeInfo' in kwargs: + if node_info is None and 'nodeInfo' in kwargs: node_info = kwargs['nodeInfo'] - if 'volumesAttached' in kwargs: + if volumes_attached is None and 'volumesAttached' in kwargs: volumes_attached = kwargs['volumesAttached'] - if 'volumesInUse' in kwargs: + if volumes_in_use is None and 'volumesInUse' in kwargs: volumes_in_use = kwargs['volumesInUse'] if addresses is not None: @@ -17577,36 +17725,56 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - architecture: str, - boot_id: str, - container_runtime_version: str, - kernel_version: str, - kube_proxy_version: str, - kubelet_version: str, - machine_id: str, - operating_system: str, - os_image: str, - system_uuid: str, + architecture: Optional[str] = None, + boot_id: Optional[str] = None, + container_runtime_version: Optional[str] = None, + kernel_version: Optional[str] = None, + kube_proxy_version: Optional[str] = None, + kubelet_version: Optional[str] = None, + machine_id: Optional[str] = None, + operating_system: Optional[str] = None, + os_image: Optional[str] = None, + system_uuid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'bootID' in kwargs: + if architecture is None: + raise TypeError("Missing 'architecture' argument") + if boot_id is None and 'bootID' in kwargs: boot_id = kwargs['bootID'] - if 'containerRuntimeVersion' in kwargs: + if boot_id is None: + raise TypeError("Missing 'boot_id' argument") + if container_runtime_version is None and 'containerRuntimeVersion' in kwargs: container_runtime_version = kwargs['containerRuntimeVersion'] - if 'kernelVersion' in kwargs: + if container_runtime_version is None: + raise TypeError("Missing 'container_runtime_version' argument") + if kernel_version is None and 'kernelVersion' in kwargs: kernel_version = kwargs['kernelVersion'] - if 'kubeProxyVersion' in kwargs: + if kernel_version is None: + raise TypeError("Missing 'kernel_version' argument") + if kube_proxy_version is None and 'kubeProxyVersion' in kwargs: kube_proxy_version = kwargs['kubeProxyVersion'] - if 'kubeletVersion' in kwargs: + if kube_proxy_version is None: + raise TypeError("Missing 'kube_proxy_version' argument") + if kubelet_version is None and 'kubeletVersion' in kwargs: kubelet_version = kwargs['kubeletVersion'] - if 'machineID' in kwargs: + if kubelet_version is None: + raise TypeError("Missing 'kubelet_version' argument") + if machine_id is None and 'machineID' in kwargs: machine_id = kwargs['machineID'] - if 'operatingSystem' in kwargs: + if machine_id is None: + raise TypeError("Missing 'machine_id' argument") + if operating_system is None and 'operatingSystem' in kwargs: operating_system = kwargs['operatingSystem'] - if 'osImage' in kwargs: + if operating_system is None: + raise TypeError("Missing 'operating_system' argument") + if os_image is None and 'osImage' in kwargs: os_image = kwargs['osImage'] - if 'systemUUID' in kwargs: + if os_image is None: + raise TypeError("Missing 'os_image' argument") + if system_uuid is None and 'systemUUID' in kwargs: system_uuid = kwargs['systemUUID'] + if system_uuid is None: + raise TypeError("Missing 'system_uuid' argument") _setter("architecture", architecture) _setter("boot_id", boot_id) @@ -17790,23 +17958,23 @@ def _configure( system_uuid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'bootID' in kwargs: + if boot_id is None and 'bootID' in kwargs: boot_id = kwargs['bootID'] - if 'containerRuntimeVersion' in kwargs: + if container_runtime_version is None and 'containerRuntimeVersion' in kwargs: container_runtime_version = kwargs['containerRuntimeVersion'] - if 'kernelVersion' in kwargs: + if kernel_version is None and 'kernelVersion' in kwargs: kernel_version = kwargs['kernelVersion'] - if 'kubeProxyVersion' in kwargs: + if kube_proxy_version is None and 'kubeProxyVersion' in kwargs: kube_proxy_version = kwargs['kubeProxyVersion'] - if 'kubeletVersion' in kwargs: + if kubelet_version is None and 'kubeletVersion' in kwargs: kubelet_version = kwargs['kubeletVersion'] - if 'machineID' in kwargs: + if machine_id is None and 'machineID' in kwargs: machine_id = kwargs['machineID'] - if 'operatingSystem' in kwargs: + if operating_system is None and 'operatingSystem' in kwargs: operating_system = kwargs['operatingSystem'] - if 'osImage' in kwargs: + if os_image is None and 'osImage' in kwargs: os_image = kwargs['osImage'] - if 'systemUUID' in kwargs: + if system_uuid is None and 'systemUUID' in kwargs: system_uuid = kwargs['systemUUID'] if architecture is not None: @@ -17951,13 +18119,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - field_path: str, + field_path: Optional[str] = None, api_version: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'apiVersion' in kwargs: + if field_path is None: + raise TypeError("Missing 'field_path' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("field_path", field_path) @@ -18025,9 +18195,9 @@ def _configure( field_path: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] if api_version is not None: @@ -18118,11 +18288,11 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] if api_version is not None: @@ -18263,11 +18433,11 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldPath' in kwargs: + if field_path is None and 'fieldPath' in kwargs: field_path = kwargs['fieldPath'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] if api_version is not None: @@ -18396,7 +18566,7 @@ def _configure( status: Optional['outputs.PersistentVolumeStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -18505,7 +18675,7 @@ def _configure( status: Optional['outputs.PersistentVolumeClaimStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -18610,17 +18780,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_probe_time: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -18735,9 +18909,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_probe_time is not None: @@ -18850,7 +19024,7 @@ def _configure( status: Optional['outputs.PersistentVolumeClaimStatusPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -18988,17 +19162,17 @@ def _configure( volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'dataSource' in kwargs: + if data_source is None and 'dataSource' in kwargs: data_source = kwargs['dataSource'] - if 'dataSourceRef' in kwargs: + if data_source_ref is None and 'dataSourceRef' in kwargs: data_source_ref = kwargs['dataSourceRef'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'volumeMode' in kwargs: + if volume_mode is None and 'volumeMode' in kwargs: volume_mode = kwargs['volumeMode'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] if access_modes is not None: @@ -19173,17 +19347,17 @@ def _configure( volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'dataSource' in kwargs: + if data_source is None and 'dataSource' in kwargs: data_source = kwargs['dataSource'] - if 'dataSourceRef' in kwargs: + if data_source_ref is None and 'dataSourceRef' in kwargs: data_source_ref = kwargs['dataSourceRef'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'volumeMode' in kwargs: + if volume_mode is None and 'volumeMode' in kwargs: volume_mode = kwargs['volumeMode'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] if access_modes is not None: @@ -19382,13 +19556,13 @@ def _configure( resize_status: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'allocatedResourceStatuses' in kwargs: + if allocated_resource_statuses is None and 'allocatedResourceStatuses' in kwargs: allocated_resource_statuses = kwargs['allocatedResourceStatuses'] - if 'allocatedResources' in kwargs: + if allocated_resources is None and 'allocatedResources' in kwargs: allocated_resources = kwargs['allocatedResources'] - if 'resizeStatus' in kwargs: + if resize_status is None and 'resizeStatus' in kwargs: resize_status = kwargs['resizeStatus'] if access_modes is not None: @@ -19609,13 +19783,13 @@ def _configure( resize_status: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'allocatedResourceStatuses' in kwargs: + if allocated_resource_statuses is None and 'allocatedResourceStatuses' in kwargs: allocated_resource_statuses = kwargs['allocatedResourceStatuses'] - if 'allocatedResources' in kwargs: + if allocated_resources is None and 'allocatedResources' in kwargs: allocated_resources = kwargs['allocatedResources'] - if 'resizeStatus' in kwargs: + if resize_status is None and 'resizeStatus' in kwargs: resize_status = kwargs['resizeStatus'] if access_modes is not None: @@ -19750,10 +19924,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.PersistentVolumeClaimSpec', + spec: Optional['outputs.PersistentVolumeClaimSpec'] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if spec is None: + raise TypeError("Missing 'spec' argument") _setter("spec", spec) if metadata is not None: @@ -19864,13 +20040,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - claim_name: str, + claim_name: Optional[str] = None, read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'claimName' in kwargs: + if claim_name is None and 'claimName' in kwargs: claim_name = kwargs['claimName'] - if 'readOnly' in kwargs: + if claim_name is None: + raise TypeError("Missing 'claim_name' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("claim_name", claim_name) @@ -19938,9 +20116,9 @@ def _configure( read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'claimName' in kwargs: + if claim_name is None and 'claimName' in kwargs: claim_name = kwargs['claimName'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if claim_name is not None: @@ -20151,39 +20329,39 @@ def _configure( vsphere_volume: Optional['outputs.VsphereVirtualDiskVolumeSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'awsElasticBlockStore' in kwargs: + if aws_elastic_block_store is None and 'awsElasticBlockStore' in kwargs: aws_elastic_block_store = kwargs['awsElasticBlockStore'] - if 'azureDisk' in kwargs: + if azure_disk is None and 'azureDisk' in kwargs: azure_disk = kwargs['azureDisk'] - if 'azureFile' in kwargs: + if azure_file is None and 'azureFile' in kwargs: azure_file = kwargs['azureFile'] - if 'claimRef' in kwargs: + if claim_ref is None and 'claimRef' in kwargs: claim_ref = kwargs['claimRef'] - if 'flexVolume' in kwargs: + if flex_volume is None and 'flexVolume' in kwargs: flex_volume = kwargs['flexVolume'] - if 'gcePersistentDisk' in kwargs: + if gce_persistent_disk is None and 'gcePersistentDisk' in kwargs: gce_persistent_disk = kwargs['gcePersistentDisk'] - if 'hostPath' in kwargs: + if host_path is None and 'hostPath' in kwargs: host_path = kwargs['hostPath'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'nodeAffinity' in kwargs: + if node_affinity is None and 'nodeAffinity' in kwargs: node_affinity = kwargs['nodeAffinity'] - if 'persistentVolumeReclaimPolicy' in kwargs: + if persistent_volume_reclaim_policy is None and 'persistentVolumeReclaimPolicy' in kwargs: persistent_volume_reclaim_policy = kwargs['persistentVolumeReclaimPolicy'] - if 'photonPersistentDisk' in kwargs: + if photon_persistent_disk is None and 'photonPersistentDisk' in kwargs: photon_persistent_disk = kwargs['photonPersistentDisk'] - if 'portworxVolume' in kwargs: + if portworx_volume is None and 'portworxVolume' in kwargs: portworx_volume = kwargs['portworxVolume'] - if 'scaleIO' in kwargs: + if scale_io is None and 'scaleIO' in kwargs: scale_io = kwargs['scaleIO'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'volumeMode' in kwargs: + if volume_mode is None and 'volumeMode' in kwargs: volume_mode = kwargs['volumeMode'] - if 'vsphereVolume' in kwargs: + if vsphere_volume is None and 'vsphereVolume' in kwargs: vsphere_volume = kwargs['vsphereVolume'] if access_modes is not None: @@ -20674,39 +20852,39 @@ def _configure( vsphere_volume: Optional['outputs.VsphereVirtualDiskVolumeSourcePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'accessModes' in kwargs: + if access_modes is None and 'accessModes' in kwargs: access_modes = kwargs['accessModes'] - if 'awsElasticBlockStore' in kwargs: + if aws_elastic_block_store is None and 'awsElasticBlockStore' in kwargs: aws_elastic_block_store = kwargs['awsElasticBlockStore'] - if 'azureDisk' in kwargs: + if azure_disk is None and 'azureDisk' in kwargs: azure_disk = kwargs['azureDisk'] - if 'azureFile' in kwargs: + if azure_file is None and 'azureFile' in kwargs: azure_file = kwargs['azureFile'] - if 'claimRef' in kwargs: + if claim_ref is None and 'claimRef' in kwargs: claim_ref = kwargs['claimRef'] - if 'flexVolume' in kwargs: + if flex_volume is None and 'flexVolume' in kwargs: flex_volume = kwargs['flexVolume'] - if 'gcePersistentDisk' in kwargs: + if gce_persistent_disk is None and 'gcePersistentDisk' in kwargs: gce_persistent_disk = kwargs['gcePersistentDisk'] - if 'hostPath' in kwargs: + if host_path is None and 'hostPath' in kwargs: host_path = kwargs['hostPath'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'nodeAffinity' in kwargs: + if node_affinity is None and 'nodeAffinity' in kwargs: node_affinity = kwargs['nodeAffinity'] - if 'persistentVolumeReclaimPolicy' in kwargs: + if persistent_volume_reclaim_policy is None and 'persistentVolumeReclaimPolicy' in kwargs: persistent_volume_reclaim_policy = kwargs['persistentVolumeReclaimPolicy'] - if 'photonPersistentDisk' in kwargs: + if photon_persistent_disk is None and 'photonPersistentDisk' in kwargs: photon_persistent_disk = kwargs['photonPersistentDisk'] - if 'portworxVolume' in kwargs: + if portworx_volume is None and 'portworxVolume' in kwargs: portworx_volume = kwargs['portworxVolume'] - if 'scaleIO' in kwargs: + if scale_io is None and 'scaleIO' in kwargs: scale_io = kwargs['scaleIO'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'volumeMode' in kwargs: + if volume_mode is None and 'volumeMode' in kwargs: volume_mode = kwargs['volumeMode'] - if 'vsphereVolume' in kwargs: + if vsphere_volume is None and 'vsphereVolume' in kwargs: vsphere_volume = kwargs['vsphereVolume'] if access_modes is not None: @@ -21061,7 +21239,7 @@ def _configure( reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastPhaseTransitionTime' in kwargs: + if last_phase_transition_time is None and 'lastPhaseTransitionTime' in kwargs: last_phase_transition_time = kwargs['lastPhaseTransitionTime'] if last_phase_transition_time is not None: @@ -21156,7 +21334,7 @@ def _configure( reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastPhaseTransitionTime' in kwargs: + if last_phase_transition_time is None and 'lastPhaseTransitionTime' in kwargs: last_phase_transition_time = kwargs['lastPhaseTransitionTime'] if last_phase_transition_time is not None: @@ -21241,13 +21419,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pd_id: str, + pd_id: Optional[str] = None, fs_type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pdID' in kwargs: + if pd_id is None and 'pdID' in kwargs: pd_id = kwargs['pdID'] - if 'fsType' in kwargs: + if pd_id is None: + raise TypeError("Missing 'pd_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] _setter("pd_id", pd_id) @@ -21315,9 +21495,9 @@ def _configure( pd_id: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'pdID' in kwargs: + if pd_id is None and 'pdID' in kwargs: pd_id = kwargs['pdID'] if fs_type is not None: @@ -21426,7 +21606,7 @@ def _configure( status: Optional['outputs.PodStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -21525,9 +21705,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[Sequence['outputs.PodAffinityTerm']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -21596,9 +21776,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[Sequence['outputs.PodAffinityTermPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -21671,17 +21851,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - topology_key: str, + topology_key: Optional[str] = None, label_selector: Optional['_meta.v1.outputs.LabelSelector'] = None, namespace_selector: Optional['_meta.v1.outputs.LabelSelector'] = None, namespaces: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'topologyKey' in kwargs: + if topology_key is None and 'topologyKey' in kwargs: topology_key = kwargs['topologyKey'] - if 'labelSelector' in kwargs: + if topology_key is None: + raise TypeError("Missing 'topology_key' argument") + if label_selector is None and 'labelSelector' in kwargs: label_selector = kwargs['labelSelector'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] _setter("topology_key", topology_key) @@ -21779,11 +21961,11 @@ def _configure( topology_key: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'labelSelector' in kwargs: + if label_selector is None and 'labelSelector' in kwargs: label_selector = kwargs['labelSelector'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'topologyKey' in kwargs: + if topology_key is None and 'topologyKey' in kwargs: topology_key = kwargs['topologyKey'] if label_selector is not None: @@ -21872,9 +22054,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[Sequence['outputs.PodAffinityTerm']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -21943,9 +22125,9 @@ def _configure( required_during_scheduling_ignored_during_execution: Optional[Sequence['outputs.PodAffinityTermPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: + if preferred_during_scheduling_ignored_during_execution is None and 'preferredDuringSchedulingIgnoredDuringExecution' in kwargs: preferred_during_scheduling_ignored_during_execution = kwargs['preferredDuringSchedulingIgnoredDuringExecution'] - if 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: + if required_during_scheduling_ignored_during_execution is None and 'requiredDuringSchedulingIgnoredDuringExecution' in kwargs: required_during_scheduling_ignored_during_execution = kwargs['requiredDuringSchedulingIgnoredDuringExecution'] if preferred_during_scheduling_ignored_during_execution is not None: @@ -22022,17 +22204,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_probe_time: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -22155,9 +22341,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastProbeTime' in kwargs: + if last_probe_time is None and 'lastProbeTime' in kwargs: last_probe_time = kwargs['lastProbeTime'] - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_probe_time is not None: @@ -22520,9 +22706,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -22604,11 +22792,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - condition_type: str, + condition_type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conditionType' in kwargs: + if condition_type is None and 'conditionType' in kwargs: condition_type = kwargs['conditionType'] + if condition_type is None: + raise TypeError("Missing 'condition_type' argument") _setter("condition_type", condition_type) @@ -22659,7 +22849,7 @@ def _configure( condition_type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'conditionType' in kwargs: + if condition_type is None and 'conditionType' in kwargs: condition_type = kwargs['conditionType'] if condition_type is not None: @@ -22695,10 +22885,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, source: Optional['outputs.ClaimSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) if source is not None: @@ -22807,11 +22999,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, resource_claim_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaimName' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if resource_claim_name is None and 'resourceClaimName' in kwargs: resource_claim_name = kwargs['resourceClaimName'] _setter("name", name) @@ -22877,7 +23071,7 @@ def _configure( resource_claim_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaimName' in kwargs: + if resource_claim_name is None and 'resourceClaimName' in kwargs: resource_claim_name = kwargs['resourceClaimName'] if name is not None: @@ -22920,9 +23114,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -23063,23 +23259,23 @@ def _configure( windows_options: Optional['outputs.WindowsSecurityContextOptions'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'fsGroupChangePolicy' in kwargs: + if fs_group_change_policy is None and 'fsGroupChangePolicy' in kwargs: fs_group_change_policy = kwargs['fsGroupChangePolicy'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsNonRoot' in kwargs: + if run_as_non_root is None and 'runAsNonRoot' in kwargs: run_as_non_root = kwargs['runAsNonRoot'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] - if 'seccompProfile' in kwargs: + if seccomp_profile is None and 'seccompProfile' in kwargs: seccomp_profile = kwargs['seccompProfile'] - if 'supplementalGroups' in kwargs: + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] - if 'windowsOptions' in kwargs: + if windows_options is None and 'windowsOptions' in kwargs: windows_options = kwargs['windowsOptions'] if fs_group is not None: @@ -23282,23 +23478,23 @@ def _configure( windows_options: Optional['outputs.WindowsSecurityContextOptionsPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'fsGroupChangePolicy' in kwargs: + if fs_group_change_policy is None and 'fsGroupChangePolicy' in kwargs: fs_group_change_policy = kwargs['fsGroupChangePolicy'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsNonRoot' in kwargs: + if run_as_non_root is None and 'runAsNonRoot' in kwargs: run_as_non_root = kwargs['runAsNonRoot'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] - if 'seccompProfile' in kwargs: + if seccomp_profile is None and 'seccompProfile' in kwargs: seccomp_profile = kwargs['seccompProfile'] - if 'supplementalGroups' in kwargs: + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] - if 'windowsOptions' in kwargs: + if windows_options is None and 'windowsOptions' in kwargs: windows_options = kwargs['windowsOptions'] if fs_group is not None: @@ -23626,7 +23822,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - containers: Sequence['outputs.Container'], + containers: Optional[Sequence['outputs.Container']] = None, active_deadline_seconds: Optional[int] = None, affinity: Optional['outputs.Affinity'] = None, automount_service_account_token: Optional[bool] = None, @@ -23667,65 +23863,67 @@ def _configure( volumes: Optional[Sequence['outputs.Volume']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'activeDeadlineSeconds' in kwargs: + if containers is None: + raise TypeError("Missing 'containers' argument") + if active_deadline_seconds is None and 'activeDeadlineSeconds' in kwargs: active_deadline_seconds = kwargs['activeDeadlineSeconds'] - if 'automountServiceAccountToken' in kwargs: + if automount_service_account_token is None and 'automountServiceAccountToken' in kwargs: automount_service_account_token = kwargs['automountServiceAccountToken'] - if 'dnsConfig' in kwargs: + if dns_config is None and 'dnsConfig' in kwargs: dns_config = kwargs['dnsConfig'] - if 'dnsPolicy' in kwargs: + if dns_policy is None and 'dnsPolicy' in kwargs: dns_policy = kwargs['dnsPolicy'] - if 'enableServiceLinks' in kwargs: + if enable_service_links is None and 'enableServiceLinks' in kwargs: enable_service_links = kwargs['enableServiceLinks'] - if 'ephemeralContainers' in kwargs: + if ephemeral_containers is None and 'ephemeralContainers' in kwargs: ephemeral_containers = kwargs['ephemeralContainers'] - if 'hostAliases' in kwargs: + if host_aliases is None and 'hostAliases' in kwargs: host_aliases = kwargs['hostAliases'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostUsers' in kwargs: + if host_users is None and 'hostUsers' in kwargs: host_users = kwargs['hostUsers'] - if 'imagePullSecrets' in kwargs: + if image_pull_secrets is None and 'imagePullSecrets' in kwargs: image_pull_secrets = kwargs['imagePullSecrets'] - if 'initContainers' in kwargs: + if init_containers is None and 'initContainers' in kwargs: init_containers = kwargs['initContainers'] - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] - if 'priorityClassName' in kwargs: + if priority_class_name is None and 'priorityClassName' in kwargs: priority_class_name = kwargs['priorityClassName'] - if 'readinessGates' in kwargs: + if readiness_gates is None and 'readinessGates' in kwargs: readiness_gates = kwargs['readinessGates'] - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'runtimeClassName' in kwargs: + if runtime_class_name is None and 'runtimeClassName' in kwargs: runtime_class_name = kwargs['runtimeClassName'] - if 'schedulerName' in kwargs: + if scheduler_name is None and 'schedulerName' in kwargs: scheduler_name = kwargs['schedulerName'] - if 'schedulingGates' in kwargs: + if scheduling_gates is None and 'schedulingGates' in kwargs: scheduling_gates = kwargs['schedulingGates'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] - if 'serviceAccountName' in kwargs: + if service_account_name is None and 'serviceAccountName' in kwargs: service_account_name = kwargs['serviceAccountName'] - if 'setHostnameAsFQDN' in kwargs: + if set_hostname_as_fqdn is None and 'setHostnameAsFQDN' in kwargs: set_hostname_as_fqdn = kwargs['setHostnameAsFQDN'] - if 'shareProcessNamespace' in kwargs: + if share_process_namespace is None and 'shareProcessNamespace' in kwargs: share_process_namespace = kwargs['shareProcessNamespace'] - if 'terminationGracePeriodSeconds' in kwargs: + if termination_grace_period_seconds is None and 'terminationGracePeriodSeconds' in kwargs: termination_grace_period_seconds = kwargs['terminationGracePeriodSeconds'] - if 'topologySpreadConstraints' in kwargs: + if topology_spread_constraints is None and 'topologySpreadConstraints' in kwargs: topology_spread_constraints = kwargs['topologySpreadConstraints'] _setter("containers", containers) @@ -24391,65 +24589,65 @@ def _configure( volumes: Optional[Sequence['outputs.VolumePatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'activeDeadlineSeconds' in kwargs: + if active_deadline_seconds is None and 'activeDeadlineSeconds' in kwargs: active_deadline_seconds = kwargs['activeDeadlineSeconds'] - if 'automountServiceAccountToken' in kwargs: + if automount_service_account_token is None and 'automountServiceAccountToken' in kwargs: automount_service_account_token = kwargs['automountServiceAccountToken'] - if 'dnsConfig' in kwargs: + if dns_config is None and 'dnsConfig' in kwargs: dns_config = kwargs['dnsConfig'] - if 'dnsPolicy' in kwargs: + if dns_policy is None and 'dnsPolicy' in kwargs: dns_policy = kwargs['dnsPolicy'] - if 'enableServiceLinks' in kwargs: + if enable_service_links is None and 'enableServiceLinks' in kwargs: enable_service_links = kwargs['enableServiceLinks'] - if 'ephemeralContainers' in kwargs: + if ephemeral_containers is None and 'ephemeralContainers' in kwargs: ephemeral_containers = kwargs['ephemeralContainers'] - if 'hostAliases' in kwargs: + if host_aliases is None and 'hostAliases' in kwargs: host_aliases = kwargs['hostAliases'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostUsers' in kwargs: + if host_users is None and 'hostUsers' in kwargs: host_users = kwargs['hostUsers'] - if 'imagePullSecrets' in kwargs: + if image_pull_secrets is None and 'imagePullSecrets' in kwargs: image_pull_secrets = kwargs['imagePullSecrets'] - if 'initContainers' in kwargs: + if init_containers is None and 'initContainers' in kwargs: init_containers = kwargs['initContainers'] - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] - if 'priorityClassName' in kwargs: + if priority_class_name is None and 'priorityClassName' in kwargs: priority_class_name = kwargs['priorityClassName'] - if 'readinessGates' in kwargs: + if readiness_gates is None and 'readinessGates' in kwargs: readiness_gates = kwargs['readinessGates'] - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] - if 'restartPolicy' in kwargs: + if restart_policy is None and 'restartPolicy' in kwargs: restart_policy = kwargs['restartPolicy'] - if 'runtimeClassName' in kwargs: + if runtime_class_name is None and 'runtimeClassName' in kwargs: runtime_class_name = kwargs['runtimeClassName'] - if 'schedulerName' in kwargs: + if scheduler_name is None and 'schedulerName' in kwargs: scheduler_name = kwargs['schedulerName'] - if 'schedulingGates' in kwargs: + if scheduling_gates is None and 'schedulingGates' in kwargs: scheduling_gates = kwargs['schedulingGates'] - if 'securityContext' in kwargs: + if security_context is None and 'securityContext' in kwargs: security_context = kwargs['securityContext'] - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] - if 'serviceAccountName' in kwargs: + if service_account_name is None and 'serviceAccountName' in kwargs: service_account_name = kwargs['serviceAccountName'] - if 'setHostnameAsFQDN' in kwargs: + if set_hostname_as_fqdn is None and 'setHostnameAsFQDN' in kwargs: set_hostname_as_fqdn = kwargs['setHostnameAsFQDN'] - if 'shareProcessNamespace' in kwargs: + if share_process_namespace is None and 'shareProcessNamespace' in kwargs: share_process_namespace = kwargs['shareProcessNamespace'] - if 'terminationGracePeriodSeconds' in kwargs: + if termination_grace_period_seconds is None and 'terminationGracePeriodSeconds' in kwargs: termination_grace_period_seconds = kwargs['terminationGracePeriodSeconds'] - if 'topologySpreadConstraints' in kwargs: + if topology_spread_constraints is None and 'topologySpreadConstraints' in kwargs: topology_spread_constraints = kwargs['topologySpreadConstraints'] if active_deadline_seconds is not None: @@ -24978,27 +25176,27 @@ def _configure( start_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerStatuses' in kwargs: + if container_statuses is None and 'containerStatuses' in kwargs: container_statuses = kwargs['containerStatuses'] - if 'ephemeralContainerStatuses' in kwargs: + if ephemeral_container_statuses is None and 'ephemeralContainerStatuses' in kwargs: ephemeral_container_statuses = kwargs['ephemeralContainerStatuses'] - if 'hostIP' in kwargs: + if host_ip is None and 'hostIP' in kwargs: host_ip = kwargs['hostIP'] - if 'hostIPs' in kwargs: + if host_ips is None and 'hostIPs' in kwargs: host_ips = kwargs['hostIPs'] - if 'initContainerStatuses' in kwargs: + if init_container_statuses is None and 'initContainerStatuses' in kwargs: init_container_statuses = kwargs['initContainerStatuses'] - if 'nominatedNodeName' in kwargs: + if nominated_node_name is None and 'nominatedNodeName' in kwargs: nominated_node_name = kwargs['nominatedNodeName'] - if 'podIP' in kwargs: + if pod_ip is None and 'podIP' in kwargs: pod_ip = kwargs['podIP'] - if 'podIPs' in kwargs: + if pod_ips is None and 'podIPs' in kwargs: pod_ips = kwargs['podIPs'] - if 'qosClass' in kwargs: + if qos_class is None and 'qosClass' in kwargs: qos_class = kwargs['qosClass'] - if 'resourceClaimStatuses' in kwargs: + if resource_claim_statuses is None and 'resourceClaimStatuses' in kwargs: resource_claim_statuses = kwargs['resourceClaimStatuses'] - if 'startTime' in kwargs: + if start_time is None and 'startTime' in kwargs: start_time = kwargs['startTime'] if conditions is not None: @@ -25289,27 +25487,27 @@ def _configure( start_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerStatuses' in kwargs: + if container_statuses is None and 'containerStatuses' in kwargs: container_statuses = kwargs['containerStatuses'] - if 'ephemeralContainerStatuses' in kwargs: + if ephemeral_container_statuses is None and 'ephemeralContainerStatuses' in kwargs: ephemeral_container_statuses = kwargs['ephemeralContainerStatuses'] - if 'hostIP' in kwargs: + if host_ip is None and 'hostIP' in kwargs: host_ip = kwargs['hostIP'] - if 'hostIPs' in kwargs: + if host_ips is None and 'hostIPs' in kwargs: host_ips = kwargs['hostIPs'] - if 'initContainerStatuses' in kwargs: + if init_container_statuses is None and 'initContainerStatuses' in kwargs: init_container_statuses = kwargs['initContainerStatuses'] - if 'nominatedNodeName' in kwargs: + if nominated_node_name is None and 'nominatedNodeName' in kwargs: nominated_node_name = kwargs['nominatedNodeName'] - if 'podIP' in kwargs: + if pod_ip is None and 'podIP' in kwargs: pod_ip = kwargs['podIP'] - if 'podIPs' in kwargs: + if pod_ips is None and 'podIPs' in kwargs: pod_ips = kwargs['podIPs'] - if 'qosClass' in kwargs: + if qos_class is None and 'qosClass' in kwargs: qos_class = kwargs['qosClass'] - if 'resourceClaimStatuses' in kwargs: + if resource_claim_statuses is None and 'resourceClaimStatuses' in kwargs: resource_claim_statuses = kwargs['resourceClaimStatuses'] - if 'startTime' in kwargs: + if start_time is None and 'startTime' in kwargs: start_time = kwargs['startTime'] if conditions is not None: @@ -25528,7 +25726,7 @@ def _configure( template: Optional['outputs.PodTemplateSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -25692,11 +25890,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: int, - protocol: str, + port: Optional[int] = None, + protocol: Optional[str] = None, error: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if port is None: + raise TypeError("Missing 'port' argument") + if protocol is None: + raise TypeError("Missing 'protocol' argument") _setter("port", port) _setter("protocol", protocol) @@ -25840,16 +26042,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_id: str, + volume_id: Optional[str] = None, fs_type: Optional[str] = None, read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] - if 'fsType' in kwargs: + if volume_id is None: + raise TypeError("Missing 'volume_id' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("volume_id", volume_id) @@ -25933,11 +26137,11 @@ def _configure( volume_id: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'volumeID' in kwargs: + if volume_id is None and 'volumeID' in kwargs: volume_id = kwargs['volumeID'] if fs_type is not None: @@ -25993,10 +26197,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - preference: 'outputs.NodeSelectorTerm', - weight: int, + preference: Optional['outputs.NodeSelectorTerm'] = None, + weight: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if preference is None: + raise TypeError("Missing 'preference' argument") + if weight is None: + raise TypeError("Missing 'weight' argument") _setter("preference", preference) _setter("weight", weight) @@ -26156,23 +26364,23 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exec' in kwargs: + if exec_ is None and 'exec' in kwargs: exec_ = kwargs['exec'] - if 'failureThreshold' in kwargs: + if failure_threshold is None and 'failureThreshold' in kwargs: failure_threshold = kwargs['failureThreshold'] - if 'httpGet' in kwargs: + if http_get is None and 'httpGet' in kwargs: http_get = kwargs['httpGet'] - if 'initialDelaySeconds' in kwargs: + if initial_delay_seconds is None and 'initialDelaySeconds' in kwargs: initial_delay_seconds = kwargs['initialDelaySeconds'] - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] - if 'successThreshold' in kwargs: + if success_threshold is None and 'successThreshold' in kwargs: success_threshold = kwargs['successThreshold'] - if 'tcpSocket' in kwargs: + if tcp_socket is None and 'tcpSocket' in kwargs: tcp_socket = kwargs['tcpSocket'] - if 'terminationGracePeriodSeconds' in kwargs: + if termination_grace_period_seconds is None and 'terminationGracePeriodSeconds' in kwargs: termination_grace_period_seconds = kwargs['terminationGracePeriodSeconds'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if exec_ is not None: @@ -26367,23 +26575,23 @@ def _configure( timeout_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'exec' in kwargs: + if exec_ is None and 'exec' in kwargs: exec_ = kwargs['exec'] - if 'failureThreshold' in kwargs: + if failure_threshold is None and 'failureThreshold' in kwargs: failure_threshold = kwargs['failureThreshold'] - if 'httpGet' in kwargs: + if http_get is None and 'httpGet' in kwargs: http_get = kwargs['httpGet'] - if 'initialDelaySeconds' in kwargs: + if initial_delay_seconds is None and 'initialDelaySeconds' in kwargs: initial_delay_seconds = kwargs['initialDelaySeconds'] - if 'periodSeconds' in kwargs: + if period_seconds is None and 'periodSeconds' in kwargs: period_seconds = kwargs['periodSeconds'] - if 'successThreshold' in kwargs: + if success_threshold is None and 'successThreshold' in kwargs: success_threshold = kwargs['successThreshold'] - if 'tcpSocket' in kwargs: + if tcp_socket is None and 'tcpSocket' in kwargs: tcp_socket = kwargs['tcpSocket'] - if 'terminationGracePeriodSeconds' in kwargs: + if termination_grace_period_seconds is None and 'terminationGracePeriodSeconds' in kwargs: termination_grace_period_seconds = kwargs['terminationGracePeriodSeconds'] - if 'timeoutSeconds' in kwargs: + if timeout_seconds is None and 'timeoutSeconds' in kwargs: timeout_seconds = kwargs['timeoutSeconds'] if exec_ is not None: @@ -26526,11 +26734,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - sources: Sequence['outputs.VolumeProjection'], + sources: Optional[Sequence['outputs.VolumeProjection']] = None, default_mode: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if sources is None: + raise TypeError("Missing 'sources' argument") + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] _setter("sources", sources) @@ -26596,7 +26806,7 @@ def _configure( sources: Optional[Sequence['outputs.VolumeProjectionPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] if default_mode is not None: @@ -26671,15 +26881,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - registry: str, - volume: str, + registry: Optional[str] = None, + volume: Optional[str] = None, group: Optional[str] = None, read_only: Optional[bool] = None, tenant: Optional[str] = None, user: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if registry is None: + raise TypeError("Missing 'registry' argument") + if volume is None: + raise TypeError("Missing 'volume' argument") + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] _setter("registry", registry) @@ -26800,7 +27014,7 @@ def _configure( volume: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if group is not None: @@ -26925,8 +27139,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - image: str, - monitors: Sequence[str], + image: Optional[str] = None, + monitors: Optional[Sequence[str]] = None, fs_type: Optional[str] = None, keyring: Optional[str] = None, pool: Optional[str] = None, @@ -26935,11 +27149,15 @@ def _configure( user: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if image is None: + raise TypeError("Missing 'image' argument") + if monitors is None: + raise TypeError("Missing 'monitors' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("image", image) @@ -27092,11 +27310,11 @@ def _configure( user: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if fs_type is not None: @@ -27241,8 +27459,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - image: str, - monitors: Sequence[str], + image: Optional[str] = None, + monitors: Optional[Sequence[str]] = None, fs_type: Optional[str] = None, keyring: Optional[str] = None, pool: Optional[str] = None, @@ -27251,11 +27469,15 @@ def _configure( user: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if image is None: + raise TypeError("Missing 'image' argument") + if monitors is None: + raise TypeError("Missing 'monitors' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] _setter("image", image) @@ -27408,11 +27630,11 @@ def _configure( user: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] if fs_type is not None: @@ -27551,7 +27773,7 @@ def _configure( status: Optional['outputs.ReplicationControllerStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -27653,14 +27875,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -27767,7 +27993,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -27872,7 +28098,7 @@ def _configure( template: Optional['outputs.PodTemplateSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -27967,7 +28193,7 @@ def _configure( template: Optional['outputs.PodTemplateSpecPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -28068,7 +28294,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: int, + replicas: Optional[int] = None, available_replicas: Optional[int] = None, conditions: Optional[Sequence['outputs.ReplicationControllerCondition']] = None, fully_labeled_replicas: Optional[int] = None, @@ -28076,13 +28302,15 @@ def _configure( ready_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] _setter("replicas", replicas) @@ -28210,13 +28438,13 @@ def _configure( replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] if available_replicas is not None: @@ -28299,9 +28527,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -28389,12 +28619,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - resource: str, + resource: Optional[str] = None, container_name: Optional[str] = None, divisor: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerName' in kwargs: + if resource is None: + raise TypeError("Missing 'resource' argument") + if container_name is None and 'containerName' in kwargs: container_name = kwargs['containerName'] _setter("resource", resource) @@ -28474,7 +28706,7 @@ def _configure( resource: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'containerName' in kwargs: + if container_name is None and 'containerName' in kwargs: container_name = kwargs['containerName'] if container_name is not None: @@ -28563,7 +28795,7 @@ def _configure( status: Optional['outputs.ResourceQuotaStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -28664,7 +28896,7 @@ def _configure( scopes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scopeSelector' in kwargs: + if scope_selector is None and 'scopeSelector' in kwargs: scope_selector = kwargs['scopeSelector'] if hard is not None: @@ -28745,7 +28977,7 @@ def _configure( scopes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scopeSelector' in kwargs: + if scope_selector is None and 'scopeSelector' in kwargs: scope_selector = kwargs['scopeSelector'] if hard is not None: @@ -29244,9 +29476,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - gateway: str, - secret_ref: 'outputs.SecretReference', - system: str, + gateway: Optional[str] = None, + secret_ref: Optional['outputs.SecretReference'] = None, + system: Optional[str] = None, fs_type: Optional[str] = None, protection_domain: Optional[str] = None, read_only: Optional[bool] = None, @@ -29256,21 +29488,27 @@ def _configure( volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretRef' in kwargs: + if gateway is None: + raise TypeError("Missing 'gateway' argument") + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'fsType' in kwargs: + if secret_ref is None: + raise TypeError("Missing 'secret_ref' argument") + if system is None: + raise TypeError("Missing 'system' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'protectionDomain' in kwargs: + if protection_domain is None and 'protectionDomain' in kwargs: protection_domain = kwargs['protectionDomain'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'sslEnabled' in kwargs: + if ssl_enabled is None and 'sslEnabled' in kwargs: ssl_enabled = kwargs['sslEnabled'] - if 'storageMode' in kwargs: + if storage_mode is None and 'storageMode' in kwargs: storage_mode = kwargs['storageMode'] - if 'storagePool' in kwargs: + if storage_pool is None and 'storagePool' in kwargs: storage_pool = kwargs['storagePool'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] _setter("gateway", gateway) @@ -29460,21 +29698,21 @@ def _configure( volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'protectionDomain' in kwargs: + if protection_domain is None and 'protectionDomain' in kwargs: protection_domain = kwargs['protectionDomain'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'sslEnabled' in kwargs: + if ssl_enabled is None and 'sslEnabled' in kwargs: ssl_enabled = kwargs['sslEnabled'] - if 'storageMode' in kwargs: + if storage_mode is None and 'storageMode' in kwargs: storage_mode = kwargs['storageMode'] - if 'storagePool' in kwargs: + if storage_pool is None and 'storagePool' in kwargs: storage_pool = kwargs['storagePool'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] if fs_type is not None: @@ -29655,9 +29893,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - gateway: str, - secret_ref: 'outputs.LocalObjectReference', - system: str, + gateway: Optional[str] = None, + secret_ref: Optional['outputs.LocalObjectReference'] = None, + system: Optional[str] = None, fs_type: Optional[str] = None, protection_domain: Optional[str] = None, read_only: Optional[bool] = None, @@ -29667,21 +29905,27 @@ def _configure( volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretRef' in kwargs: + if gateway is None: + raise TypeError("Missing 'gateway' argument") + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'fsType' in kwargs: + if secret_ref is None: + raise TypeError("Missing 'secret_ref' argument") + if system is None: + raise TypeError("Missing 'system' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'protectionDomain' in kwargs: + if protection_domain is None and 'protectionDomain' in kwargs: protection_domain = kwargs['protectionDomain'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'sslEnabled' in kwargs: + if ssl_enabled is None and 'sslEnabled' in kwargs: ssl_enabled = kwargs['sslEnabled'] - if 'storageMode' in kwargs: + if storage_mode is None and 'storageMode' in kwargs: storage_mode = kwargs['storageMode'] - if 'storagePool' in kwargs: + if storage_pool is None and 'storagePool' in kwargs: storage_pool = kwargs['storagePool'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] _setter("gateway", gateway) @@ -29871,21 +30115,21 @@ def _configure( volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'protectionDomain' in kwargs: + if protection_domain is None and 'protectionDomain' in kwargs: protection_domain = kwargs['protectionDomain'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'sslEnabled' in kwargs: + if ssl_enabled is None and 'sslEnabled' in kwargs: ssl_enabled = kwargs['sslEnabled'] - if 'storageMode' in kwargs: + if storage_mode is None and 'storageMode' in kwargs: storage_mode = kwargs['storageMode'] - if 'storagePool' in kwargs: + if storage_pool is None and 'storagePool' in kwargs: storage_pool = kwargs['storagePool'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] if fs_type is not None: @@ -30028,7 +30272,7 @@ def _configure( match_expressions: Optional[Sequence['outputs.ScopedResourceSelectorRequirement']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] if match_expressions is not None: @@ -30081,7 +30325,7 @@ def _configure( match_expressions: Optional[Sequence['outputs.ScopedResourceSelectorRequirementPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] if match_expressions is not None: @@ -30137,13 +30381,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - operator: str, - scope_name: str, + operator: Optional[str] = None, + scope_name: Optional[str] = None, values: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scopeName' in kwargs: + if operator is None: + raise TypeError("Missing 'operator' argument") + if scope_name is None and 'scopeName' in kwargs: scope_name = kwargs['scopeName'] + if scope_name is None: + raise TypeError("Missing 'scope_name' argument") _setter("operator", operator) _setter("scope_name", scope_name) @@ -30221,7 +30469,7 @@ def _configure( values: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'scopeName' in kwargs: + if scope_name is None and 'scopeName' in kwargs: scope_name = kwargs['scopeName'] if operator is not None: @@ -30296,11 +30544,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, localhost_profile: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'localhostProfile' in kwargs: + if type is None: + raise TypeError("Missing 'type' argument") + if localhost_profile is None and 'localhostProfile' in kwargs: localhost_profile = kwargs['localhostProfile'] _setter("type", type) @@ -30370,7 +30620,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'localhostProfile' in kwargs: + if localhost_profile is None and 'localhostProfile' in kwargs: localhost_profile = kwargs['localhostProfile'] if localhost_profile is not None: @@ -30481,9 +30731,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'stringData' in kwargs: + if string_data is None and 'stringData' in kwargs: string_data = kwargs['stringData'] if api_version is not None: @@ -30686,11 +30936,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: str, + key: Optional[str] = None, name: Optional[str] = None, optional: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") _setter("key", key) if name is not None: @@ -31069,9 +31321,9 @@ def _configure( secret_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if default_mode is not None: @@ -31172,9 +31424,9 @@ def _configure( secret_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultMode' in kwargs: + if default_mode is None and 'defaultMode' in kwargs: default_mode = kwargs['defaultMode'] - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if default_mode is not None: @@ -31313,23 +31565,23 @@ def _configure( windows_options: Optional['outputs.WindowsSecurityContextOptions'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowPrivilegeEscalation' in kwargs: + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'procMount' in kwargs: + if proc_mount is None and 'procMount' in kwargs: proc_mount = kwargs['procMount'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsNonRoot' in kwargs: + if run_as_non_root is None and 'runAsNonRoot' in kwargs: run_as_non_root = kwargs['runAsNonRoot'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] - if 'seccompProfile' in kwargs: + if seccomp_profile is None and 'seccompProfile' in kwargs: seccomp_profile = kwargs['seccompProfile'] - if 'windowsOptions' in kwargs: + if windows_options is None and 'windowsOptions' in kwargs: windows_options = kwargs['windowsOptions'] if allow_privilege_escalation is not None: @@ -31538,23 +31790,23 @@ def _configure( windows_options: Optional['outputs.WindowsSecurityContextOptionsPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowPrivilegeEscalation' in kwargs: + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'procMount' in kwargs: + if proc_mount is None and 'procMount' in kwargs: proc_mount = kwargs['procMount'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsNonRoot' in kwargs: + if run_as_non_root is None and 'runAsNonRoot' in kwargs: run_as_non_root = kwargs['runAsNonRoot'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] - if 'seccompProfile' in kwargs: + if seccomp_profile is None and 'seccompProfile' in kwargs: seccomp_profile = kwargs['seccompProfile'] - if 'windowsOptions' in kwargs: + if windows_options is None and 'windowsOptions' in kwargs: windows_options = kwargs['windowsOptions'] if allow_privilege_escalation is not None: @@ -31773,7 +32025,7 @@ def _configure( status: Optional['outputs.ServiceStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -31890,11 +32142,11 @@ def _configure( secrets: Optional[Sequence['outputs.ObjectReference']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'automountServiceAccountToken' in kwargs: + if automount_service_account_token is None and 'automountServiceAccountToken' in kwargs: automount_service_account_token = kwargs['automountServiceAccountToken'] - if 'imagePullSecrets' in kwargs: + if image_pull_secrets is None and 'imagePullSecrets' in kwargs: image_pull_secrets = kwargs['imagePullSecrets'] if api_version is not None: @@ -32000,12 +32252,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: str, + path: Optional[str] = None, audience: Optional[str] = None, expiration_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if path is None: + raise TypeError("Missing 'path' argument") + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] _setter("path", path) @@ -32085,7 +32339,7 @@ def _configure( path: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] if audience is not None: @@ -32183,7 +32437,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: int, + port: Optional[int] = None, app_protocol: Optional[str] = None, name: Optional[str] = None, node_port: Optional[int] = None, @@ -32191,11 +32445,13 @@ def _configure( target_port: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if port is None: + raise TypeError("Missing 'port' argument") + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] - if 'nodePort' in kwargs: + if node_port is None and 'nodePort' in kwargs: node_port = kwargs['nodePort'] - if 'targetPort' in kwargs: + if target_port is None and 'targetPort' in kwargs: target_port = kwargs['targetPort'] _setter("port", port) @@ -32339,11 +32595,11 @@ def _configure( target_port: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] - if 'nodePort' in kwargs: + if node_port is None and 'nodePort' in kwargs: node_port = kwargs['nodePort'] - if 'targetPort' in kwargs: + if target_port is None and 'targetPort' in kwargs: target_port = kwargs['targetPort'] if app_protocol is not None: @@ -32573,41 +32829,41 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allocateLoadBalancerNodePorts' in kwargs: + if allocate_load_balancer_node_ports is None and 'allocateLoadBalancerNodePorts' in kwargs: allocate_load_balancer_node_ports = kwargs['allocateLoadBalancerNodePorts'] - if 'clusterIP' in kwargs: + if cluster_ip is None and 'clusterIP' in kwargs: cluster_ip = kwargs['clusterIP'] - if 'clusterIPs' in kwargs: + if cluster_ips is None and 'clusterIPs' in kwargs: cluster_ips = kwargs['clusterIPs'] - if 'externalIPs' in kwargs: + if external_ips is None and 'externalIPs' in kwargs: external_ips = kwargs['externalIPs'] - if 'externalName' in kwargs: + if external_name is None and 'externalName' in kwargs: external_name = kwargs['externalName'] - if 'externalTrafficPolicy' in kwargs: + if external_traffic_policy is None and 'externalTrafficPolicy' in kwargs: external_traffic_policy = kwargs['externalTrafficPolicy'] - if 'healthCheckNodePort' in kwargs: + if health_check_node_port is None and 'healthCheckNodePort' in kwargs: health_check_node_port = kwargs['healthCheckNodePort'] - if 'internalTrafficPolicy' in kwargs: + if internal_traffic_policy is None and 'internalTrafficPolicy' in kwargs: internal_traffic_policy = kwargs['internalTrafficPolicy'] - if 'ipFamilies' in kwargs: + if ip_families is None and 'ipFamilies' in kwargs: ip_families = kwargs['ipFamilies'] - if 'ipFamily' in kwargs: + if ip_family is None and 'ipFamily' in kwargs: ip_family = kwargs['ipFamily'] - if 'ipFamilyPolicy' in kwargs: + if ip_family_policy is None and 'ipFamilyPolicy' in kwargs: ip_family_policy = kwargs['ipFamilyPolicy'] - if 'loadBalancerClass' in kwargs: + if load_balancer_class is None and 'loadBalancerClass' in kwargs: load_balancer_class = kwargs['loadBalancerClass'] - if 'loadBalancerIP' in kwargs: + if load_balancer_ip is None and 'loadBalancerIP' in kwargs: load_balancer_ip = kwargs['loadBalancerIP'] - if 'loadBalancerSourceRanges' in kwargs: + if load_balancer_source_ranges is None and 'loadBalancerSourceRanges' in kwargs: load_balancer_source_ranges = kwargs['loadBalancerSourceRanges'] - if 'publishNotReadyAddresses' in kwargs: + if publish_not_ready_addresses is None and 'publishNotReadyAddresses' in kwargs: publish_not_ready_addresses = kwargs['publishNotReadyAddresses'] - if 'sessionAffinity' in kwargs: + if session_affinity is None and 'sessionAffinity' in kwargs: session_affinity = kwargs['sessionAffinity'] - if 'sessionAffinityConfig' in kwargs: + if session_affinity_config is None and 'sessionAffinityConfig' in kwargs: session_affinity_config = kwargs['sessionAffinityConfig'] - if 'topologyKeys' in kwargs: + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] if allocate_load_balancer_node_ports is not None: @@ -32982,41 +33238,41 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allocateLoadBalancerNodePorts' in kwargs: + if allocate_load_balancer_node_ports is None and 'allocateLoadBalancerNodePorts' in kwargs: allocate_load_balancer_node_ports = kwargs['allocateLoadBalancerNodePorts'] - if 'clusterIP' in kwargs: + if cluster_ip is None and 'clusterIP' in kwargs: cluster_ip = kwargs['clusterIP'] - if 'clusterIPs' in kwargs: + if cluster_ips is None and 'clusterIPs' in kwargs: cluster_ips = kwargs['clusterIPs'] - if 'externalIPs' in kwargs: + if external_ips is None and 'externalIPs' in kwargs: external_ips = kwargs['externalIPs'] - if 'externalName' in kwargs: + if external_name is None and 'externalName' in kwargs: external_name = kwargs['externalName'] - if 'externalTrafficPolicy' in kwargs: + if external_traffic_policy is None and 'externalTrafficPolicy' in kwargs: external_traffic_policy = kwargs['externalTrafficPolicy'] - if 'healthCheckNodePort' in kwargs: + if health_check_node_port is None and 'healthCheckNodePort' in kwargs: health_check_node_port = kwargs['healthCheckNodePort'] - if 'internalTrafficPolicy' in kwargs: + if internal_traffic_policy is None and 'internalTrafficPolicy' in kwargs: internal_traffic_policy = kwargs['internalTrafficPolicy'] - if 'ipFamilies' in kwargs: + if ip_families is None and 'ipFamilies' in kwargs: ip_families = kwargs['ipFamilies'] - if 'ipFamily' in kwargs: + if ip_family is None and 'ipFamily' in kwargs: ip_family = kwargs['ipFamily'] - if 'ipFamilyPolicy' in kwargs: + if ip_family_policy is None and 'ipFamilyPolicy' in kwargs: ip_family_policy = kwargs['ipFamilyPolicy'] - if 'loadBalancerClass' in kwargs: + if load_balancer_class is None and 'loadBalancerClass' in kwargs: load_balancer_class = kwargs['loadBalancerClass'] - if 'loadBalancerIP' in kwargs: + if load_balancer_ip is None and 'loadBalancerIP' in kwargs: load_balancer_ip = kwargs['loadBalancerIP'] - if 'loadBalancerSourceRanges' in kwargs: + if load_balancer_source_ranges is None and 'loadBalancerSourceRanges' in kwargs: load_balancer_source_ranges = kwargs['loadBalancerSourceRanges'] - if 'publishNotReadyAddresses' in kwargs: + if publish_not_ready_addresses is None and 'publishNotReadyAddresses' in kwargs: publish_not_ready_addresses = kwargs['publishNotReadyAddresses'] - if 'sessionAffinity' in kwargs: + if session_affinity is None and 'sessionAffinity' in kwargs: session_affinity = kwargs['sessionAffinity'] - if 'sessionAffinityConfig' in kwargs: + if session_affinity_config is None and 'sessionAffinityConfig' in kwargs: session_affinity_config = kwargs['sessionAffinityConfig'] - if 'topologyKeys' in kwargs: + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] if allocate_load_balancer_node_ports is not None: @@ -33277,7 +33533,7 @@ def _configure( load_balancer: Optional['outputs.LoadBalancerStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if conditions is not None: @@ -33344,7 +33600,7 @@ def _configure( load_balancer: Optional['outputs.LoadBalancerStatusPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if conditions is not None: @@ -33407,7 +33663,7 @@ def _configure( client_ip: Optional['outputs.ClientIPConfig'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientIP' in kwargs: + if client_ip is None and 'clientIP' in kwargs: client_ip = kwargs['clientIP'] if client_ip is not None: @@ -33460,7 +33716,7 @@ def _configure( client_ip: Optional['outputs.ClientIPConfigPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clientIP' in kwargs: + if client_ip is None and 'clientIP' in kwargs: client_ip = kwargs['clientIP'] if client_ip is not None: @@ -33537,15 +33793,15 @@ def _configure( volume_namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] - if 'volumeNamespace' in kwargs: + if volume_namespace is None and 'volumeNamespace' in kwargs: volume_namespace = kwargs['volumeNamespace'] if fs_type is not None: @@ -33662,15 +33918,15 @@ def _configure( volume_namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] - if 'volumeNamespace' in kwargs: + if volume_namespace is None and 'volumeNamespace' in kwargs: volume_namespace = kwargs['volumeNamespace'] if fs_type is not None: @@ -33787,15 +34043,15 @@ def _configure( volume_namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] - if 'volumeNamespace' in kwargs: + if volume_namespace is None and 'volumeNamespace' in kwargs: volume_namespace = kwargs['volumeNamespace'] if fs_type is not None: @@ -33912,15 +34168,15 @@ def _configure( volume_namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'secretRef' in kwargs: + if secret_ref is None and 'secretRef' in kwargs: secret_ref = kwargs['secretRef'] - if 'volumeName' in kwargs: + if volume_name is None and 'volumeName' in kwargs: volume_name = kwargs['volumeName'] - if 'volumeNamespace' in kwargs: + if volume_namespace is None and 'volumeNamespace' in kwargs: volume_namespace = kwargs['volumeNamespace'] if fs_type is not None: @@ -33996,10 +34252,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - value: str, + name: Optional[str] = None, + value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if value is None: + raise TypeError("Missing 'value' argument") _setter("name", name) _setter("value", value) @@ -34090,10 +34350,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: Any, + port: Optional[Any] = None, host: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if port is None: + raise TypeError("Missing 'port' argument") _setter("port", port) if host is not None: @@ -34208,13 +34470,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - effect: str, - key: str, + effect: Optional[str] = None, + key: Optional[str] = None, time_added: Optional[str] = None, value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'timeAdded' in kwargs: + if effect is None: + raise TypeError("Missing 'effect' argument") + if key is None: + raise TypeError("Missing 'key' argument") + if time_added is None and 'timeAdded' in kwargs: time_added = kwargs['timeAdded'] _setter("effect", effect) @@ -34307,7 +34573,7 @@ def _configure( value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'timeAdded' in kwargs: + if time_added is None and 'timeAdded' in kwargs: time_added = kwargs['timeAdded'] if effect is not None: @@ -34406,7 +34672,7 @@ def _configure( value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'tolerationSeconds' in kwargs: + if toleration_seconds is None and 'tolerationSeconds' in kwargs: toleration_seconds = kwargs['tolerationSeconds'] if effect is not None: @@ -34515,7 +34781,7 @@ def _configure( value: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'tolerationSeconds' in kwargs: + if toleration_seconds is None and 'tolerationSeconds' in kwargs: toleration_seconds = kwargs['tolerationSeconds'] if effect is not None: @@ -34591,10 +34857,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: str, - values: Sequence[str], + key: Optional[str] = None, + values: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if values is None: + raise TypeError("Missing 'values' argument") _setter("key", key) _setter("values", values) @@ -34702,7 +34972,7 @@ def _configure( match_label_expressions: Optional[Sequence['outputs.TopologySelectorLabelRequirement']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchLabelExpressions' in kwargs: + if match_label_expressions is None and 'matchLabelExpressions' in kwargs: match_label_expressions = kwargs['matchLabelExpressions'] if match_label_expressions is not None: @@ -34755,7 +35025,7 @@ def _configure( match_label_expressions: Optional[Sequence['outputs.TopologySelectorLabelRequirementPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchLabelExpressions' in kwargs: + if match_label_expressions is None and 'matchLabelExpressions' in kwargs: match_label_expressions = kwargs['matchLabelExpressions'] if match_label_expressions is not None: @@ -34853,9 +35123,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max_skew: int, - topology_key: str, - when_unsatisfiable: str, + max_skew: Optional[int] = None, + topology_key: Optional[str] = None, + when_unsatisfiable: Optional[str] = None, label_selector: Optional['_meta.v1.outputs.LabelSelector'] = None, match_label_keys: Optional[Sequence[str]] = None, min_domains: Optional[int] = None, @@ -34863,21 +35133,27 @@ def _configure( node_taints_policy: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSkew' in kwargs: + if max_skew is None and 'maxSkew' in kwargs: max_skew = kwargs['maxSkew'] - if 'topologyKey' in kwargs: + if max_skew is None: + raise TypeError("Missing 'max_skew' argument") + if topology_key is None and 'topologyKey' in kwargs: topology_key = kwargs['topologyKey'] - if 'whenUnsatisfiable' in kwargs: + if topology_key is None: + raise TypeError("Missing 'topology_key' argument") + if when_unsatisfiable is None and 'whenUnsatisfiable' in kwargs: when_unsatisfiable = kwargs['whenUnsatisfiable'] - if 'labelSelector' in kwargs: + if when_unsatisfiable is None: + raise TypeError("Missing 'when_unsatisfiable' argument") + if label_selector is None and 'labelSelector' in kwargs: label_selector = kwargs['labelSelector'] - if 'matchLabelKeys' in kwargs: + if match_label_keys is None and 'matchLabelKeys' in kwargs: match_label_keys = kwargs['matchLabelKeys'] - if 'minDomains' in kwargs: + if min_domains is None and 'minDomains' in kwargs: min_domains = kwargs['minDomains'] - if 'nodeAffinityPolicy' in kwargs: + if node_affinity_policy is None and 'nodeAffinityPolicy' in kwargs: node_affinity_policy = kwargs['nodeAffinityPolicy'] - if 'nodeTaintsPolicy' in kwargs: + if node_taints_policy is None and 'nodeTaintsPolicy' in kwargs: node_taints_policy = kwargs['nodeTaintsPolicy'] _setter("max_skew", max_skew) @@ -35065,21 +35341,21 @@ def _configure( when_unsatisfiable: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'labelSelector' in kwargs: + if label_selector is None and 'labelSelector' in kwargs: label_selector = kwargs['labelSelector'] - if 'matchLabelKeys' in kwargs: + if match_label_keys is None and 'matchLabelKeys' in kwargs: match_label_keys = kwargs['matchLabelKeys'] - if 'maxSkew' in kwargs: + if max_skew is None and 'maxSkew' in kwargs: max_skew = kwargs['maxSkew'] - if 'minDomains' in kwargs: + if min_domains is None and 'minDomains' in kwargs: min_domains = kwargs['minDomains'] - if 'nodeAffinityPolicy' in kwargs: + if node_affinity_policy is None and 'nodeAffinityPolicy' in kwargs: node_affinity_policy = kwargs['nodeAffinityPolicy'] - if 'nodeTaintsPolicy' in kwargs: + if node_taints_policy is None and 'nodeTaintsPolicy' in kwargs: node_taints_policy = kwargs['nodeTaintsPolicy'] - if 'topologyKey' in kwargs: + if topology_key is None and 'topologyKey' in kwargs: topology_key = kwargs['topologyKey'] - if 'whenUnsatisfiable' in kwargs: + if when_unsatisfiable is None and 'whenUnsatisfiable' in kwargs: when_unsatisfiable = kwargs['whenUnsatisfiable'] if label_selector is not None: @@ -35218,12 +35494,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_group: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -35302,7 +35582,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -35377,13 +35657,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_group: Optional[str] = None, namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -35472,7 +35756,7 @@ def _configure( namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -35680,7 +35964,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, aws_elastic_block_store: Optional['outputs.AWSElasticBlockStoreVolumeSource'] = None, azure_disk: Optional['outputs.AzureDiskVolumeSource'] = None, azure_file: Optional['outputs.AzureFileVolumeSource'] = None, @@ -35712,35 +35996,37 @@ def _configure( vsphere_volume: Optional['outputs.VsphereVirtualDiskVolumeSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'awsElasticBlockStore' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if aws_elastic_block_store is None and 'awsElasticBlockStore' in kwargs: aws_elastic_block_store = kwargs['awsElasticBlockStore'] - if 'azureDisk' in kwargs: + if azure_disk is None and 'azureDisk' in kwargs: azure_disk = kwargs['azureDisk'] - if 'azureFile' in kwargs: + if azure_file is None and 'azureFile' in kwargs: azure_file = kwargs['azureFile'] - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] - if 'downwardAPI' in kwargs: + if downward_api is None and 'downwardAPI' in kwargs: downward_api = kwargs['downwardAPI'] - if 'emptyDir' in kwargs: + if empty_dir is None and 'emptyDir' in kwargs: empty_dir = kwargs['emptyDir'] - if 'flexVolume' in kwargs: + if flex_volume is None and 'flexVolume' in kwargs: flex_volume = kwargs['flexVolume'] - if 'gcePersistentDisk' in kwargs: + if gce_persistent_disk is None and 'gcePersistentDisk' in kwargs: gce_persistent_disk = kwargs['gcePersistentDisk'] - if 'gitRepo' in kwargs: + if git_repo is None and 'gitRepo' in kwargs: git_repo = kwargs['gitRepo'] - if 'hostPath' in kwargs: + if host_path is None and 'hostPath' in kwargs: host_path = kwargs['hostPath'] - if 'persistentVolumeClaim' in kwargs: + if persistent_volume_claim is None and 'persistentVolumeClaim' in kwargs: persistent_volume_claim = kwargs['persistentVolumeClaim'] - if 'photonPersistentDisk' in kwargs: + if photon_persistent_disk is None and 'photonPersistentDisk' in kwargs: photon_persistent_disk = kwargs['photonPersistentDisk'] - if 'portworxVolume' in kwargs: + if portworx_volume is None and 'portworxVolume' in kwargs: portworx_volume = kwargs['portworxVolume'] - if 'scaleIO' in kwargs: + if scale_io is None and 'scaleIO' in kwargs: scale_io = kwargs['scaleIO'] - if 'vsphereVolume' in kwargs: + if vsphere_volume is None and 'vsphereVolume' in kwargs: vsphere_volume = kwargs['vsphereVolume'] _setter("name", name) @@ -36095,12 +36381,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - device_path: str, - name: str, + device_path: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'devicePath' in kwargs: + if device_path is None and 'devicePath' in kwargs: device_path = kwargs['devicePath'] + if device_path is None: + raise TypeError("Missing 'device_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("device_path", device_path) _setter("name", name) @@ -36164,7 +36454,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'devicePath' in kwargs: + if device_path is None and 'devicePath' in kwargs: device_path = kwargs['devicePath'] if device_path is not None: @@ -36247,23 +36537,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - mount_path: str, - name: str, + mount_path: Optional[str] = None, + name: Optional[str] = None, mount_propagation: Optional[str] = None, read_only: Optional[bool] = None, sub_path: Optional[str] = None, sub_path_expr: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'mountPath' in kwargs: + if mount_path is None and 'mountPath' in kwargs: mount_path = kwargs['mountPath'] - if 'mountPropagation' in kwargs: + if mount_path is None: + raise TypeError("Missing 'mount_path' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if mount_propagation is None and 'mountPropagation' in kwargs: mount_propagation = kwargs['mountPropagation'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'subPath' in kwargs: + if sub_path is None and 'subPath' in kwargs: sub_path = kwargs['subPath'] - if 'subPathExpr' in kwargs: + if sub_path_expr is None and 'subPathExpr' in kwargs: sub_path_expr = kwargs['subPathExpr'] _setter("mount_path", mount_path) @@ -36392,15 +36686,15 @@ def _configure( sub_path_expr: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'mountPath' in kwargs: + if mount_path is None and 'mountPath' in kwargs: mount_path = kwargs['mountPath'] - if 'mountPropagation' in kwargs: + if mount_propagation is None and 'mountPropagation' in kwargs: mount_propagation = kwargs['mountPropagation'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] - if 'subPath' in kwargs: + if sub_path is None and 'subPath' in kwargs: sub_path = kwargs['subPath'] - if 'subPathExpr' in kwargs: + if sub_path_expr is None and 'subPathExpr' in kwargs: sub_path_expr = kwargs['subPathExpr'] if mount_path is not None: @@ -36728,35 +37022,35 @@ def _configure( vsphere_volume: Optional['outputs.VsphereVirtualDiskVolumeSourcePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'awsElasticBlockStore' in kwargs: + if aws_elastic_block_store is None and 'awsElasticBlockStore' in kwargs: aws_elastic_block_store = kwargs['awsElasticBlockStore'] - if 'azureDisk' in kwargs: + if azure_disk is None and 'azureDisk' in kwargs: azure_disk = kwargs['azureDisk'] - if 'azureFile' in kwargs: + if azure_file is None and 'azureFile' in kwargs: azure_file = kwargs['azureFile'] - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] - if 'downwardAPI' in kwargs: + if downward_api is None and 'downwardAPI' in kwargs: downward_api = kwargs['downwardAPI'] - if 'emptyDir' in kwargs: + if empty_dir is None and 'emptyDir' in kwargs: empty_dir = kwargs['emptyDir'] - if 'flexVolume' in kwargs: + if flex_volume is None and 'flexVolume' in kwargs: flex_volume = kwargs['flexVolume'] - if 'gcePersistentDisk' in kwargs: + if gce_persistent_disk is None and 'gcePersistentDisk' in kwargs: gce_persistent_disk = kwargs['gcePersistentDisk'] - if 'gitRepo' in kwargs: + if git_repo is None and 'gitRepo' in kwargs: git_repo = kwargs['gitRepo'] - if 'hostPath' in kwargs: + if host_path is None and 'hostPath' in kwargs: host_path = kwargs['hostPath'] - if 'persistentVolumeClaim' in kwargs: + if persistent_volume_claim is None and 'persistentVolumeClaim' in kwargs: persistent_volume_claim = kwargs['persistentVolumeClaim'] - if 'photonPersistentDisk' in kwargs: + if photon_persistent_disk is None and 'photonPersistentDisk' in kwargs: photon_persistent_disk = kwargs['photonPersistentDisk'] - if 'portworxVolume' in kwargs: + if portworx_volume is None and 'portworxVolume' in kwargs: portworx_volume = kwargs['portworxVolume'] - if 'scaleIO' in kwargs: + if scale_io is None and 'scaleIO' in kwargs: scale_io = kwargs['scaleIO'] - if 'vsphereVolume' in kwargs: + if vsphere_volume is None and 'vsphereVolume' in kwargs: vsphere_volume = kwargs['vsphereVolume'] if aws_elastic_block_store is not None: @@ -37128,11 +37422,11 @@ def _configure( service_account_token: Optional['outputs.ServiceAccountTokenProjection'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] - if 'downwardAPI' in kwargs: + if downward_api is None and 'downwardAPI' in kwargs: downward_api = kwargs['downwardAPI'] - if 'serviceAccountToken' in kwargs: + if service_account_token is None and 'serviceAccountToken' in kwargs: service_account_token = kwargs['serviceAccountToken'] if config_map is not None: @@ -37231,11 +37525,11 @@ def _configure( service_account_token: Optional['outputs.ServiceAccountTokenProjectionPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'configMap' in kwargs: + if config_map is None and 'configMap' in kwargs: config_map = kwargs['configMap'] - if 'downwardAPI' in kwargs: + if downward_api is None and 'downwardAPI' in kwargs: downward_api = kwargs['downwardAPI'] - if 'serviceAccountToken' in kwargs: + if service_account_token is None and 'serviceAccountToken' in kwargs: service_account_token = kwargs['serviceAccountToken'] if config_map is not None: @@ -37330,19 +37624,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - volume_path: str, + volume_path: Optional[str] = None, fs_type: Optional[str] = None, storage_policy_id: Optional[str] = None, storage_policy_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'volumePath' in kwargs: + if volume_path is None and 'volumePath' in kwargs: volume_path = kwargs['volumePath'] - if 'fsType' in kwargs: + if volume_path is None: + raise TypeError("Missing 'volume_path' argument") + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'storagePolicyID' in kwargs: + if storage_policy_id is None and 'storagePolicyID' in kwargs: storage_policy_id = kwargs['storagePolicyID'] - if 'storagePolicyName' in kwargs: + if storage_policy_name is None and 'storagePolicyName' in kwargs: storage_policy_name = kwargs['storagePolicyName'] _setter("volume_path", volume_path) @@ -37442,13 +37738,13 @@ def _configure( volume_path: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsType' in kwargs: + if fs_type is None and 'fsType' in kwargs: fs_type = kwargs['fsType'] - if 'storagePolicyID' in kwargs: + if storage_policy_id is None and 'storagePolicyID' in kwargs: storage_policy_id = kwargs['storagePolicyID'] - if 'storagePolicyName' in kwargs: + if storage_policy_name is None and 'storagePolicyName' in kwargs: storage_policy_name = kwargs['storagePolicyName'] - if 'volumePath' in kwargs: + if volume_path is None and 'volumePath' in kwargs: volume_path = kwargs['volumePath'] if fs_type is not None: @@ -37531,12 +37827,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pod_affinity_term: 'outputs.PodAffinityTerm', - weight: int, + pod_affinity_term: Optional['outputs.PodAffinityTerm'] = None, + weight: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podAffinityTerm' in kwargs: + if pod_affinity_term is None and 'podAffinityTerm' in kwargs: pod_affinity_term = kwargs['podAffinityTerm'] + if pod_affinity_term is None: + raise TypeError("Missing 'pod_affinity_term' argument") + if weight is None: + raise TypeError("Missing 'weight' argument") _setter("pod_affinity_term", pod_affinity_term) _setter("weight", weight) @@ -37600,7 +37900,7 @@ def _configure( weight: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podAffinityTerm' in kwargs: + if pod_affinity_term is None and 'podAffinityTerm' in kwargs: pod_affinity_term = kwargs['podAffinityTerm'] if pod_affinity_term is not None: @@ -37681,13 +37981,13 @@ def _configure( run_as_user_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'gmsaCredentialSpec' in kwargs: + if gmsa_credential_spec is None and 'gmsaCredentialSpec' in kwargs: gmsa_credential_spec = kwargs['gmsaCredentialSpec'] - if 'gmsaCredentialSpecName' in kwargs: + if gmsa_credential_spec_name is None and 'gmsaCredentialSpecName' in kwargs: gmsa_credential_spec_name = kwargs['gmsaCredentialSpecName'] - if 'hostProcess' in kwargs: + if host_process is None and 'hostProcess' in kwargs: host_process = kwargs['hostProcess'] - if 'runAsUserName' in kwargs: + if run_as_user_name is None and 'runAsUserName' in kwargs: run_as_user_name = kwargs['runAsUserName'] if gmsa_credential_spec is not None: @@ -37788,13 +38088,13 @@ def _configure( run_as_user_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'gmsaCredentialSpec' in kwargs: + if gmsa_credential_spec is None and 'gmsaCredentialSpec' in kwargs: gmsa_credential_spec = kwargs['gmsaCredentialSpec'] - if 'gmsaCredentialSpecName' in kwargs: + if gmsa_credential_spec_name is None and 'gmsaCredentialSpecName' in kwargs: gmsa_credential_spec_name = kwargs['gmsaCredentialSpecName'] - if 'hostProcess' in kwargs: + if host_process is None and 'hostProcess' in kwargs: host_process = kwargs['hostProcess'] - if 'runAsUserName' in kwargs: + if run_as_user_name is None and 'runAsUserName' in kwargs: run_as_user_name = kwargs['runAsUserName'] if gmsa_credential_spec is not None: diff --git a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlice.py b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlice.py index 6898ce9d3f..4dfd169e37 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlice.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlice.py @@ -45,17 +45,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - address_type: pulumi.Input[str], - endpoints: pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]], + address_type: Optional[pulumi.Input[str]] = None, + endpoints: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, ports: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'addressType' in kwargs: + if address_type is None and 'addressType' in kwargs: address_type = kwargs['addressType'] - if 'apiVersion' in kwargs: + if address_type is None: + raise TypeError("Missing 'address_type' argument") + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("address_type", address_type) diff --git a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSliceList.py b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSliceList.py index 99f33eb024..48e0583715 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSliceList.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSliceList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py index 03d25af573..0887c9392e 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py @@ -53,9 +53,9 @@ def _configure( ports: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'addressType' in kwargs: + if address_type is None and 'addressType' in kwargs: address_type = kwargs['addressType'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if address_type is not None: diff --git a/sdk/python/pulumi_kubernetes/discovery/v1/_inputs.py b/sdk/python/pulumi_kubernetes/discovery/v1/_inputs.py index 27cb1e4e1d..3742136826 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1/_inputs.py @@ -185,7 +185,7 @@ def _configure( for_zones: Optional[pulumi.Input[Sequence[pulumi.Input['ForZonePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'forZones' in kwargs: + if for_zones is None and 'forZones' in kwargs: for_zones = kwargs['forZones'] if for_zones is not None: @@ -222,7 +222,7 @@ def _configure( for_zones: Optional[pulumi.Input[Sequence[pulumi.Input['ForZoneArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'forZones' in kwargs: + if for_zones is None and 'forZones' in kwargs: for_zones = kwargs['forZones'] if for_zones is not None: @@ -287,11 +287,11 @@ def _configure( zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deprecatedTopology' in kwargs: + if deprecated_topology is None and 'deprecatedTopology' in kwargs: deprecated_topology = kwargs['deprecatedTopology'] - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] if addresses is not None: @@ -447,7 +447,7 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -556,7 +556,7 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -656,17 +656,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - address_type: pulumi.Input[str], - endpoints: pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]], + address_type: Optional[pulumi.Input[str]] = None, + endpoints: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, ports: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'addressType' in kwargs: + if address_type is None and 'addressType' in kwargs: address_type = kwargs['addressType'] - if 'apiVersion' in kwargs: + if address_type is None: + raise TypeError("Missing 'address_type' argument") + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("address_type", address_type) @@ -789,7 +793,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - addresses: pulumi.Input[Sequence[pulumi.Input[str]]], + addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, conditions: Optional[pulumi.Input['EndpointConditionsArgs']] = None, deprecated_topology: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, hints: Optional[pulumi.Input['EndpointHintsArgs']] = None, @@ -799,11 +803,13 @@ def _configure( zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deprecatedTopology' in kwargs: + if addresses is None: + raise TypeError("Missing 'addresses' argument") + if deprecated_topology is None and 'deprecatedTopology' in kwargs: deprecated_topology = kwargs['deprecatedTopology'] - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] _setter("addresses", addresses) @@ -969,9 +975,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/discovery/v1/outputs.py b/sdk/python/pulumi_kubernetes/discovery/v1/outputs.py index ff131a5e1b..ef7b0ec1bc 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1/outputs.py @@ -86,7 +86,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - addresses: Sequence[str], + addresses: Optional[Sequence[str]] = None, conditions: Optional['outputs.EndpointConditions'] = None, deprecated_topology: Optional[Mapping[str, str]] = None, hints: Optional['outputs.EndpointHints'] = None, @@ -96,11 +96,13 @@ def _configure( zone: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deprecatedTopology' in kwargs: + if addresses is None: + raise TypeError("Missing 'addresses' argument") + if deprecated_topology is None and 'deprecatedTopology' in kwargs: deprecated_topology = kwargs['deprecatedTopology'] - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] _setter("addresses", addresses) @@ -346,7 +348,7 @@ def _configure( for_zones: Optional[Sequence['outputs.ForZone']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'forZones' in kwargs: + if for_zones is None and 'forZones' in kwargs: for_zones = kwargs['forZones'] if for_zones is not None: @@ -399,7 +401,7 @@ def _configure( for_zones: Optional[Sequence['outputs.ForZonePatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'forZones' in kwargs: + if for_zones is None and 'forZones' in kwargs: for_zones = kwargs['forZones'] if for_zones is not None: @@ -484,11 +486,11 @@ def _configure( zone: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deprecatedTopology' in kwargs: + if deprecated_topology is None and 'deprecatedTopology' in kwargs: deprecated_topology = kwargs['deprecatedTopology'] - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] if addresses is not None: @@ -632,7 +634,7 @@ def _configure( protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -745,7 +747,7 @@ def _configure( protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -851,17 +853,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - address_type: str, - endpoints: Sequence['outputs.Endpoint'], + address_type: Optional[str] = None, + endpoints: Optional[Sequence['outputs.Endpoint']] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, ports: Optional[Sequence['outputs.EndpointPort']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'addressType' in kwargs: + if address_type is None and 'addressType' in kwargs: address_type = kwargs['addressType'] - if 'apiVersion' in kwargs: + if address_type is None: + raise TypeError("Missing 'address_type' argument") + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("address_type", address_type) @@ -942,9 +948,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py index 25cef05f35..bd23c5e6fc 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py @@ -45,17 +45,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - address_type: pulumi.Input[str], - endpoints: pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]], + address_type: Optional[pulumi.Input[str]] = None, + endpoints: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, ports: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'addressType' in kwargs: + if address_type is None and 'addressType' in kwargs: address_type = kwargs['addressType'] - if 'apiVersion' in kwargs: + if address_type is None: + raise TypeError("Missing 'address_type' argument") + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("address_type", address_type) diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py index 2f92226a63..f7b7e55cdb 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointSliceArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py index f14d02af19..2a6575fac6 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py @@ -53,9 +53,9 @@ def _configure( ports: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'addressType' in kwargs: + if address_type is None and 'addressType' in kwargs: address_type = kwargs['addressType'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if address_type is not None: diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/_inputs.py index 2bd516566a..d3610998bc 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/_inputs.py @@ -207,9 +207,9 @@ def _configure( topology: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] if addresses is not None: @@ -334,7 +334,7 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -425,7 +425,7 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -516,17 +516,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - address_type: pulumi.Input[str], - endpoints: pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]], + address_type: Optional[pulumi.Input[str]] = None, + endpoints: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, ports: Optional[pulumi.Input[Sequence[pulumi.Input['EndpointPortArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'addressType' in kwargs: + if address_type is None and 'addressType' in kwargs: address_type = kwargs['addressType'] - if 'apiVersion' in kwargs: + if address_type is None: + raise TypeError("Missing 'address_type' argument") + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("address_type", address_type) @@ -649,7 +653,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - addresses: pulumi.Input[Sequence[pulumi.Input[str]]], + addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, conditions: Optional[pulumi.Input['EndpointConditionsArgs']] = None, hostname: Optional[pulumi.Input[str]] = None, node_name: Optional[pulumi.Input[str]] = None, @@ -657,9 +661,11 @@ def _configure( topology: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if addresses is None: + raise TypeError("Missing 'addresses' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] _setter("addresses", addresses) diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/outputs.py index 36b78b8077..25790a4ece 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/outputs.py @@ -80,7 +80,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - addresses: Sequence[str], + addresses: Optional[Sequence[str]] = None, conditions: Optional['outputs.EndpointConditions'] = None, hostname: Optional[str] = None, node_name: Optional[str] = None, @@ -88,9 +88,11 @@ def _configure( topology: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if addresses is None: + raise TypeError("Missing 'addresses' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] _setter("addresses", addresses) @@ -350,9 +352,9 @@ def _configure( topology: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] - if 'targetRef' in kwargs: + if target_ref is None and 'targetRef' in kwargs: target_ref = kwargs['targetRef'] if addresses is not None: @@ -473,7 +475,7 @@ def _configure( protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -568,7 +570,7 @@ def _configure( protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appProtocol' in kwargs: + if app_protocol is None and 'appProtocol' in kwargs: app_protocol = kwargs['appProtocol'] if app_protocol is not None: @@ -665,17 +667,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - address_type: str, - endpoints: Sequence['outputs.Endpoint'], + address_type: Optional[str] = None, + endpoints: Optional[Sequence['outputs.Endpoint']] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, ports: Optional[Sequence['outputs.EndpointPort']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'addressType' in kwargs: + if address_type is None and 'addressType' in kwargs: address_type = kwargs['addressType'] - if 'apiVersion' in kwargs: + if address_type is None: + raise TypeError("Missing 'address_type' argument") + if endpoints is None: + raise TypeError("Missing 'endpoints' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("address_type", address_type) diff --git a/sdk/python/pulumi_kubernetes/events/v1/Event.py b/sdk/python/pulumi_kubernetes/events/v1/Event.py index c7300fc507..8ac0da378a 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/Event.py +++ b/sdk/python/pulumi_kubernetes/events/v1/Event.py @@ -78,7 +78,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - event_time: pulumi.Input[str], + event_time: Optional[pulumi.Input[str]] = None, action: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, deprecated_count: Optional[pulumi.Input[int]] = None, @@ -97,21 +97,23 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'apiVersion' in kwargs: + if event_time is None: + raise TypeError("Missing 'event_time' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'deprecatedCount' in kwargs: + if deprecated_count is None and 'deprecatedCount' in kwargs: deprecated_count = kwargs['deprecatedCount'] - if 'deprecatedFirstTimestamp' in kwargs: + if deprecated_first_timestamp is None and 'deprecatedFirstTimestamp' in kwargs: deprecated_first_timestamp = kwargs['deprecatedFirstTimestamp'] - if 'deprecatedLastTimestamp' in kwargs: + if deprecated_last_timestamp is None and 'deprecatedLastTimestamp' in kwargs: deprecated_last_timestamp = kwargs['deprecatedLastTimestamp'] - if 'deprecatedSource' in kwargs: + if deprecated_source is None and 'deprecatedSource' in kwargs: deprecated_source = kwargs['deprecatedSource'] - if 'reportingController' in kwargs: + if reporting_controller is None and 'reportingController' in kwargs: reporting_controller = kwargs['reportingController'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] _setter("event_time", event_time) diff --git a/sdk/python/pulumi_kubernetes/events/v1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1/EventList.py index 923e3d3eee..1ad2bad342 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/EventList.py +++ b/sdk/python/pulumi_kubernetes/events/v1/EventList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['EventArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['EventArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/events/v1/EventPatch.py b/sdk/python/pulumi_kubernetes/events/v1/EventPatch.py index a90e6d40a5..564ca4fde0 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/EventPatch.py +++ b/sdk/python/pulumi_kubernetes/events/v1/EventPatch.py @@ -97,21 +97,21 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'deprecatedCount' in kwargs: + if deprecated_count is None and 'deprecatedCount' in kwargs: deprecated_count = kwargs['deprecatedCount'] - if 'deprecatedFirstTimestamp' in kwargs: + if deprecated_first_timestamp is None and 'deprecatedFirstTimestamp' in kwargs: deprecated_first_timestamp = kwargs['deprecatedFirstTimestamp'] - if 'deprecatedLastTimestamp' in kwargs: + if deprecated_last_timestamp is None and 'deprecatedLastTimestamp' in kwargs: deprecated_last_timestamp = kwargs['deprecatedLastTimestamp'] - if 'deprecatedSource' in kwargs: + if deprecated_source is None and 'deprecatedSource' in kwargs: deprecated_source = kwargs['deprecatedSource'] - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'reportingController' in kwargs: + if reporting_controller is None and 'reportingController' in kwargs: reporting_controller = kwargs['reportingController'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] if action is not None: diff --git a/sdk/python/pulumi_kubernetes/events/v1/_inputs.py b/sdk/python/pulumi_kubernetes/events/v1/_inputs.py index ff9ba74abc..af07cc9e55 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/events/v1/_inputs.py @@ -39,7 +39,7 @@ def _configure( last_observed_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] if count is not None: @@ -90,12 +90,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - count: pulumi.Input[int], - last_observed_time: pulumi.Input[str], + count: Optional[pulumi.Input[int]] = None, + last_observed_time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if count is None: + raise TypeError("Missing 'count' argument") + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] + if last_observed_time is None: + raise TypeError("Missing 'last_observed_time' argument") _setter("count", count) _setter("last_observed_time", last_observed_time) @@ -188,7 +192,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - event_time: pulumi.Input[str], + event_time: Optional[pulumi.Input[str]] = None, action: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, deprecated_count: Optional[pulumi.Input[int]] = None, @@ -207,21 +211,23 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'apiVersion' in kwargs: + if event_time is None: + raise TypeError("Missing 'event_time' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'deprecatedCount' in kwargs: + if deprecated_count is None and 'deprecatedCount' in kwargs: deprecated_count = kwargs['deprecatedCount'] - if 'deprecatedFirstTimestamp' in kwargs: + if deprecated_first_timestamp is None and 'deprecatedFirstTimestamp' in kwargs: deprecated_first_timestamp = kwargs['deprecatedFirstTimestamp'] - if 'deprecatedLastTimestamp' in kwargs: + if deprecated_last_timestamp is None and 'deprecatedLastTimestamp' in kwargs: deprecated_last_timestamp = kwargs['deprecatedLastTimestamp'] - if 'deprecatedSource' in kwargs: + if deprecated_source is None and 'deprecatedSource' in kwargs: deprecated_source = kwargs['deprecatedSource'] - if 'reportingController' in kwargs: + if reporting_controller is None and 'reportingController' in kwargs: reporting_controller = kwargs['reportingController'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] _setter("event_time", event_time) diff --git a/sdk/python/pulumi_kubernetes/events/v1/outputs.py b/sdk/python/pulumi_kubernetes/events/v1/outputs.py index 4d87a14037..8b949cbdd4 100644 --- a/sdk/python/pulumi_kubernetes/events/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/events/v1/outputs.py @@ -115,7 +115,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - event_time: str, + event_time: Optional[str] = None, action: Optional[str] = None, api_version: Optional[str] = None, deprecated_count: Optional[int] = None, @@ -134,21 +134,23 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'apiVersion' in kwargs: + if event_time is None: + raise TypeError("Missing 'event_time' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'deprecatedCount' in kwargs: + if deprecated_count is None and 'deprecatedCount' in kwargs: deprecated_count = kwargs['deprecatedCount'] - if 'deprecatedFirstTimestamp' in kwargs: + if deprecated_first_timestamp is None and 'deprecatedFirstTimestamp' in kwargs: deprecated_first_timestamp = kwargs['deprecatedFirstTimestamp'] - if 'deprecatedLastTimestamp' in kwargs: + if deprecated_last_timestamp is None and 'deprecatedLastTimestamp' in kwargs: deprecated_last_timestamp = kwargs['deprecatedLastTimestamp'] - if 'deprecatedSource' in kwargs: + if deprecated_source is None and 'deprecatedSource' in kwargs: deprecated_source = kwargs['deprecatedSource'] - if 'reportingController' in kwargs: + if reporting_controller is None and 'reportingController' in kwargs: reporting_controller = kwargs['reportingController'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] _setter("event_time", event_time) @@ -360,12 +362,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - count: int, - last_observed_time: str, + count: Optional[int] = None, + last_observed_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if count is None: + raise TypeError("Missing 'count' argument") + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] + if last_observed_time is None: + raise TypeError("Missing 'last_observed_time' argument") _setter("count", count) _setter("last_observed_time", last_observed_time) @@ -429,7 +435,7 @@ def _configure( last_observed_time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] if count is not None: diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py index dbf33c026e..7ce597f6cf 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py @@ -77,7 +77,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - event_time: pulumi.Input[str], + event_time: Optional[pulumi.Input[str]] = None, action: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, deprecated_count: Optional[pulumi.Input[int]] = None, @@ -96,21 +96,23 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'apiVersion' in kwargs: + if event_time is None: + raise TypeError("Missing 'event_time' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'deprecatedCount' in kwargs: + if deprecated_count is None and 'deprecatedCount' in kwargs: deprecated_count = kwargs['deprecatedCount'] - if 'deprecatedFirstTimestamp' in kwargs: + if deprecated_first_timestamp is None and 'deprecatedFirstTimestamp' in kwargs: deprecated_first_timestamp = kwargs['deprecatedFirstTimestamp'] - if 'deprecatedLastTimestamp' in kwargs: + if deprecated_last_timestamp is None and 'deprecatedLastTimestamp' in kwargs: deprecated_last_timestamp = kwargs['deprecatedLastTimestamp'] - if 'deprecatedSource' in kwargs: + if deprecated_source is None and 'deprecatedSource' in kwargs: deprecated_source = kwargs['deprecatedSource'] - if 'reportingController' in kwargs: + if reporting_controller is None and 'reportingController' in kwargs: reporting_controller = kwargs['reportingController'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] _setter("event_time", event_time) diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py index a68716519e..fc04cc2f09 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['EventArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['EventArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/EventPatch.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventPatch.py index 2540d70d30..9886de7cad 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/EventPatch.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/EventPatch.py @@ -96,21 +96,21 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'deprecatedCount' in kwargs: + if deprecated_count is None and 'deprecatedCount' in kwargs: deprecated_count = kwargs['deprecatedCount'] - if 'deprecatedFirstTimestamp' in kwargs: + if deprecated_first_timestamp is None and 'deprecatedFirstTimestamp' in kwargs: deprecated_first_timestamp = kwargs['deprecatedFirstTimestamp'] - if 'deprecatedLastTimestamp' in kwargs: + if deprecated_last_timestamp is None and 'deprecatedLastTimestamp' in kwargs: deprecated_last_timestamp = kwargs['deprecatedLastTimestamp'] - if 'deprecatedSource' in kwargs: + if deprecated_source is None and 'deprecatedSource' in kwargs: deprecated_source = kwargs['deprecatedSource'] - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'reportingController' in kwargs: + if reporting_controller is None and 'reportingController' in kwargs: reporting_controller = kwargs['reportingController'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] if action is not None: diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/events/v1beta1/_inputs.py index 72bb8b238b..e4e6c3de89 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/_inputs.py @@ -43,7 +43,7 @@ def _configure( state: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] if count is not None: @@ -111,13 +111,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - count: pulumi.Input[int], - last_observed_time: pulumi.Input[str], - state: pulumi.Input[str], + count: Optional[pulumi.Input[int]] = None, + last_observed_time: Optional[pulumi.Input[str]] = None, + state: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if count is None: + raise TypeError("Missing 'count' argument") + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] + if last_observed_time is None: + raise TypeError("Missing 'last_observed_time' argument") + if state is None: + raise TypeError("Missing 'state' argument") _setter("count", count) _setter("last_observed_time", last_observed_time) @@ -222,7 +228,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - event_time: pulumi.Input[str], + event_time: Optional[pulumi.Input[str]] = None, action: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, deprecated_count: Optional[pulumi.Input[int]] = None, @@ -241,21 +247,23 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'apiVersion' in kwargs: + if event_time is None: + raise TypeError("Missing 'event_time' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'deprecatedCount' in kwargs: + if deprecated_count is None and 'deprecatedCount' in kwargs: deprecated_count = kwargs['deprecatedCount'] - if 'deprecatedFirstTimestamp' in kwargs: + if deprecated_first_timestamp is None and 'deprecatedFirstTimestamp' in kwargs: deprecated_first_timestamp = kwargs['deprecatedFirstTimestamp'] - if 'deprecatedLastTimestamp' in kwargs: + if deprecated_last_timestamp is None and 'deprecatedLastTimestamp' in kwargs: deprecated_last_timestamp = kwargs['deprecatedLastTimestamp'] - if 'deprecatedSource' in kwargs: + if deprecated_source is None and 'deprecatedSource' in kwargs: deprecated_source = kwargs['deprecatedSource'] - if 'reportingController' in kwargs: + if reporting_controller is None and 'reportingController' in kwargs: reporting_controller = kwargs['reportingController'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] _setter("event_time", event_time) diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/events/v1beta1/outputs.py index d952c33b74..69f80bdd8e 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/outputs.py @@ -114,7 +114,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - event_time: str, + event_time: Optional[str] = None, action: Optional[str] = None, api_version: Optional[str] = None, deprecated_count: Optional[int] = None, @@ -133,21 +133,23 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'eventTime' in kwargs: + if event_time is None and 'eventTime' in kwargs: event_time = kwargs['eventTime'] - if 'apiVersion' in kwargs: + if event_time is None: + raise TypeError("Missing 'event_time' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'deprecatedCount' in kwargs: + if deprecated_count is None and 'deprecatedCount' in kwargs: deprecated_count = kwargs['deprecatedCount'] - if 'deprecatedFirstTimestamp' in kwargs: + if deprecated_first_timestamp is None and 'deprecatedFirstTimestamp' in kwargs: deprecated_first_timestamp = kwargs['deprecatedFirstTimestamp'] - if 'deprecatedLastTimestamp' in kwargs: + if deprecated_last_timestamp is None and 'deprecatedLastTimestamp' in kwargs: deprecated_last_timestamp = kwargs['deprecatedLastTimestamp'] - if 'deprecatedSource' in kwargs: + if deprecated_source is None and 'deprecatedSource' in kwargs: deprecated_source = kwargs['deprecatedSource'] - if 'reportingController' in kwargs: + if reporting_controller is None and 'reportingController' in kwargs: reporting_controller = kwargs['reportingController'] - if 'reportingInstance' in kwargs: + if reporting_instance is None and 'reportingInstance' in kwargs: reporting_instance = kwargs['reportingInstance'] _setter("event_time", event_time) @@ -359,13 +361,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - count: int, - last_observed_time: str, - state: str, + count: Optional[int] = None, + last_observed_time: Optional[str] = None, + state: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if count is None: + raise TypeError("Missing 'count' argument") + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] + if last_observed_time is None: + raise TypeError("Missing 'last_observed_time' argument") + if state is None: + raise TypeError("Missing 'state' argument") _setter("count", count) _setter("last_observed_time", last_observed_time) @@ -442,7 +450,7 @@ def _configure( state: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastObservedTime' in kwargs: + if last_observed_time is None and 'lastObservedTime' in kwargs: last_observed_time = kwargs['lastObservedTime'] if count is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py index 65c3ecd145..e0c7cdbf2f 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DaemonSetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py index 0fbb78e8d3..64472bf269 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['DaemonSetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py index d14a3f6a81..a315192d29 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DaemonSetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py index 3e8c55006e..cfdca620ff 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DeploymentSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py index 9510684fae..cfa36e24e4 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['DeploymentArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py index 70ffee1731..0a735f916b 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['DeploymentSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py index 5ac4b45083..30b1a8b865 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['IngressSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py index b2af233104..128a2a4022 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['IngressArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['IngressArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressPatch.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressPatch.py index cecaacb25a..b4df1d9e7f 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressPatch.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['IngressSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py index 2da71be4b7..213999c340 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['NetworkPolicySpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py index 9846a66af0..bd3afe1db5 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py index d75d9852d4..65662fc561 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['NetworkPolicySpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py index 0bcd132498..1512ac6823 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['PodSecurityPolicySpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py index 0b4c1129cb..da8fecf2a2 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py index 7a589b87cc..2cc9cb1727 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['PodSecurityPolicySpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py index a8a0996f84..d683142c38 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ReplicaSetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py index daa2b003ce..693748be5b 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ReplicaSetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py index 1a74418f41..4332c7d4f4 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ReplicaSetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/_inputs.py index b02d622bf1..508fc158ac 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/_inputs.py @@ -141,9 +141,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -210,9 +212,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: pulumi.Input[str], + driver: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if driver is None: + raise TypeError("Missing 'driver' argument") _setter("driver", driver) @@ -253,9 +257,9 @@ def _configure( read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathPrefix' in kwargs: + if path_prefix is None and 'pathPrefix' in kwargs: path_prefix = kwargs['pathPrefix'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path_prefix is not None: @@ -314,9 +318,9 @@ def _configure( read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathPrefix' in kwargs: + if path_prefix is None and 'pathPrefix' in kwargs: path_prefix = kwargs['pathPrefix'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path_prefix is not None: @@ -378,14 +382,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -496,13 +504,13 @@ def _configure( update_strategy: Optional[pulumi.Input['DaemonSetUpdateStrategyPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'templateGeneration' in kwargs: + if template_generation is None and 'templateGeneration' in kwargs: template_generation = kwargs['templateGeneration'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] if min_ready_seconds is not None: @@ -621,7 +629,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, revision_history_limit: Optional[pulumi.Input[int]] = None, selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, @@ -629,13 +637,15 @@ def _configure( update_strategy: Optional[pulumi.Input['DaemonSetUpdateStrategyArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'templateGeneration' in kwargs: + if template_generation is None and 'templateGeneration' in kwargs: template_generation = kwargs['templateGeneration'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] _setter("template", template) @@ -765,10 +775,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_number_scheduled: pulumi.Input[int], - desired_number_scheduled: pulumi.Input[int], - number_misscheduled: pulumi.Input[int], - number_ready: pulumi.Input[int], + current_number_scheduled: Optional[pulumi.Input[int]] = None, + desired_number_scheduled: Optional[pulumi.Input[int]] = None, + number_misscheduled: Optional[pulumi.Input[int]] = None, + number_ready: Optional[pulumi.Input[int]] = None, collision_count: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['DaemonSetConditionArgs']]]] = None, number_available: Optional[pulumi.Input[int]] = None, @@ -777,23 +787,31 @@ def _configure( updated_number_scheduled: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentNumberScheduled' in kwargs: + if current_number_scheduled is None and 'currentNumberScheduled' in kwargs: current_number_scheduled = kwargs['currentNumberScheduled'] - if 'desiredNumberScheduled' in kwargs: + if current_number_scheduled is None: + raise TypeError("Missing 'current_number_scheduled' argument") + if desired_number_scheduled is None and 'desiredNumberScheduled' in kwargs: desired_number_scheduled = kwargs['desiredNumberScheduled'] - if 'numberMisscheduled' in kwargs: + if desired_number_scheduled is None: + raise TypeError("Missing 'desired_number_scheduled' argument") + if number_misscheduled is None and 'numberMisscheduled' in kwargs: number_misscheduled = kwargs['numberMisscheduled'] - if 'numberReady' in kwargs: + if number_misscheduled is None: + raise TypeError("Missing 'number_misscheduled' argument") + if number_ready is None and 'numberReady' in kwargs: number_ready = kwargs['numberReady'] - if 'collisionCount' in kwargs: + if number_ready is None: + raise TypeError("Missing 'number_ready' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'numberAvailable' in kwargs: + if number_available is None and 'numberAvailable' in kwargs: number_available = kwargs['numberAvailable'] - if 'numberUnavailable' in kwargs: + if number_unavailable is None and 'numberUnavailable' in kwargs: number_unavailable = kwargs['numberUnavailable'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'updatedNumberScheduled' in kwargs: + if updated_number_scheduled is None and 'updatedNumberScheduled' in kwargs: updated_number_scheduled = kwargs['updatedNumberScheduled'] _setter("current_number_scheduled", current_number_scheduled) @@ -955,7 +973,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1009,7 +1027,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1076,7 +1094,7 @@ def _configure( status: Optional[pulumi.Input['DaemonSetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1181,17 +1199,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, last_update_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -1328,13 +1350,13 @@ def _configure( template: Optional[pulumi.Input['_core.v1.PodTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'rollbackTo' in kwargs: + if rollback_to is None and 'rollbackTo' in kwargs: rollback_to = kwargs['rollbackTo'] if min_ready_seconds is not None: @@ -1504,7 +1526,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - template: pulumi.Input['_core.v1.PodTemplateSpecArgs'], + template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, min_ready_seconds: Optional[pulumi.Input[int]] = None, paused: Optional[pulumi.Input[bool]] = None, progress_deadline_seconds: Optional[pulumi.Input[int]] = None, @@ -1515,13 +1537,15 @@ def _configure( strategy: Optional[pulumi.Input['DeploymentStrategyArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'rollbackTo' in kwargs: + if rollback_to is None and 'rollbackTo' in kwargs: rollback_to = kwargs['rollbackTo'] _setter("template", template) @@ -1697,17 +1721,17 @@ def _configure( updated_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -1846,7 +1870,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1901,7 +1925,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1990,7 +2014,7 @@ def _configure( status: Optional[pulumi.Input['DeploymentStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2207,7 +2231,7 @@ def _configure( path_type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] if backend is not None: @@ -2295,12 +2319,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - backend: pulumi.Input['IngressBackendArgs'], + backend: Optional[pulumi.Input['IngressBackendArgs']] = None, path: Optional[pulumi.Input[str]] = None, path_type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if backend is None: + raise TypeError("Missing 'backend' argument") + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] _setter("backend", backend) @@ -2406,9 +2432,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - paths: pulumi.Input[Sequence[pulumi.Input['HTTPIngressPathArgs']]], + paths: Optional[pulumi.Input[Sequence[pulumi.Input['HTTPIngressPathArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if paths is None: + raise TypeError("Missing 'paths' argument") _setter("paths", paths) @@ -2496,10 +2524,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max: pulumi.Input[int], - min: pulumi.Input[int], + max: Optional[pulumi.Input[int]] = None, + min: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if max is None: + raise TypeError("Missing 'max' argument") + if min is None: + raise TypeError("Missing 'min' argument") _setter("max", max) _setter("min", min) @@ -2600,10 +2632,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max: pulumi.Input[int], - min: pulumi.Input[int], + max: Optional[pulumi.Input[int]] = None, + min: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if max is None: + raise TypeError("Missing 'max' argument") + if min is None: + raise TypeError("Missing 'min' argument") _setter("max", max) _setter("min", min) @@ -2655,7 +2691,7 @@ def _configure( except_: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'except' in kwargs: + if except_ is None and 'except' in kwargs: except_ = kwargs['except'] if cidr is not None: @@ -2706,11 +2742,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - cidr: pulumi.Input[str], + cidr: Optional[pulumi.Input[str]] = None, except_: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'except' in kwargs: + if cidr is None: + raise TypeError("Missing 'cidr' argument") + if except_ is None and 'except' in kwargs: except_ = kwargs['except'] _setter("cidr", cidr) @@ -2768,9 +2806,9 @@ def _configure( service_port: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'servicePort' in kwargs: + if service_port is None and 'servicePort' in kwargs: service_port = kwargs['servicePort'] if resource is not None: @@ -2838,15 +2876,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - service_name: pulumi.Input[str], - service_port: pulumi.Input[Union[int, str]], + service_name: Optional[pulumi.Input[str]] = None, + service_port: Optional[pulumi.Input[Union[int, str]]] = None, resource: Optional[pulumi.Input['_core.v1.TypedLocalObjectReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'servicePort' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if service_port is None and 'servicePort' in kwargs: service_port = kwargs['servicePort'] + if service_port is None: + raise TypeError("Missing 'service_port' argument") _setter("service_name", service_name) _setter("service_port", service_port) @@ -3038,7 +3080,7 @@ def _configure( tls: Optional[pulumi.Input[Sequence[pulumi.Input['IngressTLSPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if backend is not None: @@ -3129,7 +3171,7 @@ def _configure( tls: Optional[pulumi.Input[Sequence[pulumi.Input['IngressTLSArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if backend is not None: @@ -3208,7 +3250,7 @@ def _configure( load_balancer: Optional[pulumi.Input['_core.v1.LoadBalancerStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if load_balancer is not None: @@ -3249,7 +3291,7 @@ def _configure( secret_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -3304,7 +3346,7 @@ def _configure( secret_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -3385,7 +3427,7 @@ def _configure( status: Optional[pulumi.Input['IngressStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -3588,7 +3630,7 @@ def _configure( ports: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyPortPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'from' in kwargs: + if from_ is None and 'from' in kwargs: from_ = kwargs['from'] if from_ is not None: @@ -3643,7 +3685,7 @@ def _configure( ports: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyPortArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'from' in kwargs: + if from_ is None and 'from' in kwargs: from_ = kwargs['from'] if from_ is not None: @@ -3706,11 +3748,11 @@ def _configure( pod_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ipBlock' in kwargs: + if ip_block is None and 'ipBlock' in kwargs: ip_block = kwargs['ipBlock'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] if ip_block is not None: @@ -3791,11 +3833,11 @@ def _configure( pod_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ipBlock' in kwargs: + if ip_block is None and 'ipBlock' in kwargs: ip_block = kwargs['ipBlock'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] if ip_block is not None: @@ -3982,9 +4024,9 @@ def _configure( policy_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] - if 'policyTypes' in kwargs: + if policy_types is None and 'policyTypes' in kwargs: policy_types = kwargs['policyTypes'] if egress is not None: @@ -4069,15 +4111,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pod_selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], + pod_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, egress: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyEgressRuleArgs']]]] = None, ingress: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyIngressRuleArgs']]]] = None, policy_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] - if 'policyTypes' in kwargs: + if pod_selector is None: + raise TypeError("Missing 'pod_selector' argument") + if policy_types is None and 'policyTypes' in kwargs: policy_types = kwargs['policyTypes'] _setter("pod_selector", pod_selector) @@ -4167,7 +4211,7 @@ def _configure( spec: Optional[pulumi.Input['NetworkPolicySpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -4342,49 +4386,49 @@ def _configure( volumes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowPrivilegeEscalation' in kwargs: + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'allowedCSIDrivers' in kwargs: + if allowed_csi_drivers is None and 'allowedCSIDrivers' in kwargs: allowed_csi_drivers = kwargs['allowedCSIDrivers'] - if 'allowedCapabilities' in kwargs: + if allowed_capabilities is None and 'allowedCapabilities' in kwargs: allowed_capabilities = kwargs['allowedCapabilities'] - if 'allowedFlexVolumes' in kwargs: + if allowed_flex_volumes is None and 'allowedFlexVolumes' in kwargs: allowed_flex_volumes = kwargs['allowedFlexVolumes'] - if 'allowedHostPaths' in kwargs: + if allowed_host_paths is None and 'allowedHostPaths' in kwargs: allowed_host_paths = kwargs['allowedHostPaths'] - if 'allowedProcMountTypes' in kwargs: + if allowed_proc_mount_types is None and 'allowedProcMountTypes' in kwargs: allowed_proc_mount_types = kwargs['allowedProcMountTypes'] - if 'allowedUnsafeSysctls' in kwargs: + if allowed_unsafe_sysctls is None and 'allowedUnsafeSysctls' in kwargs: allowed_unsafe_sysctls = kwargs['allowedUnsafeSysctls'] - if 'defaultAddCapabilities' in kwargs: + if default_add_capabilities is None and 'defaultAddCapabilities' in kwargs: default_add_capabilities = kwargs['defaultAddCapabilities'] - if 'defaultAllowPrivilegeEscalation' in kwargs: + if default_allow_privilege_escalation is None and 'defaultAllowPrivilegeEscalation' in kwargs: default_allow_privilege_escalation = kwargs['defaultAllowPrivilegeEscalation'] - if 'forbiddenSysctls' in kwargs: + if forbidden_sysctls is None and 'forbiddenSysctls' in kwargs: forbidden_sysctls = kwargs['forbiddenSysctls'] - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostPorts' in kwargs: + if host_ports is None and 'hostPorts' in kwargs: host_ports = kwargs['hostPorts'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'requiredDropCapabilities' in kwargs: + if required_drop_capabilities is None and 'requiredDropCapabilities' in kwargs: required_drop_capabilities = kwargs['requiredDropCapabilities'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'runtimeClass' in kwargs: + if runtime_class is None and 'runtimeClass' in kwargs: runtime_class = kwargs['runtimeClass'] - if 'seLinux' in kwargs: + if se_linux is None and 'seLinux' in kwargs: se_linux = kwargs['seLinux'] - if 'supplementalGroups' in kwargs: + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] if allow_privilege_escalation is not None: @@ -4817,10 +4861,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - fs_group: pulumi.Input['FSGroupStrategyOptionsArgs'], - run_as_user: pulumi.Input['RunAsUserStrategyOptionsArgs'], - se_linux: pulumi.Input['SELinuxStrategyOptionsArgs'], - supplemental_groups: pulumi.Input['SupplementalGroupsStrategyOptionsArgs'], + fs_group: Optional[pulumi.Input['FSGroupStrategyOptionsArgs']] = None, + run_as_user: Optional[pulumi.Input['RunAsUserStrategyOptionsArgs']] = None, + se_linux: Optional[pulumi.Input['SELinuxStrategyOptionsArgs']] = None, + supplemental_groups: Optional[pulumi.Input['SupplementalGroupsStrategyOptionsArgs']] = None, allow_privilege_escalation: Optional[pulumi.Input[bool]] = None, allowed_csi_drivers: Optional[pulumi.Input[Sequence[pulumi.Input['AllowedCSIDriverArgs']]]] = None, allowed_capabilities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -4843,49 +4887,57 @@ def _configure( volumes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'runAsUser' in kwargs: + if fs_group is None: + raise TypeError("Missing 'fs_group' argument") + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinux' in kwargs: + if run_as_user is None: + raise TypeError("Missing 'run_as_user' argument") + if se_linux is None and 'seLinux' in kwargs: se_linux = kwargs['seLinux'] - if 'supplementalGroups' in kwargs: + if se_linux is None: + raise TypeError("Missing 'se_linux' argument") + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] - if 'allowPrivilegeEscalation' in kwargs: + if supplemental_groups is None: + raise TypeError("Missing 'supplemental_groups' argument") + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'allowedCSIDrivers' in kwargs: + if allowed_csi_drivers is None and 'allowedCSIDrivers' in kwargs: allowed_csi_drivers = kwargs['allowedCSIDrivers'] - if 'allowedCapabilities' in kwargs: + if allowed_capabilities is None and 'allowedCapabilities' in kwargs: allowed_capabilities = kwargs['allowedCapabilities'] - if 'allowedFlexVolumes' in kwargs: + if allowed_flex_volumes is None and 'allowedFlexVolumes' in kwargs: allowed_flex_volumes = kwargs['allowedFlexVolumes'] - if 'allowedHostPaths' in kwargs: + if allowed_host_paths is None and 'allowedHostPaths' in kwargs: allowed_host_paths = kwargs['allowedHostPaths'] - if 'allowedProcMountTypes' in kwargs: + if allowed_proc_mount_types is None and 'allowedProcMountTypes' in kwargs: allowed_proc_mount_types = kwargs['allowedProcMountTypes'] - if 'allowedUnsafeSysctls' in kwargs: + if allowed_unsafe_sysctls is None and 'allowedUnsafeSysctls' in kwargs: allowed_unsafe_sysctls = kwargs['allowedUnsafeSysctls'] - if 'defaultAddCapabilities' in kwargs: + if default_add_capabilities is None and 'defaultAddCapabilities' in kwargs: default_add_capabilities = kwargs['defaultAddCapabilities'] - if 'defaultAllowPrivilegeEscalation' in kwargs: + if default_allow_privilege_escalation is None and 'defaultAllowPrivilegeEscalation' in kwargs: default_allow_privilege_escalation = kwargs['defaultAllowPrivilegeEscalation'] - if 'forbiddenSysctls' in kwargs: + if forbidden_sysctls is None and 'forbiddenSysctls' in kwargs: forbidden_sysctls = kwargs['forbiddenSysctls'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostPorts' in kwargs: + if host_ports is None and 'hostPorts' in kwargs: host_ports = kwargs['hostPorts'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'requiredDropCapabilities' in kwargs: + if required_drop_capabilities is None and 'requiredDropCapabilities' in kwargs: required_drop_capabilities = kwargs['requiredDropCapabilities'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runtimeClass' in kwargs: + if runtime_class is None and 'runtimeClass' in kwargs: runtime_class = kwargs['runtimeClass'] _setter("fs_group", fs_group) @@ -5256,7 +5308,7 @@ def _configure( spec: Optional[pulumi.Input['PodSecurityPolicySpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -5344,14 +5396,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: pulumi.Input[str], - type: pulumi.Input[str], + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, last_transition_time: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -5454,7 +5510,7 @@ def _configure( template: Optional[pulumi.Input['_core.v1.PodTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -5545,7 +5601,7 @@ def _configure( template: Optional[pulumi.Input['_core.v1.PodTemplateSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -5636,7 +5692,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: pulumi.Input[int], + replicas: Optional[pulumi.Input[int]] = None, available_replicas: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['ReplicaSetConditionArgs']]]] = None, fully_labeled_replicas: Optional[pulumi.Input[int]] = None, @@ -5644,13 +5700,15 @@ def _configure( ready_replicas: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] _setter("replicas", replicas) @@ -5772,7 +5830,7 @@ def _configure( status: Optional[pulumi.Input['ReplicaSetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -5935,7 +5993,7 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -5972,7 +6030,7 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -6013,9 +6071,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -6070,9 +6128,9 @@ def _configure( max_unavailable: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -6176,10 +6234,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: pulumi.Input[str], + rule: Optional[pulumi.Input[str]] = None, ranges: Optional[pulumi.Input[Sequence[pulumi.Input['IDRangeArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rule is None: + raise TypeError("Missing 'rule' argument") _setter("rule", rule) if ranges is not None: @@ -6281,10 +6341,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: pulumi.Input[str], + rule: Optional[pulumi.Input[str]] = None, ranges: Optional[pulumi.Input[Sequence[pulumi.Input['IDRangeArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rule is None: + raise TypeError("Missing 'rule' argument") _setter("rule", rule) if ranges is not None: @@ -6337,9 +6399,9 @@ def _configure( default_runtime_class_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowedRuntimeClassNames' in kwargs: + if allowed_runtime_class_names is None and 'allowedRuntimeClassNames' in kwargs: allowed_runtime_class_names = kwargs['allowedRuntimeClassNames'] - if 'defaultRuntimeClassName' in kwargs: + if default_runtime_class_name is None and 'defaultRuntimeClassName' in kwargs: default_runtime_class_name = kwargs['defaultRuntimeClassName'] if allowed_runtime_class_names is not None: @@ -6390,13 +6452,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - allowed_runtime_class_names: pulumi.Input[Sequence[pulumi.Input[str]]], + allowed_runtime_class_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, default_runtime_class_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowedRuntimeClassNames' in kwargs: + if allowed_runtime_class_names is None and 'allowedRuntimeClassNames' in kwargs: allowed_runtime_class_names = kwargs['allowedRuntimeClassNames'] - if 'defaultRuntimeClassName' in kwargs: + if allowed_runtime_class_names is None: + raise TypeError("Missing 'allowed_runtime_class_names' argument") + if default_runtime_class_name is None and 'defaultRuntimeClassName' in kwargs: default_runtime_class_name = kwargs['defaultRuntimeClassName'] _setter("allowed_runtime_class_names", allowed_runtime_class_names) @@ -6450,7 +6514,7 @@ def _configure( se_linux_options: Optional[pulumi.Input['_core.v1.SELinuxOptionsPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] if rule is not None: @@ -6501,11 +6565,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: pulumi.Input[str], + rule: Optional[pulumi.Input[str]] = None, se_linux_options: Optional[pulumi.Input['_core.v1.SELinuxOptionsArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'seLinuxOptions' in kwargs: + if rule is None: + raise TypeError("Missing 'rule' argument") + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] _setter("rule", rule) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/outputs.py index 014e7b9a32..e46ae2e5c2 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/outputs.py @@ -117,9 +117,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -184,9 +186,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: str, + driver: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if driver is None: + raise TypeError("Missing 'driver' argument") _setter("driver", driver) @@ -279,9 +283,9 @@ def _configure( read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathPrefix' in kwargs: + if path_prefix is None and 'pathPrefix' in kwargs: path_prefix = kwargs['pathPrefix'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path_prefix is not None: @@ -354,9 +358,9 @@ def _configure( read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathPrefix' in kwargs: + if path_prefix is None and 'pathPrefix' in kwargs: path_prefix = kwargs['pathPrefix'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path_prefix is not None: @@ -437,7 +441,7 @@ def _configure( status: Optional['outputs.DaemonSetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -539,14 +543,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -653,7 +661,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -764,7 +772,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - template: '_core.v1.outputs.PodTemplateSpec', + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, min_ready_seconds: Optional[int] = None, revision_history_limit: Optional[int] = None, selector: Optional['_meta.v1.outputs.LabelSelector'] = None, @@ -772,13 +780,15 @@ def _configure( update_strategy: Optional['outputs.DaemonSetUpdateStrategy'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'templateGeneration' in kwargs: + if template_generation is None and 'templateGeneration' in kwargs: template_generation = kwargs['templateGeneration'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] _setter("template", template) @@ -906,13 +916,13 @@ def _configure( update_strategy: Optional['outputs.DaemonSetUpdateStrategyPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'templateGeneration' in kwargs: + if template_generation is None and 'templateGeneration' in kwargs: template_generation = kwargs['templateGeneration'] - if 'updateStrategy' in kwargs: + if update_strategy is None and 'updateStrategy' in kwargs: update_strategy = kwargs['updateStrategy'] if min_ready_seconds is not None: @@ -1055,10 +1065,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_number_scheduled: int, - desired_number_scheduled: int, - number_misscheduled: int, - number_ready: int, + current_number_scheduled: Optional[int] = None, + desired_number_scheduled: Optional[int] = None, + number_misscheduled: Optional[int] = None, + number_ready: Optional[int] = None, collision_count: Optional[int] = None, conditions: Optional[Sequence['outputs.DaemonSetCondition']] = None, number_available: Optional[int] = None, @@ -1067,23 +1077,31 @@ def _configure( updated_number_scheduled: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentNumberScheduled' in kwargs: + if current_number_scheduled is None and 'currentNumberScheduled' in kwargs: current_number_scheduled = kwargs['currentNumberScheduled'] - if 'desiredNumberScheduled' in kwargs: + if current_number_scheduled is None: + raise TypeError("Missing 'current_number_scheduled' argument") + if desired_number_scheduled is None and 'desiredNumberScheduled' in kwargs: desired_number_scheduled = kwargs['desiredNumberScheduled'] - if 'numberMisscheduled' in kwargs: + if desired_number_scheduled is None: + raise TypeError("Missing 'desired_number_scheduled' argument") + if number_misscheduled is None and 'numberMisscheduled' in kwargs: number_misscheduled = kwargs['numberMisscheduled'] - if 'numberReady' in kwargs: + if number_misscheduled is None: + raise TypeError("Missing 'number_misscheduled' argument") + if number_ready is None and 'numberReady' in kwargs: number_ready = kwargs['numberReady'] - if 'collisionCount' in kwargs: + if number_ready is None: + raise TypeError("Missing 'number_ready' argument") + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'numberAvailable' in kwargs: + if number_available is None and 'numberAvailable' in kwargs: number_available = kwargs['numberAvailable'] - if 'numberUnavailable' in kwargs: + if number_unavailable is None and 'numberUnavailable' in kwargs: number_unavailable = kwargs['numberUnavailable'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'updatedNumberScheduled' in kwargs: + if updated_number_scheduled is None and 'updatedNumberScheduled' in kwargs: updated_number_scheduled = kwargs['updatedNumberScheduled'] _setter("current_number_scheduled", current_number_scheduled) @@ -1274,23 +1292,23 @@ def _configure( updated_number_scheduled: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'currentNumberScheduled' in kwargs: + if current_number_scheduled is None and 'currentNumberScheduled' in kwargs: current_number_scheduled = kwargs['currentNumberScheduled'] - if 'desiredNumberScheduled' in kwargs: + if desired_number_scheduled is None and 'desiredNumberScheduled' in kwargs: desired_number_scheduled = kwargs['desiredNumberScheduled'] - if 'numberAvailable' in kwargs: + if number_available is None and 'numberAvailable' in kwargs: number_available = kwargs['numberAvailable'] - if 'numberMisscheduled' in kwargs: + if number_misscheduled is None and 'numberMisscheduled' in kwargs: number_misscheduled = kwargs['numberMisscheduled'] - if 'numberReady' in kwargs: + if number_ready is None and 'numberReady' in kwargs: number_ready = kwargs['numberReady'] - if 'numberUnavailable' in kwargs: + if number_unavailable is None and 'numberUnavailable' in kwargs: number_unavailable = kwargs['numberUnavailable'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'updatedNumberScheduled' in kwargs: + if updated_number_scheduled is None and 'updatedNumberScheduled' in kwargs: updated_number_scheduled = kwargs['updatedNumberScheduled'] if collision_count is not None: @@ -1433,7 +1451,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1496,7 +1514,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -1619,7 +1637,7 @@ def _configure( status: Optional['outputs.DeploymentStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1726,17 +1744,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, last_update_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] _setter("status", status) @@ -1859,9 +1881,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'lastUpdateTime' in kwargs: + if last_update_time is None and 'lastUpdateTime' in kwargs: last_update_time = kwargs['lastUpdateTime'] if last_transition_time is not None: @@ -1991,7 +2013,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - template: '_core.v1.outputs.PodTemplateSpec', + template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, min_ready_seconds: Optional[int] = None, paused: Optional[bool] = None, progress_deadline_seconds: Optional[int] = None, @@ -2002,13 +2024,15 @@ def _configure( strategy: Optional['outputs.DeploymentStrategy'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if template is None: + raise TypeError("Missing 'template' argument") + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'rollbackTo' in kwargs: + if rollback_to is None and 'rollbackTo' in kwargs: rollback_to = kwargs['rollbackTo'] _setter("template", template) @@ -2178,13 +2202,13 @@ def _configure( template: Optional['_core.v1.outputs.PodTemplateSpecPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] - if 'progressDeadlineSeconds' in kwargs: + if progress_deadline_seconds is None and 'progressDeadlineSeconds' in kwargs: progress_deadline_seconds = kwargs['progressDeadlineSeconds'] - if 'revisionHistoryLimit' in kwargs: + if revision_history_limit is None and 'revisionHistoryLimit' in kwargs: revision_history_limit = kwargs['revisionHistoryLimit'] - if 'rollbackTo' in kwargs: + if rollback_to is None and 'rollbackTo' in kwargs: rollback_to = kwargs['rollbackTo'] if min_ready_seconds is not None: @@ -2355,17 +2379,17 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -2526,17 +2550,17 @@ def _configure( updated_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'collisionCount' in kwargs: + if collision_count is None and 'collisionCount' in kwargs: collision_count = kwargs['collisionCount'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] - if 'unavailableReplicas' in kwargs: + if unavailable_replicas is None and 'unavailableReplicas' in kwargs: unavailable_replicas = kwargs['unavailableReplicas'] - if 'updatedReplicas' in kwargs: + if updated_replicas is None and 'updatedReplicas' in kwargs: updated_replicas = kwargs['updatedReplicas'] if available_replicas is not None: @@ -2663,7 +2687,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -2730,7 +2754,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'rollingUpdate' in kwargs: + if rolling_update is None and 'rollingUpdate' in kwargs: rolling_update = kwargs['rollingUpdate'] if rolling_update is not None: @@ -2902,12 +2926,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - backend: 'outputs.IngressBackend', + backend: Optional['outputs.IngressBackend'] = None, path: Optional[str] = None, path_type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if backend is None: + raise TypeError("Missing 'backend' argument") + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] _setter("backend", backend) @@ -3007,7 +3033,7 @@ def _configure( path_type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] if backend is not None: @@ -3070,9 +3096,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - paths: Sequence['outputs.HTTPIngressPath'], + paths: Optional[Sequence['outputs.HTTPIngressPath']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if paths is None: + raise TypeError("Missing 'paths' argument") _setter("paths", paths) @@ -3140,10 +3168,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max: int, - min: int, + max: Optional[int] = None, + min: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if max is None: + raise TypeError("Missing 'max' argument") + if min is None: + raise TypeError("Missing 'min' argument") _setter("max", max) _setter("min", min) @@ -3234,10 +3266,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max: int, - min: int, + max: Optional[int] = None, + min: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if max is None: + raise TypeError("Missing 'max' argument") + if min is None: + raise TypeError("Missing 'min' argument") _setter("max", max) _setter("min", min) @@ -3345,11 +3381,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - cidr: str, + cidr: Optional[str] = None, except_: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'except' in kwargs: + if cidr is None: + raise TypeError("Missing 'cidr' argument") + if except_ is None and 'except' in kwargs: except_ = kwargs['except'] _setter("cidr", cidr) @@ -3415,7 +3453,7 @@ def _configure( except_: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'except' in kwargs: + if except_ is None and 'except' in kwargs: except_ = kwargs['except'] if cidr is not None: @@ -3522,7 +3560,7 @@ def _configure( status: Optional['outputs.IngressStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -3620,15 +3658,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - service_name: str, - service_port: Any, + service_name: Optional[str] = None, + service_port: Optional[Any] = None, resource: Optional['_core.v1.outputs.TypedLocalObjectReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'servicePort' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if service_port is None and 'servicePort' in kwargs: service_port = kwargs['servicePort'] + if service_port is None: + raise TypeError("Missing 'service_port' argument") _setter("service_name", service_name) _setter("service_port", service_port) @@ -3708,9 +3750,9 @@ def _configure( service_port: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'servicePort' in kwargs: + if service_port is None and 'servicePort' in kwargs: service_port = kwargs['servicePort'] if resource is not None: @@ -3903,7 +3945,7 @@ def _configure( tls: Optional[Sequence['outputs.IngressTLS']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if backend is not None: @@ -3998,7 +4040,7 @@ def _configure( tls: Optional[Sequence['outputs.IngressTLSPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if backend is not None: @@ -4081,7 +4123,7 @@ def _configure( load_balancer: Optional['_core.v1.outputs.LoadBalancerStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if load_balancer is not None: @@ -4134,7 +4176,7 @@ def _configure( load_balancer: Optional['_core.v1.outputs.LoadBalancerStatusPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if load_balancer is not None: @@ -4191,7 +4233,7 @@ def _configure( secret_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -4258,7 +4300,7 @@ def _configure( secret_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -4333,7 +4375,7 @@ def _configure( spec: Optional['outputs.NetworkPolicySpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -4516,7 +4558,7 @@ def _configure( ports: Optional[Sequence['outputs.NetworkPolicyPort']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'from' in kwargs: + if from_ is None and 'from' in kwargs: from_ = kwargs['from'] if from_ is not None: @@ -4583,7 +4625,7 @@ def _configure( ports: Optional[Sequence['outputs.NetworkPolicyPortPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'from' in kwargs: + if from_ is None and 'from' in kwargs: from_ = kwargs['from'] if from_ is not None: @@ -4662,11 +4704,11 @@ def _configure( pod_selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ipBlock' in kwargs: + if ip_block is None and 'ipBlock' in kwargs: ip_block = kwargs['ipBlock'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] if ip_block is not None: @@ -4759,11 +4801,11 @@ def _configure( pod_selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ipBlock' in kwargs: + if ip_block is None and 'ipBlock' in kwargs: ip_block = kwargs['ipBlock'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] if ip_block is not None: @@ -4944,15 +4986,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pod_selector: '_meta.v1.outputs.LabelSelector', + pod_selector: Optional['_meta.v1.outputs.LabelSelector'] = None, egress: Optional[Sequence['outputs.NetworkPolicyEgressRule']] = None, ingress: Optional[Sequence['outputs.NetworkPolicyIngressRule']] = None, policy_types: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] - if 'policyTypes' in kwargs: + if pod_selector is None: + raise TypeError("Missing 'pod_selector' argument") + if policy_types is None and 'policyTypes' in kwargs: policy_types = kwargs['policyTypes'] _setter("pod_selector", pod_selector) @@ -5048,9 +5092,9 @@ def _configure( policy_types: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] - if 'policyTypes' in kwargs: + if policy_types is None and 'policyTypes' in kwargs: policy_types = kwargs['policyTypes'] if egress is not None: @@ -5145,7 +5189,7 @@ def _configure( spec: Optional['outputs.PodSecurityPolicySpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -5340,10 +5384,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - fs_group: 'outputs.FSGroupStrategyOptions', - run_as_user: 'outputs.RunAsUserStrategyOptions', - se_linux: 'outputs.SELinuxStrategyOptions', - supplemental_groups: 'outputs.SupplementalGroupsStrategyOptions', + fs_group: Optional['outputs.FSGroupStrategyOptions'] = None, + run_as_user: Optional['outputs.RunAsUserStrategyOptions'] = None, + se_linux: Optional['outputs.SELinuxStrategyOptions'] = None, + supplemental_groups: Optional['outputs.SupplementalGroupsStrategyOptions'] = None, allow_privilege_escalation: Optional[bool] = None, allowed_csi_drivers: Optional[Sequence['outputs.AllowedCSIDriver']] = None, allowed_capabilities: Optional[Sequence[str]] = None, @@ -5366,49 +5410,57 @@ def _configure( volumes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'runAsUser' in kwargs: + if fs_group is None: + raise TypeError("Missing 'fs_group' argument") + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinux' in kwargs: + if run_as_user is None: + raise TypeError("Missing 'run_as_user' argument") + if se_linux is None and 'seLinux' in kwargs: se_linux = kwargs['seLinux'] - if 'supplementalGroups' in kwargs: + if se_linux is None: + raise TypeError("Missing 'se_linux' argument") + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] - if 'allowPrivilegeEscalation' in kwargs: + if supplemental_groups is None: + raise TypeError("Missing 'supplemental_groups' argument") + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'allowedCSIDrivers' in kwargs: + if allowed_csi_drivers is None and 'allowedCSIDrivers' in kwargs: allowed_csi_drivers = kwargs['allowedCSIDrivers'] - if 'allowedCapabilities' in kwargs: + if allowed_capabilities is None and 'allowedCapabilities' in kwargs: allowed_capabilities = kwargs['allowedCapabilities'] - if 'allowedFlexVolumes' in kwargs: + if allowed_flex_volumes is None and 'allowedFlexVolumes' in kwargs: allowed_flex_volumes = kwargs['allowedFlexVolumes'] - if 'allowedHostPaths' in kwargs: + if allowed_host_paths is None and 'allowedHostPaths' in kwargs: allowed_host_paths = kwargs['allowedHostPaths'] - if 'allowedProcMountTypes' in kwargs: + if allowed_proc_mount_types is None and 'allowedProcMountTypes' in kwargs: allowed_proc_mount_types = kwargs['allowedProcMountTypes'] - if 'allowedUnsafeSysctls' in kwargs: + if allowed_unsafe_sysctls is None and 'allowedUnsafeSysctls' in kwargs: allowed_unsafe_sysctls = kwargs['allowedUnsafeSysctls'] - if 'defaultAddCapabilities' in kwargs: + if default_add_capabilities is None and 'defaultAddCapabilities' in kwargs: default_add_capabilities = kwargs['defaultAddCapabilities'] - if 'defaultAllowPrivilegeEscalation' in kwargs: + if default_allow_privilege_escalation is None and 'defaultAllowPrivilegeEscalation' in kwargs: default_allow_privilege_escalation = kwargs['defaultAllowPrivilegeEscalation'] - if 'forbiddenSysctls' in kwargs: + if forbidden_sysctls is None and 'forbiddenSysctls' in kwargs: forbidden_sysctls = kwargs['forbiddenSysctls'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostPorts' in kwargs: + if host_ports is None and 'hostPorts' in kwargs: host_ports = kwargs['hostPorts'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'requiredDropCapabilities' in kwargs: + if required_drop_capabilities is None and 'requiredDropCapabilities' in kwargs: required_drop_capabilities = kwargs['requiredDropCapabilities'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runtimeClass' in kwargs: + if runtime_class is None and 'runtimeClass' in kwargs: runtime_class = kwargs['runtimeClass'] _setter("fs_group", fs_group) @@ -5829,49 +5881,49 @@ def _configure( volumes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowPrivilegeEscalation' in kwargs: + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'allowedCSIDrivers' in kwargs: + if allowed_csi_drivers is None and 'allowedCSIDrivers' in kwargs: allowed_csi_drivers = kwargs['allowedCSIDrivers'] - if 'allowedCapabilities' in kwargs: + if allowed_capabilities is None and 'allowedCapabilities' in kwargs: allowed_capabilities = kwargs['allowedCapabilities'] - if 'allowedFlexVolumes' in kwargs: + if allowed_flex_volumes is None and 'allowedFlexVolumes' in kwargs: allowed_flex_volumes = kwargs['allowedFlexVolumes'] - if 'allowedHostPaths' in kwargs: + if allowed_host_paths is None and 'allowedHostPaths' in kwargs: allowed_host_paths = kwargs['allowedHostPaths'] - if 'allowedProcMountTypes' in kwargs: + if allowed_proc_mount_types is None and 'allowedProcMountTypes' in kwargs: allowed_proc_mount_types = kwargs['allowedProcMountTypes'] - if 'allowedUnsafeSysctls' in kwargs: + if allowed_unsafe_sysctls is None and 'allowedUnsafeSysctls' in kwargs: allowed_unsafe_sysctls = kwargs['allowedUnsafeSysctls'] - if 'defaultAddCapabilities' in kwargs: + if default_add_capabilities is None and 'defaultAddCapabilities' in kwargs: default_add_capabilities = kwargs['defaultAddCapabilities'] - if 'defaultAllowPrivilegeEscalation' in kwargs: + if default_allow_privilege_escalation is None and 'defaultAllowPrivilegeEscalation' in kwargs: default_allow_privilege_escalation = kwargs['defaultAllowPrivilegeEscalation'] - if 'forbiddenSysctls' in kwargs: + if forbidden_sysctls is None and 'forbiddenSysctls' in kwargs: forbidden_sysctls = kwargs['forbiddenSysctls'] - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostPorts' in kwargs: + if host_ports is None and 'hostPorts' in kwargs: host_ports = kwargs['hostPorts'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'requiredDropCapabilities' in kwargs: + if required_drop_capabilities is None and 'requiredDropCapabilities' in kwargs: required_drop_capabilities = kwargs['requiredDropCapabilities'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'runtimeClass' in kwargs: + if runtime_class is None and 'runtimeClass' in kwargs: runtime_class = kwargs['runtimeClass'] - if 'seLinux' in kwargs: + if se_linux is None and 'seLinux' in kwargs: se_linux = kwargs['seLinux'] - if 'supplementalGroups' in kwargs: + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] if allow_privilege_escalation is not None: @@ -6174,7 +6226,7 @@ def _configure( status: Optional['outputs.ReplicaSetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -6276,14 +6328,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, - type: str, + status: Optional[str] = None, + type: Optional[str] = None, last_transition_time: Optional[str] = None, message: Optional[str] = None, reason: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] _setter("status", status) @@ -6390,7 +6446,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -6495,7 +6551,7 @@ def _configure( template: Optional['_core.v1.outputs.PodTemplateSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -6590,7 +6646,7 @@ def _configure( template: Optional['_core.v1.outputs.PodTemplateSpecPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'minReadySeconds' in kwargs: + if min_ready_seconds is None and 'minReadySeconds' in kwargs: min_ready_seconds = kwargs['minReadySeconds'] if min_ready_seconds is not None: @@ -6691,7 +6747,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - replicas: int, + replicas: Optional[int] = None, available_replicas: Optional[int] = None, conditions: Optional[Sequence['outputs.ReplicaSetCondition']] = None, fully_labeled_replicas: Optional[int] = None, @@ -6699,13 +6755,15 @@ def _configure( ready_replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if replicas is None: + raise TypeError("Missing 'replicas' argument") + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] _setter("replicas", replicas) @@ -6833,13 +6891,13 @@ def _configure( replicas: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableReplicas' in kwargs: + if available_replicas is None and 'availableReplicas' in kwargs: available_replicas = kwargs['availableReplicas'] - if 'fullyLabeledReplicas' in kwargs: + if fully_labeled_replicas is None and 'fullyLabeledReplicas' in kwargs: fully_labeled_replicas = kwargs['fullyLabeledReplicas'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] - if 'readyReplicas' in kwargs: + if ready_replicas is None and 'readyReplicas' in kwargs: ready_replicas = kwargs['readyReplicas'] if available_replicas is not None: @@ -7010,7 +7068,7 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -7063,7 +7121,7 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_unavailable is not None: @@ -7122,9 +7180,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -7193,9 +7251,9 @@ def _configure( max_unavailable: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxSurge' in kwargs: + if max_surge is None and 'maxSurge' in kwargs: max_surge = kwargs['maxSurge'] - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] if max_surge is not None: @@ -7241,10 +7299,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: str, + rule: Optional[str] = None, ranges: Optional[Sequence['outputs.IDRange']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rule is None: + raise TypeError("Missing 'rule' argument") _setter("rule", rule) if ranges is not None: @@ -7336,10 +7396,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: str, + rule: Optional[str] = None, ranges: Optional[Sequence['outputs.IDRange']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rule is None: + raise TypeError("Missing 'rule' argument") _setter("rule", rule) if ranges is not None: @@ -7450,13 +7512,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - allowed_runtime_class_names: Sequence[str], + allowed_runtime_class_names: Optional[Sequence[str]] = None, default_runtime_class_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowedRuntimeClassNames' in kwargs: + if allowed_runtime_class_names is None and 'allowedRuntimeClassNames' in kwargs: allowed_runtime_class_names = kwargs['allowedRuntimeClassNames'] - if 'defaultRuntimeClassName' in kwargs: + if allowed_runtime_class_names is None: + raise TypeError("Missing 'allowed_runtime_class_names' argument") + if default_runtime_class_name is None and 'defaultRuntimeClassName' in kwargs: default_runtime_class_name = kwargs['defaultRuntimeClassName'] _setter("allowed_runtime_class_names", allowed_runtime_class_names) @@ -7524,9 +7588,9 @@ def _configure( default_runtime_class_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowedRuntimeClassNames' in kwargs: + if allowed_runtime_class_names is None and 'allowedRuntimeClassNames' in kwargs: allowed_runtime_class_names = kwargs['allowedRuntimeClassNames'] - if 'defaultRuntimeClassName' in kwargs: + if default_runtime_class_name is None and 'defaultRuntimeClassName' in kwargs: default_runtime_class_name = kwargs['defaultRuntimeClassName'] if allowed_runtime_class_names is not None: @@ -7589,11 +7653,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: str, + rule: Optional[str] = None, se_linux_options: Optional['_core.v1.outputs.SELinuxOptions'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'seLinuxOptions' in kwargs: + if rule is None: + raise TypeError("Missing 'rule' argument") + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] _setter("rule", rule) @@ -7659,7 +7725,7 @@ def _configure( se_linux_options: Optional['_core.v1.outputs.SELinuxOptionsPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] if rule is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py index 79f104bc16..1ab3f99ce8 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['FlowSchemaSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py index 1cfd42854a..118cdc91c5 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py index 68cb43d569..bc166df7c5 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['FlowSchemaSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py index 9e9ccc4ba2..daaae6d292 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py index 703fb5595b..595bf7237a 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py index 5504ead165..a8dd550756 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py index 879a96d752..cb9353ead8 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py @@ -97,9 +97,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) @@ -150,7 +152,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -255,11 +257,11 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulesWithSubjectsPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'distinguisherMethod' in kwargs: + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] if distinguisher_method is not None: @@ -344,17 +346,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - priority_level_configuration: pulumi.Input['PriorityLevelConfigurationReferenceArgs'], + priority_level_configuration: Optional[pulumi.Input['PriorityLevelConfigurationReferenceArgs']] = None, distinguisher_method: Optional[pulumi.Input['FlowDistinguisherMethodArgs']] = None, matching_precedence: Optional[pulumi.Input[int]] = None, rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulesWithSubjectsArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] - if 'distinguisherMethod' in kwargs: + if priority_level_configuration is None: + raise TypeError("Missing 'priority_level_configuration' argument") + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] _setter("priority_level_configuration", priority_level_configuration) @@ -483,7 +487,7 @@ def _configure( status: Optional[pulumi.Input['FlowSchemaStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -608,9 +612,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -698,10 +704,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, queuing: Optional[pulumi.Input['QueuingConfigurationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if queuing is not None: @@ -760,9 +768,9 @@ def _configure( limit_response: Optional[pulumi.Input['LimitResponsePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -827,9 +835,9 @@ def _configure( limit_response: Optional[pulumi.Input['LimitResponseArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -894,7 +902,7 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] if non_resource_urls is not None: @@ -957,12 +965,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - non_resource_urls: pulumi.Input[Sequence[pulumi.Input[str]]], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + non_resource_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] + if non_resource_urls is None: + raise TypeError("Missing 'non_resource_urls' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") _setter("non_resource_urls", non_resource_urls) _setter("verbs", verbs) @@ -1024,9 +1036,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if non_resource_rules is not None: @@ -1094,14 +1106,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - subjects: pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]], + subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, non_resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NonResourcePolicyRuleArgs']]]] = None, resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if subjects is None: + raise TypeError("Missing 'subjects' argument") + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] _setter("subjects", subjects) @@ -1181,7 +1195,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1306,9 +1320,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -1396,10 +1412,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, limited: Optional[pulumi.Input['LimitedPriorityLevelConfigurationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if limited is not None: @@ -1499,7 +1517,7 @@ def _configure( status: Optional[pulumi.Input['PriorityLevelConfigurationStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1600,9 +1618,9 @@ def _configure( queues: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -1675,9 +1693,9 @@ def _configure( queues: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -1758,9 +1776,9 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] if api_groups is not None: @@ -1862,16 +1880,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_groups: pulumi.Input[Sequence[pulumi.Input[str]]], - resources: pulumi.Input[Sequence[pulumi.Input[str]]], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + api_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, cluster_scope: Optional[pulumi.Input[bool]] = None, namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if api_groups is None: + raise TypeError("Missing 'api_groups' argument") + if resources is None: + raise TypeError("Missing 'resources' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] _setter("api_groups", api_groups) @@ -2014,10 +2038,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2074,7 +2102,7 @@ def _configure( user: Optional[pulumi.Input['UserSubjectPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] if group is not None: @@ -2147,13 +2175,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input['GroupSubjectArgs']] = None, service_account: Optional[pulumi.Input['ServiceAccountSubjectArgs']] = None, user: Optional[pulumi.Input['UserSubjectArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] _setter("kind", kind) @@ -2254,9 +2284,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py index 87fb7c7f07..19062f30a8 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py @@ -70,9 +70,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) @@ -173,7 +175,7 @@ def _configure( status: Optional['outputs.FlowSchemaStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -282,7 +284,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -391,7 +393,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -494,17 +496,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - priority_level_configuration: 'outputs.PriorityLevelConfigurationReference', + priority_level_configuration: Optional['outputs.PriorityLevelConfigurationReference'] = None, distinguisher_method: Optional['outputs.FlowDistinguisherMethod'] = None, matching_precedence: Optional[int] = None, rules: Optional[Sequence['outputs.PolicyRulesWithSubjects']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] - if 'distinguisherMethod' in kwargs: + if priority_level_configuration is None: + raise TypeError("Missing 'priority_level_configuration' argument") + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] _setter("priority_level_configuration", priority_level_configuration) @@ -602,11 +606,11 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRulesWithSubjectsPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'distinguisherMethod' in kwargs: + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] if distinguisher_method is not None: @@ -737,9 +741,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -807,10 +813,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, queuing: Optional['outputs.QueuingConfiguration'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if queuing is not None: @@ -933,9 +941,9 @@ def _configure( limit_response: Optional['outputs.LimitResponse'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -1016,9 +1024,9 @@ def _configure( limit_response: Optional['outputs.LimitResponsePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -1091,12 +1099,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - non_resource_urls: Sequence[str], - verbs: Sequence[str], + non_resource_urls: Optional[Sequence[str]] = None, + verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] + if non_resource_urls is None: + raise TypeError("Missing 'non_resource_urls' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") _setter("non_resource_urls", non_resource_urls) _setter("verbs", verbs) @@ -1172,7 +1184,7 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] if non_resource_urls is not None: @@ -1246,14 +1258,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - subjects: Sequence['outputs.Subject'], + subjects: Optional[Sequence['outputs.Subject']] = None, non_resource_rules: Optional[Sequence['outputs.NonResourcePolicyRule']] = None, resource_rules: Optional[Sequence['outputs.ResourcePolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if subjects is None: + raise TypeError("Missing 'subjects' argument") + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] _setter("subjects", subjects) @@ -1335,9 +1349,9 @@ def _configure( subjects: Optional[Sequence['outputs.SubjectPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if non_resource_rules is not None: @@ -1426,7 +1440,7 @@ def _configure( status: Optional['outputs.PriorityLevelConfigurationStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1535,7 +1549,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1644,7 +1658,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1717,9 +1731,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -1787,10 +1803,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, limited: Optional['outputs.LimitedPriorityLevelConfiguration'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if limited is not None: @@ -1977,9 +1995,9 @@ def _configure( queues: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2062,9 +2080,9 @@ def _configure( queues: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2148,16 +2166,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_groups: Sequence[str], - resources: Sequence[str], - verbs: Sequence[str], + api_groups: Optional[Sequence[str]] = None, + resources: Optional[Sequence[str]] = None, + verbs: Optional[Sequence[str]] = None, cluster_scope: Optional[bool] = None, namespaces: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if api_groups is None: + raise TypeError("Missing 'api_groups' argument") + if resources is None: + raise TypeError("Missing 'resources' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] _setter("api_groups", api_groups) @@ -2265,9 +2289,9 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] if api_groups is not None: @@ -2343,10 +2367,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - namespace: str, + name: Optional[str] = None, + namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2457,13 +2485,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, + kind: Optional[str] = None, group: Optional['outputs.GroupSubject'] = None, service_account: Optional['outputs.ServiceAccountSubject'] = None, user: Optional['outputs.UserSubject'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] _setter("kind", kind) @@ -2545,7 +2575,7 @@ def _configure( user: Optional['outputs.UserSubjectPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] if group is not None: @@ -2599,9 +2629,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py index 21c6a37b41..855fe950d8 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['FlowSchemaSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py index 6f7e261d01..af50ffff1c 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py index f133fbfdec..838829aec6 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['FlowSchemaSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py index df078e169b..3fb5a5dfe0 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py index 46c128f8c9..dabf53aca6 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py index ed0371d581..6809f81827 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py index e273e92202..023952b053 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py @@ -97,9 +97,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) @@ -150,7 +152,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -255,11 +257,11 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulesWithSubjectsPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'distinguisherMethod' in kwargs: + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] if distinguisher_method is not None: @@ -344,17 +346,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - priority_level_configuration: pulumi.Input['PriorityLevelConfigurationReferenceArgs'], + priority_level_configuration: Optional[pulumi.Input['PriorityLevelConfigurationReferenceArgs']] = None, distinguisher_method: Optional[pulumi.Input['FlowDistinguisherMethodArgs']] = None, matching_precedence: Optional[pulumi.Input[int]] = None, rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulesWithSubjectsArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] - if 'distinguisherMethod' in kwargs: + if priority_level_configuration is None: + raise TypeError("Missing 'priority_level_configuration' argument") + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] _setter("priority_level_configuration", priority_level_configuration) @@ -483,7 +487,7 @@ def _configure( status: Optional[pulumi.Input['FlowSchemaStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -608,9 +612,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -698,10 +704,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, queuing: Optional[pulumi.Input['QueuingConfigurationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if queuing is not None: @@ -760,9 +768,9 @@ def _configure( limit_response: Optional[pulumi.Input['LimitResponsePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -827,9 +835,9 @@ def _configure( limit_response: Optional[pulumi.Input['LimitResponseArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -894,7 +902,7 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] if non_resource_urls is not None: @@ -957,12 +965,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - non_resource_urls: pulumi.Input[Sequence[pulumi.Input[str]]], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + non_resource_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] + if non_resource_urls is None: + raise TypeError("Missing 'non_resource_urls' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") _setter("non_resource_urls", non_resource_urls) _setter("verbs", verbs) @@ -1024,9 +1036,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if non_resource_rules is not None: @@ -1094,14 +1106,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - subjects: pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]], + subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, non_resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NonResourcePolicyRuleArgs']]]] = None, resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if subjects is None: + raise TypeError("Missing 'subjects' argument") + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] _setter("subjects", subjects) @@ -1181,7 +1195,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1306,9 +1320,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -1396,10 +1412,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, limited: Optional[pulumi.Input['LimitedPriorityLevelConfigurationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if limited is not None: @@ -1499,7 +1517,7 @@ def _configure( status: Optional[pulumi.Input['PriorityLevelConfigurationStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1600,9 +1618,9 @@ def _configure( queues: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -1675,9 +1693,9 @@ def _configure( queues: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -1758,9 +1776,9 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] if api_groups is not None: @@ -1862,16 +1880,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_groups: pulumi.Input[Sequence[pulumi.Input[str]]], - resources: pulumi.Input[Sequence[pulumi.Input[str]]], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + api_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, cluster_scope: Optional[pulumi.Input[bool]] = None, namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if api_groups is None: + raise TypeError("Missing 'api_groups' argument") + if resources is None: + raise TypeError("Missing 'resources' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] _setter("api_groups", api_groups) @@ -2014,10 +2038,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2074,7 +2102,7 @@ def _configure( user: Optional[pulumi.Input['UserSubjectPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] if group is not None: @@ -2147,13 +2175,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input['GroupSubjectArgs']] = None, service_account: Optional[pulumi.Input['ServiceAccountSubjectArgs']] = None, user: Optional[pulumi.Input['UserSubjectArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] _setter("kind", kind) @@ -2254,9 +2284,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/outputs.py index 81748f469c..596817e248 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta1/outputs.py @@ -70,9 +70,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) @@ -173,7 +175,7 @@ def _configure( status: Optional['outputs.FlowSchemaStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -282,7 +284,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -391,7 +393,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -494,17 +496,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - priority_level_configuration: 'outputs.PriorityLevelConfigurationReference', + priority_level_configuration: Optional['outputs.PriorityLevelConfigurationReference'] = None, distinguisher_method: Optional['outputs.FlowDistinguisherMethod'] = None, matching_precedence: Optional[int] = None, rules: Optional[Sequence['outputs.PolicyRulesWithSubjects']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] - if 'distinguisherMethod' in kwargs: + if priority_level_configuration is None: + raise TypeError("Missing 'priority_level_configuration' argument") + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] _setter("priority_level_configuration", priority_level_configuration) @@ -602,11 +606,11 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRulesWithSubjectsPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'distinguisherMethod' in kwargs: + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] if distinguisher_method is not None: @@ -737,9 +741,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -807,10 +813,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, queuing: Optional['outputs.QueuingConfiguration'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if queuing is not None: @@ -933,9 +941,9 @@ def _configure( limit_response: Optional['outputs.LimitResponse'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -1016,9 +1024,9 @@ def _configure( limit_response: Optional['outputs.LimitResponsePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -1091,12 +1099,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - non_resource_urls: Sequence[str], - verbs: Sequence[str], + non_resource_urls: Optional[Sequence[str]] = None, + verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] + if non_resource_urls is None: + raise TypeError("Missing 'non_resource_urls' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") _setter("non_resource_urls", non_resource_urls) _setter("verbs", verbs) @@ -1172,7 +1184,7 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] if non_resource_urls is not None: @@ -1246,14 +1258,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - subjects: Sequence['outputs.Subject'], + subjects: Optional[Sequence['outputs.Subject']] = None, non_resource_rules: Optional[Sequence['outputs.NonResourcePolicyRule']] = None, resource_rules: Optional[Sequence['outputs.ResourcePolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if subjects is None: + raise TypeError("Missing 'subjects' argument") + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] _setter("subjects", subjects) @@ -1335,9 +1349,9 @@ def _configure( subjects: Optional[Sequence['outputs.SubjectPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if non_resource_rules is not None: @@ -1426,7 +1440,7 @@ def _configure( status: Optional['outputs.PriorityLevelConfigurationStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1535,7 +1549,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1644,7 +1658,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1717,9 +1731,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -1787,10 +1803,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, limited: Optional['outputs.LimitedPriorityLevelConfiguration'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if limited is not None: @@ -1977,9 +1995,9 @@ def _configure( queues: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2062,9 +2080,9 @@ def _configure( queues: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2148,16 +2166,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_groups: Sequence[str], - resources: Sequence[str], - verbs: Sequence[str], + api_groups: Optional[Sequence[str]] = None, + resources: Optional[Sequence[str]] = None, + verbs: Optional[Sequence[str]] = None, cluster_scope: Optional[bool] = None, namespaces: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if api_groups is None: + raise TypeError("Missing 'api_groups' argument") + if resources is None: + raise TypeError("Missing 'resources' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] _setter("api_groups", api_groups) @@ -2265,9 +2289,9 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] if api_groups is not None: @@ -2343,10 +2367,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - namespace: str, + name: Optional[str] = None, + namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2457,13 +2485,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, + kind: Optional[str] = None, group: Optional['outputs.GroupSubject'] = None, service_account: Optional['outputs.ServiceAccountSubject'] = None, user: Optional['outputs.UserSubject'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] _setter("kind", kind) @@ -2545,7 +2575,7 @@ def _configure( user: Optional['outputs.UserSubjectPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] if group is not None: @@ -2599,9 +2629,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py index 27e58a6388..c34e10b795 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['FlowSchemaSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py index 5bd3fb8678..303bd9aa2a 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py index 02bc405def..9ac0189f88 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['FlowSchemaSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py index 18a7e5217e..b45060bcf8 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py index cb23f67f7a..bf94b83e7d 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py index 9b0143c914..8d5e0bfb06 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py index 3d6e27a27e..e21c91db2e 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py @@ -77,9 +77,9 @@ def _configure( nominal_concurrency_shares: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if lendable_percent is not None: @@ -146,9 +146,9 @@ def _configure( nominal_concurrency_shares: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if lendable_percent is not None: @@ -237,9 +237,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) @@ -290,7 +292,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -395,11 +397,11 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulesWithSubjectsPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'distinguisherMethod' in kwargs: + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] if distinguisher_method is not None: @@ -484,17 +486,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - priority_level_configuration: pulumi.Input['PriorityLevelConfigurationReferenceArgs'], + priority_level_configuration: Optional[pulumi.Input['PriorityLevelConfigurationReferenceArgs']] = None, distinguisher_method: Optional[pulumi.Input['FlowDistinguisherMethodArgs']] = None, matching_precedence: Optional[pulumi.Input[int]] = None, rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulesWithSubjectsArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] - if 'distinguisherMethod' in kwargs: + if priority_level_configuration is None: + raise TypeError("Missing 'priority_level_configuration' argument") + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] _setter("priority_level_configuration", priority_level_configuration) @@ -623,7 +627,7 @@ def _configure( status: Optional[pulumi.Input['FlowSchemaStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -748,9 +752,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -838,10 +844,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, queuing: Optional[pulumi.Input['QueuingConfigurationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if queuing is not None: @@ -914,13 +922,13 @@ def _configure( limit_response: Optional[pulumi.Input['LimitResponsePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'borrowingLimitPercent' in kwargs: + if borrowing_limit_percent is None and 'borrowingLimitPercent' in kwargs: borrowing_limit_percent = kwargs['borrowingLimitPercent'] - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -1033,13 +1041,13 @@ def _configure( limit_response: Optional[pulumi.Input['LimitResponseArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'borrowingLimitPercent' in kwargs: + if borrowing_limit_percent is None and 'borrowingLimitPercent' in kwargs: borrowing_limit_percent = kwargs['borrowingLimitPercent'] - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -1138,7 +1146,7 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] if non_resource_urls is not None: @@ -1201,12 +1209,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - non_resource_urls: pulumi.Input[Sequence[pulumi.Input[str]]], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + non_resource_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] + if non_resource_urls is None: + raise TypeError("Missing 'non_resource_urls' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") _setter("non_resource_urls", non_resource_urls) _setter("verbs", verbs) @@ -1268,9 +1280,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if non_resource_rules is not None: @@ -1338,14 +1350,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - subjects: pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]], + subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, non_resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NonResourcePolicyRuleArgs']]]] = None, resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if subjects is None: + raise TypeError("Missing 'subjects' argument") + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] _setter("subjects", subjects) @@ -1425,7 +1439,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1550,9 +1564,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -1661,11 +1677,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, exempt: Optional[pulumi.Input['ExemptPriorityLevelConfigurationArgs']] = None, limited: Optional[pulumi.Input['LimitedPriorityLevelConfigurationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if exempt is not None: @@ -1779,7 +1797,7 @@ def _configure( status: Optional[pulumi.Input['PriorityLevelConfigurationStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1880,9 +1898,9 @@ def _configure( queues: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -1955,9 +1973,9 @@ def _configure( queues: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2038,9 +2056,9 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] if api_groups is not None: @@ -2142,16 +2160,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_groups: pulumi.Input[Sequence[pulumi.Input[str]]], - resources: pulumi.Input[Sequence[pulumi.Input[str]]], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + api_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, cluster_scope: Optional[pulumi.Input[bool]] = None, namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if api_groups is None: + raise TypeError("Missing 'api_groups' argument") + if resources is None: + raise TypeError("Missing 'resources' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] _setter("api_groups", api_groups) @@ -2294,10 +2318,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2357,7 +2385,7 @@ def _configure( user: Optional[pulumi.Input['UserSubjectPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] if group is not None: @@ -2442,13 +2470,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input['GroupSubjectArgs']] = None, service_account: Optional[pulumi.Input['ServiceAccountSubjectArgs']] = None, user: Optional[pulumi.Input['UserSubjectArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] _setter("kind", kind) @@ -2558,9 +2588,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/outputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/outputs.py index 13492b077e..0872662c9a 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/outputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta2/outputs.py @@ -104,9 +104,9 @@ def _configure( nominal_concurrency_shares: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if lendable_percent is not None: @@ -187,9 +187,9 @@ def _configure( nominal_concurrency_shares: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if lendable_percent is not None: @@ -238,9 +238,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) @@ -341,7 +343,7 @@ def _configure( status: Optional['outputs.FlowSchemaStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -450,7 +452,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -559,7 +561,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -662,17 +664,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - priority_level_configuration: 'outputs.PriorityLevelConfigurationReference', + priority_level_configuration: Optional['outputs.PriorityLevelConfigurationReference'] = None, distinguisher_method: Optional['outputs.FlowDistinguisherMethod'] = None, matching_precedence: Optional[int] = None, rules: Optional[Sequence['outputs.PolicyRulesWithSubjects']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] - if 'distinguisherMethod' in kwargs: + if priority_level_configuration is None: + raise TypeError("Missing 'priority_level_configuration' argument") + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] _setter("priority_level_configuration", priority_level_configuration) @@ -770,11 +774,11 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRulesWithSubjectsPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'distinguisherMethod' in kwargs: + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] if distinguisher_method is not None: @@ -905,9 +909,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -975,10 +981,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, queuing: Optional['outputs.QueuingConfiguration'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if queuing is not None: @@ -1119,13 +1127,13 @@ def _configure( limit_response: Optional['outputs.LimitResponse'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'borrowingLimitPercent' in kwargs: + if borrowing_limit_percent is None and 'borrowingLimitPercent' in kwargs: borrowing_limit_percent = kwargs['borrowingLimitPercent'] - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -1250,13 +1258,13 @@ def _configure( limit_response: Optional['outputs.LimitResponsePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'assuredConcurrencyShares' in kwargs: + if assured_concurrency_shares is None and 'assuredConcurrencyShares' in kwargs: assured_concurrency_shares = kwargs['assuredConcurrencyShares'] - if 'borrowingLimitPercent' in kwargs: + if borrowing_limit_percent is None and 'borrowingLimitPercent' in kwargs: borrowing_limit_percent = kwargs['borrowingLimitPercent'] - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] if assured_concurrency_shares is not None: @@ -1355,12 +1363,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - non_resource_urls: Sequence[str], - verbs: Sequence[str], + non_resource_urls: Optional[Sequence[str]] = None, + verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] + if non_resource_urls is None: + raise TypeError("Missing 'non_resource_urls' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") _setter("non_resource_urls", non_resource_urls) _setter("verbs", verbs) @@ -1436,7 +1448,7 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] if non_resource_urls is not None: @@ -1510,14 +1522,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - subjects: Sequence['outputs.Subject'], + subjects: Optional[Sequence['outputs.Subject']] = None, non_resource_rules: Optional[Sequence['outputs.NonResourcePolicyRule']] = None, resource_rules: Optional[Sequence['outputs.ResourcePolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if subjects is None: + raise TypeError("Missing 'subjects' argument") + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] _setter("subjects", subjects) @@ -1599,9 +1613,9 @@ def _configure( subjects: Optional[Sequence['outputs.SubjectPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if non_resource_rules is not None: @@ -1690,7 +1704,7 @@ def _configure( status: Optional['outputs.PriorityLevelConfigurationStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1799,7 +1813,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1908,7 +1922,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1981,9 +1995,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -2054,11 +2070,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, exempt: Optional['outputs.ExemptPriorityLevelConfiguration'] = None, limited: Optional['outputs.LimitedPriorityLevelConfiguration'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if exempt is not None: @@ -2269,9 +2287,9 @@ def _configure( queues: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2354,9 +2372,9 @@ def _configure( queues: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2440,16 +2458,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_groups: Sequence[str], - resources: Sequence[str], - verbs: Sequence[str], + api_groups: Optional[Sequence[str]] = None, + resources: Optional[Sequence[str]] = None, + verbs: Optional[Sequence[str]] = None, cluster_scope: Optional[bool] = None, namespaces: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if api_groups is None: + raise TypeError("Missing 'api_groups' argument") + if resources is None: + raise TypeError("Missing 'resources' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] _setter("api_groups", api_groups) @@ -2557,9 +2581,9 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] if api_groups is not None: @@ -2635,10 +2659,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - namespace: str, + name: Optional[str] = None, + namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2752,13 +2780,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, + kind: Optional[str] = None, group: Optional['outputs.GroupSubject'] = None, service_account: Optional['outputs.ServiceAccountSubject'] = None, user: Optional['outputs.UserSubject'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] _setter("kind", kind) @@ -2852,7 +2882,7 @@ def _configure( user: Optional['outputs.UserSubjectPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] if group is not None: @@ -2915,9 +2945,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py index aa5c3df581..fb265be1e7 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['FlowSchemaSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py index 8de25b3888..bc80342e1c 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['FlowSchemaArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py index 10835c4096..23b2ffbb72 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['FlowSchemaSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py index 87cd0ff459..bef53be522 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py index 44a459a214..fd6b42b603 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PriorityLevelConfigurationArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py index fc5f0d3d2b..2be01916c7 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PriorityLevelConfigurationSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py index ae89b563c3..976309e671 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py @@ -77,9 +77,9 @@ def _configure( nominal_concurrency_shares: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if lendable_percent is not None: @@ -146,9 +146,9 @@ def _configure( nominal_concurrency_shares: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if lendable_percent is not None: @@ -237,9 +237,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) @@ -290,7 +292,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -395,11 +397,11 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulesWithSubjectsPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'distinguisherMethod' in kwargs: + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] if distinguisher_method is not None: @@ -484,17 +486,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - priority_level_configuration: pulumi.Input['PriorityLevelConfigurationReferenceArgs'], + priority_level_configuration: Optional[pulumi.Input['PriorityLevelConfigurationReferenceArgs']] = None, distinguisher_method: Optional[pulumi.Input['FlowDistinguisherMethodArgs']] = None, matching_precedence: Optional[pulumi.Input[int]] = None, rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulesWithSubjectsArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] - if 'distinguisherMethod' in kwargs: + if priority_level_configuration is None: + raise TypeError("Missing 'priority_level_configuration' argument") + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] _setter("priority_level_configuration", priority_level_configuration) @@ -623,7 +627,7 @@ def _configure( status: Optional[pulumi.Input['FlowSchemaStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -748,9 +752,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -838,10 +844,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, queuing: Optional[pulumi.Input['QueuingConfigurationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if queuing is not None: @@ -914,13 +922,13 @@ def _configure( nominal_concurrency_shares: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'borrowingLimitPercent' in kwargs: + if borrowing_limit_percent is None and 'borrowingLimitPercent' in kwargs: borrowing_limit_percent = kwargs['borrowingLimitPercent'] - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if borrowing_limit_percent is not None: @@ -1033,13 +1041,13 @@ def _configure( nominal_concurrency_shares: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'borrowingLimitPercent' in kwargs: + if borrowing_limit_percent is None and 'borrowingLimitPercent' in kwargs: borrowing_limit_percent = kwargs['borrowingLimitPercent'] - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if borrowing_limit_percent is not None: @@ -1138,7 +1146,7 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] if non_resource_urls is not None: @@ -1201,12 +1209,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - non_resource_urls: pulumi.Input[Sequence[pulumi.Input[str]]], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + non_resource_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] + if non_resource_urls is None: + raise TypeError("Missing 'non_resource_urls' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") _setter("non_resource_urls", non_resource_urls) _setter("verbs", verbs) @@ -1268,9 +1280,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if non_resource_rules is not None: @@ -1338,14 +1350,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - subjects: pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]], + subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, non_resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NonResourcePolicyRuleArgs']]]] = None, resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if subjects is None: + raise TypeError("Missing 'subjects' argument") + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] _setter("subjects", subjects) @@ -1425,7 +1439,7 @@ def _configure( type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1550,9 +1564,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -1661,11 +1677,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: pulumi.Input[str], + type: Optional[pulumi.Input[str]] = None, exempt: Optional[pulumi.Input['ExemptPriorityLevelConfigurationArgs']] = None, limited: Optional[pulumi.Input['LimitedPriorityLevelConfigurationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if exempt is not None: @@ -1779,7 +1797,7 @@ def _configure( status: Optional[pulumi.Input['PriorityLevelConfigurationStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1880,9 +1898,9 @@ def _configure( queues: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -1955,9 +1973,9 @@ def _configure( queues: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2038,9 +2056,9 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] if api_groups is not None: @@ -2142,16 +2160,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_groups: pulumi.Input[Sequence[pulumi.Input[str]]], - resources: pulumi.Input[Sequence[pulumi.Input[str]]], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + api_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, cluster_scope: Optional[pulumi.Input[bool]] = None, namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if api_groups is None: + raise TypeError("Missing 'api_groups' argument") + if resources is None: + raise TypeError("Missing 'resources' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] _setter("api_groups", api_groups) @@ -2294,10 +2318,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - namespace: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2357,7 +2385,7 @@ def _configure( user: Optional[pulumi.Input['UserSubjectPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] if group is not None: @@ -2442,13 +2470,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input['GroupSubjectArgs']] = None, service_account: Optional[pulumi.Input['ServiceAccountSubjectArgs']] = None, user: Optional[pulumi.Input['UserSubjectArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] _setter("kind", kind) @@ -2558,9 +2588,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/outputs.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/outputs.py index 6e8f6173ff..031463783e 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1beta3/outputs.py @@ -104,9 +104,9 @@ def _configure( nominal_concurrency_shares: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if lendable_percent is not None: @@ -187,9 +187,9 @@ def _configure( nominal_concurrency_shares: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if lendable_percent is not None: @@ -238,9 +238,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) @@ -341,7 +343,7 @@ def _configure( status: Optional['outputs.FlowSchemaStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -450,7 +452,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -559,7 +561,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -662,17 +664,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - priority_level_configuration: 'outputs.PriorityLevelConfigurationReference', + priority_level_configuration: Optional['outputs.PriorityLevelConfigurationReference'] = None, distinguisher_method: Optional['outputs.FlowDistinguisherMethod'] = None, matching_precedence: Optional[int] = None, rules: Optional[Sequence['outputs.PolicyRulesWithSubjects']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] - if 'distinguisherMethod' in kwargs: + if priority_level_configuration is None: + raise TypeError("Missing 'priority_level_configuration' argument") + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] _setter("priority_level_configuration", priority_level_configuration) @@ -770,11 +774,11 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRulesWithSubjectsPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'distinguisherMethod' in kwargs: + if distinguisher_method is None and 'distinguisherMethod' in kwargs: distinguisher_method = kwargs['distinguisherMethod'] - if 'matchingPrecedence' in kwargs: + if matching_precedence is None and 'matchingPrecedence' in kwargs: matching_precedence = kwargs['matchingPrecedence'] - if 'priorityLevelConfiguration' in kwargs: + if priority_level_configuration is None and 'priorityLevelConfiguration' in kwargs: priority_level_configuration = kwargs['priorityLevelConfiguration'] if distinguisher_method is not None: @@ -905,9 +909,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -975,10 +981,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, queuing: Optional['outputs.QueuingConfiguration'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if queuing is not None: @@ -1119,13 +1127,13 @@ def _configure( nominal_concurrency_shares: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'borrowingLimitPercent' in kwargs: + if borrowing_limit_percent is None and 'borrowingLimitPercent' in kwargs: borrowing_limit_percent = kwargs['borrowingLimitPercent'] - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if borrowing_limit_percent is not None: @@ -1250,13 +1258,13 @@ def _configure( nominal_concurrency_shares: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'borrowingLimitPercent' in kwargs: + if borrowing_limit_percent is None and 'borrowingLimitPercent' in kwargs: borrowing_limit_percent = kwargs['borrowingLimitPercent'] - if 'lendablePercent' in kwargs: + if lendable_percent is None and 'lendablePercent' in kwargs: lendable_percent = kwargs['lendablePercent'] - if 'limitResponse' in kwargs: + if limit_response is None and 'limitResponse' in kwargs: limit_response = kwargs['limitResponse'] - if 'nominalConcurrencyShares' in kwargs: + if nominal_concurrency_shares is None and 'nominalConcurrencyShares' in kwargs: nominal_concurrency_shares = kwargs['nominalConcurrencyShares'] if borrowing_limit_percent is not None: @@ -1355,12 +1363,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - non_resource_urls: Sequence[str], - verbs: Sequence[str], + non_resource_urls: Optional[Sequence[str]] = None, + verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] + if non_resource_urls is None: + raise TypeError("Missing 'non_resource_urls' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") _setter("non_resource_urls", non_resource_urls) _setter("verbs", verbs) @@ -1436,7 +1448,7 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] if non_resource_urls is not None: @@ -1510,14 +1522,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - subjects: Sequence['outputs.Subject'], + subjects: Optional[Sequence['outputs.Subject']] = None, non_resource_rules: Optional[Sequence['outputs.NonResourcePolicyRule']] = None, resource_rules: Optional[Sequence['outputs.ResourcePolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if subjects is None: + raise TypeError("Missing 'subjects' argument") + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] _setter("subjects", subjects) @@ -1599,9 +1613,9 @@ def _configure( subjects: Optional[Sequence['outputs.SubjectPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nonResourceRules' in kwargs: + if non_resource_rules is None and 'nonResourceRules' in kwargs: non_resource_rules = kwargs['nonResourceRules'] - if 'resourceRules' in kwargs: + if resource_rules is None and 'resourceRules' in kwargs: resource_rules = kwargs['resourceRules'] if non_resource_rules is not None: @@ -1690,7 +1704,7 @@ def _configure( status: Optional['outputs.PriorityLevelConfigurationStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1799,7 +1813,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1908,7 +1922,7 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] if last_transition_time is not None: @@ -1981,9 +1995,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -2054,11 +2070,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - type: str, + type: Optional[str] = None, exempt: Optional['outputs.ExemptPriorityLevelConfiguration'] = None, limited: Optional['outputs.LimitedPriorityLevelConfiguration'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if type is None: + raise TypeError("Missing 'type' argument") _setter("type", type) if exempt is not None: @@ -2269,9 +2287,9 @@ def _configure( queues: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2354,9 +2372,9 @@ def _configure( queues: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'handSize' in kwargs: + if hand_size is None and 'handSize' in kwargs: hand_size = kwargs['handSize'] - if 'queueLengthLimit' in kwargs: + if queue_length_limit is None and 'queueLengthLimit' in kwargs: queue_length_limit = kwargs['queueLengthLimit'] if hand_size is not None: @@ -2440,16 +2458,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_groups: Sequence[str], - resources: Sequence[str], - verbs: Sequence[str], + api_groups: Optional[Sequence[str]] = None, + resources: Optional[Sequence[str]] = None, + verbs: Optional[Sequence[str]] = None, cluster_scope: Optional[bool] = None, namespaces: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if api_groups is None: + raise TypeError("Missing 'api_groups' argument") + if resources is None: + raise TypeError("Missing 'resources' argument") + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] _setter("api_groups", api_groups) @@ -2557,9 +2581,9 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'clusterScope' in kwargs: + if cluster_scope is None and 'clusterScope' in kwargs: cluster_scope = kwargs['clusterScope'] if api_groups is not None: @@ -2635,10 +2659,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - namespace: str, + name: Optional[str] = None, + namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") + if namespace is None: + raise TypeError("Missing 'namespace' argument") _setter("name", name) _setter("namespace", namespace) @@ -2752,13 +2780,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, + kind: Optional[str] = None, group: Optional['outputs.GroupSubject'] = None, service_account: Optional['outputs.ServiceAccountSubject'] = None, user: Optional['outputs.UserSubject'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] _setter("kind", kind) @@ -2852,7 +2882,7 @@ def _configure( user: Optional['outputs.UserSubjectPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceAccount' in kwargs: + if service_account is None and 'serviceAccount' in kwargs: service_account = kwargs['serviceAccount'] if group is not None: @@ -2915,9 +2945,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) diff --git a/sdk/python/pulumi_kubernetes/helm/v3/Release.py b/sdk/python/pulumi_kubernetes/helm/v3/Release.py index 9fbeb3d831..70e17b8638 100644 --- a/sdk/python/pulumi_kubernetes/helm/v3/Release.py +++ b/sdk/python/pulumi_kubernetes/helm/v3/Release.py @@ -129,7 +129,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - chart: pulumi.Input[str], + chart: Optional[pulumi.Input[str]] = None, allow_null_values: Optional[pulumi.Input[bool]] = None, atomic: Optional[pulumi.Input[bool]] = None, cleanup_on_fail: Optional[pulumi.Input[bool]] = None, @@ -166,43 +166,45 @@ def _configure( wait_for_jobs: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowNullValues' in kwargs: + if chart is None: + raise TypeError("Missing 'chart' argument") + if allow_null_values is None and 'allowNullValues' in kwargs: allow_null_values = kwargs['allowNullValues'] - if 'cleanupOnFail' in kwargs: + if cleanup_on_fail is None and 'cleanupOnFail' in kwargs: cleanup_on_fail = kwargs['cleanupOnFail'] - if 'createNamespace' in kwargs: + if create_namespace is None and 'createNamespace' in kwargs: create_namespace = kwargs['createNamespace'] - if 'dependencyUpdate' in kwargs: + if dependency_update is None and 'dependencyUpdate' in kwargs: dependency_update = kwargs['dependencyUpdate'] - if 'disableCRDHooks' in kwargs: + if disable_crd_hooks is None and 'disableCRDHooks' in kwargs: disable_crd_hooks = kwargs['disableCRDHooks'] - if 'disableOpenapiValidation' in kwargs: + if disable_openapi_validation is None and 'disableOpenapiValidation' in kwargs: disable_openapi_validation = kwargs['disableOpenapiValidation'] - if 'disableWebhooks' in kwargs: + if disable_webhooks is None and 'disableWebhooks' in kwargs: disable_webhooks = kwargs['disableWebhooks'] - if 'forceUpdate' in kwargs: + if force_update is None and 'forceUpdate' in kwargs: force_update = kwargs['forceUpdate'] - if 'maxHistory' in kwargs: + if max_history is None and 'maxHistory' in kwargs: max_history = kwargs['maxHistory'] - if 'recreatePods' in kwargs: + if recreate_pods is None and 'recreatePods' in kwargs: recreate_pods = kwargs['recreatePods'] - if 'renderSubchartNotes' in kwargs: + if render_subchart_notes is None and 'renderSubchartNotes' in kwargs: render_subchart_notes = kwargs['renderSubchartNotes'] - if 'repositoryOpts' in kwargs: + if repository_opts is None and 'repositoryOpts' in kwargs: repository_opts = kwargs['repositoryOpts'] - if 'resetValues' in kwargs: + if reset_values is None and 'resetValues' in kwargs: reset_values = kwargs['resetValues'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] - if 'reuseValues' in kwargs: + if reuse_values is None and 'reuseValues' in kwargs: reuse_values = kwargs['reuseValues'] - if 'skipAwait' in kwargs: + if skip_await is None and 'skipAwait' in kwargs: skip_await = kwargs['skipAwait'] - if 'skipCrds' in kwargs: + if skip_crds is None and 'skipCrds' in kwargs: skip_crds = kwargs['skipCrds'] - if 'valueYamlFiles' in kwargs: + if value_yaml_files is None and 'valueYamlFiles' in kwargs: value_yaml_files = kwargs['valueYamlFiles'] - if 'waitForJobs' in kwargs: + if wait_for_jobs is None and 'waitForJobs' in kwargs: wait_for_jobs = kwargs['waitForJobs'] _setter("chart", chart) diff --git a/sdk/python/pulumi_kubernetes/helm/v3/_inputs.py b/sdk/python/pulumi_kubernetes/helm/v3/_inputs.py index 76f92992f8..04c616e550 100644 --- a/sdk/python/pulumi_kubernetes/helm/v3/_inputs.py +++ b/sdk/python/pulumi_kubernetes/helm/v3/_inputs.py @@ -51,11 +51,11 @@ def _configure( username: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caFile' in kwargs: + if ca_file is None and 'caFile' in kwargs: ca_file = kwargs['caFile'] - if 'certFile' in kwargs: + if cert_file is None and 'certFile' in kwargs: cert_file = kwargs['certFile'] - if 'keyFile' in kwargs: + if key_file is None and 'keyFile' in kwargs: key_file = kwargs['keyFile'] if ca_file is not None: diff --git a/sdk/python/pulumi_kubernetes/helm/v3/outputs.py b/sdk/python/pulumi_kubernetes/helm/v3/outputs.py index 72820377b6..d4b6076a00 100644 --- a/sdk/python/pulumi_kubernetes/helm/v3/outputs.py +++ b/sdk/python/pulumi_kubernetes/helm/v3/outputs.py @@ -63,7 +63,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - status: str, + status: Optional[str] = None, app_version: Optional[str] = None, chart: Optional[str] = None, name: Optional[str] = None, @@ -72,7 +72,9 @@ def _configure( version: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'appVersion' in kwargs: + if status is None: + raise TypeError("Missing 'status' argument") + if app_version is None and 'appVersion' in kwargs: app_version = kwargs['appVersion'] _setter("status", status) @@ -208,11 +210,11 @@ def _configure( username: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'caFile' in kwargs: + if ca_file is None and 'caFile' in kwargs: ca_file = kwargs['caFile'] - if 'certFile' in kwargs: + if cert_file is None and 'certFile' in kwargs: cert_file = kwargs['certFile'] - if 'keyFile' in kwargs: + if key_file is None and 'keyFile' in kwargs: key_file = kwargs['keyFile'] if ca_file is not None: diff --git a/sdk/python/pulumi_kubernetes/meta/v1/Status.py b/sdk/python/pulumi_kubernetes/meta/v1/Status.py index f0a465f4d5..7ebbf39853 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/Status.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/Status.py @@ -55,7 +55,7 @@ def _configure( reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/meta/v1/StatusPatch.py b/sdk/python/pulumi_kubernetes/meta/v1/StatusPatch.py index ab4b3c8cb7..45c3ff0a77 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/StatusPatch.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/StatusPatch.py @@ -55,7 +55,7 @@ def _configure( reason: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/meta/v1/_inputs.py b/sdk/python/pulumi_kubernetes/meta/v1/_inputs.py index 808c4baf55..7b949b41e3 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/_inputs.py @@ -59,17 +59,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - last_transition_time: pulumi.Input[str], - message: pulumi.Input[str], - reason: pulumi.Input[str], - status: pulumi.Input[str], - type: pulumi.Input[str], + last_transition_time: Optional[pulumi.Input[str]] = None, + message: Optional[pulumi.Input[str]] = None, + reason: Optional[pulumi.Input[str]] = None, + status: Optional[pulumi.Input[str]] = None, + type: Optional[pulumi.Input[str]] = None, observed_generation: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'observedGeneration' in kwargs: + if last_transition_time is None: + raise TypeError("Missing 'last_transition_time' argument") + if message is None: + raise TypeError("Missing 'message' argument") + if reason is None: + raise TypeError("Missing 'reason' argument") + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("last_transition_time", last_transition_time) @@ -175,9 +185,9 @@ def _configure( match_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] - if 'matchLabels' in kwargs: + if match_labels is None and 'matchLabels' in kwargs: match_labels = kwargs['matchLabels'] if match_expressions is not None: @@ -302,11 +312,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - operator: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, + operator: Optional[pulumi.Input[str]] = None, values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if operator is None: + raise TypeError("Missing 'operator' argument") _setter("key", key) _setter("operator", operator) @@ -372,9 +386,9 @@ def _configure( match_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] - if 'matchLabels' in kwargs: + if match_labels is None and 'matchLabels' in kwargs: match_labels = kwargs['matchLabels'] if match_expressions is not None: @@ -437,13 +451,13 @@ def _configure( self_link: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'continue' in kwargs: + if continue_ is None and 'continue' in kwargs: continue_ = kwargs['continue'] - if 'remainingItemCount' in kwargs: + if remaining_item_count is None and 'remainingItemCount' in kwargs: remaining_item_count = kwargs['remainingItemCount'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] - if 'selfLink' in kwargs: + if self_link is None and 'selfLink' in kwargs: self_link = kwargs['selfLink'] if continue_ is not None: @@ -534,13 +548,13 @@ def _configure( self_link: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'continue' in kwargs: + if continue_ is None and 'continue' in kwargs: continue_ = kwargs['continue'] - if 'remainingItemCount' in kwargs: + if remaining_item_count is None and 'remainingItemCount' in kwargs: remaining_item_count = kwargs['remainingItemCount'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] - if 'selfLink' in kwargs: + if self_link is None and 'selfLink' in kwargs: self_link = kwargs['selfLink'] if continue_ is not None: @@ -643,11 +657,11 @@ def _configure( time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldsType' in kwargs: + if fields_type is None and 'fieldsType' in kwargs: fields_type = kwargs['fieldsType'] - if 'fieldsV1' in kwargs: + if fields_v1 is None and 'fieldsV1' in kwargs: fields_v1 = kwargs['fieldsV1'] if api_version is not None: @@ -792,11 +806,11 @@ def _configure( time: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldsType' in kwargs: + if fields_type is None and 'fieldsType' in kwargs: fields_type = kwargs['fieldsType'] - if 'fieldsV1' in kwargs: + if fields_v1 is None and 'fieldsV1' in kwargs: fields_v1 = kwargs['fieldsV1'] if api_version is not None: @@ -991,23 +1005,23 @@ def _configure( uid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterName' in kwargs: + if cluster_name is None and 'clusterName' in kwargs: cluster_name = kwargs['clusterName'] - if 'creationTimestamp' in kwargs: + if creation_timestamp is None and 'creationTimestamp' in kwargs: creation_timestamp = kwargs['creationTimestamp'] - if 'deletionGracePeriodSeconds' in kwargs: + if deletion_grace_period_seconds is None and 'deletionGracePeriodSeconds' in kwargs: deletion_grace_period_seconds = kwargs['deletionGracePeriodSeconds'] - if 'deletionTimestamp' in kwargs: + if deletion_timestamp is None and 'deletionTimestamp' in kwargs: deletion_timestamp = kwargs['deletionTimestamp'] - if 'generateName' in kwargs: + if generate_name is None and 'generateName' in kwargs: generate_name = kwargs['generateName'] - if 'managedFields' in kwargs: + if managed_fields is None and 'managedFields' in kwargs: managed_fields = kwargs['managedFields'] - if 'ownerReferences' in kwargs: + if owner_references is None and 'ownerReferences' in kwargs: owner_references = kwargs['ownerReferences'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] - if 'selfLink' in kwargs: + if self_link is None and 'selfLink' in kwargs: self_link = kwargs['selfLink'] if annotations is not None: @@ -1342,23 +1356,23 @@ def _configure( uid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterName' in kwargs: + if cluster_name is None and 'clusterName' in kwargs: cluster_name = kwargs['clusterName'] - if 'creationTimestamp' in kwargs: + if creation_timestamp is None and 'creationTimestamp' in kwargs: creation_timestamp = kwargs['creationTimestamp'] - if 'deletionGracePeriodSeconds' in kwargs: + if deletion_grace_period_seconds is None and 'deletionGracePeriodSeconds' in kwargs: deletion_grace_period_seconds = kwargs['deletionGracePeriodSeconds'] - if 'deletionTimestamp' in kwargs: + if deletion_timestamp is None and 'deletionTimestamp' in kwargs: deletion_timestamp = kwargs['deletionTimestamp'] - if 'generateName' in kwargs: + if generate_name is None and 'generateName' in kwargs: generate_name = kwargs['generateName'] - if 'managedFields' in kwargs: + if managed_fields is None and 'managedFields' in kwargs: managed_fields = kwargs['managedFields'] - if 'ownerReferences' in kwargs: + if owner_references is None and 'ownerReferences' in kwargs: owner_references = kwargs['ownerReferences'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] - if 'selfLink' in kwargs: + if self_link is None and 'selfLink' in kwargs: self_link = kwargs['selfLink'] if annotations is not None: @@ -1639,9 +1653,9 @@ def _configure( uid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'blockOwnerDeletion' in kwargs: + if block_owner_deletion is None and 'blockOwnerDeletion' in kwargs: block_owner_deletion = kwargs['blockOwnerDeletion'] if api_version is not None: @@ -1760,17 +1774,25 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_version: pulumi.Input[str], - kind: pulumi.Input[str], - name: pulumi.Input[str], - uid: pulumi.Input[str], + api_version: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + uid: Optional[pulumi.Input[str]] = None, block_owner_deletion: Optional[pulumi.Input[bool]] = None, controller: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'blockOwnerDeletion' in kwargs: + if api_version is None: + raise TypeError("Missing 'api_version' argument") + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if uid is None: + raise TypeError("Missing 'uid' argument") + if block_owner_deletion is None and 'blockOwnerDeletion' in kwargs: block_owner_deletion = kwargs['blockOwnerDeletion'] _setter("api_version", api_version) @@ -2051,7 +2073,7 @@ def _configure( uid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'retryAfterSeconds' in kwargs: + if retry_after_seconds is None and 'retryAfterSeconds' in kwargs: retry_after_seconds = kwargs['retryAfterSeconds'] if causes is not None: @@ -2178,7 +2200,7 @@ def _configure( uid: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'retryAfterSeconds' in kwargs: + if retry_after_seconds is None and 'retryAfterSeconds' in kwargs: retry_after_seconds = kwargs['retryAfterSeconds'] if causes is not None: diff --git a/sdk/python/pulumi_kubernetes/meta/v1/outputs.py b/sdk/python/pulumi_kubernetes/meta/v1/outputs.py index 54029e0dca..bb2ce02dd5 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/outputs.py @@ -83,17 +83,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - last_transition_time: str, - message: str, - reason: str, - status: str, - type: str, + last_transition_time: Optional[str] = None, + message: Optional[str] = None, + reason: Optional[str] = None, + status: Optional[str] = None, + type: Optional[str] = None, observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'observedGeneration' in kwargs: + if last_transition_time is None: + raise TypeError("Missing 'last_transition_time' argument") + if message is None: + raise TypeError("Missing 'message' argument") + if reason is None: + raise TypeError("Missing 'reason' argument") + if status is None: + raise TypeError("Missing 'status' argument") + if type is None: + raise TypeError("Missing 'type' argument") + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("last_transition_time", last_transition_time) @@ -213,9 +223,9 @@ def _configure( type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'lastTransitionTime' in kwargs: + if last_transition_time is None and 'lastTransitionTime' in kwargs: last_transition_time = kwargs['lastTransitionTime'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] if last_transition_time is not None: @@ -324,9 +334,9 @@ def _configure( match_labels: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] - if 'matchLabels' in kwargs: + if match_labels is None and 'matchLabels' in kwargs: match_labels = kwargs['matchLabels'] if match_expressions is not None: @@ -395,9 +405,9 @@ def _configure( match_labels: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'matchExpressions' in kwargs: + if match_expressions is None and 'matchExpressions' in kwargs: match_expressions = kwargs['matchExpressions'] - if 'matchLabels' in kwargs: + if match_labels is None and 'matchLabels' in kwargs: match_labels = kwargs['matchLabels'] if match_expressions is not None: @@ -446,11 +456,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: str, - operator: str, + key: Optional[str] = None, + operator: Optional[str] = None, values: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if operator is None: + raise TypeError("Missing 'operator' argument") _setter("key", key) _setter("operator", operator) @@ -600,13 +614,13 @@ def _configure( self_link: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'continue' in kwargs: + if continue_ is None and 'continue' in kwargs: continue_ = kwargs['continue'] - if 'remainingItemCount' in kwargs: + if remaining_item_count is None and 'remainingItemCount' in kwargs: remaining_item_count = kwargs['remainingItemCount'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] - if 'selfLink' in kwargs: + if self_link is None and 'selfLink' in kwargs: self_link = kwargs['selfLink'] if continue_ is not None: @@ -707,13 +721,13 @@ def _configure( self_link: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'continue' in kwargs: + if continue_ is None and 'continue' in kwargs: continue_ = kwargs['continue'] - if 'remainingItemCount' in kwargs: + if remaining_item_count is None and 'remainingItemCount' in kwargs: remaining_item_count = kwargs['remainingItemCount'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] - if 'selfLink' in kwargs: + if self_link is None and 'selfLink' in kwargs: self_link = kwargs['selfLink'] if continue_ is not None: @@ -824,11 +838,11 @@ def _configure( time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldsType' in kwargs: + if fields_type is None and 'fieldsType' in kwargs: fields_type = kwargs['fieldsType'] - if 'fieldsV1' in kwargs: + if fields_v1 is None and 'fieldsV1' in kwargs: fields_v1 = kwargs['fieldsV1'] if api_version is not None: @@ -969,11 +983,11 @@ def _configure( time: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'fieldsType' in kwargs: + if fields_type is None and 'fieldsType' in kwargs: fields_type = kwargs['fieldsType'] - if 'fieldsV1' in kwargs: + if fields_v1 is None and 'fieldsV1' in kwargs: fields_v1 = kwargs['fieldsV1'] if api_version is not None: @@ -1176,23 +1190,23 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterName' in kwargs: + if cluster_name is None and 'clusterName' in kwargs: cluster_name = kwargs['clusterName'] - if 'creationTimestamp' in kwargs: + if creation_timestamp is None and 'creationTimestamp' in kwargs: creation_timestamp = kwargs['creationTimestamp'] - if 'deletionGracePeriodSeconds' in kwargs: + if deletion_grace_period_seconds is None and 'deletionGracePeriodSeconds' in kwargs: deletion_grace_period_seconds = kwargs['deletionGracePeriodSeconds'] - if 'deletionTimestamp' in kwargs: + if deletion_timestamp is None and 'deletionTimestamp' in kwargs: deletion_timestamp = kwargs['deletionTimestamp'] - if 'generateName' in kwargs: + if generate_name is None and 'generateName' in kwargs: generate_name = kwargs['generateName'] - if 'managedFields' in kwargs: + if managed_fields is None and 'managedFields' in kwargs: managed_fields = kwargs['managedFields'] - if 'ownerReferences' in kwargs: + if owner_references is None and 'ownerReferences' in kwargs: owner_references = kwargs['ownerReferences'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] - if 'selfLink' in kwargs: + if self_link is None and 'selfLink' in kwargs: self_link = kwargs['selfLink'] if annotations is not None: @@ -1499,23 +1513,23 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterName' in kwargs: + if cluster_name is None and 'clusterName' in kwargs: cluster_name = kwargs['clusterName'] - if 'creationTimestamp' in kwargs: + if creation_timestamp is None and 'creationTimestamp' in kwargs: creation_timestamp = kwargs['creationTimestamp'] - if 'deletionGracePeriodSeconds' in kwargs: + if deletion_grace_period_seconds is None and 'deletionGracePeriodSeconds' in kwargs: deletion_grace_period_seconds = kwargs['deletionGracePeriodSeconds'] - if 'deletionTimestamp' in kwargs: + if deletion_timestamp is None and 'deletionTimestamp' in kwargs: deletion_timestamp = kwargs['deletionTimestamp'] - if 'generateName' in kwargs: + if generate_name is None and 'generateName' in kwargs: generate_name = kwargs['generateName'] - if 'managedFields' in kwargs: + if managed_fields is None and 'managedFields' in kwargs: managed_fields = kwargs['managedFields'] - if 'ownerReferences' in kwargs: + if owner_references is None and 'ownerReferences' in kwargs: owner_references = kwargs['ownerReferences'] - if 'resourceVersion' in kwargs: + if resource_version is None and 'resourceVersion' in kwargs: resource_version = kwargs['resourceVersion'] - if 'selfLink' in kwargs: + if self_link is None and 'selfLink' in kwargs: self_link = kwargs['selfLink'] if annotations is not None: @@ -1746,17 +1760,25 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_version: str, - kind: str, - name: str, - uid: str, + api_version: Optional[str] = None, + kind: Optional[str] = None, + name: Optional[str] = None, + uid: Optional[str] = None, block_owner_deletion: Optional[bool] = None, controller: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'blockOwnerDeletion' in kwargs: + if api_version is None: + raise TypeError("Missing 'api_version' argument") + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if uid is None: + raise TypeError("Missing 'uid' argument") + if block_owner_deletion is None and 'blockOwnerDeletion' in kwargs: block_owner_deletion = kwargs['blockOwnerDeletion'] _setter("api_version", api_version) @@ -1877,9 +1899,9 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'blockOwnerDeletion' in kwargs: + if block_owner_deletion is None and 'blockOwnerDeletion' in kwargs: block_owner_deletion = kwargs['blockOwnerDeletion'] if api_version is not None: @@ -2142,7 +2164,7 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'retryAfterSeconds' in kwargs: + if retry_after_seconds is None and 'retryAfterSeconds' in kwargs: retry_after_seconds = kwargs['retryAfterSeconds'] if causes is not None: @@ -2265,7 +2287,7 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'retryAfterSeconds' in kwargs: + if retry_after_seconds is None and 'retryAfterSeconds' in kwargs: retry_after_seconds = kwargs['retryAfterSeconds'] if causes is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py index 80d3178485..ddd1b11233 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/Ingress.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['IngressSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py index d8b551cd3f..fde3011f3b 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressClass.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['IngressClassSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py index 9508c9814e..333841c5e3 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressClassList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressClassPatch.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressClassPatch.py index e16301b414..e90bb56e96 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressClassPatch.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressClassPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['IngressClassSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py index 73b49ee2ec..d434efb473 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['IngressArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['IngressArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/networking/v1/IngressPatch.py b/sdk/python/pulumi_kubernetes/networking/v1/IngressPatch.py index abb49da17c..f12056c014 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/IngressPatch.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/IngressPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['IngressSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py index 425b5d01ff..9e25a6a75b 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['NetworkPolicySpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py index 4c61a17e0e..43fd0f1832 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py index 4ba97f0526..dfc8812efa 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['NetworkPolicySpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1/_inputs.py b/sdk/python/pulumi_kubernetes/networking/v1/_inputs.py index f48c56259f..0c5abcda3a 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/_inputs.py @@ -90,7 +90,7 @@ def _configure( path_type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] if backend is not None: @@ -178,13 +178,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - backend: pulumi.Input['IngressBackendArgs'], - path_type: pulumi.Input[str], + backend: Optional[pulumi.Input['IngressBackendArgs']] = None, + path_type: Optional[pulumi.Input[str]] = None, path: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if backend is None: + raise TypeError("Missing 'backend' argument") + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] + if path_type is None: + raise TypeError("Missing 'path_type' argument") _setter("backend", backend) _setter("path_type", path_type) @@ -288,9 +292,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - paths: pulumi.Input[Sequence[pulumi.Input['HTTPIngressPathArgs']]], + paths: Optional[pulumi.Input[Sequence[pulumi.Input['HTTPIngressPathArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if paths is None: + raise TypeError("Missing 'paths' argument") _setter("paths", paths) @@ -329,7 +335,7 @@ def _configure( except_: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'except' in kwargs: + if except_ is None and 'except' in kwargs: except_ = kwargs['except'] if cidr is not None: @@ -380,11 +386,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - cidr: pulumi.Input[str], + cidr: Optional[pulumi.Input[str]] = None, except_: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'except' in kwargs: + if cidr is None: + raise TypeError("Missing 'cidr' argument") + if except_ is None and 'except' in kwargs: except_ = kwargs['except'] _setter("cidr", cidr) @@ -556,7 +564,7 @@ def _configure( scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -658,14 +666,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, scope: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -874,7 +886,7 @@ def _configure( spec: Optional[pulumi.Input['IngressClassSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1065,11 +1077,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: pulumi.Input[int], - protocol: pulumi.Input[str], + port: Optional[pulumi.Input[int]] = None, + protocol: Optional[pulumi.Input[str]] = None, error: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if port is None: + raise TypeError("Missing 'port' argument") + if protocol is None: + raise TypeError("Missing 'protocol' argument") _setter("port", port) _setter("protocol", protocol) @@ -1313,10 +1329,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input['ServiceBackendPortArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) if port is not None: @@ -1377,9 +1395,9 @@ def _configure( tls: Optional[pulumi.Input[Sequence[pulumi.Input['IngressTLSPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultBackend' in kwargs: + if default_backend is None and 'defaultBackend' in kwargs: default_backend = kwargs['defaultBackend'] - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if default_backend is not None: @@ -1470,9 +1488,9 @@ def _configure( tls: Optional[pulumi.Input[Sequence[pulumi.Input['IngressTLSArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultBackend' in kwargs: + if default_backend is None and 'defaultBackend' in kwargs: default_backend = kwargs['defaultBackend'] - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if default_backend is not None: @@ -1551,7 +1569,7 @@ def _configure( load_balancer: Optional[pulumi.Input['IngressLoadBalancerStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if load_balancer is not None: @@ -1592,7 +1610,7 @@ def _configure( secret_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -1647,7 +1665,7 @@ def _configure( secret_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -1728,7 +1746,7 @@ def _configure( status: Optional[pulumi.Input['IngressStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1931,7 +1949,7 @@ def _configure( ports: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyPortPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'from' in kwargs: + if from_ is None and 'from' in kwargs: from_ = kwargs['from'] if from_ is not None: @@ -1986,7 +2004,7 @@ def _configure( ports: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyPortArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'from' in kwargs: + if from_ is None and 'from' in kwargs: from_ = kwargs['from'] if from_ is not None: @@ -2049,11 +2067,11 @@ def _configure( pod_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ipBlock' in kwargs: + if ip_block is None and 'ipBlock' in kwargs: ip_block = kwargs['ipBlock'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] if ip_block is not None: @@ -2134,11 +2152,11 @@ def _configure( pod_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ipBlock' in kwargs: + if ip_block is None and 'ipBlock' in kwargs: ip_block = kwargs['ipBlock'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] if ip_block is not None: @@ -2215,7 +2233,7 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'endPort' in kwargs: + if end_port is None and 'endPort' in kwargs: end_port = kwargs['endPort'] if end_port is not None: @@ -2288,7 +2306,7 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'endPort' in kwargs: + if end_port is None and 'endPort' in kwargs: end_port = kwargs['endPort'] if end_port is not None: @@ -2365,9 +2383,9 @@ def _configure( policy_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] - if 'policyTypes' in kwargs: + if policy_types is None and 'policyTypes' in kwargs: policy_types = kwargs['policyTypes'] if egress is not None: @@ -2452,15 +2470,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pod_selector: pulumi.Input['_meta.v1.LabelSelectorArgs'], + pod_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, egress: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyEgressRuleArgs']]]] = None, ingress: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyIngressRuleArgs']]]] = None, policy_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] - if 'policyTypes' in kwargs: + if pod_selector is None: + raise TypeError("Missing 'pod_selector' argument") + if policy_types is None and 'policyTypes' in kwargs: policy_types = kwargs['policyTypes'] _setter("pod_selector", pod_selector) @@ -2589,7 +2609,7 @@ def _configure( status: Optional[pulumi.Input['NetworkPolicyStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1/outputs.py b/sdk/python/pulumi_kubernetes/networking/v1/outputs.py index 861b48de0e..e7626caf77 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/outputs.py @@ -111,13 +111,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - backend: 'outputs.IngressBackend', - path_type: str, + backend: Optional['outputs.IngressBackend'] = None, + path_type: Optional[str] = None, path: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if backend is None: + raise TypeError("Missing 'backend' argument") + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] + if path_type is None: + raise TypeError("Missing 'path_type' argument") _setter("backend", backend) _setter("path_type", path_type) @@ -215,7 +219,7 @@ def _configure( path_type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] if backend is not None: @@ -278,9 +282,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - paths: Sequence['outputs.HTTPIngressPath'], + paths: Optional[Sequence['outputs.HTTPIngressPath']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if paths is None: + raise TypeError("Missing 'paths' argument") _setter("paths", paths) @@ -365,11 +371,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - cidr: str, + cidr: Optional[str] = None, except_: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'except' in kwargs: + if cidr is None: + raise TypeError("Missing 'cidr' argument") + if except_ is None and 'except' in kwargs: except_ = kwargs['except'] _setter("cidr", cidr) @@ -435,7 +443,7 @@ def _configure( except_: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'except' in kwargs: + if except_ is None and 'except' in kwargs: except_ = kwargs['except'] if cidr is not None: @@ -542,7 +550,7 @@ def _configure( status: Optional['outputs.IngressStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -743,7 +751,7 @@ def _configure( spec: Optional['outputs.IngressClassSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -835,14 +843,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_group: Optional[str] = None, namespace: Optional[str] = None, scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -949,7 +961,7 @@ def _configure( scope: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1319,11 +1331,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - port: int, - protocol: str, + port: Optional[int] = None, + protocol: Optional[str] = None, error: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if port is None: + raise TypeError("Missing 'port' argument") + if protocol is None: + raise TypeError("Missing 'protocol' argument") _setter("port", port) _setter("protocol", protocol) @@ -1563,10 +1579,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, port: Optional['outputs.ServiceBackendPort'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) if port is not None: @@ -1689,9 +1707,9 @@ def _configure( tls: Optional[Sequence['outputs.IngressTLS']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultBackend' in kwargs: + if default_backend is None and 'defaultBackend' in kwargs: default_backend = kwargs['defaultBackend'] - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if default_backend is not None: @@ -1788,9 +1806,9 @@ def _configure( tls: Optional[Sequence['outputs.IngressTLSPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'defaultBackend' in kwargs: + if default_backend is None and 'defaultBackend' in kwargs: default_backend = kwargs['defaultBackend'] - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if default_backend is not None: @@ -1873,7 +1891,7 @@ def _configure( load_balancer: Optional['outputs.IngressLoadBalancerStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if load_balancer is not None: @@ -1926,7 +1944,7 @@ def _configure( load_balancer: Optional['outputs.IngressLoadBalancerStatusPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if load_balancer is not None: @@ -1983,7 +2001,7 @@ def _configure( secret_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -2050,7 +2068,7 @@ def _configure( secret_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -2129,7 +2147,7 @@ def _configure( status: Optional['outputs.NetworkPolicyStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2322,7 +2340,7 @@ def _configure( ports: Optional[Sequence['outputs.NetworkPolicyPort']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'from' in kwargs: + if from_ is None and 'from' in kwargs: from_ = kwargs['from'] if from_ is not None: @@ -2389,7 +2407,7 @@ def _configure( ports: Optional[Sequence['outputs.NetworkPolicyPortPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'from' in kwargs: + if from_ is None and 'from' in kwargs: from_ = kwargs['from'] if from_ is not None: @@ -2468,11 +2486,11 @@ def _configure( pod_selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ipBlock' in kwargs: + if ip_block is None and 'ipBlock' in kwargs: ip_block = kwargs['ipBlock'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] if ip_block is not None: @@ -2565,11 +2583,11 @@ def _configure( pod_selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ipBlock' in kwargs: + if ip_block is None and 'ipBlock' in kwargs: ip_block = kwargs['ipBlock'] - if 'namespaceSelector' in kwargs: + if namespace_selector is None and 'namespaceSelector' in kwargs: namespace_selector = kwargs['namespaceSelector'] - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] if ip_block is not None: @@ -2654,7 +2672,7 @@ def _configure( protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'endPort' in kwargs: + if end_port is None and 'endPort' in kwargs: end_port = kwargs['endPort'] if end_port is not None: @@ -2735,7 +2753,7 @@ def _configure( protocol: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'endPort' in kwargs: + if end_port is None and 'endPort' in kwargs: end_port = kwargs['endPort'] if end_port is not None: @@ -2816,15 +2834,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - pod_selector: '_meta.v1.outputs.LabelSelector', + pod_selector: Optional['_meta.v1.outputs.LabelSelector'] = None, egress: Optional[Sequence['outputs.NetworkPolicyEgressRule']] = None, ingress: Optional[Sequence['outputs.NetworkPolicyIngressRule']] = None, policy_types: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] - if 'policyTypes' in kwargs: + if pod_selector is None: + raise TypeError("Missing 'pod_selector' argument") + if policy_types is None and 'policyTypes' in kwargs: policy_types = kwargs['policyTypes'] _setter("pod_selector", pod_selector) @@ -2920,9 +2940,9 @@ def _configure( policy_types: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podSelector' in kwargs: + if pod_selector is None and 'podSelector' in kwargs: pod_selector = kwargs['podSelector'] - if 'policyTypes' in kwargs: + if policy_types is None and 'policyTypes' in kwargs: policy_types = kwargs['policyTypes'] if egress is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py b/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py index 446d3a2583..27c99482ca 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py +++ b/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ClusterCIDRSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py b/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py index bde6d1092f..79807dcd3f 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ClusterCIDRArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterCIDRArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py b/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py index fe287c9ac9..698f4a579c 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py +++ b/sdk/python/pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ClusterCIDRSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddress.py b/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddress.py index eba49ce7e6..3020eb7dba 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddress.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['IPAddressSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddressList.py b/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddressList.py index bec16208f7..60f9cb31d3 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddressList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddressList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['IPAddressArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['IPAddressArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py b/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py index 9e502ec380..750bfc1828 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +++ b/sdk/python/pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['IPAddressSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/networking/v1alpha1/_inputs.py index b4fc872b62..ef8cc3e9f1 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1alpha1/_inputs.py @@ -52,9 +52,9 @@ def _configure( per_node_host_bits: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] - if 'perNodeHostBits' in kwargs: + if per_node_host_bits is None and 'perNodeHostBits' in kwargs: per_node_host_bits = kwargs['perNodeHostBits'] if ipv4 is not None: @@ -139,15 +139,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - per_node_host_bits: pulumi.Input[int], + per_node_host_bits: Optional[pulumi.Input[int]] = None, ipv4: Optional[pulumi.Input[str]] = None, ipv6: Optional[pulumi.Input[str]] = None, node_selector: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'perNodeHostBits' in kwargs: + if per_node_host_bits is None and 'perNodeHostBits' in kwargs: per_node_host_bits = kwargs['perNodeHostBits'] - if 'nodeSelector' in kwargs: + if per_node_host_bits is None: + raise TypeError("Missing 'per_node_host_bits' argument") + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] _setter("per_node_host_bits", per_node_host_bits) @@ -237,7 +239,7 @@ def _configure( spec: Optional[pulumi.Input['ClusterCIDRSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -316,7 +318,7 @@ def _configure( parent_ref: Optional[pulumi.Input['ParentReferencePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parentRef' in kwargs: + if parent_ref is None and 'parentRef' in kwargs: parent_ref = kwargs['parentRef'] if parent_ref is not None: @@ -353,7 +355,7 @@ def _configure( parent_ref: Optional[pulumi.Input['ParentReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parentRef' in kwargs: + if parent_ref is None and 'parentRef' in kwargs: parent_ref = kwargs['parentRef'] if parent_ref is not None: @@ -402,7 +404,7 @@ def _configure( spec: Optional[pulumi.Input['IPAddressSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/networking/v1alpha1/outputs.py index 61da4ecb4c..ea119f678c 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1alpha1/outputs.py @@ -73,7 +73,7 @@ def _configure( spec: Optional['outputs.ClusterCIDRSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -164,15 +164,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - per_node_host_bits: int, + per_node_host_bits: Optional[int] = None, ipv4: Optional[str] = None, ipv6: Optional[str] = None, node_selector: Optional['_core.v1.outputs.NodeSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'perNodeHostBits' in kwargs: + if per_node_host_bits is None and 'perNodeHostBits' in kwargs: per_node_host_bits = kwargs['perNodeHostBits'] - if 'nodeSelector' in kwargs: + if per_node_host_bits is None: + raise TypeError("Missing 'per_node_host_bits' argument") + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] _setter("per_node_host_bits", per_node_host_bits) @@ -268,9 +270,9 @@ def _configure( per_node_host_bits: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] - if 'perNodeHostBits' in kwargs: + if per_node_host_bits is None and 'perNodeHostBits' in kwargs: per_node_host_bits = kwargs['perNodeHostBits'] if ipv4 is not None: @@ -365,7 +367,7 @@ def _configure( spec: Optional['outputs.IPAddressSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -448,7 +450,7 @@ def _configure( parent_ref: Optional['outputs.ParentReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parentRef' in kwargs: + if parent_ref is None and 'parentRef' in kwargs: parent_ref = kwargs['parentRef'] if parent_ref is not None: @@ -501,7 +503,7 @@ def _configure( parent_ref: Optional['outputs.ParentReferencePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'parentRef' in kwargs: + if parent_ref is None and 'parentRef' in kwargs: parent_ref = kwargs['parentRef'] if parent_ref is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py index 1c1562ddf6..bedf737b79 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['IngressSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py index 80c73d996f..d340d0a151 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['IngressClassSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py index 524f0dc2b1..fcb717cb9d 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['IngressClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py index e7573c8469..8e174b2fd8 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['IngressClassSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py index 581e47ffed..00f4b194f0 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['IngressArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['IngressArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressPatch.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressPatch.py index b8742b7bd9..30bad7aace 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressPatch.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['IngressSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/_inputs.py index bfb3dfa4ff..ebddd09388 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/_inputs.py @@ -67,7 +67,7 @@ def _configure( path_type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] if backend is not None: @@ -155,12 +155,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - backend: pulumi.Input['IngressBackendArgs'], + backend: Optional[pulumi.Input['IngressBackendArgs']] = None, path: Optional[pulumi.Input[str]] = None, path_type: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if backend is None: + raise TypeError("Missing 'backend' argument") + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] _setter("backend", backend) @@ -266,9 +268,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - paths: pulumi.Input[Sequence[pulumi.Input['HTTPIngressPathArgs']]], + paths: Optional[pulumi.Input[Sequence[pulumi.Input['HTTPIngressPathArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if paths is None: + raise TypeError("Missing 'paths' argument") _setter("paths", paths) @@ -311,9 +315,9 @@ def _configure( service_port: Optional[pulumi.Input[Union[int, str]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'servicePort' in kwargs: + if service_port is None and 'servicePort' in kwargs: service_port = kwargs['servicePort'] if resource is not None: @@ -381,15 +385,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - service_name: pulumi.Input[str], - service_port: pulumi.Input[Union[int, str]], + service_name: Optional[pulumi.Input[str]] = None, + service_port: Optional[pulumi.Input[Union[int, str]]] = None, resource: Optional[pulumi.Input['_core.v1.TypedLocalObjectReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'servicePort' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if service_port is None and 'servicePort' in kwargs: service_port = kwargs['servicePort'] + if service_port is None: + raise TypeError("Missing 'service_port' argument") _setter("service_name", service_name) _setter("service_port", service_port) @@ -569,7 +577,7 @@ def _configure( spec: Optional[pulumi.Input['IngressClassSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -778,7 +786,7 @@ def _configure( tls: Optional[pulumi.Input[Sequence[pulumi.Input['IngressTLSPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if backend is not None: @@ -869,7 +877,7 @@ def _configure( tls: Optional[pulumi.Input[Sequence[pulumi.Input['IngressTLSArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if backend is not None: @@ -948,7 +956,7 @@ def _configure( load_balancer: Optional[pulumi.Input['_core.v1.LoadBalancerStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if load_balancer is not None: @@ -989,7 +997,7 @@ def _configure( secret_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -1044,7 +1052,7 @@ def _configure( secret_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -1125,7 +1133,7 @@ def _configure( status: Optional[pulumi.Input['IngressStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/outputs.py index 247b5bd920..13584ebb99 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/outputs.py @@ -84,12 +84,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - backend: 'outputs.IngressBackend', + backend: Optional['outputs.IngressBackend'] = None, path: Optional[str] = None, path_type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if backend is None: + raise TypeError("Missing 'backend' argument") + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] _setter("backend", backend) @@ -189,7 +191,7 @@ def _configure( path_type: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathType' in kwargs: + if path_type is None and 'pathType' in kwargs: path_type = kwargs['pathType'] if backend is not None: @@ -252,9 +254,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - paths: Sequence['outputs.HTTPIngressPath'], + paths: Optional[Sequence['outputs.HTTPIngressPath']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if paths is None: + raise TypeError("Missing 'paths' argument") _setter("paths", paths) @@ -383,7 +387,7 @@ def _configure( status: Optional['outputs.IngressStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -481,15 +485,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - service_name: str, - service_port: Any, + service_name: Optional[str] = None, + service_port: Optional[Any] = None, resource: Optional['_core.v1.outputs.TypedLocalObjectReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'servicePort' in kwargs: + if service_name is None: + raise TypeError("Missing 'service_name' argument") + if service_port is None and 'servicePort' in kwargs: service_port = kwargs['servicePort'] + if service_port is None: + raise TypeError("Missing 'service_port' argument") _setter("service_name", service_name) _setter("service_port", service_port) @@ -569,9 +577,9 @@ def _configure( service_port: Optional[Any] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'serviceName' in kwargs: + if service_name is None and 'serviceName' in kwargs: service_name = kwargs['serviceName'] - if 'servicePort' in kwargs: + if service_port is None and 'servicePort' in kwargs: service_port = kwargs['servicePort'] if resource is not None: @@ -656,7 +664,7 @@ def _configure( spec: Optional['outputs.IngressClassSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -955,7 +963,7 @@ def _configure( tls: Optional[Sequence['outputs.IngressTLS']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if backend is not None: @@ -1050,7 +1058,7 @@ def _configure( tls: Optional[Sequence['outputs.IngressTLSPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'ingressClassName' in kwargs: + if ingress_class_name is None and 'ingressClassName' in kwargs: ingress_class_name = kwargs['ingressClassName'] if backend is not None: @@ -1133,7 +1141,7 @@ def _configure( load_balancer: Optional['_core.v1.outputs.LoadBalancerStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if load_balancer is not None: @@ -1186,7 +1194,7 @@ def _configure( load_balancer: Optional['_core.v1.outputs.LoadBalancerStatusPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'loadBalancer' in kwargs: + if load_balancer is None and 'loadBalancer' in kwargs: load_balancer = kwargs['loadBalancer'] if load_balancer is not None: @@ -1243,7 +1251,7 @@ def _configure( secret_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: @@ -1310,7 +1318,7 @@ def _configure( secret_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'secretName' in kwargs: + if secret_name is None and 'secretName' in kwargs: secret_name = kwargs['secretName'] if hosts is not None: diff --git a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py index 33d4a77258..66a1aaeb77 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClass.py @@ -46,7 +46,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - handler: pulumi.Input[str], + handler: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, @@ -54,7 +54,9 @@ def _configure( scheduling: Optional[pulumi.Input['SchedulingArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if handler is None: + raise TypeError("Missing 'handler' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("handler", handler) diff --git a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py index 8ea887d91c..c54a509f38 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassPatch.py b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassPatch.py index f6b3f74313..ee09e68274 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassPatch.py +++ b/sdk/python/pulumi_kubernetes/node/v1/RuntimeClassPatch.py @@ -54,7 +54,7 @@ def _configure( scheduling: Optional[pulumi.Input['SchedulingPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/node/v1/_inputs.py b/sdk/python/pulumi_kubernetes/node/v1/_inputs.py index 8a78784c2c..58e3379c76 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1/_inputs.py @@ -37,7 +37,7 @@ def _configure( pod_fixed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -74,7 +74,7 @@ def _configure( pod_fixed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -124,7 +124,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - handler: pulumi.Input[str], + handler: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, @@ -132,7 +132,9 @@ def _configure( scheduling: Optional[pulumi.Input['SchedulingArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if handler is None: + raise TypeError("Missing 'handler' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("handler", handler) @@ -243,7 +245,7 @@ def _configure( tolerations: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TolerationPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: @@ -298,7 +300,7 @@ def _configure( tolerations: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TolerationArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: diff --git a/sdk/python/pulumi_kubernetes/node/v1/outputs.py b/sdk/python/pulumi_kubernetes/node/v1/outputs.py index 66c47abf6b..2c9cb00e6b 100644 --- a/sdk/python/pulumi_kubernetes/node/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1/outputs.py @@ -58,7 +58,7 @@ def _configure( pod_fixed: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -111,7 +111,7 @@ def _configure( pod_fixed: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -177,7 +177,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - handler: str, + handler: Optional[str] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, @@ -185,7 +185,9 @@ def _configure( scheduling: Optional['outputs.Scheduling'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if handler is None: + raise TypeError("Missing 'handler' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("handler", handler) @@ -292,7 +294,7 @@ def _configure( tolerations: Optional[Sequence['_core.v1.outputs.Toleration']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: @@ -359,7 +361,7 @@ def _configure( tolerations: Optional[Sequence['_core.v1.outputs.TolerationPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py index f96b9fb5fd..fa0248bf22 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['RuntimeClassSpecArgs'], + spec: Optional[pulumi.Input['RuntimeClassSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py index 38128fa46e..d23060dc8b 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py index e1d055fcb3..06aaf456dd 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['RuntimeClassSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/_inputs.py index 52c0e0347d..28cecdbaec 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/_inputs.py @@ -39,7 +39,7 @@ def _configure( pod_fixed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -76,7 +76,7 @@ def _configure( pod_fixed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -121,7 +121,7 @@ def _configure( scheduling: Optional[pulumi.Input['SchedulingPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'runtimeHandler' in kwargs: + if runtime_handler is None and 'runtimeHandler' in kwargs: runtime_handler = kwargs['runtimeHandler'] if overhead is not None: @@ -189,13 +189,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - runtime_handler: pulumi.Input[str], + runtime_handler: Optional[pulumi.Input[str]] = None, overhead: Optional[pulumi.Input['OverheadArgs']] = None, scheduling: Optional[pulumi.Input['SchedulingArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'runtimeHandler' in kwargs: + if runtime_handler is None and 'runtimeHandler' in kwargs: runtime_handler = kwargs['runtimeHandler'] + if runtime_handler is None: + raise TypeError("Missing 'runtime_handler' argument") _setter("runtime_handler", runtime_handler) if overhead is not None: @@ -264,13 +266,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['RuntimeClassSpecArgs'], + spec: Optional[pulumi.Input['RuntimeClassSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -352,7 +356,7 @@ def _configure( tolerations: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TolerationPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: @@ -407,7 +411,7 @@ def _configure( tolerations: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TolerationArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/outputs.py index 396fc4572e..a6dcb077e7 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/outputs.py @@ -60,7 +60,7 @@ def _configure( pod_fixed: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -113,7 +113,7 @@ def _configure( pod_fixed: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -172,13 +172,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.RuntimeClassSpec', + spec: Optional['outputs.RuntimeClassSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -263,13 +265,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - runtime_handler: str, + runtime_handler: Optional[str] = None, overhead: Optional['outputs.Overhead'] = None, scheduling: Optional['outputs.Scheduling'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'runtimeHandler' in kwargs: + if runtime_handler is None and 'runtimeHandler' in kwargs: runtime_handler = kwargs['runtimeHandler'] + if runtime_handler is None: + raise TypeError("Missing 'runtime_handler' argument") _setter("runtime_handler", runtime_handler) if overhead is not None: @@ -348,7 +352,7 @@ def _configure( scheduling: Optional['outputs.SchedulingPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'runtimeHandler' in kwargs: + if runtime_handler is None and 'runtimeHandler' in kwargs: runtime_handler = kwargs['runtimeHandler'] if overhead is not None: @@ -425,7 +429,7 @@ def _configure( tolerations: Optional[Sequence['_core.v1.outputs.Toleration']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: @@ -492,7 +496,7 @@ def _configure( tolerations: Optional[Sequence['_core.v1.outputs.TolerationPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py index 9a0755007f..7a02ccd517 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py @@ -45,7 +45,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - handler: pulumi.Input[str], + handler: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, @@ -53,7 +53,9 @@ def _configure( scheduling: Optional[pulumi.Input['SchedulingArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if handler is None: + raise TypeError("Missing 'handler' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("handler", handler) diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py index 1545043f71..c03b1ea833 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['RuntimeClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py index f3d3301e73..b6802bce51 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py @@ -53,7 +53,7 @@ def _configure( scheduling: Optional[pulumi.Input['SchedulingPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/node/v1beta1/_inputs.py index f47be0f250..1faa4f2e16 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/_inputs.py @@ -37,7 +37,7 @@ def _configure( pod_fixed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -74,7 +74,7 @@ def _configure( pod_fixed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -123,7 +123,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - handler: pulumi.Input[str], + handler: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, @@ -131,7 +131,9 @@ def _configure( scheduling: Optional[pulumi.Input['SchedulingArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if handler is None: + raise TypeError("Missing 'handler' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("handler", handler) @@ -241,7 +243,7 @@ def _configure( tolerations: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TolerationPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: @@ -296,7 +298,7 @@ def _configure( tolerations: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TolerationArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/node/v1beta1/outputs.py index d0d89b7334..8c3ed81e25 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/outputs.py @@ -58,7 +58,7 @@ def _configure( pod_fixed: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -111,7 +111,7 @@ def _configure( pod_fixed: Optional[Mapping[str, str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'podFixed' in kwargs: + if pod_fixed is None and 'podFixed' in kwargs: pod_fixed = kwargs['podFixed'] if pod_fixed is not None: @@ -176,7 +176,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - handler: str, + handler: Optional[str] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, @@ -184,7 +184,9 @@ def _configure( scheduling: Optional['outputs.Scheduling'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if handler is None: + raise TypeError("Missing 'handler' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("handler", handler) @@ -290,7 +292,7 @@ def _configure( tolerations: Optional[Sequence['_core.v1.outputs.Toleration']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: @@ -357,7 +359,7 @@ def _configure( tolerations: Optional[Sequence['_core.v1.outputs.TolerationPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeSelector' in kwargs: + if node_selector is None and 'nodeSelector' in kwargs: node_selector = kwargs['nodeSelector'] if node_selector is not None: diff --git a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudget.py index 4c5987e7d5..e1c8453709 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudget.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PodDisruptionBudgetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py index 355523b64c..0380a70ec1 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py index 57fd397199..e17769551c 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py +++ b/sdk/python/pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PodDisruptionBudgetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/policy/v1/_inputs.py b/sdk/python/pulumi_kubernetes/policy/v1/_inputs.py index ed2bd7a6d4..c6d904b7c6 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/policy/v1/_inputs.py @@ -57,11 +57,11 @@ def _configure( unhealthy_pod_eviction_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] - if 'minAvailable' in kwargs: + if min_available is None and 'minAvailable' in kwargs: min_available = kwargs['minAvailable'] - if 'unhealthyPodEvictionPolicy' in kwargs: + if unhealthy_pod_eviction_policy is None and 'unhealthyPodEvictionPolicy' in kwargs: unhealthy_pod_eviction_policy = kwargs['unhealthyPodEvictionPolicy'] if max_unavailable is not None: @@ -172,11 +172,11 @@ def _configure( unhealthy_pod_eviction_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] - if 'minAvailable' in kwargs: + if min_available is None and 'minAvailable' in kwargs: min_available = kwargs['minAvailable'] - if 'unhealthyPodEvictionPolicy' in kwargs: + if unhealthy_pod_eviction_policy is None and 'unhealthyPodEvictionPolicy' in kwargs: unhealthy_pod_eviction_policy = kwargs['unhealthyPodEvictionPolicy'] if max_unavailable is not None: @@ -288,26 +288,34 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_healthy: pulumi.Input[int], - desired_healthy: pulumi.Input[int], - disruptions_allowed: pulumi.Input[int], - expected_pods: pulumi.Input[int], + current_healthy: Optional[pulumi.Input[int]] = None, + desired_healthy: Optional[pulumi.Input[int]] = None, + disruptions_allowed: Optional[pulumi.Input[int]] = None, + expected_pods: Optional[pulumi.Input[int]] = None, conditions: Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.ConditionArgs']]]] = None, disrupted_pods: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, observed_generation: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentHealthy' in kwargs: + if current_healthy is None and 'currentHealthy' in kwargs: current_healthy = kwargs['currentHealthy'] - if 'desiredHealthy' in kwargs: + if current_healthy is None: + raise TypeError("Missing 'current_healthy' argument") + if desired_healthy is None and 'desiredHealthy' in kwargs: desired_healthy = kwargs['desiredHealthy'] - if 'disruptionsAllowed' in kwargs: + if desired_healthy is None: + raise TypeError("Missing 'desired_healthy' argument") + if disruptions_allowed is None and 'disruptionsAllowed' in kwargs: disruptions_allowed = kwargs['disruptionsAllowed'] - if 'expectedPods' in kwargs: + if disruptions_allowed is None: + raise TypeError("Missing 'disruptions_allowed' argument") + if expected_pods is None and 'expectedPods' in kwargs: expected_pods = kwargs['expectedPods'] - if 'disruptedPods' in kwargs: + if expected_pods is None: + raise TypeError("Missing 'expected_pods' argument") + if disrupted_pods is None and 'disruptedPods' in kwargs: disrupted_pods = kwargs['disruptedPods'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("current_healthy", current_healthy) @@ -448,7 +456,7 @@ def _configure( status: Optional[pulumi.Input['PodDisruptionBudgetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/policy/v1/outputs.py b/sdk/python/pulumi_kubernetes/policy/v1/outputs.py index 38a2f3e073..6664001b5a 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/policy/v1/outputs.py @@ -73,7 +73,7 @@ def _configure( status: Optional['outputs.PodDisruptionBudgetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -192,11 +192,11 @@ def _configure( unhealthy_pod_eviction_policy: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] - if 'minAvailable' in kwargs: + if min_available is None and 'minAvailable' in kwargs: min_available = kwargs['minAvailable'] - if 'unhealthyPodEvictionPolicy' in kwargs: + if unhealthy_pod_eviction_policy is None and 'unhealthyPodEvictionPolicy' in kwargs: unhealthy_pod_eviction_policy = kwargs['unhealthyPodEvictionPolicy'] if max_unavailable is not None: @@ -315,11 +315,11 @@ def _configure( unhealthy_pod_eviction_policy: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] - if 'minAvailable' in kwargs: + if min_available is None and 'minAvailable' in kwargs: min_available = kwargs['minAvailable'] - if 'unhealthyPodEvictionPolicy' in kwargs: + if unhealthy_pod_eviction_policy is None and 'unhealthyPodEvictionPolicy' in kwargs: unhealthy_pod_eviction_policy = kwargs['unhealthyPodEvictionPolicy'] if max_unavailable is not None: @@ -445,26 +445,34 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_healthy: int, - desired_healthy: int, - disruptions_allowed: int, - expected_pods: int, + current_healthy: Optional[int] = None, + desired_healthy: Optional[int] = None, + disruptions_allowed: Optional[int] = None, + expected_pods: Optional[int] = None, conditions: Optional[Sequence['_meta.v1.outputs.Condition']] = None, disrupted_pods: Optional[Mapping[str, str]] = None, observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentHealthy' in kwargs: + if current_healthy is None and 'currentHealthy' in kwargs: current_healthy = kwargs['currentHealthy'] - if 'desiredHealthy' in kwargs: + if current_healthy is None: + raise TypeError("Missing 'current_healthy' argument") + if desired_healthy is None and 'desiredHealthy' in kwargs: desired_healthy = kwargs['desiredHealthy'] - if 'disruptionsAllowed' in kwargs: + if desired_healthy is None: + raise TypeError("Missing 'desired_healthy' argument") + if disruptions_allowed is None and 'disruptionsAllowed' in kwargs: disruptions_allowed = kwargs['disruptionsAllowed'] - if 'expectedPods' in kwargs: + if disruptions_allowed is None: + raise TypeError("Missing 'disruptions_allowed' argument") + if expected_pods is None and 'expectedPods' in kwargs: expected_pods = kwargs['expectedPods'] - if 'disruptedPods' in kwargs: + if expected_pods is None: + raise TypeError("Missing 'expected_pods' argument") + if disrupted_pods is None and 'disruptedPods' in kwargs: disrupted_pods = kwargs['disruptedPods'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("current_healthy", current_healthy) @@ -623,17 +631,17 @@ def _configure( observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentHealthy' in kwargs: + if current_healthy is None and 'currentHealthy' in kwargs: current_healthy = kwargs['currentHealthy'] - if 'desiredHealthy' in kwargs: + if desired_healthy is None and 'desiredHealthy' in kwargs: desired_healthy = kwargs['desiredHealthy'] - if 'disruptedPods' in kwargs: + if disrupted_pods is None and 'disruptedPods' in kwargs: disrupted_pods = kwargs['disruptedPods'] - if 'disruptionsAllowed' in kwargs: + if disruptions_allowed is None and 'disruptionsAllowed' in kwargs: disruptions_allowed = kwargs['disruptionsAllowed'] - if 'expectedPods' in kwargs: + if expected_pods is None and 'expectedPods' in kwargs: expected_pods = kwargs['expectedPods'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] if conditions is not None: diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py index db7a9d4c28..a8dad18664 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['PodDisruptionBudgetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py index 4b61064b34..fd7611bab8 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py @@ -36,13 +36,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PodDisruptionBudgetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py index d86bb3f9ec..bfcf8beae2 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['PodDisruptionBudgetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py index 48b0f5b56f..38af3d6349 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['PodSecurityPolicySpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py index 83f97a19ea..b78f8c0a49 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PodSecurityPolicyArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py index 207a4ce814..5f9ecb9dec 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['PodSecurityPolicySpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/_inputs.py index 49c0112b98..6fa83640f8 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/_inputs.py @@ -93,9 +93,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -162,9 +164,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: pulumi.Input[str], + driver: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if driver is None: + raise TypeError("Missing 'driver' argument") _setter("driver", driver) @@ -205,9 +209,9 @@ def _configure( read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathPrefix' in kwargs: + if path_prefix is None and 'pathPrefix' in kwargs: path_prefix = kwargs['pathPrefix'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path_prefix is not None: @@ -266,9 +270,9 @@ def _configure( read_only: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathPrefix' in kwargs: + if path_prefix is None and 'pathPrefix' in kwargs: path_prefix = kwargs['pathPrefix'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path_prefix is not None: @@ -480,10 +484,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max: pulumi.Input[int], - min: pulumi.Input[int], + max: Optional[pulumi.Input[int]] = None, + min: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if max is None: + raise TypeError("Missing 'max' argument") + if min is None: + raise TypeError("Missing 'min' argument") _setter("max", max) _setter("min", min) @@ -584,10 +592,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max: pulumi.Input[int], - min: pulumi.Input[int], + max: Optional[pulumi.Input[int]] = None, + min: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if max is None: + raise TypeError("Missing 'max' argument") + if min is None: + raise TypeError("Missing 'min' argument") _setter("max", max) _setter("min", min) @@ -643,9 +655,9 @@ def _configure( selector: Optional[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] - if 'minAvailable' in kwargs: + if min_available is None and 'minAvailable' in kwargs: min_available = kwargs['minAvailable'] if max_unavailable is not None: @@ -718,9 +730,9 @@ def _configure( selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] - if 'minAvailable' in kwargs: + if min_available is None and 'minAvailable' in kwargs: min_available = kwargs['minAvailable'] if max_unavailable is not None: @@ -797,25 +809,33 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_healthy: pulumi.Input[int], - desired_healthy: pulumi.Input[int], - disruptions_allowed: pulumi.Input[int], - expected_pods: pulumi.Input[int], + current_healthy: Optional[pulumi.Input[int]] = None, + desired_healthy: Optional[pulumi.Input[int]] = None, + disruptions_allowed: Optional[pulumi.Input[int]] = None, + expected_pods: Optional[pulumi.Input[int]] = None, disrupted_pods: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, observed_generation: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentHealthy' in kwargs: + if current_healthy is None and 'currentHealthy' in kwargs: current_healthy = kwargs['currentHealthy'] - if 'desiredHealthy' in kwargs: + if current_healthy is None: + raise TypeError("Missing 'current_healthy' argument") + if desired_healthy is None and 'desiredHealthy' in kwargs: desired_healthy = kwargs['desiredHealthy'] - if 'disruptionsAllowed' in kwargs: + if desired_healthy is None: + raise TypeError("Missing 'desired_healthy' argument") + if disruptions_allowed is None and 'disruptionsAllowed' in kwargs: disruptions_allowed = kwargs['disruptionsAllowed'] - if 'expectedPods' in kwargs: + if disruptions_allowed is None: + raise TypeError("Missing 'disruptions_allowed' argument") + if expected_pods is None and 'expectedPods' in kwargs: expected_pods = kwargs['expectedPods'] - if 'disruptedPods' in kwargs: + if expected_pods is None: + raise TypeError("Missing 'expected_pods' argument") + if disrupted_pods is None and 'disruptedPods' in kwargs: disrupted_pods = kwargs['disruptedPods'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("current_healthy", current_healthy) @@ -933,7 +953,7 @@ def _configure( status: Optional[pulumi.Input['PodDisruptionBudgetStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1119,49 +1139,49 @@ def _configure( volumes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowPrivilegeEscalation' in kwargs: + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'allowedCSIDrivers' in kwargs: + if allowed_csi_drivers is None and 'allowedCSIDrivers' in kwargs: allowed_csi_drivers = kwargs['allowedCSIDrivers'] - if 'allowedCapabilities' in kwargs: + if allowed_capabilities is None and 'allowedCapabilities' in kwargs: allowed_capabilities = kwargs['allowedCapabilities'] - if 'allowedFlexVolumes' in kwargs: + if allowed_flex_volumes is None and 'allowedFlexVolumes' in kwargs: allowed_flex_volumes = kwargs['allowedFlexVolumes'] - if 'allowedHostPaths' in kwargs: + if allowed_host_paths is None and 'allowedHostPaths' in kwargs: allowed_host_paths = kwargs['allowedHostPaths'] - if 'allowedProcMountTypes' in kwargs: + if allowed_proc_mount_types is None and 'allowedProcMountTypes' in kwargs: allowed_proc_mount_types = kwargs['allowedProcMountTypes'] - if 'allowedUnsafeSysctls' in kwargs: + if allowed_unsafe_sysctls is None and 'allowedUnsafeSysctls' in kwargs: allowed_unsafe_sysctls = kwargs['allowedUnsafeSysctls'] - if 'defaultAddCapabilities' in kwargs: + if default_add_capabilities is None and 'defaultAddCapabilities' in kwargs: default_add_capabilities = kwargs['defaultAddCapabilities'] - if 'defaultAllowPrivilegeEscalation' in kwargs: + if default_allow_privilege_escalation is None and 'defaultAllowPrivilegeEscalation' in kwargs: default_allow_privilege_escalation = kwargs['defaultAllowPrivilegeEscalation'] - if 'forbiddenSysctls' in kwargs: + if forbidden_sysctls is None and 'forbiddenSysctls' in kwargs: forbidden_sysctls = kwargs['forbiddenSysctls'] - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostPorts' in kwargs: + if host_ports is None and 'hostPorts' in kwargs: host_ports = kwargs['hostPorts'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'requiredDropCapabilities' in kwargs: + if required_drop_capabilities is None and 'requiredDropCapabilities' in kwargs: required_drop_capabilities = kwargs['requiredDropCapabilities'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'runtimeClass' in kwargs: + if runtime_class is None and 'runtimeClass' in kwargs: runtime_class = kwargs['runtimeClass'] - if 'seLinux' in kwargs: + if se_linux is None and 'seLinux' in kwargs: se_linux = kwargs['seLinux'] - if 'supplementalGroups' in kwargs: + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] if allow_privilege_escalation is not None: @@ -1594,10 +1614,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - fs_group: pulumi.Input['FSGroupStrategyOptionsArgs'], - run_as_user: pulumi.Input['RunAsUserStrategyOptionsArgs'], - se_linux: pulumi.Input['SELinuxStrategyOptionsArgs'], - supplemental_groups: pulumi.Input['SupplementalGroupsStrategyOptionsArgs'], + fs_group: Optional[pulumi.Input['FSGroupStrategyOptionsArgs']] = None, + run_as_user: Optional[pulumi.Input['RunAsUserStrategyOptionsArgs']] = None, + se_linux: Optional[pulumi.Input['SELinuxStrategyOptionsArgs']] = None, + supplemental_groups: Optional[pulumi.Input['SupplementalGroupsStrategyOptionsArgs']] = None, allow_privilege_escalation: Optional[pulumi.Input[bool]] = None, allowed_csi_drivers: Optional[pulumi.Input[Sequence[pulumi.Input['AllowedCSIDriverArgs']]]] = None, allowed_capabilities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -1620,49 +1640,57 @@ def _configure( volumes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'runAsUser' in kwargs: + if fs_group is None: + raise TypeError("Missing 'fs_group' argument") + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinux' in kwargs: + if run_as_user is None: + raise TypeError("Missing 'run_as_user' argument") + if se_linux is None and 'seLinux' in kwargs: se_linux = kwargs['seLinux'] - if 'supplementalGroups' in kwargs: + if se_linux is None: + raise TypeError("Missing 'se_linux' argument") + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] - if 'allowPrivilegeEscalation' in kwargs: + if supplemental_groups is None: + raise TypeError("Missing 'supplemental_groups' argument") + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'allowedCSIDrivers' in kwargs: + if allowed_csi_drivers is None and 'allowedCSIDrivers' in kwargs: allowed_csi_drivers = kwargs['allowedCSIDrivers'] - if 'allowedCapabilities' in kwargs: + if allowed_capabilities is None and 'allowedCapabilities' in kwargs: allowed_capabilities = kwargs['allowedCapabilities'] - if 'allowedFlexVolumes' in kwargs: + if allowed_flex_volumes is None and 'allowedFlexVolumes' in kwargs: allowed_flex_volumes = kwargs['allowedFlexVolumes'] - if 'allowedHostPaths' in kwargs: + if allowed_host_paths is None and 'allowedHostPaths' in kwargs: allowed_host_paths = kwargs['allowedHostPaths'] - if 'allowedProcMountTypes' in kwargs: + if allowed_proc_mount_types is None and 'allowedProcMountTypes' in kwargs: allowed_proc_mount_types = kwargs['allowedProcMountTypes'] - if 'allowedUnsafeSysctls' in kwargs: + if allowed_unsafe_sysctls is None and 'allowedUnsafeSysctls' in kwargs: allowed_unsafe_sysctls = kwargs['allowedUnsafeSysctls'] - if 'defaultAddCapabilities' in kwargs: + if default_add_capabilities is None and 'defaultAddCapabilities' in kwargs: default_add_capabilities = kwargs['defaultAddCapabilities'] - if 'defaultAllowPrivilegeEscalation' in kwargs: + if default_allow_privilege_escalation is None and 'defaultAllowPrivilegeEscalation' in kwargs: default_allow_privilege_escalation = kwargs['defaultAllowPrivilegeEscalation'] - if 'forbiddenSysctls' in kwargs: + if forbidden_sysctls is None and 'forbiddenSysctls' in kwargs: forbidden_sysctls = kwargs['forbiddenSysctls'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostPorts' in kwargs: + if host_ports is None and 'hostPorts' in kwargs: host_ports = kwargs['hostPorts'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'requiredDropCapabilities' in kwargs: + if required_drop_capabilities is None and 'requiredDropCapabilities' in kwargs: required_drop_capabilities = kwargs['requiredDropCapabilities'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runtimeClass' in kwargs: + if runtime_class is None and 'runtimeClass' in kwargs: runtime_class = kwargs['runtimeClass'] _setter("fs_group", fs_group) @@ -2033,7 +2061,7 @@ def _configure( spec: Optional[pulumi.Input['PodSecurityPolicySpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -2165,10 +2193,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: pulumi.Input[str], + rule: Optional[pulumi.Input[str]] = None, ranges: Optional[pulumi.Input[Sequence[pulumi.Input['IDRangeArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rule is None: + raise TypeError("Missing 'rule' argument") _setter("rule", rule) if ranges is not None: @@ -2270,10 +2300,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: pulumi.Input[str], + rule: Optional[pulumi.Input[str]] = None, ranges: Optional[pulumi.Input[Sequence[pulumi.Input['IDRangeArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rule is None: + raise TypeError("Missing 'rule' argument") _setter("rule", rule) if ranges is not None: @@ -2326,9 +2358,9 @@ def _configure( default_runtime_class_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowedRuntimeClassNames' in kwargs: + if allowed_runtime_class_names is None and 'allowedRuntimeClassNames' in kwargs: allowed_runtime_class_names = kwargs['allowedRuntimeClassNames'] - if 'defaultRuntimeClassName' in kwargs: + if default_runtime_class_name is None and 'defaultRuntimeClassName' in kwargs: default_runtime_class_name = kwargs['defaultRuntimeClassName'] if allowed_runtime_class_names is not None: @@ -2379,13 +2411,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - allowed_runtime_class_names: pulumi.Input[Sequence[pulumi.Input[str]]], + allowed_runtime_class_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, default_runtime_class_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowedRuntimeClassNames' in kwargs: + if allowed_runtime_class_names is None and 'allowedRuntimeClassNames' in kwargs: allowed_runtime_class_names = kwargs['allowedRuntimeClassNames'] - if 'defaultRuntimeClassName' in kwargs: + if allowed_runtime_class_names is None: + raise TypeError("Missing 'allowed_runtime_class_names' argument") + if default_runtime_class_name is None and 'defaultRuntimeClassName' in kwargs: default_runtime_class_name = kwargs['defaultRuntimeClassName'] _setter("allowed_runtime_class_names", allowed_runtime_class_names) @@ -2439,7 +2473,7 @@ def _configure( se_linux_options: Optional[pulumi.Input['_core.v1.SELinuxOptionsPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] if rule is not None: @@ -2490,11 +2524,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: pulumi.Input[str], + rule: Optional[pulumi.Input[str]] = None, se_linux_options: Optional[pulumi.Input['_core.v1.SELinuxOptionsArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'seLinuxOptions' in kwargs: + if rule is None: + raise TypeError("Missing 'rule' argument") + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] _setter("rule", rule) diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/outputs.py index e3cf33eda2..c1cb1afcb6 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/outputs.py @@ -63,9 +63,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if name is None: + raise TypeError("Missing 'name' argument") _setter("name", name) @@ -130,9 +132,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver: str, + driver: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if driver is None: + raise TypeError("Missing 'driver' argument") _setter("driver", driver) @@ -225,9 +229,9 @@ def _configure( read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathPrefix' in kwargs: + if path_prefix is None and 'pathPrefix' in kwargs: path_prefix = kwargs['pathPrefix'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path_prefix is not None: @@ -300,9 +304,9 @@ def _configure( read_only: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'pathPrefix' in kwargs: + if path_prefix is None and 'pathPrefix' in kwargs: path_prefix = kwargs['pathPrefix'] - if 'readOnly' in kwargs: + if read_only is None and 'readOnly' in kwargs: read_only = kwargs['readOnly'] if path_prefix is not None: @@ -446,10 +450,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max: int, - min: int, + max: Optional[int] = None, + min: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if max is None: + raise TypeError("Missing 'max' argument") + if min is None: + raise TypeError("Missing 'min' argument") _setter("max", max) _setter("min", min) @@ -540,10 +548,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - max: int, - min: int, + max: Optional[int] = None, + min: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if max is None: + raise TypeError("Missing 'max' argument") + if min is None: + raise TypeError("Missing 'min' argument") _setter("max", max) _setter("min", min) @@ -666,7 +678,7 @@ def _configure( status: Optional['outputs.PodDisruptionBudgetStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -766,9 +778,9 @@ def _configure( selector: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] - if 'minAvailable' in kwargs: + if min_available is None and 'minAvailable' in kwargs: min_available = kwargs['minAvailable'] if max_unavailable is not None: @@ -851,9 +863,9 @@ def _configure( selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'maxUnavailable' in kwargs: + if max_unavailable is None and 'maxUnavailable' in kwargs: max_unavailable = kwargs['maxUnavailable'] - if 'minAvailable' in kwargs: + if min_available is None and 'minAvailable' in kwargs: min_available = kwargs['minAvailable'] if max_unavailable is not None: @@ -948,25 +960,33 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - current_healthy: int, - desired_healthy: int, - disruptions_allowed: int, - expected_pods: int, + current_healthy: Optional[int] = None, + desired_healthy: Optional[int] = None, + disruptions_allowed: Optional[int] = None, + expected_pods: Optional[int] = None, disrupted_pods: Optional[Mapping[str, str]] = None, observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentHealthy' in kwargs: + if current_healthy is None and 'currentHealthy' in kwargs: current_healthy = kwargs['currentHealthy'] - if 'desiredHealthy' in kwargs: + if current_healthy is None: + raise TypeError("Missing 'current_healthy' argument") + if desired_healthy is None and 'desiredHealthy' in kwargs: desired_healthy = kwargs['desiredHealthy'] - if 'disruptionsAllowed' in kwargs: + if desired_healthy is None: + raise TypeError("Missing 'desired_healthy' argument") + if disruptions_allowed is None and 'disruptionsAllowed' in kwargs: disruptions_allowed = kwargs['disruptionsAllowed'] - if 'expectedPods' in kwargs: + if disruptions_allowed is None: + raise TypeError("Missing 'disruptions_allowed' argument") + if expected_pods is None and 'expectedPods' in kwargs: expected_pods = kwargs['expectedPods'] - if 'disruptedPods' in kwargs: + if expected_pods is None: + raise TypeError("Missing 'expected_pods' argument") + if disrupted_pods is None and 'disruptedPods' in kwargs: disrupted_pods = kwargs['disruptedPods'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] _setter("current_healthy", current_healthy) @@ -1095,17 +1115,17 @@ def _configure( observed_generation: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'currentHealthy' in kwargs: + if current_healthy is None and 'currentHealthy' in kwargs: current_healthy = kwargs['currentHealthy'] - if 'desiredHealthy' in kwargs: + if desired_healthy is None and 'desiredHealthy' in kwargs: desired_healthy = kwargs['desiredHealthy'] - if 'disruptedPods' in kwargs: + if disrupted_pods is None and 'disruptedPods' in kwargs: disrupted_pods = kwargs['disruptedPods'] - if 'disruptionsAllowed' in kwargs: + if disruptions_allowed is None and 'disruptionsAllowed' in kwargs: disruptions_allowed = kwargs['disruptionsAllowed'] - if 'expectedPods' in kwargs: + if expected_pods is None and 'expectedPods' in kwargs: expected_pods = kwargs['expectedPods'] - if 'observedGeneration' in kwargs: + if observed_generation is None and 'observedGeneration' in kwargs: observed_generation = kwargs['observedGeneration'] if current_healthy is not None: @@ -1220,7 +1240,7 @@ def _configure( spec: Optional['outputs.PodSecurityPolicySpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1415,10 +1435,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - fs_group: 'outputs.FSGroupStrategyOptions', - run_as_user: 'outputs.RunAsUserStrategyOptions', - se_linux: 'outputs.SELinuxStrategyOptions', - supplemental_groups: 'outputs.SupplementalGroupsStrategyOptions', + fs_group: Optional['outputs.FSGroupStrategyOptions'] = None, + run_as_user: Optional['outputs.RunAsUserStrategyOptions'] = None, + se_linux: Optional['outputs.SELinuxStrategyOptions'] = None, + supplemental_groups: Optional['outputs.SupplementalGroupsStrategyOptions'] = None, allow_privilege_escalation: Optional[bool] = None, allowed_csi_drivers: Optional[Sequence['outputs.AllowedCSIDriver']] = None, allowed_capabilities: Optional[Sequence[str]] = None, @@ -1441,49 +1461,57 @@ def _configure( volumes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'runAsUser' in kwargs: + if fs_group is None: + raise TypeError("Missing 'fs_group' argument") + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'seLinux' in kwargs: + if run_as_user is None: + raise TypeError("Missing 'run_as_user' argument") + if se_linux is None and 'seLinux' in kwargs: se_linux = kwargs['seLinux'] - if 'supplementalGroups' in kwargs: + if se_linux is None: + raise TypeError("Missing 'se_linux' argument") + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] - if 'allowPrivilegeEscalation' in kwargs: + if supplemental_groups is None: + raise TypeError("Missing 'supplemental_groups' argument") + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'allowedCSIDrivers' in kwargs: + if allowed_csi_drivers is None and 'allowedCSIDrivers' in kwargs: allowed_csi_drivers = kwargs['allowedCSIDrivers'] - if 'allowedCapabilities' in kwargs: + if allowed_capabilities is None and 'allowedCapabilities' in kwargs: allowed_capabilities = kwargs['allowedCapabilities'] - if 'allowedFlexVolumes' in kwargs: + if allowed_flex_volumes is None and 'allowedFlexVolumes' in kwargs: allowed_flex_volumes = kwargs['allowedFlexVolumes'] - if 'allowedHostPaths' in kwargs: + if allowed_host_paths is None and 'allowedHostPaths' in kwargs: allowed_host_paths = kwargs['allowedHostPaths'] - if 'allowedProcMountTypes' in kwargs: + if allowed_proc_mount_types is None and 'allowedProcMountTypes' in kwargs: allowed_proc_mount_types = kwargs['allowedProcMountTypes'] - if 'allowedUnsafeSysctls' in kwargs: + if allowed_unsafe_sysctls is None and 'allowedUnsafeSysctls' in kwargs: allowed_unsafe_sysctls = kwargs['allowedUnsafeSysctls'] - if 'defaultAddCapabilities' in kwargs: + if default_add_capabilities is None and 'defaultAddCapabilities' in kwargs: default_add_capabilities = kwargs['defaultAddCapabilities'] - if 'defaultAllowPrivilegeEscalation' in kwargs: + if default_allow_privilege_escalation is None and 'defaultAllowPrivilegeEscalation' in kwargs: default_allow_privilege_escalation = kwargs['defaultAllowPrivilegeEscalation'] - if 'forbiddenSysctls' in kwargs: + if forbidden_sysctls is None and 'forbiddenSysctls' in kwargs: forbidden_sysctls = kwargs['forbiddenSysctls'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostPorts' in kwargs: + if host_ports is None and 'hostPorts' in kwargs: host_ports = kwargs['hostPorts'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'requiredDropCapabilities' in kwargs: + if required_drop_capabilities is None and 'requiredDropCapabilities' in kwargs: required_drop_capabilities = kwargs['requiredDropCapabilities'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runtimeClass' in kwargs: + if runtime_class is None and 'runtimeClass' in kwargs: runtime_class = kwargs['runtimeClass'] _setter("fs_group", fs_group) @@ -1904,49 +1932,49 @@ def _configure( volumes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowPrivilegeEscalation' in kwargs: + if allow_privilege_escalation is None and 'allowPrivilegeEscalation' in kwargs: allow_privilege_escalation = kwargs['allowPrivilegeEscalation'] - if 'allowedCSIDrivers' in kwargs: + if allowed_csi_drivers is None and 'allowedCSIDrivers' in kwargs: allowed_csi_drivers = kwargs['allowedCSIDrivers'] - if 'allowedCapabilities' in kwargs: + if allowed_capabilities is None and 'allowedCapabilities' in kwargs: allowed_capabilities = kwargs['allowedCapabilities'] - if 'allowedFlexVolumes' in kwargs: + if allowed_flex_volumes is None and 'allowedFlexVolumes' in kwargs: allowed_flex_volumes = kwargs['allowedFlexVolumes'] - if 'allowedHostPaths' in kwargs: + if allowed_host_paths is None and 'allowedHostPaths' in kwargs: allowed_host_paths = kwargs['allowedHostPaths'] - if 'allowedProcMountTypes' in kwargs: + if allowed_proc_mount_types is None and 'allowedProcMountTypes' in kwargs: allowed_proc_mount_types = kwargs['allowedProcMountTypes'] - if 'allowedUnsafeSysctls' in kwargs: + if allowed_unsafe_sysctls is None and 'allowedUnsafeSysctls' in kwargs: allowed_unsafe_sysctls = kwargs['allowedUnsafeSysctls'] - if 'defaultAddCapabilities' in kwargs: + if default_add_capabilities is None and 'defaultAddCapabilities' in kwargs: default_add_capabilities = kwargs['defaultAddCapabilities'] - if 'defaultAllowPrivilegeEscalation' in kwargs: + if default_allow_privilege_escalation is None and 'defaultAllowPrivilegeEscalation' in kwargs: default_allow_privilege_escalation = kwargs['defaultAllowPrivilegeEscalation'] - if 'forbiddenSysctls' in kwargs: + if forbidden_sysctls is None and 'forbiddenSysctls' in kwargs: forbidden_sysctls = kwargs['forbiddenSysctls'] - if 'fsGroup' in kwargs: + if fs_group is None and 'fsGroup' in kwargs: fs_group = kwargs['fsGroup'] - if 'hostIPC' in kwargs: + if host_ipc is None and 'hostIPC' in kwargs: host_ipc = kwargs['hostIPC'] - if 'hostNetwork' in kwargs: + if host_network is None and 'hostNetwork' in kwargs: host_network = kwargs['hostNetwork'] - if 'hostPID' in kwargs: + if host_pid is None and 'hostPID' in kwargs: host_pid = kwargs['hostPID'] - if 'hostPorts' in kwargs: + if host_ports is None and 'hostPorts' in kwargs: host_ports = kwargs['hostPorts'] - if 'readOnlyRootFilesystem' in kwargs: + if read_only_root_filesystem is None and 'readOnlyRootFilesystem' in kwargs: read_only_root_filesystem = kwargs['readOnlyRootFilesystem'] - if 'requiredDropCapabilities' in kwargs: + if required_drop_capabilities is None and 'requiredDropCapabilities' in kwargs: required_drop_capabilities = kwargs['requiredDropCapabilities'] - if 'runAsGroup' in kwargs: + if run_as_group is None and 'runAsGroup' in kwargs: run_as_group = kwargs['runAsGroup'] - if 'runAsUser' in kwargs: + if run_as_user is None and 'runAsUser' in kwargs: run_as_user = kwargs['runAsUser'] - if 'runtimeClass' in kwargs: + if runtime_class is None and 'runtimeClass' in kwargs: runtime_class = kwargs['runtimeClass'] - if 'seLinux' in kwargs: + if se_linux is None and 'seLinux' in kwargs: se_linux = kwargs['seLinux'] - if 'supplementalGroups' in kwargs: + if supplemental_groups is None and 'supplementalGroups' in kwargs: supplemental_groups = kwargs['supplementalGroups'] if allow_privilege_escalation is not None: @@ -2216,10 +2244,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: str, + rule: Optional[str] = None, ranges: Optional[Sequence['outputs.IDRange']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rule is None: + raise TypeError("Missing 'rule' argument") _setter("rule", rule) if ranges is not None: @@ -2311,10 +2341,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: str, + rule: Optional[str] = None, ranges: Optional[Sequence['outputs.IDRange']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if rule is None: + raise TypeError("Missing 'rule' argument") _setter("rule", rule) if ranges is not None: @@ -2425,13 +2457,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - allowed_runtime_class_names: Sequence[str], + allowed_runtime_class_names: Optional[Sequence[str]] = None, default_runtime_class_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowedRuntimeClassNames' in kwargs: + if allowed_runtime_class_names is None and 'allowedRuntimeClassNames' in kwargs: allowed_runtime_class_names = kwargs['allowedRuntimeClassNames'] - if 'defaultRuntimeClassName' in kwargs: + if allowed_runtime_class_names is None: + raise TypeError("Missing 'allowed_runtime_class_names' argument") + if default_runtime_class_name is None and 'defaultRuntimeClassName' in kwargs: default_runtime_class_name = kwargs['defaultRuntimeClassName'] _setter("allowed_runtime_class_names", allowed_runtime_class_names) @@ -2499,9 +2533,9 @@ def _configure( default_runtime_class_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowedRuntimeClassNames' in kwargs: + if allowed_runtime_class_names is None and 'allowedRuntimeClassNames' in kwargs: allowed_runtime_class_names = kwargs['allowedRuntimeClassNames'] - if 'defaultRuntimeClassName' in kwargs: + if default_runtime_class_name is None and 'defaultRuntimeClassName' in kwargs: default_runtime_class_name = kwargs['defaultRuntimeClassName'] if allowed_runtime_class_names is not None: @@ -2564,11 +2598,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - rule: str, + rule: Optional[str] = None, se_linux_options: Optional['_core.v1.outputs.SELinuxOptions'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'seLinuxOptions' in kwargs: + if rule is None: + raise TypeError("Missing 'rule' argument") + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] _setter("rule", rule) @@ -2634,7 +2670,7 @@ def _configure( se_linux_options: Optional['_core.v1.outputs.SELinuxOptionsPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'seLinuxOptions' in kwargs: + if se_linux_options is None and 'seLinuxOptions' in kwargs: se_linux_options = kwargs['seLinuxOptions'] if rule is not None: diff --git a/sdk/python/pulumi_kubernetes/provider.py b/sdk/python/pulumi_kubernetes/provider.py index ac41411a4f..dc52117961 100644 --- a/sdk/python/pulumi_kubernetes/provider.py +++ b/sdk/python/pulumi_kubernetes/provider.py @@ -96,23 +96,23 @@ def _configure( suppress_helm_hook_warnings: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deleteUnreachable' in kwargs: + if delete_unreachable is None and 'deleteUnreachable' in kwargs: delete_unreachable = kwargs['deleteUnreachable'] - if 'enableConfigMapMutable' in kwargs: + if enable_config_map_mutable is None and 'enableConfigMapMutable' in kwargs: enable_config_map_mutable = kwargs['enableConfigMapMutable'] - if 'enableServerSideApply' in kwargs: + if enable_server_side_apply is None and 'enableServerSideApply' in kwargs: enable_server_side_apply = kwargs['enableServerSideApply'] - if 'helmReleaseSettings' in kwargs: + if helm_release_settings is None and 'helmReleaseSettings' in kwargs: helm_release_settings = kwargs['helmReleaseSettings'] - if 'kubeClientSettings' in kwargs: + if kube_client_settings is None and 'kubeClientSettings' in kwargs: kube_client_settings = kwargs['kubeClientSettings'] - if 'renderYamlToDirectory' in kwargs: + if render_yaml_to_directory is None and 'renderYamlToDirectory' in kwargs: render_yaml_to_directory = kwargs['renderYamlToDirectory'] - if 'skipUpdateUnreachable' in kwargs: + if skip_update_unreachable is None and 'skipUpdateUnreachable' in kwargs: skip_update_unreachable = kwargs['skipUpdateUnreachable'] - if 'suppressDeprecationWarnings' in kwargs: + if suppress_deprecation_warnings is None and 'suppressDeprecationWarnings' in kwargs: suppress_deprecation_warnings = kwargs['suppressDeprecationWarnings'] - if 'suppressHelmHookWarnings' in kwargs: + if suppress_helm_hook_warnings is None and 'suppressHelmHookWarnings' in kwargs: suppress_helm_hook_warnings = kwargs['suppressHelmHookWarnings'] if cluster is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py index 5642d65bbb..6df97755bb 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py @@ -48,9 +48,9 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py index fbe41b83bc..37568c7b90 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py @@ -41,16 +41,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py index d848f1edcd..b605bf7d96 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py index 230c8f1d7d..2ad7fc6654 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py @@ -48,9 +48,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py index 7c1498b983..1214eddfe1 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRolePatch.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRolePatch.py index b6049c4b28..fa10e8a018 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRolePatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRolePatch.py @@ -48,9 +48,9 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py index 0fac5430bb..c86f700578 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py @@ -44,7 +44,7 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py index ab83b19d17..5c78be6ef4 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py @@ -41,16 +41,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py index a0b7b6c41a..ebe1ea854a 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingPatch.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingPatch.py index 2a8349bbc6..7261e950ca 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingPatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingPatch.py @@ -48,9 +48,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py index 2305881bce..c58125c924 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['RoleArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['RoleArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RolePatch.py b/sdk/python/pulumi_kubernetes/rbac/v1/RolePatch.py index 2cdc7beca8..a6435d725e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RolePatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RolePatch.py @@ -44,7 +44,7 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/_inputs.py b/sdk/python/pulumi_kubernetes/rbac/v1/_inputs.py index c9a46aa267..ef2c072543 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/_inputs.py @@ -43,7 +43,7 @@ def _configure( cluster_role_selectors: Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -80,7 +80,7 @@ def _configure( cluster_role_selectors: Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.LabelSelectorArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -126,16 +126,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -243,9 +245,9 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: @@ -354,11 +356,11 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -460,18 +462,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, api_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, non_resource_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, resource_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] _setter("verbs", verbs) @@ -572,16 +576,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -681,7 +687,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -749,13 +755,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_group: pulumi.Input[str], - kind: pulumi.Input[str], - name: pulumi.Input[str], + api_group: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] + if api_group is None: + raise TypeError("Missing 'api_group' argument") + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("api_group", api_group) _setter("kind", kind) @@ -828,7 +840,7 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -919,7 +931,7 @@ def _configure( namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1004,13 +1016,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/outputs.py b/sdk/python/pulumi_kubernetes/rbac/v1/outputs.py index 0e89777622..8959dc1893 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/outputs.py @@ -64,7 +64,7 @@ def _configure( cluster_role_selectors: Optional[Sequence['_meta.v1.outputs.LabelSelector']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -117,7 +117,7 @@ def _configure( cluster_role_selectors: Optional[Sequence['_meta.v1.outputs.LabelSelectorPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -188,9 +188,9 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: @@ -294,16 +294,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: 'outputs.RoleRef', + role_ref: Optional['outputs.RoleRef'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, subjects: Optional[Sequence['outputs.Subject']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -408,18 +410,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - verbs: Sequence[str], + verbs: Optional[Sequence[str]] = None, api_groups: Optional[Sequence[str]] = None, non_resource_urls: Optional[Sequence[str]] = None, resource_names: Optional[Sequence[str]] = None, resources: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] _setter("verbs", verbs) @@ -531,11 +535,11 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -640,7 +644,7 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -734,16 +738,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: 'outputs.RoleRef', + role_ref: Optional['outputs.RoleRef'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, subjects: Optional[Sequence['outputs.Subject']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -838,13 +844,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_group: str, - kind: str, - name: str, + api_group: Optional[str] = None, + kind: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] + if api_group is None: + raise TypeError("Missing 'api_group' argument") + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("api_group", api_group) _setter("kind", kind) @@ -921,7 +933,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1000,13 +1012,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_group: Optional[str] = None, namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -1099,7 +1115,7 @@ def _configure( namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py index 062ad94789..0d5ef19f8a 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py @@ -48,9 +48,9 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py index 235a03549c..86733b03c9 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py @@ -41,16 +41,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py index 746dd59e39..287dc27d3f 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py index 7a6e90e2c9..19508edd4f 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py @@ -48,9 +48,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py index 570a0bce18..d94cc4cb8e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py index 9adc0916a1..afca13a367 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py @@ -48,9 +48,9 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py index 61d3a2af63..cb5cef14ec 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py @@ -44,7 +44,7 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py index b7756a65a5..04b4d80faa 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py @@ -41,16 +41,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py index 1d45e1c64c..28355b101e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py index 9475dad50b..4253cf1b42 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py @@ -48,9 +48,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py index d75857e9d2..dc59ced069 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['RoleArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['RoleArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RolePatch.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RolePatch.py index 3d181eee27..5062082782 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RolePatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RolePatch.py @@ -44,7 +44,7 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/_inputs.py index 6af69db1da..b4a330c3fb 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/_inputs.py @@ -43,7 +43,7 @@ def _configure( cluster_role_selectors: Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -80,7 +80,7 @@ def _configure( cluster_role_selectors: Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.LabelSelectorArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -126,16 +126,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -243,9 +245,9 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: @@ -354,11 +356,11 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -460,18 +462,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, api_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, non_resource_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, resource_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] _setter("verbs", verbs) @@ -572,16 +576,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -681,7 +687,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -749,13 +755,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_group: pulumi.Input[str], - kind: pulumi.Input[str], - name: pulumi.Input[str], + api_group: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] + if api_group is None: + raise TypeError("Missing 'api_group' argument") + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("api_group", api_group) _setter("kind", kind) @@ -828,7 +840,7 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -919,7 +931,7 @@ def _configure( namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -1004,13 +1016,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/outputs.py index 8f33b85a65..6d4f4c94a5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/outputs.py @@ -64,7 +64,7 @@ def _configure( cluster_role_selectors: Optional[Sequence['_meta.v1.outputs.LabelSelector']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -117,7 +117,7 @@ def _configure( cluster_role_selectors: Optional[Sequence['_meta.v1.outputs.LabelSelectorPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -188,9 +188,9 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: @@ -294,16 +294,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: 'outputs.RoleRef', + role_ref: Optional['outputs.RoleRef'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, subjects: Optional[Sequence['outputs.Subject']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -408,18 +410,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - verbs: Sequence[str], + verbs: Optional[Sequence[str]] = None, api_groups: Optional[Sequence[str]] = None, non_resource_urls: Optional[Sequence[str]] = None, resource_names: Optional[Sequence[str]] = None, resources: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] _setter("verbs", verbs) @@ -531,11 +535,11 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -640,7 +644,7 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -734,16 +738,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: 'outputs.RoleRef', + role_ref: Optional['outputs.RoleRef'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, subjects: Optional[Sequence['outputs.Subject']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -838,13 +844,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_group: str, - kind: str, - name: str, + api_group: Optional[str] = None, + kind: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] + if api_group is None: + raise TypeError("Missing 'api_group' argument") + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("api_group", api_group) _setter("kind", kind) @@ -921,7 +933,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1000,13 +1012,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_version: Optional[str] = None, namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("kind", kind) @@ -1099,7 +1115,7 @@ def _configure( namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py index 4f07ec355a..856f91720e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py @@ -48,9 +48,9 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py index 7263c0de5c..9cd8111d6c 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py @@ -41,16 +41,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py index aee9d74813..0b92e6a230 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterRoleBindingArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py index 053d42a830..381c728aa5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py @@ -48,9 +48,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py index db6ac84ed7..c127a339ae 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterRoleArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py index 59c5973dc0..d0d03c381f 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py @@ -48,9 +48,9 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py index d10807162f..067d4cf67b 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py @@ -44,7 +44,7 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py index 73edd6b68d..a56f7f0133 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py @@ -41,16 +41,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py index 9f96978c38..43fbfc081f 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['RoleBindingArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py index b80bb60b6f..b096b90139 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py @@ -48,9 +48,9 @@ def _configure( subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py index 87a6f3b9d9..cf624023dd 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['RoleArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['RoleArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RolePatch.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RolePatch.py index e2fd2ebb30..0664c58935 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RolePatch.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RolePatch.py @@ -44,7 +44,7 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRulePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/_inputs.py index 3ecd820aa3..6ec2b370a9 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/_inputs.py @@ -43,7 +43,7 @@ def _configure( cluster_role_selectors: Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -80,7 +80,7 @@ def _configure( cluster_role_selectors: Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.LabelSelectorArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -126,16 +126,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -243,9 +245,9 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: @@ -354,11 +356,11 @@ def _configure( verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -460,18 +462,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - verbs: pulumi.Input[Sequence[pulumi.Input[str]]], + verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, api_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, non_resource_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, resource_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] _setter("verbs", verbs) @@ -572,16 +576,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: pulumi.Input['RoleRefArgs'], + role_ref: Optional[pulumi.Input['RoleRefArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, subjects: Optional[pulumi.Input[Sequence[pulumi.Input['SubjectArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -681,7 +687,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -749,13 +755,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_group: pulumi.Input[str], - kind: pulumi.Input[str], - name: pulumi.Input[str], + api_group: Optional[pulumi.Input[str]] = None, + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] + if api_group is None: + raise TypeError("Missing 'api_group' argument") + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("api_group", api_group) _setter("kind", kind) @@ -828,7 +840,7 @@ def _configure( rules: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyRuleArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -919,7 +931,7 @@ def _configure( namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1004,13 +1016,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/outputs.py index ae10a9c263..e930e1475b 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/outputs.py @@ -64,7 +64,7 @@ def _configure( cluster_role_selectors: Optional[Sequence['_meta.v1.outputs.LabelSelector']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -117,7 +117,7 @@ def _configure( cluster_role_selectors: Optional[Sequence['_meta.v1.outputs.LabelSelectorPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'clusterRoleSelectors' in kwargs: + if cluster_role_selectors is None and 'clusterRoleSelectors' in kwargs: cluster_role_selectors = kwargs['clusterRoleSelectors'] if cluster_role_selectors is not None: @@ -188,9 +188,9 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'aggregationRule' in kwargs: + if aggregation_rule is None and 'aggregationRule' in kwargs: aggregation_rule = kwargs['aggregationRule'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if aggregation_rule is not None: @@ -294,16 +294,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: 'outputs.RoleRef', + role_ref: Optional['outputs.RoleRef'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, subjects: Optional[Sequence['outputs.Subject']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -408,18 +410,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - verbs: Sequence[str], + verbs: Optional[Sequence[str]] = None, api_groups: Optional[Sequence[str]] = None, non_resource_urls: Optional[Sequence[str]] = None, resource_names: Optional[Sequence[str]] = None, resources: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if verbs is None: + raise TypeError("Missing 'verbs' argument") + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] _setter("verbs", verbs) @@ -531,11 +535,11 @@ def _configure( verbs: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroups' in kwargs: + if api_groups is None and 'apiGroups' in kwargs: api_groups = kwargs['apiGroups'] - if 'nonResourceURLs' in kwargs: + if non_resource_urls is None and 'nonResourceURLs' in kwargs: non_resource_urls = kwargs['nonResourceURLs'] - if 'resourceNames' in kwargs: + if resource_names is None and 'resourceNames' in kwargs: resource_names = kwargs['resourceNames'] if api_groups is not None: @@ -640,7 +644,7 @@ def _configure( rules: Optional[Sequence['outputs.PolicyRule']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -734,16 +738,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - role_ref: 'outputs.RoleRef', + role_ref: Optional['outputs.RoleRef'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, subjects: Optional[Sequence['outputs.Subject']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'roleRef' in kwargs: + if role_ref is None and 'roleRef' in kwargs: role_ref = kwargs['roleRef'] - if 'apiVersion' in kwargs: + if role_ref is None: + raise TypeError("Missing 'role_ref' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("role_ref", role_ref) @@ -838,13 +844,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - api_group: str, - kind: str, - name: str, + api_group: Optional[str] = None, + kind: Optional[str] = None, + name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] + if api_group is None: + raise TypeError("Missing 'api_group' argument") + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") _setter("api_group", api_group) _setter("kind", kind) @@ -921,7 +933,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1000,13 +1012,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_group: Optional[str] = None, namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -1099,7 +1115,7 @@ def _configure( namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodScheduling.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodScheduling.py index fd425f2478..37263c3d3f 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodScheduling.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodScheduling.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['PodSchedulingSpecArgs'], + spec: Optional[pulumi.Input['PodSchedulingSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py index 2e5826bfc9..4c24a62324 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PodSchedulingArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PodSchedulingArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py index 730fc0b30b..8dd0a00086 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PodSchedulingSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py index 2d27d53f19..4a5743ecd5 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py index 2323c678c2..ef16d1e92b 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ResourceClaimArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py index 7e7aa47d8c..6ddba88ae2 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ResourceClaimSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py index 188b1434a6..1c0a5b94ac 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py @@ -40,13 +40,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimTemplateSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimTemplateSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py index e5b0a7f342..794926aacc 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ResourceClaimTemplateArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimTemplateArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py index a6acea67a2..c5ca172f82 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py @@ -46,7 +46,7 @@ def _configure( spec: Optional[pulumi.Input['ResourceClaimTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClass.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClass.py index 882b7139f4..87db4de07f 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClass.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClass.py @@ -49,7 +49,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver_name: pulumi.Input[str], + driver_name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, @@ -57,13 +57,15 @@ def _configure( suitable_nodes: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'apiVersion' in kwargs: + if driver_name is None: + raise TypeError("Missing 'driver_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'suitableNodes' in kwargs: + if suitable_nodes is None and 'suitableNodes' in kwargs: suitable_nodes = kwargs['suitableNodes'] _setter("driver_name", driver_name) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py index 51aeb6db3e..3ca0001e4e 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ResourceClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py index ee0cc186dd..72ca0ab558 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py @@ -57,13 +57,13 @@ def _configure( suitable_nodes: Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'suitableNodes' in kwargs: + if suitable_nodes is None and 'suitableNodes' in kwargs: suitable_nodes = kwargs['suitableNodes'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/_inputs.py index 87421de125..854facfe19 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/_inputs.py @@ -63,9 +63,9 @@ def _configure( shareable: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableOnNodes' in kwargs: + if available_on_nodes is None and 'availableOnNodes' in kwargs: available_on_nodes = kwargs['availableOnNodes'] - if 'resourceHandle' in kwargs: + if resource_handle is None and 'resourceHandle' in kwargs: resource_handle = kwargs['resourceHandle'] if available_on_nodes is not None: @@ -140,9 +140,9 @@ def _configure( selected_node: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'potentialNodes' in kwargs: + if potential_nodes is None and 'potentialNodes' in kwargs: potential_nodes = kwargs['potentialNodes'] - if 'selectedNode' in kwargs: + if selected_node is None and 'selectedNode' in kwargs: selected_node = kwargs['selectedNode'] if potential_nodes is not None: @@ -201,9 +201,9 @@ def _configure( selected_node: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'potentialNodes' in kwargs: + if potential_nodes is None and 'potentialNodes' in kwargs: potential_nodes = kwargs['potentialNodes'] - if 'selectedNode' in kwargs: + if selected_node is None and 'selectedNode' in kwargs: selected_node = kwargs['selectedNode'] if potential_nodes is not None: @@ -256,7 +256,7 @@ def _configure( resource_claims: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimSchedulingStatusArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] if resource_claims is not None: @@ -304,14 +304,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['PodSchedulingSpecArgs'], + spec: Optional[pulumi.Input['PodSchedulingSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['PodSchedulingStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -409,13 +411,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - resource: pulumi.Input[str], - uid: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + resource: Optional[pulumi.Input[str]] = None, + uid: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if resource is None: + raise TypeError("Missing 'resource' argument") + if uid is None: + raise TypeError("Missing 'uid' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("name", name) @@ -499,7 +507,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -567,12 +575,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -641,7 +653,7 @@ def _configure( unsuitable_nodes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'unsuitableNodes' in kwargs: + if unsuitable_nodes is None and 'unsuitableNodes' in kwargs: unsuitable_nodes = kwargs['unsuitableNodes'] if name is not None: @@ -704,11 +716,11 @@ def _configure( resource_class_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allocationMode' in kwargs: + if allocation_mode is None and 'allocationMode' in kwargs: allocation_mode = kwargs['allocationMode'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'resourceClassName' in kwargs: + if resource_class_name is None and 'resourceClassName' in kwargs: resource_class_name = kwargs['resourceClassName'] if allocation_mode is not None: @@ -780,16 +792,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - resource_class_name: pulumi.Input[str], + resource_class_name: Optional[pulumi.Input[str]] = None, allocation_mode: Optional[pulumi.Input[str]] = None, parameters_ref: Optional[pulumi.Input['ResourceClaimParametersReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClassName' in kwargs: + if resource_class_name is None and 'resourceClassName' in kwargs: resource_class_name = kwargs['resourceClassName'] - if 'allocationMode' in kwargs: + if resource_class_name is None: + raise TypeError("Missing 'resource_class_name' argument") + if allocation_mode is None and 'allocationMode' in kwargs: allocation_mode = kwargs['allocationMode'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] _setter("resource_class_name", resource_class_name) @@ -873,11 +887,11 @@ def _configure( reserved_for: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deallocationRequested' in kwargs: + if deallocation_requested is None and 'deallocationRequested' in kwargs: deallocation_requested = kwargs['deallocationRequested'] - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'reservedFor' in kwargs: + if reserved_for is None and 'reservedFor' in kwargs: reserved_for = kwargs['reservedFor'] if allocation is not None: @@ -1015,10 +1029,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimSpecArgs']] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if spec is None: + raise TypeError("Missing 'spec' argument") _setter("spec", spec) if metadata is not None: @@ -1075,13 +1091,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimTemplateSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimTemplateSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1172,14 +1190,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['ResourceClaimStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1283,7 +1303,7 @@ def _configure( namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1368,13 +1388,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -1469,7 +1493,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver_name: pulumi.Input[str], + driver_name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, @@ -1477,13 +1501,15 @@ def _configure( suitable_nodes: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'apiVersion' in kwargs: + if driver_name is None: + raise TypeError("Missing 'driver_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'suitableNodes' in kwargs: + if suitable_nodes is None and 'suitableNodes' in kwargs: suitable_nodes = kwargs['suitableNodes'] _setter("driver_name", driver_name) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/resource/v1alpha1/outputs.py index 10f308fa73..1a0505941c 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha1/outputs.py @@ -91,9 +91,9 @@ def _configure( shareable: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableOnNodes' in kwargs: + if available_on_nodes is None and 'availableOnNodes' in kwargs: available_on_nodes = kwargs['availableOnNodes'] - if 'resourceHandle' in kwargs: + if resource_handle is None and 'resourceHandle' in kwargs: resource_handle = kwargs['resourceHandle'] if available_on_nodes is not None: @@ -184,9 +184,9 @@ def _configure( shareable: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableOnNodes' in kwargs: + if available_on_nodes is None and 'availableOnNodes' in kwargs: available_on_nodes = kwargs['availableOnNodes'] - if 'resourceHandle' in kwargs: + if resource_handle is None and 'resourceHandle' in kwargs: resource_handle = kwargs['resourceHandle'] if available_on_nodes is not None: @@ -276,14 +276,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.PodSchedulingSpec', + spec: Optional['outputs.PodSchedulingSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.PodSchedulingStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -383,9 +385,9 @@ def _configure( selected_node: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'potentialNodes' in kwargs: + if potential_nodes is None and 'potentialNodes' in kwargs: potential_nodes = kwargs['potentialNodes'] - if 'selectedNode' in kwargs: + if selected_node is None and 'selectedNode' in kwargs: selected_node = kwargs['selectedNode'] if potential_nodes is not None: @@ -458,9 +460,9 @@ def _configure( selected_node: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'potentialNodes' in kwargs: + if potential_nodes is None and 'potentialNodes' in kwargs: potential_nodes = kwargs['potentialNodes'] - if 'selectedNode' in kwargs: + if selected_node is None and 'selectedNode' in kwargs: selected_node = kwargs['selectedNode'] if potential_nodes is not None: @@ -525,7 +527,7 @@ def _configure( resource_claims: Optional[Sequence['outputs.ResourceClaimSchedulingStatus']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] if resource_claims is not None: @@ -578,7 +580,7 @@ def _configure( resource_claims: Optional[Sequence['outputs.ResourceClaimSchedulingStatusPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] if resource_claims is not None: @@ -644,14 +646,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.ResourceClaimSpec', + spec: Optional['outputs.ResourceClaimSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.ResourceClaimStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -749,13 +753,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - resource: str, - uid: str, + name: Optional[str] = None, + resource: Optional[str] = None, + uid: Optional[str] = None, api_group: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if resource is None: + raise TypeError("Missing 'resource' argument") + if uid is None: + raise TypeError("Missing 'uid' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("name", name) @@ -847,7 +857,7 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -933,12 +943,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_group: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -1017,7 +1031,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1096,7 +1110,7 @@ def _configure( unsuitable_nodes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'unsuitableNodes' in kwargs: + if unsuitable_nodes is None and 'unsuitableNodes' in kwargs: unsuitable_nodes = kwargs['unsuitableNodes'] if name is not None: @@ -1167,7 +1181,7 @@ def _configure( unsuitable_nodes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'unsuitableNodes' in kwargs: + if unsuitable_nodes is None and 'unsuitableNodes' in kwargs: unsuitable_nodes = kwargs['unsuitableNodes'] if name is not None: @@ -1241,16 +1255,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - resource_class_name: str, + resource_class_name: Optional[str] = None, allocation_mode: Optional[str] = None, parameters_ref: Optional['outputs.ResourceClaimParametersReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClassName' in kwargs: + if resource_class_name is None and 'resourceClassName' in kwargs: resource_class_name = kwargs['resourceClassName'] - if 'allocationMode' in kwargs: + if resource_class_name is None: + raise TypeError("Missing 'resource_class_name' argument") + if allocation_mode is None and 'allocationMode' in kwargs: allocation_mode = kwargs['allocationMode'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] _setter("resource_class_name", resource_class_name) @@ -1338,11 +1354,11 @@ def _configure( resource_class_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allocationMode' in kwargs: + if allocation_mode is None and 'allocationMode' in kwargs: allocation_mode = kwargs['allocationMode'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'resourceClassName' in kwargs: + if resource_class_name is None and 'resourceClassName' in kwargs: resource_class_name = kwargs['resourceClassName'] if allocation_mode is not None: @@ -1439,11 +1455,11 @@ def _configure( reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReference']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deallocationRequested' in kwargs: + if deallocation_requested is None and 'deallocationRequested' in kwargs: deallocation_requested = kwargs['deallocationRequested'] - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'reservedFor' in kwargs: + if reserved_for is None and 'reservedFor' in kwargs: reserved_for = kwargs['reservedFor'] if allocation is not None: @@ -1554,11 +1570,11 @@ def _configure( reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deallocationRequested' in kwargs: + if deallocation_requested is None and 'deallocationRequested' in kwargs: deallocation_requested = kwargs['deallocationRequested'] - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'reservedFor' in kwargs: + if reserved_for is None and 'reservedFor' in kwargs: reserved_for = kwargs['reservedFor'] if allocation is not None: @@ -1655,13 +1671,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.ResourceClaimTemplateSpec', + spec: Optional['outputs.ResourceClaimTemplateSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1728,10 +1746,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.ResourceClaimSpec', + spec: Optional['outputs.ResourceClaimSpec'] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if spec is None: + raise TypeError("Missing 'spec' argument") _setter("spec", spec) if metadata is not None: @@ -1866,7 +1886,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver_name: str, + driver_name: Optional[str] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, @@ -1874,13 +1894,15 @@ def _configure( suitable_nodes: Optional['_core.v1.outputs.NodeSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'apiVersion' in kwargs: + if driver_name is None: + raise TypeError("Missing 'driver_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'suitableNodes' in kwargs: + if suitable_nodes is None and 'suitableNodes' in kwargs: suitable_nodes = kwargs['suitableNodes'] _setter("driver_name", driver_name) @@ -1992,13 +2014,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_group: Optional[str] = None, namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -2091,7 +2117,7 @@ def _configure( namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py index 169f91d5d2..c32a822bdc 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['PodSchedulingContextSpecArgs'], + spec: Optional[pulumi.Input['PodSchedulingContextSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py index 69df8dde9d..668de42399 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PodSchedulingContextArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PodSchedulingContextArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py index 5a74961102..cb0a561b69 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['PodSchedulingContextSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py index e0bd977474..35b4692264 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py index f6cd738b9d..b4284c6863 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ResourceClaimArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py index 34b471e504..d0875b3b0c 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['ResourceClaimSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py index 311d166535..2b449db951 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py @@ -40,13 +40,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimTemplateSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimTemplateSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py index 237cd08657..e4c6a2b357 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ResourceClaimTemplateArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimTemplateArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py index 2b90efa4a9..a43df36f46 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py @@ -46,7 +46,7 @@ def _configure( spec: Optional[pulumi.Input['ResourceClaimTemplateSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClass.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClass.py index 5b7025a200..e410356733 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClass.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClass.py @@ -49,7 +49,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver_name: pulumi.Input[str], + driver_name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, @@ -57,13 +57,15 @@ def _configure( suitable_nodes: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'apiVersion' in kwargs: + if driver_name is None: + raise TypeError("Missing 'driver_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'suitableNodes' in kwargs: + if suitable_nodes is None and 'suitableNodes' in kwargs: suitable_nodes = kwargs['suitableNodes'] _setter("driver_name", driver_name) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py index 8acc5a19be..1d618cfba8 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['ResourceClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py index b868429ab8..b287060712 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py @@ -57,13 +57,13 @@ def _configure( suitable_nodes: Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'suitableNodes' in kwargs: + if suitable_nodes is None and 'suitableNodes' in kwargs: suitable_nodes = kwargs['suitableNodes'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/_inputs.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/_inputs.py index 45f6be6d7b..8953fd3f99 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/_inputs.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/_inputs.py @@ -64,9 +64,9 @@ def _configure( shareable: Optional[pulumi.Input[bool]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableOnNodes' in kwargs: + if available_on_nodes is None and 'availableOnNodes' in kwargs: available_on_nodes = kwargs['availableOnNodes'] - if 'resourceHandles' in kwargs: + if resource_handles is None and 'resourceHandles' in kwargs: resource_handles = kwargs['resourceHandles'] if available_on_nodes is not None: @@ -141,9 +141,9 @@ def _configure( selected_node: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'potentialNodes' in kwargs: + if potential_nodes is None and 'potentialNodes' in kwargs: potential_nodes = kwargs['potentialNodes'] - if 'selectedNode' in kwargs: + if selected_node is None and 'selectedNode' in kwargs: selected_node = kwargs['selectedNode'] if potential_nodes is not None: @@ -202,9 +202,9 @@ def _configure( selected_node: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'potentialNodes' in kwargs: + if potential_nodes is None and 'potentialNodes' in kwargs: potential_nodes = kwargs['potentialNodes'] - if 'selectedNode' in kwargs: + if selected_node is None and 'selectedNode' in kwargs: selected_node = kwargs['selectedNode'] if potential_nodes is not None: @@ -257,7 +257,7 @@ def _configure( resource_claims: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimSchedulingStatusArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] if resource_claims is not None: @@ -305,14 +305,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['PodSchedulingContextSpecArgs'], + spec: Optional[pulumi.Input['PodSchedulingContextSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['PodSchedulingContextStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -410,13 +412,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - resource: pulumi.Input[str], - uid: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + resource: Optional[pulumi.Input[str]] = None, + uid: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if resource is None: + raise TypeError("Missing 'resource' argument") + if uid is None: + raise TypeError("Missing 'uid' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("name", name) @@ -500,7 +508,7 @@ def _configure( name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -568,12 +576,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -642,7 +654,7 @@ def _configure( unsuitable_nodes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'unsuitableNodes' in kwargs: + if unsuitable_nodes is None and 'unsuitableNodes' in kwargs: unsuitable_nodes = kwargs['unsuitableNodes'] if name is not None: @@ -705,11 +717,11 @@ def _configure( resource_class_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allocationMode' in kwargs: + if allocation_mode is None and 'allocationMode' in kwargs: allocation_mode = kwargs['allocationMode'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'resourceClassName' in kwargs: + if resource_class_name is None and 'resourceClassName' in kwargs: resource_class_name = kwargs['resourceClassName'] if allocation_mode is not None: @@ -781,16 +793,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - resource_class_name: pulumi.Input[str], + resource_class_name: Optional[pulumi.Input[str]] = None, allocation_mode: Optional[pulumi.Input[str]] = None, parameters_ref: Optional[pulumi.Input['ResourceClaimParametersReferenceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClassName' in kwargs: + if resource_class_name is None and 'resourceClassName' in kwargs: resource_class_name = kwargs['resourceClassName'] - if 'allocationMode' in kwargs: + if resource_class_name is None: + raise TypeError("Missing 'resource_class_name' argument") + if allocation_mode is None and 'allocationMode' in kwargs: allocation_mode = kwargs['allocationMode'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] _setter("resource_class_name", resource_class_name) @@ -874,11 +888,11 @@ def _configure( reserved_for: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deallocationRequested' in kwargs: + if deallocation_requested is None and 'deallocationRequested' in kwargs: deallocation_requested = kwargs['deallocationRequested'] - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'reservedFor' in kwargs: + if reserved_for is None and 'reservedFor' in kwargs: reserved_for = kwargs['reservedFor'] if allocation is not None: @@ -1016,10 +1030,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimSpecArgs']] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if spec is None: + raise TypeError("Missing 'spec' argument") _setter("spec", spec) if metadata is not None: @@ -1076,13 +1092,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimTemplateSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimTemplateSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1173,14 +1191,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['ResourceClaimSpecArgs'], + spec: Optional[pulumi.Input['ResourceClaimSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['ResourceClaimStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1284,7 +1304,7 @@ def _configure( namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1369,13 +1389,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: pulumi.Input[str], - name: pulumi.Input[str], + kind: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, api_group: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -1470,7 +1494,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver_name: pulumi.Input[str], + driver_name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, @@ -1478,13 +1502,15 @@ def _configure( suitable_nodes: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'apiVersion' in kwargs: + if driver_name is None: + raise TypeError("Missing 'driver_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'suitableNodes' in kwargs: + if suitable_nodes is None and 'suitableNodes' in kwargs: suitable_nodes = kwargs['suitableNodes'] _setter("driver_name", driver_name) @@ -1600,7 +1626,7 @@ def _configure( driver_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] if data is not None: diff --git a/sdk/python/pulumi_kubernetes/resource/v1alpha2/outputs.py b/sdk/python/pulumi_kubernetes/resource/v1alpha2/outputs.py index b24ba56a9d..ae466bba72 100644 --- a/sdk/python/pulumi_kubernetes/resource/v1alpha2/outputs.py +++ b/sdk/python/pulumi_kubernetes/resource/v1alpha2/outputs.py @@ -93,9 +93,9 @@ def _configure( shareable: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableOnNodes' in kwargs: + if available_on_nodes is None and 'availableOnNodes' in kwargs: available_on_nodes = kwargs['availableOnNodes'] - if 'resourceHandles' in kwargs: + if resource_handles is None and 'resourceHandles' in kwargs: resource_handles = kwargs['resourceHandles'] if available_on_nodes is not None: @@ -186,9 +186,9 @@ def _configure( shareable: Optional[bool] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'availableOnNodes' in kwargs: + if available_on_nodes is None and 'availableOnNodes' in kwargs: available_on_nodes = kwargs['availableOnNodes'] - if 'resourceHandles' in kwargs: + if resource_handles is None and 'resourceHandles' in kwargs: resource_handles = kwargs['resourceHandles'] if available_on_nodes is not None: @@ -278,14 +278,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.PodSchedulingContextSpec', + spec: Optional['outputs.PodSchedulingContextSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.PodSchedulingContextStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -385,9 +387,9 @@ def _configure( selected_node: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'potentialNodes' in kwargs: + if potential_nodes is None and 'potentialNodes' in kwargs: potential_nodes = kwargs['potentialNodes'] - if 'selectedNode' in kwargs: + if selected_node is None and 'selectedNode' in kwargs: selected_node = kwargs['selectedNode'] if potential_nodes is not None: @@ -460,9 +462,9 @@ def _configure( selected_node: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'potentialNodes' in kwargs: + if potential_nodes is None and 'potentialNodes' in kwargs: potential_nodes = kwargs['potentialNodes'] - if 'selectedNode' in kwargs: + if selected_node is None and 'selectedNode' in kwargs: selected_node = kwargs['selectedNode'] if potential_nodes is not None: @@ -527,7 +529,7 @@ def _configure( resource_claims: Optional[Sequence['outputs.ResourceClaimSchedulingStatus']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] if resource_claims is not None: @@ -580,7 +582,7 @@ def _configure( resource_claims: Optional[Sequence['outputs.ResourceClaimSchedulingStatusPatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClaims' in kwargs: + if resource_claims is None and 'resourceClaims' in kwargs: resource_claims = kwargs['resourceClaims'] if resource_claims is not None: @@ -646,14 +648,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.ResourceClaimSpec', + spec: Optional['outputs.ResourceClaimSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.ResourceClaimStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -751,13 +755,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - resource: str, - uid: str, + name: Optional[str] = None, + resource: Optional[str] = None, + uid: Optional[str] = None, api_group: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if resource is None: + raise TypeError("Missing 'resource' argument") + if uid is None: + raise TypeError("Missing 'uid' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("name", name) @@ -849,7 +859,7 @@ def _configure( uid: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -935,12 +945,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_group: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -1019,7 +1033,7 @@ def _configure( name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -1098,7 +1112,7 @@ def _configure( unsuitable_nodes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'unsuitableNodes' in kwargs: + if unsuitable_nodes is None and 'unsuitableNodes' in kwargs: unsuitable_nodes = kwargs['unsuitableNodes'] if name is not None: @@ -1169,7 +1183,7 @@ def _configure( unsuitable_nodes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'unsuitableNodes' in kwargs: + if unsuitable_nodes is None and 'unsuitableNodes' in kwargs: unsuitable_nodes = kwargs['unsuitableNodes'] if name is not None: @@ -1243,16 +1257,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - resource_class_name: str, + resource_class_name: Optional[str] = None, allocation_mode: Optional[str] = None, parameters_ref: Optional['outputs.ResourceClaimParametersReference'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'resourceClassName' in kwargs: + if resource_class_name is None and 'resourceClassName' in kwargs: resource_class_name = kwargs['resourceClassName'] - if 'allocationMode' in kwargs: + if resource_class_name is None: + raise TypeError("Missing 'resource_class_name' argument") + if allocation_mode is None and 'allocationMode' in kwargs: allocation_mode = kwargs['allocationMode'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] _setter("resource_class_name", resource_class_name) @@ -1340,11 +1356,11 @@ def _configure( resource_class_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allocationMode' in kwargs: + if allocation_mode is None and 'allocationMode' in kwargs: allocation_mode = kwargs['allocationMode'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'resourceClassName' in kwargs: + if resource_class_name is None and 'resourceClassName' in kwargs: resource_class_name = kwargs['resourceClassName'] if allocation_mode is not None: @@ -1441,11 +1457,11 @@ def _configure( reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReference']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deallocationRequested' in kwargs: + if deallocation_requested is None and 'deallocationRequested' in kwargs: deallocation_requested = kwargs['deallocationRequested'] - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'reservedFor' in kwargs: + if reserved_for is None and 'reservedFor' in kwargs: reserved_for = kwargs['reservedFor'] if allocation is not None: @@ -1556,11 +1572,11 @@ def _configure( reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'deallocationRequested' in kwargs: + if deallocation_requested is None and 'deallocationRequested' in kwargs: deallocation_requested = kwargs['deallocationRequested'] - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'reservedFor' in kwargs: + if reserved_for is None and 'reservedFor' in kwargs: reserved_for = kwargs['reservedFor'] if allocation is not None: @@ -1657,13 +1673,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.ResourceClaimTemplateSpec', + spec: Optional['outputs.ResourceClaimTemplateSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1730,10 +1748,12 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.ResourceClaimSpec', + spec: Optional['outputs.ResourceClaimSpec'] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if spec is None: + raise TypeError("Missing 'spec' argument") _setter("spec", spec) if metadata is not None: @@ -1868,7 +1888,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - driver_name: str, + driver_name: Optional[str] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, @@ -1876,13 +1896,15 @@ def _configure( suitable_nodes: Optional['_core.v1.outputs.NodeSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] - if 'apiVersion' in kwargs: + if driver_name is None: + raise TypeError("Missing 'driver_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'parametersRef' in kwargs: + if parameters_ref is None and 'parametersRef' in kwargs: parameters_ref = kwargs['parametersRef'] - if 'suitableNodes' in kwargs: + if suitable_nodes is None and 'suitableNodes' in kwargs: suitable_nodes = kwargs['suitableNodes'] _setter("driver_name", driver_name) @@ -1994,13 +2016,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kind: str, - name: str, + kind: Optional[str] = None, + name: Optional[str] = None, api_group: Optional[str] = None, namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] _setter("kind", kind) @@ -2093,7 +2119,7 @@ def _configure( namespace: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiGroup' in kwargs: + if api_group is None and 'apiGroup' in kwargs: api_group = kwargs['apiGroup'] if api_group is not None: @@ -2182,7 +2208,7 @@ def _configure( driver_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] if data is not None: @@ -2253,7 +2279,7 @@ def _configure( driver_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'driverName' in kwargs: + if driver_name is None and 'driverName' in kwargs: driver_name = kwargs['driverName'] if data is not None: diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py index eb20a0065f..00863784f9 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py @@ -45,7 +45,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - value: pulumi.Input[int], + value: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, global_default: Optional[pulumi.Input[bool]] = None, @@ -54,11 +54,13 @@ def _configure( preemption_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if value is None: + raise TypeError("Missing 'value' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] _setter("value", value) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py index 00bdb8d8b5..0fa28b0e0f 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py index fe3f3de422..d9419af197 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py @@ -54,11 +54,11 @@ def _configure( value: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/_inputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1/_inputs.py index 452c136a39..5f84261fff 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/_inputs.py @@ -47,7 +47,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - value: pulumi.Input[int], + value: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, global_default: Optional[pulumi.Input[bool]] = None, @@ -56,11 +56,13 @@ def _configure( preemption_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if value is None: + raise TypeError("Missing 'value' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] _setter("value", value) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/outputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1/outputs.py index 3f4a167b1d..2d93079113 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/outputs.py @@ -71,7 +71,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - value: int, + value: Optional[int] = None, api_version: Optional[str] = None, description: Optional[str] = None, global_default: Optional[bool] = None, @@ -80,11 +80,13 @@ def _configure( preemption_policy: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if value is None: + raise TypeError("Missing 'value' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] _setter("value", value) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py index d2238226e8..1f511b6b81 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py @@ -45,7 +45,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - value: pulumi.Input[int], + value: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, global_default: Optional[pulumi.Input[bool]] = None, @@ -54,11 +54,13 @@ def _configure( preemption_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if value is None: + raise TypeError("Missing 'value' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] _setter("value", value) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py index 0195ef3054..ba593216fc 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py index fbd719c751..4d8db3f3d3 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py @@ -54,11 +54,11 @@ def _configure( value: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/_inputs.py index 73a68f1e99..f65941f42a 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/_inputs.py @@ -47,7 +47,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - value: pulumi.Input[int], + value: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, global_default: Optional[pulumi.Input[bool]] = None, @@ -56,11 +56,13 @@ def _configure( preemption_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if value is None: + raise TypeError("Missing 'value' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] _setter("value", value) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/outputs.py index 673f67322a..5bbf922e99 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/outputs.py @@ -71,7 +71,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - value: int, + value: Optional[int] = None, api_version: Optional[str] = None, description: Optional[str] = None, global_default: Optional[bool] = None, @@ -80,11 +80,13 @@ def _configure( preemption_policy: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if value is None: + raise TypeError("Missing 'value' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] _setter("value", value) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py index eeb0f2322f..41ec3b226e 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py @@ -45,7 +45,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - value: pulumi.Input[int], + value: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, global_default: Optional[pulumi.Input[bool]] = None, @@ -54,11 +54,13 @@ def _configure( preemption_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if value is None: + raise TypeError("Missing 'value' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] _setter("value", value) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py index f613fde436..d31d065f79 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PriorityClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py index 066795f365..5bc563b8f2 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py @@ -54,11 +54,11 @@ def _configure( value: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/_inputs.py index cdd7ee397f..ade9a886bd 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/_inputs.py @@ -47,7 +47,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - value: pulumi.Input[int], + value: Optional[pulumi.Input[int]] = None, api_version: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, global_default: Optional[pulumi.Input[bool]] = None, @@ -56,11 +56,13 @@ def _configure( preemption_policy: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if value is None: + raise TypeError("Missing 'value' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] _setter("value", value) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/outputs.py index 2c1c2fb756..87ab0764a4 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/outputs.py @@ -71,7 +71,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - value: int, + value: Optional[int] = None, api_version: Optional[str] = None, description: Optional[str] = None, global_default: Optional[bool] = None, @@ -80,11 +80,13 @@ def _configure( preemption_policy: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if value is None: + raise TypeError("Missing 'value' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'globalDefault' in kwargs: + if global_default is None and 'globalDefault' in kwargs: global_default = kwargs['globalDefault'] - if 'preemptionPolicy' in kwargs: + if preemption_policy is None and 'preemptionPolicy' in kwargs: preemption_policy = kwargs['preemptionPolicy'] _setter("value", value) diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py index 3d7514e9bd..aaf690195a 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['PodPresetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py index 1e74c9038b..cab5724321 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['PodPresetArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['PodPresetArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py index a5b4bd9341..85ca6b3025 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py @@ -43,7 +43,7 @@ def _configure( spec: Optional[pulumi.Input['PodPresetSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/_inputs.py index 84adae1fd6..0c4fa5fed4 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/_inputs.py @@ -51,9 +51,9 @@ def _configure( volumes: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.VolumePatchArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] if env is not None: @@ -162,9 +162,9 @@ def _configure( volumes: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.VolumeArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] if env is not None: @@ -267,7 +267,7 @@ def _configure( spec: Optional[pulumi.Input['PodPresetSpecArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/outputs.py index 6005ab11be..2b79e970b5 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/outputs.py @@ -66,7 +66,7 @@ def _configure( spec: Optional['outputs.PodPresetSpec'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: @@ -161,9 +161,9 @@ def _configure( volumes: Optional[Sequence['_core.v1.outputs.Volume']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] if env is not None: @@ -274,9 +274,9 @@ def _configure( volumes: Optional[Sequence['_core.v1.outputs.VolumePatch']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'envFrom' in kwargs: + if env_from is None and 'envFrom' in kwargs: env_from = kwargs['envFrom'] - if 'volumeMounts' in kwargs: + if volume_mounts is None and 'volumeMounts' in kwargs: volume_mounts = kwargs['volumeMounts'] if env is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py index b673ad4080..bcaf3aa6fa 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CSIDriverSpecArgs'], + spec: Optional[pulumi.Input['CSIDriverSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py index c312c9f287..388e2dfafc 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverPatch.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverPatch.py index 7dbe4c23bc..6f4f134311 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverPatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['CSIDriverSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py index 58ed1fac9f..45dc4efe92 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CSINodeSpecArgs'], + spec: Optional[pulumi.Input['CSINodeSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py index be7ab8fe2c..5436803e89 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINodePatch.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINodePatch.py index 44ffb4b1a3..d3b6811a7c 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINodePatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINodePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['CSINodeSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacity.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacity.py index 60d63f2dd0..a963c6a763 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacity.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacity.py @@ -53,7 +53,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - storage_class_name: pulumi.Input[str], + storage_class_name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, capacity: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, @@ -62,13 +62,15 @@ def _configure( node_topology: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'apiVersion' in kwargs: + if storage_class_name is None: + raise TypeError("Missing 'storage_class_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'maximumVolumeSize' in kwargs: + if maximum_volume_size is None and 'maximumVolumeSize' in kwargs: maximum_volume_size = kwargs['maximumVolumeSize'] - if 'nodeTopology' in kwargs: + if node_topology is None and 'nodeTopology' in kwargs: node_topology = kwargs['nodeTopology'] _setter("storage_class_name", storage_class_name) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py index 0f38dbbe9a..e73ec1b5b4 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py index cf17d9bdec..0aae760b29 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py @@ -62,13 +62,13 @@ def _configure( storage_class_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'maximumVolumeSize' in kwargs: + if maximum_volume_size is None and 'maximumVolumeSize' in kwargs: maximum_volume_size = kwargs['maximumVolumeSize'] - if 'nodeTopology' in kwargs: + if node_topology is None and 'nodeTopology' in kwargs: node_topology = kwargs['nodeTopology'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py index 9ef3b6af4f..4215aa4312 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py @@ -55,7 +55,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - provisioner: pulumi.Input[str], + provisioner: Optional[pulumi.Input[str]] = None, allow_volume_expansion: Optional[pulumi.Input[bool]] = None, allowed_topologies: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, @@ -67,17 +67,19 @@ def _configure( volume_binding_mode: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowVolumeExpansion' in kwargs: + if provisioner is None: + raise TypeError("Missing 'provisioner' argument") + if allow_volume_expansion is None and 'allowVolumeExpansion' in kwargs: allow_volume_expansion = kwargs['allowVolumeExpansion'] - if 'allowedTopologies' in kwargs: + if allowed_topologies is None and 'allowedTopologies' in kwargs: allowed_topologies = kwargs['allowedTopologies'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'reclaimPolicy' in kwargs: + if reclaim_policy is None and 'reclaimPolicy' in kwargs: reclaim_policy = kwargs['reclaimPolicy'] - if 'volumeBindingMode' in kwargs: + if volume_binding_mode is None and 'volumeBindingMode' in kwargs: volume_binding_mode = kwargs['volumeBindingMode'] _setter("provisioner", provisioner) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py index 2c176e4d89..8a96860365 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassPatch.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassPatch.py index 13f9d5dd3f..740f6dcfd2 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassPatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassPatch.py @@ -67,17 +67,17 @@ def _configure( volume_binding_mode: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowVolumeExpansion' in kwargs: + if allow_volume_expansion is None and 'allowVolumeExpansion' in kwargs: allow_volume_expansion = kwargs['allowVolumeExpansion'] - if 'allowedTopologies' in kwargs: + if allowed_topologies is None and 'allowedTopologies' in kwargs: allowed_topologies = kwargs['allowedTopologies'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'reclaimPolicy' in kwargs: + if reclaim_policy is None and 'reclaimPolicy' in kwargs: reclaim_policy = kwargs['reclaimPolicy'] - if 'volumeBindingMode' in kwargs: + if volume_binding_mode is None and 'volumeBindingMode' in kwargs: volume_binding_mode = kwargs['volumeBindingMode'] if allow_volume_expansion is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py index 3b58bde80e..370a5c08d3 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['VolumeAttachmentSpecArgs'], + spec: Optional[pulumi.Input['VolumeAttachmentSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py index f1d0e1a1c3..1e8b68eb8d 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py index e1d62b0d9b..78d460ade6 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['VolumeAttachmentSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1/_inputs.py b/sdk/python/pulumi_kubernetes/storage/v1/_inputs.py index 894ce1a2d4..41c4a2968c 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/_inputs.py @@ -124,21 +124,21 @@ def _configure( volume_lifecycle_modes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachRequired' in kwargs: + if attach_required is None and 'attachRequired' in kwargs: attach_required = kwargs['attachRequired'] - if 'fsGroupPolicy' in kwargs: + if fs_group_policy is None and 'fsGroupPolicy' in kwargs: fs_group_policy = kwargs['fsGroupPolicy'] - if 'podInfoOnMount' in kwargs: + if pod_info_on_mount is None and 'podInfoOnMount' in kwargs: pod_info_on_mount = kwargs['podInfoOnMount'] - if 'requiresRepublish' in kwargs: + if requires_republish is None and 'requiresRepublish' in kwargs: requires_republish = kwargs['requiresRepublish'] - if 'seLinuxMount' in kwargs: + if se_linux_mount is None and 'seLinuxMount' in kwargs: se_linux_mount = kwargs['seLinuxMount'] - if 'storageCapacity' in kwargs: + if storage_capacity is None and 'storageCapacity' in kwargs: storage_capacity = kwargs['storageCapacity'] - if 'tokenRequests' in kwargs: + if token_requests is None and 'tokenRequests' in kwargs: token_requests = kwargs['tokenRequests'] - if 'volumeLifecycleModes' in kwargs: + if volume_lifecycle_modes is None and 'volumeLifecycleModes' in kwargs: volume_lifecycle_modes = kwargs['volumeLifecycleModes'] if attach_required is not None: @@ -387,21 +387,21 @@ def _configure( volume_lifecycle_modes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachRequired' in kwargs: + if attach_required is None and 'attachRequired' in kwargs: attach_required = kwargs['attachRequired'] - if 'fsGroupPolicy' in kwargs: + if fs_group_policy is None and 'fsGroupPolicy' in kwargs: fs_group_policy = kwargs['fsGroupPolicy'] - if 'podInfoOnMount' in kwargs: + if pod_info_on_mount is None and 'podInfoOnMount' in kwargs: pod_info_on_mount = kwargs['podInfoOnMount'] - if 'requiresRepublish' in kwargs: + if requires_republish is None and 'requiresRepublish' in kwargs: requires_republish = kwargs['requiresRepublish'] - if 'seLinuxMount' in kwargs: + if se_linux_mount is None and 'seLinuxMount' in kwargs: se_linux_mount = kwargs['seLinuxMount'] - if 'storageCapacity' in kwargs: + if storage_capacity is None and 'storageCapacity' in kwargs: storage_capacity = kwargs['storageCapacity'] - if 'tokenRequests' in kwargs: + if token_requests is None and 'tokenRequests' in kwargs: token_requests = kwargs['tokenRequests'] - if 'volumeLifecycleModes' in kwargs: + if volume_lifecycle_modes is None and 'volumeLifecycleModes' in kwargs: volume_lifecycle_modes = kwargs['volumeLifecycleModes'] if attach_required is not None: @@ -585,13 +585,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CSIDriverSpecArgs'], + spec: Optional[pulumi.Input['CSIDriverSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -681,9 +683,9 @@ def _configure( topology_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeID' in kwargs: + if node_id is None and 'nodeID' in kwargs: node_id = kwargs['nodeID'] - if 'topologyKeys' in kwargs: + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] if allocatable is not None: @@ -768,15 +770,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - node_id: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + node_id: Optional[pulumi.Input[str]] = None, allocatable: Optional[pulumi.Input['VolumeNodeResourcesArgs']] = None, topology_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeID' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if node_id is None and 'nodeID' in kwargs: node_id = kwargs['nodeID'] - if 'topologyKeys' in kwargs: + if node_id is None: + raise TypeError("Missing 'node_id' argument") + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] _setter("name", name) @@ -885,9 +891,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - drivers: pulumi.Input[Sequence[pulumi.Input['CSINodeDriverArgs']]], + drivers: Optional[pulumi.Input[Sequence[pulumi.Input['CSINodeDriverArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if drivers is None: + raise TypeError("Missing 'drivers' argument") _setter("drivers", drivers) @@ -928,13 +936,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CSINodeSpecArgs'], + spec: Optional[pulumi.Input['CSINodeSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1043,7 +1053,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - storage_class_name: pulumi.Input[str], + storage_class_name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, capacity: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, @@ -1052,13 +1062,15 @@ def _configure( node_topology: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'apiVersion' in kwargs: + if storage_class_name is None: + raise TypeError("Missing 'storage_class_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'maximumVolumeSize' in kwargs: + if maximum_volume_size is None and 'maximumVolumeSize' in kwargs: maximum_volume_size = kwargs['maximumVolumeSize'] - if 'nodeTopology' in kwargs: + if node_topology is None and 'nodeTopology' in kwargs: node_topology = kwargs['nodeTopology'] _setter("storage_class_name", storage_class_name) @@ -1212,7 +1224,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - provisioner: pulumi.Input[str], + provisioner: Optional[pulumi.Input[str]] = None, allow_volume_expansion: Optional[pulumi.Input[bool]] = None, allowed_topologies: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, @@ -1224,17 +1236,19 @@ def _configure( volume_binding_mode: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowVolumeExpansion' in kwargs: + if provisioner is None: + raise TypeError("Missing 'provisioner' argument") + if allow_volume_expansion is None and 'allowVolumeExpansion' in kwargs: allow_volume_expansion = kwargs['allowVolumeExpansion'] - if 'allowedTopologies' in kwargs: + if allowed_topologies is None and 'allowedTopologies' in kwargs: allowed_topologies = kwargs['allowedTopologies'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'reclaimPolicy' in kwargs: + if reclaim_policy is None and 'reclaimPolicy' in kwargs: reclaim_policy = kwargs['reclaimPolicy'] - if 'volumeBindingMode' in kwargs: + if volume_binding_mode is None and 'volumeBindingMode' in kwargs: volume_binding_mode = kwargs['volumeBindingMode'] _setter("provisioner", provisioner) @@ -1400,7 +1414,7 @@ def _configure( expiration_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] if audience is not None: @@ -1451,11 +1465,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - audience: pulumi.Input[str], + audience: Optional[pulumi.Input[str]] = None, expiration_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if audience is None: + raise TypeError("Missing 'audience' argument") + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] _setter("audience", audience) @@ -1509,9 +1525,9 @@ def _configure( persistent_volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -1566,9 +1582,9 @@ def _configure( persistent_volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -1627,7 +1643,7 @@ def _configure( source: Optional[pulumi.Input['VolumeAttachmentSourcePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] if attacher is not None: @@ -1695,13 +1711,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attacher: pulumi.Input[str], - node_name: pulumi.Input[str], - source: pulumi.Input['VolumeAttachmentSourceArgs'], + attacher: Optional[pulumi.Input[str]] = None, + node_name: Optional[pulumi.Input[str]] = None, + source: Optional[pulumi.Input['VolumeAttachmentSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if attacher is None: + raise TypeError("Missing 'attacher' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] + if node_name is None: + raise TypeError("Missing 'node_name' argument") + if source is None: + raise TypeError("Missing 'source' argument") _setter("attacher", attacher) _setter("node_name", node_name) @@ -1768,17 +1790,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attached: pulumi.Input[bool], + attached: Optional[pulumi.Input[bool]] = None, attach_error: Optional[pulumi.Input['VolumeErrorArgs']] = None, attachment_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, detach_error: Optional[pulumi.Input['VolumeErrorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachError' in kwargs: + if attached is None: + raise TypeError("Missing 'attached' argument") + if attach_error is None and 'attachError' in kwargs: attach_error = kwargs['attachError'] - if 'attachmentMetadata' in kwargs: + if attachment_metadata is None and 'attachmentMetadata' in kwargs: attachment_metadata = kwargs['attachmentMetadata'] - if 'detachError' in kwargs: + if detach_error is None and 'detachError' in kwargs: detach_error = kwargs['detachError'] _setter("attached", attached) @@ -1867,14 +1891,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['VolumeAttachmentSpecArgs'], + spec: Optional[pulumi.Input['VolumeAttachmentSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['VolumeAttachmentStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/outputs.py b/sdk/python/pulumi_kubernetes/storage/v1/outputs.py index 956eb05a12..f580979a6d 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/outputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/outputs.py @@ -82,13 +82,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.CSIDriverSpec', + spec: Optional['outputs.CSIDriverSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -255,21 +257,21 @@ def _configure( volume_lifecycle_modes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachRequired' in kwargs: + if attach_required is None and 'attachRequired' in kwargs: attach_required = kwargs['attachRequired'] - if 'fsGroupPolicy' in kwargs: + if fs_group_policy is None and 'fsGroupPolicy' in kwargs: fs_group_policy = kwargs['fsGroupPolicy'] - if 'podInfoOnMount' in kwargs: + if pod_info_on_mount is None and 'podInfoOnMount' in kwargs: pod_info_on_mount = kwargs['podInfoOnMount'] - if 'requiresRepublish' in kwargs: + if requires_republish is None and 'requiresRepublish' in kwargs: requires_republish = kwargs['requiresRepublish'] - if 'seLinuxMount' in kwargs: + if se_linux_mount is None and 'seLinuxMount' in kwargs: se_linux_mount = kwargs['seLinuxMount'] - if 'storageCapacity' in kwargs: + if storage_capacity is None and 'storageCapacity' in kwargs: storage_capacity = kwargs['storageCapacity'] - if 'tokenRequests' in kwargs: + if token_requests is None and 'tokenRequests' in kwargs: token_requests = kwargs['tokenRequests'] - if 'volumeLifecycleModes' in kwargs: + if volume_lifecycle_modes is None and 'volumeLifecycleModes' in kwargs: volume_lifecycle_modes = kwargs['volumeLifecycleModes'] if attach_required is not None: @@ -520,21 +522,21 @@ def _configure( volume_lifecycle_modes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachRequired' in kwargs: + if attach_required is None and 'attachRequired' in kwargs: attach_required = kwargs['attachRequired'] - if 'fsGroupPolicy' in kwargs: + if fs_group_policy is None and 'fsGroupPolicy' in kwargs: fs_group_policy = kwargs['fsGroupPolicy'] - if 'podInfoOnMount' in kwargs: + if pod_info_on_mount is None and 'podInfoOnMount' in kwargs: pod_info_on_mount = kwargs['podInfoOnMount'] - if 'requiresRepublish' in kwargs: + if requires_republish is None and 'requiresRepublish' in kwargs: requires_republish = kwargs['requiresRepublish'] - if 'seLinuxMount' in kwargs: + if se_linux_mount is None and 'seLinuxMount' in kwargs: se_linux_mount = kwargs['seLinuxMount'] - if 'storageCapacity' in kwargs: + if storage_capacity is None and 'storageCapacity' in kwargs: storage_capacity = kwargs['storageCapacity'] - if 'tokenRequests' in kwargs: + if token_requests is None and 'tokenRequests' in kwargs: token_requests = kwargs['tokenRequests'] - if 'volumeLifecycleModes' in kwargs: + if volume_lifecycle_modes is None and 'volumeLifecycleModes' in kwargs: volume_lifecycle_modes = kwargs['volumeLifecycleModes'] if attach_required is not None: @@ -706,13 +708,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.CSINodeSpec', + spec: Optional['outputs.CSINodeSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -802,15 +806,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - node_id: str, + name: Optional[str] = None, + node_id: Optional[str] = None, allocatable: Optional['outputs.VolumeNodeResources'] = None, topology_keys: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeID' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if node_id is None and 'nodeID' in kwargs: node_id = kwargs['nodeID'] - if 'topologyKeys' in kwargs: + if node_id is None: + raise TypeError("Missing 'node_id' argument") + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] _setter("name", name) @@ -905,9 +913,9 @@ def _configure( topology_keys: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeID' in kwargs: + if node_id is None and 'nodeID' in kwargs: node_id = kwargs['nodeID'] - if 'topologyKeys' in kwargs: + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] if allocatable is not None: @@ -970,9 +978,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - drivers: Sequence['outputs.CSINodeDriver'], + drivers: Optional[Sequence['outputs.CSINodeDriver']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if drivers is None: + raise TypeError("Missing 'drivers' argument") _setter("drivers", drivers) @@ -1102,7 +1112,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - storage_class_name: str, + storage_class_name: Optional[str] = None, api_version: Optional[str] = None, capacity: Optional[str] = None, kind: Optional[str] = None, @@ -1111,13 +1121,15 @@ def _configure( node_topology: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'apiVersion' in kwargs: + if storage_class_name is None: + raise TypeError("Missing 'storage_class_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'maximumVolumeSize' in kwargs: + if maximum_volume_size is None and 'maximumVolumeSize' in kwargs: maximum_volume_size = kwargs['maximumVolumeSize'] - if 'nodeTopology' in kwargs: + if node_topology is None and 'nodeTopology' in kwargs: node_topology = kwargs['nodeTopology'] _setter("storage_class_name", storage_class_name) @@ -1275,7 +1287,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - provisioner: str, + provisioner: Optional[str] = None, allow_volume_expansion: Optional[bool] = None, allowed_topologies: Optional[Sequence['_core.v1.outputs.TopologySelectorTerm']] = None, api_version: Optional[str] = None, @@ -1287,17 +1299,19 @@ def _configure( volume_binding_mode: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowVolumeExpansion' in kwargs: + if provisioner is None: + raise TypeError("Missing 'provisioner' argument") + if allow_volume_expansion is None and 'allowVolumeExpansion' in kwargs: allow_volume_expansion = kwargs['allowVolumeExpansion'] - if 'allowedTopologies' in kwargs: + if allowed_topologies is None and 'allowedTopologies' in kwargs: allowed_topologies = kwargs['allowedTopologies'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'reclaimPolicy' in kwargs: + if reclaim_policy is None and 'reclaimPolicy' in kwargs: reclaim_policy = kwargs['reclaimPolicy'] - if 'volumeBindingMode' in kwargs: + if volume_binding_mode is None and 'volumeBindingMode' in kwargs: volume_binding_mode = kwargs['volumeBindingMode'] _setter("provisioner", provisioner) @@ -1439,11 +1453,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - audience: str, + audience: Optional[str] = None, expiration_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if audience is None: + raise TypeError("Missing 'audience' argument") + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] _setter("audience", audience) @@ -1509,7 +1525,7 @@ def _configure( expiration_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] if audience is not None: @@ -1585,14 +1601,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.VolumeAttachmentSpec', + spec: Optional['outputs.VolumeAttachmentSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.VolumeAttachmentStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1690,9 +1708,9 @@ def _configure( persistent_volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -1761,9 +1779,9 @@ def _configure( persistent_volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -1829,13 +1847,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attacher: str, - node_name: str, - source: 'outputs.VolumeAttachmentSource', + attacher: Optional[str] = None, + node_name: Optional[str] = None, + source: Optional['outputs.VolumeAttachmentSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if attacher is None: + raise TypeError("Missing 'attacher' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] + if node_name is None: + raise TypeError("Missing 'node_name' argument") + if source is None: + raise TypeError("Missing 'source' argument") _setter("attacher", attacher) _setter("node_name", node_name) @@ -1912,7 +1936,7 @@ def _configure( source: Optional['outputs.VolumeAttachmentSourcePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] if attacher is not None: @@ -1995,17 +2019,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attached: bool, + attached: Optional[bool] = None, attach_error: Optional['outputs.VolumeError'] = None, attachment_metadata: Optional[Mapping[str, str]] = None, detach_error: Optional['outputs.VolumeError'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachError' in kwargs: + if attached is None: + raise TypeError("Missing 'attached' argument") + if attach_error is None and 'attachError' in kwargs: attach_error = kwargs['attachError'] - if 'attachmentMetadata' in kwargs: + if attachment_metadata is None and 'attachmentMetadata' in kwargs: attachment_metadata = kwargs['attachmentMetadata'] - if 'detachError' in kwargs: + if detach_error is None and 'detachError' in kwargs: detach_error = kwargs['detachError'] _setter("attached", attached) @@ -2103,11 +2129,11 @@ def _configure( detach_error: Optional['outputs.VolumeErrorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachError' in kwargs: + if attach_error is None and 'attachError' in kwargs: attach_error = kwargs['attachError'] - if 'attachmentMetadata' in kwargs: + if attachment_metadata is None and 'attachmentMetadata' in kwargs: attachment_metadata = kwargs['attachmentMetadata'] - if 'detachError' in kwargs: + if detach_error is None and 'detachError' in kwargs: detach_error = kwargs['detachError'] if attach_error is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py index 29b4afa94f..1d3447effa 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['VolumeAttachmentSpecArgs'], + spec: Optional[pulumi.Input['VolumeAttachmentSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py index cf5f72a34e..ee5ae9e714 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py index c6d7875077..b35a2c7c01 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['VolumeAttachmentSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/_inputs.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/_inputs.py index 53c71ea01d..7f3852c494 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/_inputs.py @@ -43,9 +43,9 @@ def _configure( persistent_volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -100,9 +100,9 @@ def _configure( persistent_volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -161,7 +161,7 @@ def _configure( source: Optional[pulumi.Input['VolumeAttachmentSourcePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] if attacher is not None: @@ -229,13 +229,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attacher: pulumi.Input[str], - node_name: pulumi.Input[str], - source: pulumi.Input['VolumeAttachmentSourceArgs'], + attacher: Optional[pulumi.Input[str]] = None, + node_name: Optional[pulumi.Input[str]] = None, + source: Optional[pulumi.Input['VolumeAttachmentSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if attacher is None: + raise TypeError("Missing 'attacher' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] + if node_name is None: + raise TypeError("Missing 'node_name' argument") + if source is None: + raise TypeError("Missing 'source' argument") _setter("attacher", attacher) _setter("node_name", node_name) @@ -302,17 +308,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attached: pulumi.Input[bool], + attached: Optional[pulumi.Input[bool]] = None, attach_error: Optional[pulumi.Input['VolumeErrorArgs']] = None, attachment_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, detach_error: Optional[pulumi.Input['VolumeErrorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachError' in kwargs: + if attached is None: + raise TypeError("Missing 'attached' argument") + if attach_error is None and 'attachError' in kwargs: attach_error = kwargs['attachError'] - if 'attachmentMetadata' in kwargs: + if attachment_metadata is None and 'attachmentMetadata' in kwargs: attachment_metadata = kwargs['attachmentMetadata'] - if 'detachError' in kwargs: + if detach_error is None and 'detachError' in kwargs: detach_error = kwargs['detachError'] _setter("attached", attached) @@ -401,14 +409,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['VolumeAttachmentSpecArgs'], + spec: Optional[pulumi.Input['VolumeAttachmentSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['VolumeAttachmentStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/outputs.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/outputs.py index 27e39338ca..2858cc54fb 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/outputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/outputs.py @@ -75,14 +75,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.VolumeAttachmentSpec', + spec: Optional['outputs.VolumeAttachmentSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.VolumeAttachmentStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -180,9 +182,9 @@ def _configure( persistent_volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -251,9 +253,9 @@ def _configure( persistent_volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -319,13 +321,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attacher: str, - node_name: str, - source: 'outputs.VolumeAttachmentSource', + attacher: Optional[str] = None, + node_name: Optional[str] = None, + source: Optional['outputs.VolumeAttachmentSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if attacher is None: + raise TypeError("Missing 'attacher' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] + if node_name is None: + raise TypeError("Missing 'node_name' argument") + if source is None: + raise TypeError("Missing 'source' argument") _setter("attacher", attacher) _setter("node_name", node_name) @@ -402,7 +410,7 @@ def _configure( source: Optional['outputs.VolumeAttachmentSourcePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] if attacher is not None: @@ -485,17 +493,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attached: bool, + attached: Optional[bool] = None, attach_error: Optional['outputs.VolumeError'] = None, attachment_metadata: Optional[Mapping[str, str]] = None, detach_error: Optional['outputs.VolumeError'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachError' in kwargs: + if attached is None: + raise TypeError("Missing 'attached' argument") + if attach_error is None and 'attachError' in kwargs: attach_error = kwargs['attachError'] - if 'attachmentMetadata' in kwargs: + if attachment_metadata is None and 'attachmentMetadata' in kwargs: attachment_metadata = kwargs['attachmentMetadata'] - if 'detachError' in kwargs: + if detach_error is None and 'detachError' in kwargs: detach_error = kwargs['detachError'] _setter("attached", attached) @@ -593,11 +603,11 @@ def _configure( detach_error: Optional['outputs.VolumeErrorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachError' in kwargs: + if attach_error is None and 'attachError' in kwargs: attach_error = kwargs['attachError'] - if 'attachmentMetadata' in kwargs: + if attachment_metadata is None and 'attachmentMetadata' in kwargs: attachment_metadata = kwargs['attachmentMetadata'] - if 'detachError' in kwargs: + if detach_error is None and 'detachError' in kwargs: detach_error = kwargs['detachError'] if attach_error is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py index aef4e3e0af..85e14ed6c4 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CSIDriverSpecArgs'], + spec: Optional[pulumi.Input['CSIDriverSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py index c42312997d..dcae16a5a0 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CSIDriverArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py index d0f2870872..5a006036ac 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['CSIDriverSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py index e13b4f5739..efd603de83 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CSINodeSpecArgs'], + spec: Optional[pulumi.Input['CSINodeSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py index ace74aafc2..6da9c8ac2f 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CSINodeArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodePatch.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodePatch.py index 5451d58621..c171441e34 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodePatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodePatch.py @@ -44,7 +44,7 @@ def _configure( spec: Optional[pulumi.Input['CSINodeSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py index efe97fcae2..22c11c71ec 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py @@ -53,7 +53,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - storage_class_name: pulumi.Input[str], + storage_class_name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, capacity: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, @@ -62,13 +62,15 @@ def _configure( node_topology: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'apiVersion' in kwargs: + if storage_class_name is None: + raise TypeError("Missing 'storage_class_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'maximumVolumeSize' in kwargs: + if maximum_volume_size is None and 'maximumVolumeSize' in kwargs: maximum_volume_size = kwargs['maximumVolumeSize'] - if 'nodeTopology' in kwargs: + if node_topology is None and 'nodeTopology' in kwargs: node_topology = kwargs['nodeTopology'] _setter("storage_class_name", storage_class_name) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py index 8e4e39a941..04360f21a8 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py @@ -38,13 +38,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['CSIStorageCapacityArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py index 2fab474551..6867c706b9 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py @@ -62,13 +62,13 @@ def _configure( storage_class_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'maximumVolumeSize' in kwargs: + if maximum_volume_size is None and 'maximumVolumeSize' in kwargs: maximum_volume_size = kwargs['maximumVolumeSize'] - if 'nodeTopology' in kwargs: + if node_topology is None and 'nodeTopology' in kwargs: node_topology = kwargs['nodeTopology'] - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py index 0b55d86536..17cbae0771 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py @@ -55,7 +55,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - provisioner: pulumi.Input[str], + provisioner: Optional[pulumi.Input[str]] = None, allow_volume_expansion: Optional[pulumi.Input[bool]] = None, allowed_topologies: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, @@ -67,17 +67,19 @@ def _configure( volume_binding_mode: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowVolumeExpansion' in kwargs: + if provisioner is None: + raise TypeError("Missing 'provisioner' argument") + if allow_volume_expansion is None and 'allowVolumeExpansion' in kwargs: allow_volume_expansion = kwargs['allowVolumeExpansion'] - if 'allowedTopologies' in kwargs: + if allowed_topologies is None and 'allowedTopologies' in kwargs: allowed_topologies = kwargs['allowedTopologies'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'reclaimPolicy' in kwargs: + if reclaim_policy is None and 'reclaimPolicy' in kwargs: reclaim_policy = kwargs['reclaimPolicy'] - if 'volumeBindingMode' in kwargs: + if volume_binding_mode is None and 'volumeBindingMode' in kwargs: volume_binding_mode = kwargs['volumeBindingMode'] _setter("provisioner", provisioner) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py index ece538b06c..a99256521e 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['StorageClassArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py index a9a9962221..590e4a48e5 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py @@ -67,17 +67,17 @@ def _configure( volume_binding_mode: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowVolumeExpansion' in kwargs: + if allow_volume_expansion is None and 'allowVolumeExpansion' in kwargs: allow_volume_expansion = kwargs['allowVolumeExpansion'] - if 'allowedTopologies' in kwargs: + if allowed_topologies is None and 'allowedTopologies' in kwargs: allowed_topologies = kwargs['allowedTopologies'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'reclaimPolicy' in kwargs: + if reclaim_policy is None and 'reclaimPolicy' in kwargs: reclaim_policy = kwargs['reclaimPolicy'] - if 'volumeBindingMode' in kwargs: + if volume_binding_mode is None and 'volumeBindingMode' in kwargs: volume_binding_mode = kwargs['volumeBindingMode'] if allow_volume_expansion is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py index 5df8f797d6..5644616f78 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['VolumeAttachmentSpecArgs'], + spec: Optional[pulumi.Input['VolumeAttachmentSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py index f92e9ae554..618b96310e 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py @@ -39,13 +39,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - items: pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]], + items: Optional[pulumi.Input[Sequence[pulumi.Input['VolumeAttachmentArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if items is None: + raise TypeError("Missing 'items' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("items", items) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py index e17ad710b8..a8f90ff230 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py @@ -45,7 +45,7 @@ def _configure( spec: Optional[pulumi.Input['VolumeAttachmentSpecPatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] if api_version is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/_inputs.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/_inputs.py index a555cbf845..cbb6cec41d 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/_inputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/_inputs.py @@ -100,19 +100,19 @@ def _configure( volume_lifecycle_modes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachRequired' in kwargs: + if attach_required is None and 'attachRequired' in kwargs: attach_required = kwargs['attachRequired'] - if 'fsGroupPolicy' in kwargs: + if fs_group_policy is None and 'fsGroupPolicy' in kwargs: fs_group_policy = kwargs['fsGroupPolicy'] - if 'podInfoOnMount' in kwargs: + if pod_info_on_mount is None and 'podInfoOnMount' in kwargs: pod_info_on_mount = kwargs['podInfoOnMount'] - if 'requiresRepublish' in kwargs: + if requires_republish is None and 'requiresRepublish' in kwargs: requires_republish = kwargs['requiresRepublish'] - if 'storageCapacity' in kwargs: + if storage_capacity is None and 'storageCapacity' in kwargs: storage_capacity = kwargs['storageCapacity'] - if 'tokenRequests' in kwargs: + if token_requests is None and 'tokenRequests' in kwargs: token_requests = kwargs['tokenRequests'] - if 'volumeLifecycleModes' in kwargs: + if volume_lifecycle_modes is None and 'volumeLifecycleModes' in kwargs: volume_lifecycle_modes = kwargs['volumeLifecycleModes'] if attach_required is not None: @@ -303,19 +303,19 @@ def _configure( volume_lifecycle_modes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachRequired' in kwargs: + if attach_required is None and 'attachRequired' in kwargs: attach_required = kwargs['attachRequired'] - if 'fsGroupPolicy' in kwargs: + if fs_group_policy is None and 'fsGroupPolicy' in kwargs: fs_group_policy = kwargs['fsGroupPolicy'] - if 'podInfoOnMount' in kwargs: + if pod_info_on_mount is None and 'podInfoOnMount' in kwargs: pod_info_on_mount = kwargs['podInfoOnMount'] - if 'requiresRepublish' in kwargs: + if requires_republish is None and 'requiresRepublish' in kwargs: requires_republish = kwargs['requiresRepublish'] - if 'storageCapacity' in kwargs: + if storage_capacity is None and 'storageCapacity' in kwargs: storage_capacity = kwargs['storageCapacity'] - if 'tokenRequests' in kwargs: + if token_requests is None and 'tokenRequests' in kwargs: token_requests = kwargs['tokenRequests'] - if 'volumeLifecycleModes' in kwargs: + if volume_lifecycle_modes is None and 'volumeLifecycleModes' in kwargs: volume_lifecycle_modes = kwargs['volumeLifecycleModes'] if attach_required is not None: @@ -465,13 +465,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CSIDriverSpecArgs'], + spec: Optional[pulumi.Input['CSIDriverSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -561,9 +563,9 @@ def _configure( topology_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeID' in kwargs: + if node_id is None and 'nodeID' in kwargs: node_id = kwargs['nodeID'] - if 'topologyKeys' in kwargs: + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] if allocatable is not None: @@ -648,15 +650,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: pulumi.Input[str], - node_id: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + node_id: Optional[pulumi.Input[str]] = None, allocatable: Optional[pulumi.Input['VolumeNodeResourcesArgs']] = None, topology_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeID' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if node_id is None and 'nodeID' in kwargs: node_id = kwargs['nodeID'] - if 'topologyKeys' in kwargs: + if node_id is None: + raise TypeError("Missing 'node_id' argument") + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] _setter("name", name) @@ -765,9 +771,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - drivers: pulumi.Input[Sequence[pulumi.Input['CSINodeDriverArgs']]], + drivers: Optional[pulumi.Input[Sequence[pulumi.Input['CSINodeDriverArgs']]]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if drivers is None: + raise TypeError("Missing 'drivers' argument") _setter("drivers", drivers) @@ -808,13 +816,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['CSINodeSpecArgs'], + spec: Optional[pulumi.Input['CSINodeSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -923,7 +933,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - storage_class_name: pulumi.Input[str], + storage_class_name: Optional[pulumi.Input[str]] = None, api_version: Optional[pulumi.Input[str]] = None, capacity: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, @@ -932,13 +942,15 @@ def _configure( node_topology: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'apiVersion' in kwargs: + if storage_class_name is None: + raise TypeError("Missing 'storage_class_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'maximumVolumeSize' in kwargs: + if maximum_volume_size is None and 'maximumVolumeSize' in kwargs: maximum_volume_size = kwargs['maximumVolumeSize'] - if 'nodeTopology' in kwargs: + if node_topology is None and 'nodeTopology' in kwargs: node_topology = kwargs['nodeTopology'] _setter("storage_class_name", storage_class_name) @@ -1092,7 +1104,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - provisioner: pulumi.Input[str], + provisioner: Optional[pulumi.Input[str]] = None, allow_volume_expansion: Optional[pulumi.Input[bool]] = None, allowed_topologies: Optional[pulumi.Input[Sequence[pulumi.Input['_core.v1.TopologySelectorTermArgs']]]] = None, api_version: Optional[pulumi.Input[str]] = None, @@ -1104,17 +1116,19 @@ def _configure( volume_binding_mode: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowVolumeExpansion' in kwargs: + if provisioner is None: + raise TypeError("Missing 'provisioner' argument") + if allow_volume_expansion is None and 'allowVolumeExpansion' in kwargs: allow_volume_expansion = kwargs['allowVolumeExpansion'] - if 'allowedTopologies' in kwargs: + if allowed_topologies is None and 'allowedTopologies' in kwargs: allowed_topologies = kwargs['allowedTopologies'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'reclaimPolicy' in kwargs: + if reclaim_policy is None and 'reclaimPolicy' in kwargs: reclaim_policy = kwargs['reclaimPolicy'] - if 'volumeBindingMode' in kwargs: + if volume_binding_mode is None and 'volumeBindingMode' in kwargs: volume_binding_mode = kwargs['volumeBindingMode'] _setter("provisioner", provisioner) @@ -1280,7 +1294,7 @@ def _configure( expiration_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] if audience is not None: @@ -1331,11 +1345,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - audience: pulumi.Input[str], + audience: Optional[pulumi.Input[str]] = None, expiration_seconds: Optional[pulumi.Input[int]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if audience is None: + raise TypeError("Missing 'audience' argument") + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] _setter("audience", audience) @@ -1389,9 +1405,9 @@ def _configure( persistent_volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -1446,9 +1462,9 @@ def _configure( persistent_volume_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -1507,7 +1523,7 @@ def _configure( source: Optional[pulumi.Input['VolumeAttachmentSourcePatchArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] if attacher is not None: @@ -1575,13 +1591,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attacher: pulumi.Input[str], - node_name: pulumi.Input[str], - source: pulumi.Input['VolumeAttachmentSourceArgs'], + attacher: Optional[pulumi.Input[str]] = None, + node_name: Optional[pulumi.Input[str]] = None, + source: Optional[pulumi.Input['VolumeAttachmentSourceArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if attacher is None: + raise TypeError("Missing 'attacher' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] + if node_name is None: + raise TypeError("Missing 'node_name' argument") + if source is None: + raise TypeError("Missing 'source' argument") _setter("attacher", attacher) _setter("node_name", node_name) @@ -1648,17 +1670,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attached: pulumi.Input[bool], + attached: Optional[pulumi.Input[bool]] = None, attach_error: Optional[pulumi.Input['VolumeErrorArgs']] = None, attachment_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, detach_error: Optional[pulumi.Input['VolumeErrorArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachError' in kwargs: + if attached is None: + raise TypeError("Missing 'attached' argument") + if attach_error is None and 'attachError' in kwargs: attach_error = kwargs['attachError'] - if 'attachmentMetadata' in kwargs: + if attachment_metadata is None and 'attachmentMetadata' in kwargs: attachment_metadata = kwargs['attachmentMetadata'] - if 'detachError' in kwargs: + if detach_error is None and 'detachError' in kwargs: detach_error = kwargs['detachError'] _setter("attached", attached) @@ -1747,14 +1771,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: pulumi.Input['VolumeAttachmentSpecArgs'], + spec: Optional[pulumi.Input['VolumeAttachmentSpecArgs']] = None, api_version: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[str]] = None, metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None, status: Optional[pulumi.Input['VolumeAttachmentStatusArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/outputs.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/outputs.py index 23dc3c7e6e..74d6a7fa54 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/outputs.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/outputs.py @@ -82,13 +82,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.CSIDriverSpec', + spec: Optional['outputs.CSIDriverSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -229,19 +231,19 @@ def _configure( volume_lifecycle_modes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachRequired' in kwargs: + if attach_required is None and 'attachRequired' in kwargs: attach_required = kwargs['attachRequired'] - if 'fsGroupPolicy' in kwargs: + if fs_group_policy is None and 'fsGroupPolicy' in kwargs: fs_group_policy = kwargs['fsGroupPolicy'] - if 'podInfoOnMount' in kwargs: + if pod_info_on_mount is None and 'podInfoOnMount' in kwargs: pod_info_on_mount = kwargs['podInfoOnMount'] - if 'requiresRepublish' in kwargs: + if requires_republish is None and 'requiresRepublish' in kwargs: requires_republish = kwargs['requiresRepublish'] - if 'storageCapacity' in kwargs: + if storage_capacity is None and 'storageCapacity' in kwargs: storage_capacity = kwargs['storageCapacity'] - if 'tokenRequests' in kwargs: + if token_requests is None and 'tokenRequests' in kwargs: token_requests = kwargs['tokenRequests'] - if 'volumeLifecycleModes' in kwargs: + if volume_lifecycle_modes is None and 'volumeLifecycleModes' in kwargs: volume_lifecycle_modes = kwargs['volumeLifecycleModes'] if attach_required is not None: @@ -436,19 +438,19 @@ def _configure( volume_lifecycle_modes: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachRequired' in kwargs: + if attach_required is None and 'attachRequired' in kwargs: attach_required = kwargs['attachRequired'] - if 'fsGroupPolicy' in kwargs: + if fs_group_policy is None and 'fsGroupPolicy' in kwargs: fs_group_policy = kwargs['fsGroupPolicy'] - if 'podInfoOnMount' in kwargs: + if pod_info_on_mount is None and 'podInfoOnMount' in kwargs: pod_info_on_mount = kwargs['podInfoOnMount'] - if 'requiresRepublish' in kwargs: + if requires_republish is None and 'requiresRepublish' in kwargs: requires_republish = kwargs['requiresRepublish'] - if 'storageCapacity' in kwargs: + if storage_capacity is None and 'storageCapacity' in kwargs: storage_capacity = kwargs['storageCapacity'] - if 'tokenRequests' in kwargs: + if token_requests is None and 'tokenRequests' in kwargs: token_requests = kwargs['tokenRequests'] - if 'volumeLifecycleModes' in kwargs: + if volume_lifecycle_modes is None and 'volumeLifecycleModes' in kwargs: volume_lifecycle_modes = kwargs['volumeLifecycleModes'] if attach_required is not None: @@ -590,13 +592,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.CSINodeSpec', + spec: Optional['outputs.CSINodeSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -686,15 +690,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - name: str, - node_id: str, + name: Optional[str] = None, + node_id: Optional[str] = None, allocatable: Optional['outputs.VolumeNodeResources'] = None, topology_keys: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeID' in kwargs: + if name is None: + raise TypeError("Missing 'name' argument") + if node_id is None and 'nodeID' in kwargs: node_id = kwargs['nodeID'] - if 'topologyKeys' in kwargs: + if node_id is None: + raise TypeError("Missing 'node_id' argument") + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] _setter("name", name) @@ -789,9 +797,9 @@ def _configure( topology_keys: Optional[Sequence[str]] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeID' in kwargs: + if node_id is None and 'nodeID' in kwargs: node_id = kwargs['nodeID'] - if 'topologyKeys' in kwargs: + if topology_keys is None and 'topologyKeys' in kwargs: topology_keys = kwargs['topologyKeys'] if allocatable is not None: @@ -854,9 +862,11 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - drivers: Sequence['outputs.CSINodeDriver'], + drivers: Optional[Sequence['outputs.CSINodeDriver']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if drivers is None: + raise TypeError("Missing 'drivers' argument") _setter("drivers", drivers) @@ -986,7 +996,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - storage_class_name: str, + storage_class_name: Optional[str] = None, api_version: Optional[str] = None, capacity: Optional[str] = None, kind: Optional[str] = None, @@ -995,13 +1005,15 @@ def _configure( node_topology: Optional['_meta.v1.outputs.LabelSelector'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'storageClassName' in kwargs: + if storage_class_name is None and 'storageClassName' in kwargs: storage_class_name = kwargs['storageClassName'] - if 'apiVersion' in kwargs: + if storage_class_name is None: + raise TypeError("Missing 'storage_class_name' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'maximumVolumeSize' in kwargs: + if maximum_volume_size is None and 'maximumVolumeSize' in kwargs: maximum_volume_size = kwargs['maximumVolumeSize'] - if 'nodeTopology' in kwargs: + if node_topology is None and 'nodeTopology' in kwargs: node_topology = kwargs['nodeTopology'] _setter("storage_class_name", storage_class_name) @@ -1159,7 +1171,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - provisioner: str, + provisioner: Optional[str] = None, allow_volume_expansion: Optional[bool] = None, allowed_topologies: Optional[Sequence['_core.v1.outputs.TopologySelectorTerm']] = None, api_version: Optional[str] = None, @@ -1171,17 +1183,19 @@ def _configure( volume_binding_mode: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'allowVolumeExpansion' in kwargs: + if provisioner is None: + raise TypeError("Missing 'provisioner' argument") + if allow_volume_expansion is None and 'allowVolumeExpansion' in kwargs: allow_volume_expansion = kwargs['allowVolumeExpansion'] - if 'allowedTopologies' in kwargs: + if allowed_topologies is None and 'allowedTopologies' in kwargs: allowed_topologies = kwargs['allowedTopologies'] - if 'apiVersion' in kwargs: + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] - if 'mountOptions' in kwargs: + if mount_options is None and 'mountOptions' in kwargs: mount_options = kwargs['mountOptions'] - if 'reclaimPolicy' in kwargs: + if reclaim_policy is None and 'reclaimPolicy' in kwargs: reclaim_policy = kwargs['reclaimPolicy'] - if 'volumeBindingMode' in kwargs: + if volume_binding_mode is None and 'volumeBindingMode' in kwargs: volume_binding_mode = kwargs['volumeBindingMode'] _setter("provisioner", provisioner) @@ -1323,11 +1337,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - audience: str, + audience: Optional[str] = None, expiration_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if audience is None: + raise TypeError("Missing 'audience' argument") + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] _setter("audience", audience) @@ -1393,7 +1409,7 @@ def _configure( expiration_seconds: Optional[int] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'expirationSeconds' in kwargs: + if expiration_seconds is None and 'expirationSeconds' in kwargs: expiration_seconds = kwargs['expirationSeconds'] if audience is not None: @@ -1469,14 +1485,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - spec: 'outputs.VolumeAttachmentSpec', + spec: Optional['outputs.VolumeAttachmentSpec'] = None, api_version: Optional[str] = None, kind: Optional[str] = None, metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None, status: Optional['outputs.VolumeAttachmentStatus'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'apiVersion' in kwargs: + if spec is None: + raise TypeError("Missing 'spec' argument") + if api_version is None and 'apiVersion' in kwargs: api_version = kwargs['apiVersion'] _setter("spec", spec) @@ -1574,9 +1592,9 @@ def _configure( persistent_volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -1645,9 +1663,9 @@ def _configure( persistent_volume_name: Optional[str] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'inlineVolumeSpec' in kwargs: + if inline_volume_spec is None and 'inlineVolumeSpec' in kwargs: inline_volume_spec = kwargs['inlineVolumeSpec'] - if 'persistentVolumeName' in kwargs: + if persistent_volume_name is None and 'persistentVolumeName' in kwargs: persistent_volume_name = kwargs['persistentVolumeName'] if inline_volume_spec is not None: @@ -1713,13 +1731,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attacher: str, - node_name: str, - source: 'outputs.VolumeAttachmentSource', + attacher: Optional[str] = None, + node_name: Optional[str] = None, + source: Optional['outputs.VolumeAttachmentSource'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if attacher is None: + raise TypeError("Missing 'attacher' argument") + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] + if node_name is None: + raise TypeError("Missing 'node_name' argument") + if source is None: + raise TypeError("Missing 'source' argument") _setter("attacher", attacher) _setter("node_name", node_name) @@ -1796,7 +1820,7 @@ def _configure( source: Optional['outputs.VolumeAttachmentSourcePatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'nodeName' in kwargs: + if node_name is None and 'nodeName' in kwargs: node_name = kwargs['nodeName'] if attacher is not None: @@ -1879,17 +1903,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - attached: bool, + attached: Optional[bool] = None, attach_error: Optional['outputs.VolumeError'] = None, attachment_metadata: Optional[Mapping[str, str]] = None, detach_error: Optional['outputs.VolumeError'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachError' in kwargs: + if attached is None: + raise TypeError("Missing 'attached' argument") + if attach_error is None and 'attachError' in kwargs: attach_error = kwargs['attachError'] - if 'attachmentMetadata' in kwargs: + if attachment_metadata is None and 'attachmentMetadata' in kwargs: attachment_metadata = kwargs['attachmentMetadata'] - if 'detachError' in kwargs: + if detach_error is None and 'detachError' in kwargs: detach_error = kwargs['detachError'] _setter("attached", attached) @@ -1987,11 +2013,11 @@ def _configure( detach_error: Optional['outputs.VolumeErrorPatch'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): - if 'attachError' in kwargs: + if attach_error is None and 'attachError' in kwargs: attach_error = kwargs['attachError'] - if 'attachmentMetadata' in kwargs: + if attachment_metadata is None and 'attachmentMetadata' in kwargs: attachment_metadata = kwargs['attachmentMetadata'] - if 'detachError' in kwargs: + if detach_error is None and 'detachError' in kwargs: detach_error = kwargs['detachError'] if attach_error is not None: diff --git a/tests/go.mod b/tests/go.mod index 9913cbe174..535831bee0 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -8,10 +8,11 @@ replace ( ) require ( + github.com/pkg/errors v0.9.1 github.com/pulumi/pulumi-kubernetes/provider/v4 v4.0.0 github.com/pulumi/pulumi-kubernetes/sdk/v4 v4.0.0 - github.com/pulumi/pulumi/pkg/v3 v3.89.0 - github.com/pulumi/pulumi/sdk/v3 v3.89.0 + github.com/pulumi/pulumi/pkg/v3 v3.90.0 + github.com/pulumi/pulumi/sdk/v3 v3.90.0 github.com/stretchr/testify v1.8.4 helm.sh/helm/v3 v3.12.1 k8s.io/apimachinery v0.28.2 @@ -28,12 +29,7 @@ require ( cloud.google.com/go/longrunning v0.5.1 // indirect cloud.google.com/go/storage v1.30.1 // indirect github.com/AdaLogics/go-fuzz-headers v0.0.0-20230106234847-43070de90fa1 // indirect - github.com/AlecAivazis/survey/v2 v2.3.7 // indirect github.com/Azure/azure-sdk-for-go v66.0.0+incompatible // indirect - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1 // indirect github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect github.com/Azure/go-autorest v14.2.0+incompatible // indirect github.com/Azure/go-autorest/autorest v0.11.28 // indirect @@ -45,7 +41,6 @@ require ( github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect github.com/Azure/go-autorest/logger v0.2.1 // indirect github.com/Azure/go-autorest/tracing v0.6.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect github.com/BurntSushi/toml v1.2.1 // indirect github.com/MakeNowJust/heredoc v1.0.0 // indirect github.com/Masterminds/goutils v1.1.1 // indirect @@ -65,21 +60,14 @@ require ( github.com/atotto/clipboard v0.1.4 // indirect github.com/aws/aws-sdk-go v1.44.298 // indirect github.com/aws/aws-sdk-go-v2 v1.17.3 // indirect - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3 // indirect github.com/aws/aws-sdk-go-v2/config v1.15.15 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.12.10 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.9 // indirect - github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.21 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.27 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.21 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.3.16 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.3 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.10 // indirect github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.9 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.13.9 // indirect github.com/aws/aws-sdk-go-v2/service/kms v1.18.1 // indirect - github.com/aws/aws-sdk-go-v2/service/s3 v1.27.2 // indirect github.com/aws/aws-sdk-go-v2/service/sso v1.11.13 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.16.10 // indirect github.com/aws/smithy-go v1.13.5 // indirect @@ -107,7 +95,6 @@ require ( github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-metrics v0.0.1 // indirect github.com/docker/go-units v0.5.0 // indirect - github.com/dustin/go-humanize v1.0.1 // indirect github.com/edsrzf/mmap-go v1.1.0 // indirect github.com/emicklei/go-restful/v3 v3.11.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect @@ -129,7 +116,6 @@ require ( github.com/gobwas/glob v0.2.3 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect github.com/golang-jwt/jwt/v4 v4.5.0 // indirect github.com/golang/glog v1.1.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect @@ -171,7 +157,6 @@ require ( github.com/hashicorp/vault/sdk v0.6.1 // indirect github.com/hashicorp/yamux v0.1.1 // indirect github.com/huandu/xstrings v1.4.0 // indirect - github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd // indirect github.com/imdario/mergo v0.3.16 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect @@ -179,10 +164,8 @@ require ( github.com/jmoiron/sqlx v1.3.5 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect github.com/klauspost/compress v1.16.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect github.com/lib/pq v1.10.9 // indirect @@ -194,7 +177,6 @@ require ( github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect - github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-ps v1.0.0 // indirect @@ -224,8 +206,6 @@ require ( github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect github.com/pierrec/lz4 v2.6.1+incompatible // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect - github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect - github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/prometheus/client_golang v1.17.0 // indirect @@ -233,7 +213,7 @@ require ( github.com/prometheus/common v0.44.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/pulumi/cloud-ready-checks v1.0.1-0.20230201174945-00fe9c1b68fd // indirect - github.com/pulumi/esc v0.5.2 // indirect + github.com/pulumi/esc v0.5.6 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/rubenv/sql-migrate v1.3.1 // indirect @@ -271,7 +251,7 @@ require ( golang.org/x/crypto v0.14.0 // indirect golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect golang.org/x/mod v0.13.0 // indirect - golang.org/x/net v0.16.0 // indirect + golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.12.0 // indirect golang.org/x/sync v0.4.0 // indirect golang.org/x/sys v0.13.0 // indirect diff --git a/tests/go.sum b/tests/go.sum index 315b85fcd5..2ec48b0c57 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -95,8 +95,6 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7 github.com/AdaLogics/go-fuzz-headers v0.0.0-20210715213245-6c3934b029d8/go.mod h1:CzsSbkDixRphAF5hS6wbMKq0eI6ccJRb7/A0M6JBnwg= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230106234847-43070de90fa1 h1:EKPd1INOIyr5hWOWhvpmQpY6tKjeG0hT1s3AMC/9fic= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230106234847-43070de90fa1/go.mod h1:VzwV+t+dZ9j/H867F1M2ziD+yLHtB46oM35FxxMJ4d0= -github.com/AlecAivazis/survey/v2 v2.3.7 h1:6I/u8FvytdGsgonrYsVn2t8t4QiRnh6QSTqkkhIiSjQ= -github.com/AlecAivazis/survey/v2 v2.3.7/go.mod h1:xUTIdE4KCOIjsBAE1JYsUPoCqYdZ1reCfTwbto0Fduo= github.com/Azure/azure-amqp-common-go/v3 v3.2.3/go.mod h1:7rPmbSfszeovxGfc5fSAXE4ehlXQZHpMja2OtxC2Tas= github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v63.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= @@ -105,16 +103,12 @@ github.com/Azure/azure-sdk-for-go v66.0.0+incompatible h1:bmmC38SlE8/E81nNADlgmV github.com/Azure/azure-sdk-for-go v66.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 h1:tz19qLF65vuu2ibfTqGVJxG/zZAI27NEIIbvAOQwYbw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.11.0/go.mod h1:HcM1YX14R7CJcghJGOYCgdezslRSVzqwLf/q+4Y2r/0= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 h1:Yoicul8bnVdQrhDMTHxdEckRGX01XvwXDHUT9zYZ3k0= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0/go.mod h1:+6sju8gk8FRmSajX3Oz4G5Gm7P+mbqE9FVaXXFYTkCM= github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2TzfVZ1pCb5vxm4BtZPUdYWe/Xo8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.0.2/go.mod h1:LH9XQnMr2ZYxQdVdCrzLO9mxeDyrDFa6wbSI3x5zCZk= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1 h1:QSdcrd/UFJv6Bp/CfoVf2SrENpFn9P6Yh8yb+xNhYMM= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1/go.mod h1:eZ4g6GUvXiGulfIbbhh1Xr4XwUYaYaWMqzGD/284wCA= github.com/Azure/go-amqp v0.17.0/go.mod h1:9YJ3RhxRT1gquYnzpZO1vcYMMpAdJT+QEg6fwmw9Zlg= github.com/Azure/go-amqp v0.17.5/go.mod h1:9YJ3RhxRT1gquYnzpZO1vcYMMpAdJT+QEg6fwmw9Zlg= @@ -159,7 +153,6 @@ github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+Z github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= @@ -214,8 +207,6 @@ github.com/Microsoft/hcsshim/test v0.0.0-20201218223536-d3e5debf77da/go.mod h1:5 github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3/go.mod h1:mw7qgWloBUl75W/gVH3cQszUg1+gUITj7D6NY7ywVnY= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= -github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s= -github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 h1:ra2OtmuW0AE5csawV4YXMNGNQQXvLRps3z2Z59OPO+I= github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4/go.mod h1:UBYPn8k0D56RtnR8RFQMjmh4KrZzWJ5o7Z9SYjossQ8= @@ -556,7 +547,6 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4= @@ -589,7 +579,6 @@ github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/cli v20.10.21+incompatible h1:qVkgyYUnOLQ98LtXBrwd/duVqPT2X4SHndOuGsfwyhU= @@ -625,8 +614,6 @@ github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZ github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= -github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= @@ -861,7 +848,6 @@ github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= @@ -1143,9 +1129,6 @@ github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hetznercloud/hcloud-go v1.33.1/go.mod h1:XX/TQub3ge0yWR2yHWmnDVIrB+MQbda1pHxkUmDlUME= github.com/hetznercloud/hcloud-go v1.35.0/go.mod h1:mepQwR6va27S3UQthaEPGS86jtzSY9xWL1e9dyxXpgA= -github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= -github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02 h1:AgcIVYPa6XJnU3phs104wLj8l5GEththEw6+F79YsIY= -github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= @@ -1158,8 +1141,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1: github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= -github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd h1:anPrsicrIi2ColgWTVPk+TrN42hJIWlfPHSBP9S0ZkM= -github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd/go.mod h1:3LVOLeyx9XVvwPgrt2be44XgSqndprz1G18rSk8KD84= github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= @@ -1253,8 +1234,6 @@ github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaR github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= github.com/karrick/godirwalk v1.16.1 h1:DynhcF+bztK8gooS0+NDJFrdNZjJ3gzVzC545UNA9iw= github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= @@ -1288,7 +1267,6 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 h1:SOEGU9fKiNWd/HOJuq6+3iTQz8KNCLtVX6idSoTLdUw= github.com/lann/builder v0.0.0-20180802200727-47ae307949d0/go.mod h1:dXGbAdH5GtBTC4WfIxhKZfyBF/HBFgRZSWwZ9g/He9o= @@ -1336,7 +1314,6 @@ github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A= github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= @@ -1377,8 +1354,6 @@ github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182aff github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/microsoft/ApplicationInsights-Go v0.4.4/go.mod h1:fKRUseBqkw6bDiXTs3ESTiU/4YTIHsQS4W3fP2ieF4U= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= @@ -1583,7 +1558,6 @@ github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= -github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -1669,12 +1643,12 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/cloud-ready-checks v1.0.1-0.20230201174945-00fe9c1b68fd h1:shFTLvh3MZbBzVDr3xwYjUr5H1y3N5n4pczWtVaUZxo= github.com/pulumi/cloud-ready-checks v1.0.1-0.20230201174945-00fe9c1b68fd/go.mod h1:C6HmNtth9oPAWKyRJveZSU4rK/tvzhSGuoOV5y+S17g= -github.com/pulumi/esc v0.5.2 h1:Wnr0oXy8MAyRMtVrMHPI2frjyuylVnU47ReFPNjE3C0= -github.com/pulumi/esc v0.5.2/go.mod h1:lp6lkE9JrifhmjlXVH9//Rj45OETlVPHZKvoNRyU54Q= -github.com/pulumi/pulumi/pkg/v3 v3.89.0 h1:4gaR9ZerHqtc0NYcq7TLxhj2029H9CtRrirmibyLw/E= -github.com/pulumi/pulumi/pkg/v3 v3.89.0/go.mod h1:5DIoI81I+NmW/y2BDlQR4CwnzTeVwkI3DZ4FBnSprXs= -github.com/pulumi/pulumi/sdk/v3 v3.89.0 h1:WlkOQ4Q/Xyxu4lckGWssNI4Wdrobo5Zb7JQVoFVkzMo= -github.com/pulumi/pulumi/sdk/v3 v3.89.0/go.mod h1:XBIlxfHv/jnRj6v8rXP79Z3E11jQz/Ky+bDhwVAHOPk= +github.com/pulumi/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI= +github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04= +github.com/pulumi/pulumi/pkg/v3 v3.90.0 h1:Yp+AKcc3eTdrM/miH4OUX4JGc3JIyM9fVlcuuob1htk= +github.com/pulumi/pulumi/pkg/v3 v3.90.0/go.mod h1:rTbLpsshtBTLFsxMqOnqfHYLus12OqbI/3U4FdeeZYA= +github.com/pulumi/pulumi/sdk/v3 v3.90.0 h1:+P8fE0Ja8Q93G5uKBAtxGlc9xt+z+E7+7Ggx366Bb38= +github.com/pulumi/pulumi/sdk/v3 v3.90.0/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ= github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= @@ -2164,8 +2138,8 @@ golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfS golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/net v0.16.0 h1:7eBu7KsSvFDtSXUIDbh3aqlK4DPsZ1rByC8PFfBThos= -golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=