Skip to content

Commit

Permalink
Enable intellisense in vscode
Browse files Browse the repository at this point in the history
vscode (apparently) intellisense requires direct import of classes in
the __init__.py files for each apiversion. We implement this as such.
  • Loading branch information
hausdorff committed Aug 22, 2019
1 parent f9f68e9 commit e8c9372
Show file tree
Hide file tree
Showing 41 changed files with 173 additions and 173 deletions.
2 changes: 1 addition & 1 deletion pkg/gen/python-templates/version__init__.py.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

# Export this package's modules as members:
{{#Kinds}}
from .{{Kind}} import *
from .{{Kind}} import ({{Kind}})
{{/Kinds}}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .MutatingWebhookConfiguration import *
from .MutatingWebhookConfigurationList import *
from .ValidatingWebhookConfiguration import *
from .ValidatingWebhookConfigurationList import *
from .MutatingWebhookConfiguration import (MutatingWebhookConfiguration)
from .MutatingWebhookConfigurationList import (MutatingWebhookConfigurationList)
from .ValidatingWebhookConfiguration import (ValidatingWebhookConfiguration)
from .ValidatingWebhookConfigurationList import (ValidatingWebhookConfigurationList)
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .CustomResourceDefinition import *
from .CustomResourceDefinitionList import *
from .CustomResourceDefinition import (CustomResourceDefinition)
from .CustomResourceDefinitionList import (CustomResourceDefinitionList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .APIService import *
from .APIServiceList import *
from .APIService import (APIService)
from .APIServiceList import (APIServiceList)
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .APIService import *
from .APIServiceList import *
from .APIService import (APIService)
from .APIServiceList import (APIServiceList)
20 changes: 10 additions & 10 deletions sdk/python/pulumi_kubernetes/apps/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .ControllerRevision import *
from .ControllerRevisionList import *
from .DaemonSet import *
from .DaemonSetList import *
from .Deployment import *
from .DeploymentList import *
from .ReplicaSet import *
from .ReplicaSetList import *
from .StatefulSet import *
from .StatefulSetList import *
from .ControllerRevision import (ControllerRevision)
from .ControllerRevisionList import (ControllerRevisionList)
from .DaemonSet import (DaemonSet)
from .DaemonSetList import (DaemonSetList)
from .Deployment import (Deployment)
from .DeploymentList import (DeploymentList)
from .ReplicaSet import (ReplicaSet)
from .ReplicaSetList import (ReplicaSetList)
from .StatefulSet import (StatefulSet)
from .StatefulSetList import (StatefulSetList)
12 changes: 6 additions & 6 deletions sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .ControllerRevision import *
from .ControllerRevisionList import *
from .Deployment import *
from .DeploymentList import *
from .StatefulSet import *
from .StatefulSetList import *
from .ControllerRevision import (ControllerRevision)
from .ControllerRevisionList import (ControllerRevisionList)
from .Deployment import (Deployment)
from .DeploymentList import (DeploymentList)
from .StatefulSet import (StatefulSet)
from .StatefulSetList import (StatefulSetList)
20 changes: 10 additions & 10 deletions sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .ControllerRevision import *
from .ControllerRevisionList import *
from .DaemonSet import *
from .DaemonSetList import *
from .Deployment import *
from .DeploymentList import *
from .ReplicaSet import *
from .ReplicaSetList import *
from .StatefulSet import *
from .StatefulSetList import *
from .ControllerRevision import (ControllerRevision)
from .ControllerRevisionList import (ControllerRevisionList)
from .DaemonSet import (DaemonSet)
from .DaemonSetList import (DaemonSetList)
from .Deployment import (Deployment)
from .DeploymentList import (DeploymentList)
from .ReplicaSet import (ReplicaSet)
from .ReplicaSetList import (ReplicaSetList)
from .StatefulSet import (StatefulSet)
from .StatefulSetList import (StatefulSetList)
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .AuditSink import *
from .AuditSinkList import *
from .AuditSink import (AuditSink)
from .AuditSinkList import (AuditSinkList)
2 changes: 1 addition & 1 deletion sdk/python/pulumi_kubernetes/authentication/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .TokenReview import *
from .TokenReview import (TokenReview)
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .TokenReview import *
from .TokenReview import (TokenReview)
8 changes: 4 additions & 4 deletions sdk/python/pulumi_kubernetes/authorization/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .LocalSubjectAccessReview import *
from .SelfSubjectAccessReview import *
from .SelfSubjectRulesReview import *
from .SubjectAccessReview import *
from .LocalSubjectAccessReview import (LocalSubjectAccessReview)
from .SelfSubjectAccessReview import (SelfSubjectAccessReview)
from .SelfSubjectRulesReview import (SelfSubjectRulesReview)
from .SubjectAccessReview import (SubjectAccessReview)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .LocalSubjectAccessReview import *
from .SelfSubjectAccessReview import *
from .SelfSubjectRulesReview import *
from .SubjectAccessReview import *
from .LocalSubjectAccessReview import (LocalSubjectAccessReview)
from .SelfSubjectAccessReview import (SelfSubjectAccessReview)
from .SelfSubjectRulesReview import (SelfSubjectRulesReview)
from .SubjectAccessReview import (SubjectAccessReview)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .HorizontalPodAutoscaler import *
from .HorizontalPodAutoscalerList import *
from .HorizontalPodAutoscaler import (HorizontalPodAutoscaler)
from .HorizontalPodAutoscalerList import (HorizontalPodAutoscalerList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .HorizontalPodAutoscaler import *
from .HorizontalPodAutoscalerList import *
from .HorizontalPodAutoscaler import (HorizontalPodAutoscaler)
from .HorizontalPodAutoscalerList import (HorizontalPodAutoscalerList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .HorizontalPodAutoscaler import *
from .HorizontalPodAutoscalerList import *
from .HorizontalPodAutoscaler import (HorizontalPodAutoscaler)
from .HorizontalPodAutoscalerList import (HorizontalPodAutoscalerList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/batch/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .Job import *
from .JobList import *
from .Job import (Job)
from .JobList import (JobList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .CronJob import *
from .CronJobList import *
from .CronJob import (CronJob)
from .CronJobList import (CronJobList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .CronJob import *
from .CronJobList import *
from .CronJob import (CronJob)
from .CronJobList import (CronJobList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .CertificateSigningRequest import *
from .CertificateSigningRequestList import *
from .CertificateSigningRequest import (CertificateSigningRequest)
from .CertificateSigningRequestList import (CertificateSigningRequestList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/coordination/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .Lease import *
from .LeaseList import *
from .Lease import (Lease)
from .LeaseList import (LeaseList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .Lease import *
from .LeaseList import *
from .Lease import (Lease)
from .LeaseList import (LeaseList)
66 changes: 33 additions & 33 deletions sdk/python/pulumi_kubernetes/core/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,36 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .Binding import *
from .ComponentStatus import *
from .ComponentStatusList import *
from .ConfigMap import *
from .ConfigMapList import *
from .Endpoints import *
from .EndpointsList import *
from .Event import *
from .EventList import *
from .LimitRange import *
from .LimitRangeList import *
from .Namespace import *
from .NamespaceList import *
from .Node import *
from .NodeList import *
from .PersistentVolume import *
from .PersistentVolumeClaim import *
from .PersistentVolumeClaimList import *
from .PersistentVolumeList import *
from .Pod import *
from .PodList import *
from .PodTemplate import *
from .PodTemplateList import *
from .ReplicationController import *
from .ReplicationControllerList import *
from .ResourceQuota import *
from .ResourceQuotaList import *
from .Secret import *
from .SecretList import *
from .Service import *
from .ServiceAccount import *
from .ServiceAccountList import *
from .ServiceList import *
from .Binding import (Binding)
from .ComponentStatus import (ComponentStatus)
from .ComponentStatusList import (ComponentStatusList)
from .ConfigMap import (ConfigMap)
from .ConfigMapList import (ConfigMapList)
from .Endpoints import (Endpoints)
from .EndpointsList import (EndpointsList)
from .Event import (Event)
from .EventList import (EventList)
from .LimitRange import (LimitRange)
from .LimitRangeList import (LimitRangeList)
from .Namespace import (Namespace)
from .NamespaceList import (NamespaceList)
from .Node import (Node)
from .NodeList import (NodeList)
from .PersistentVolume import (PersistentVolume)
from .PersistentVolumeClaim import (PersistentVolumeClaim)
from .PersistentVolumeClaimList import (PersistentVolumeClaimList)
from .PersistentVolumeList import (PersistentVolumeList)
from .Pod import (Pod)
from .PodList import (PodList)
from .PodTemplate import (PodTemplate)
from .PodTemplateList import (PodTemplateList)
from .ReplicationController import (ReplicationController)
from .ReplicationControllerList import (ReplicationControllerList)
from .ResourceQuota import (ResourceQuota)
from .ResourceQuotaList import (ResourceQuotaList)
from .Secret import (Secret)
from .SecretList import (SecretList)
from .Service import (Service)
from .ServiceAccount import (ServiceAccount)
from .ServiceAccountList import (ServiceAccountList)
from .ServiceList import (ServiceList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .Event import *
from .EventList import *
from .Event import (Event)
from .EventList import (EventList)
24 changes: 12 additions & 12 deletions sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .DaemonSet import *
from .DaemonSetList import *
from .Deployment import *
from .DeploymentList import *
from .Ingress import *
from .IngressList import *
from .NetworkPolicy import *
from .NetworkPolicyList import *
from .PodSecurityPolicy import *
from .PodSecurityPolicyList import *
from .ReplicaSet import *
from .ReplicaSetList import *
from .DaemonSet import (DaemonSet)
from .DaemonSetList import (DaemonSetList)
from .Deployment import (Deployment)
from .DeploymentList import (DeploymentList)
from .Ingress import (Ingress)
from .IngressList import (IngressList)
from .NetworkPolicy import (NetworkPolicy)
from .NetworkPolicyList import (NetworkPolicyList)
from .PodSecurityPolicy import (PodSecurityPolicy)
from .PodSecurityPolicyList import (PodSecurityPolicyList)
from .ReplicaSet import (ReplicaSet)
from .ReplicaSetList import (ReplicaSetList)
2 changes: 1 addition & 1 deletion sdk/python/pulumi_kubernetes/meta/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .Status import *
from .Status import (Status)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/networking/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .NetworkPolicy import *
from .NetworkPolicyList import *
from .NetworkPolicy import (NetworkPolicy)
from .NetworkPolicyList import (NetworkPolicyList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .Ingress import *
from .IngressList import *
from .Ingress import (Ingress)
from .IngressList import (IngressList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .RuntimeClass import *
from .RuntimeClassList import *
from .RuntimeClass import (RuntimeClass)
from .RuntimeClassList import (RuntimeClassList)
4 changes: 2 additions & 2 deletions sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .RuntimeClass import *
from .RuntimeClassList import *
from .RuntimeClass import (RuntimeClass)
from .RuntimeClassList import (RuntimeClassList)
8 changes: 4 additions & 4 deletions sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .PodDisruptionBudget import *
from .PodDisruptionBudgetList import *
from .PodSecurityPolicy import *
from .PodSecurityPolicyList import *
from .PodDisruptionBudget import (PodDisruptionBudget)
from .PodDisruptionBudgetList import (PodDisruptionBudgetList)
from .PodSecurityPolicy import (PodSecurityPolicy)
from .PodSecurityPolicyList import (PodSecurityPolicyList)
16 changes: 8 additions & 8 deletions sdk/python/pulumi_kubernetes/rbac/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .ClusterRole import *
from .ClusterRoleBinding import *
from .ClusterRoleBindingList import *
from .ClusterRoleList import *
from .Role import *
from .RoleBinding import *
from .RoleBindingList import *
from .RoleList import *
from .ClusterRole import (ClusterRole)
from .ClusterRoleBinding import (ClusterRoleBinding)
from .ClusterRoleBindingList import (ClusterRoleBindingList)
from .ClusterRoleList import (ClusterRoleList)
from .Role import (Role)
from .RoleBinding import (RoleBinding)
from .RoleBindingList import (RoleBindingList)
from .RoleList import (RoleList)
Loading

0 comments on commit e8c9372

Please sign in to comment.